/* ========== PRODUCTS PAGE STYLES ========== */

/* Remove blue tap/focus highlight */
*, *::before, *::after {
    -webkit-tap-highlight-color: transparent;
}

a, button, input, select, textarea, div[onclick] {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ---- Products Hero ---- */
.products-hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #502346 100%);
    color: var(--text-light);
    padding: 140px 5% 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(254, 129, 212, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(255, 234, 187, 0.08) 0%, transparent 50%);
    animation: heroFloat 15s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-2%, 2%); }
}

.products-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.products-hero h1 span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

/* ---- Search & Filters Bar ---- */
.filters-section {
    background: #fff;
    padding: 30px 5%;
    position: sticky;
    top: 72px;
    z-index: 99;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid #edf2f7;
}

.filters-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1rem;
}

.search-box input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    border: 2px solid #edf2f7;
    border-radius: 14px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: var(--light-bg);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(250, 172, 191, 0.2);
    background: #fff;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #edf2f7;
    border-radius: 25px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: rgba(250, 172, 191, 0.08);
}

.filter-btn.active {
    background: linear-gradient(135deg, #FE81D4, #FAACBF);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(254, 129, 212, 0.3);
}

.filter-divider {
    width: 1px;
    height: 30px;
    background: #e2e8f0;
    margin: 0 5px;
}

.price-filter-group,
.rating-filter-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.price-filter-group label,
.rating-filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #718096;
    white-space: nowrap;
}

.price-select,
.rating-select {
    padding: 10px 14px;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    background: #fff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.price-select:focus,
.rating-select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* ---- Products Grid ---- */
.products-section {
    padding: 60px 5% 100px;
    background: var(--light-bg);
}

.products-grid-container {
    max-width: 1400px;
    margin: 0 auto;
}

.products-count {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 25px;
    font-weight: 500;
}

.products-count span {
    color: var(--text-dark);
    font-weight: 700;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #a0aec0;
}

.no-products i {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    color: #cbd5e1;
}

.no-products p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* ---- Product Card ---- */
.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.product-card-image {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #edf2f7;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

/* Badges */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    color: #fff;
}

.badge-bestseller {
    background: linear-gradient(135deg, #FFEABB, #FBC3C1);
    color: #3d2042;
}

.badge-new {
    background: linear-gradient(135deg, #FE81D4, #FAACBF);
}

.badge-discount {
    background: linear-gradient(135deg, #FBC3C1, #FE81D4);
}

/* Wishlist */
.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #cbd5e1;
    transition: all 0.3s ease;
    z-index: 2;
}

.wishlist-btn:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.wishlist-btn.active {
    color: #FE81D4;
    animation: heartPop 0.4s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Quick Add Overlay */
.quick-add-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
}

.product-card:hover .quick-add-overlay {
    transform: translateY(0);
}

.quick-add-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #FE81D4, #FAACBF);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quick-add-btn:hover {
    background: linear-gradient(135deg, #FAACBF, #FE81D4);
    box-shadow: 0 4px 15px rgba(254, 129, 212, 0.4);
}

/* Card Body */
.product-card-body {
    padding: 22px;
}

.product-category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(250, 172, 191, 0.12);
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-description {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
}

.product-rating .stars {
    color: #fbbf24;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.product-rating .review-count {
    font-size: 0.8rem;
    color: #a0aec0;
    font-weight: 500;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-prices {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-main {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
}

.price-original {
    font-size: 0.85rem;
    color: #a0aec0;
    text-decoration: line-through;
}

.price-secondary {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
}

.add-cart-btn-small {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #FE81D4, #FAACBF);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.add-cart-btn-small:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(254, 129, 212, 0.4);
}

/* ---- Floating Cart Button ---- */
.floating-cart {
    position: fixed;
    bottom: 110px; /* Positioned above WhatsApp button (30px + 65px + 15px gap) */
    right: 30px;   /* Aligned with WhatsApp button's right edge */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dark-bg), #502346);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 8px 25px rgba(61, 32, 66, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(61, 32, 66, 0.5);
}

.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--light-bg);
    transition: transform 0.3s ease;
}

.cart-count-badge.bump {
    animation: cartBump 0.3s ease;
}

@keyframes cartBump {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* ---- Cart Drawer ---- */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 2001;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer-header {
    padding: 25px 25px 20px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-drawer-header h3 i {
    color: var(--primary-color);
}

.cart-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--light-bg);
    color: var(--text-dark);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close-btn:hover {
    background: #fee2e2;
    color: var(--primary-color);
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
}

.cart-empty i {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
    color: #e2e8f0;
}

.cart-empty p {
    font-size: 1.05rem;
    font-weight: 600;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 2px solid #edf2f7;
    background: #fff;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.cart-item-qty {
    font-size: 0.95rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: #fef2f2;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    margin-left: 5px;
}

.cart-item-remove:hover {
    background: #fee2e2;
    transform: scale(1.1);
}

.cart-drawer-footer {
    padding: 25px;
    border-top: 1px solid #edf2f7;
    background: #fafbfd;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cart-total-label {
    font-size: 1rem;
    color: #718096;
    font-weight: 600;
}

.cart-total-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
}

.cart-total-value.grand {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.cart-checkout-btn {
    width: 100%;
    padding: 16px;
    margin-top: 18px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.cart-checkout-btn i {
    font-size: 1.3rem;
}

/* ---- Product Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.product-modal {
    background: #fff;
    border-radius: 24px;
    max-width: 850px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: row;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-overlay.open .product-modal {
    transform: scale(1) translateY(0);
}

.modal-image {
    width: 45%;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 24px 0 0 24px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-badge {
    position: absolute;
    top: 20px;
    left: 20px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.modal-close:hover {
    background: #fee2e2;
    color: var(--primary-color);
}

.modal-details {
    flex: 1;
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
}

.modal-category {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(250, 172, 191, 0.12);
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    width: fit-content;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.2;
}

.modal-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.modal-rating .stars {
    color: #fbbf24;
    font-size: 1rem;
}

.modal-rating .count {
    font-size: 0.9rem;
    color: #718096;
}

.modal-description {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 25px;
    flex: 1;
}

.modal-price-section {
    margin-bottom: 25px;
}

.modal-price-main {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.modal-price-original {
    font-size: 1.1rem;
    color: #a0aec0;
    text-decoration: line-through;
    margin-left: 10px;
}

.modal-price-secondary {
    font-size: 0.95rem;
    color: #718096;
    margin-top: 4px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.modal-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid #edf2f7;
    border-radius: 14px;
    padding: 8px 12px;
}

.modal-qty button {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: var(--light-bg);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.modal-qty button:hover {
    background: var(--secondary-color);
    color: #fff;
}

.modal-qty-value {
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.modal-add-cart {
    flex: 1;
    padding: 16px 25px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #FE81D4, #FAACBF);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(254, 129, 212, 0.3);
}

.modal-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(254, 129, 212, 0.4);
}

/* ---- Toast Notification ---- */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 28px;
    background: var(--dark-bg);
    color: #fff;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 5000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast i {
    color: var(--secondary-color);
}

/* ---- Global Overflow Fix ---- */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ---- Responsive ---- */

/* Tablet breakpoint */
@media (max-width: 900px) {
    .products-hero h1 {
        font-size: 2.4rem;
    }

    .filters-section {
        padding: 20px 16px;
    }

    .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        max-width: 100%;
    }

    .search-box {
        min-width: 0;
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    .filter-divider {
        display: none;
    }

    .filter-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 5px 0;
    }

    .filter-group::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
        min-height: 44px;
        padding: 10px 18px;
    }

    .price-filter-group,
    .rating-filter-group {
        width: 100%;
    }

    .price-select,
    .rating-select {
        flex: 1;
        min-height: 44px;
    }

    .product-modal {
        flex-direction: column;
    }

    .modal-image {
        width: 100%;
        min-height: 280px;
        border-radius: 24px 24px 0 0;
    }

    .modal-details {
        padding: 25px 20px;
    }

    .modal-title {
        font-size: 1.4rem;
    }
}

/* Large mobile breakpoint */
@media (max-width: 768px) {
    .products-hero {
        padding: 120px 16px 60px;
    }

    .products-hero h1 {
        font-size: 2rem;
    }

    .products-hero p {
        font-size: 1rem;
    }

    .filters-section {
        padding: 16px;
        top: 62px;
    }

    .products-section {
        padding: 40px 16px 80px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }

    .filter-group {
        gap: 8px;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
        min-height: 44px;
    }

    .floating-cart {
        bottom: 110px; /* Stacked above WhatsApp button with gap */
        right: 30px;   /* Aligned with WhatsApp button */
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .cart-drawer {
        width: 100%;
        max-width: 100vw;
    }

    .toast {
        left: 16px;
        right: 16px;
        transform: translateX(0) translateY(100px);
        width: auto;
        text-align: center;
        justify-content: center;
    }

    .toast.show {
        transform: translateX(0) translateY(0);
    }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
    .products-hero {
        padding: 110px 16px 40px;
    }

    .products-hero h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .products-hero p {
        font-size: 0.9rem;
    }

    .filters-section {
        padding: 12px;
    }

    .filters-container {
        gap: 10px;
    }

    .search-box input {
        padding: 12px 14px 12px 42px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .search-box i {
        left: 14px;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 8px 14px;
        border-radius: 20px;
        min-height: 40px;
    }

    .price-filter-group,
    .rating-filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .price-filter-group label,
    .rating-filter-group label {
        margin-bottom: 4px;
    }

    .price-select,
    .rating-select {
        width: 100%;
    }

    .products-section {
        padding: 30px 12px 80px;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .product-card-body {
        padding: 14px;
    }

    .product-name {
        font-size: 0.95rem;
    }

    .product-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        margin-bottom: 8px;
    }

    .product-card-image {
        height: 180px;
    }

    .price-main {
        font-size: 1.1rem;
    }

    .price-original {
        font-size: 0.75rem;
    }

    .price-secondary {
        font-size: 0.7rem;
    }

    .add-cart-btn-small {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 0.95rem;
    }

    .quick-add-overlay {
        transform: translateY(0);
    }

    .quick-add-btn {
        font-size: 0.85rem;
        padding: 10px;
    }

    .modal-overlay {
        padding: 10px;
    }

    .modal-image {
        min-height: 220px;
    }

    .modal-details {
        padding: 20px 16px;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .modal-description {
        font-size: 0.9rem;
    }

    .modal-price-main {
        font-size: 1.6rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-qty {
        width: 100%;
        justify-content: center;
    }

    .cart-drawer-header h3 {
        font-size: 1.2rem;
    }

    .cart-drawer-footer {
        padding: 18px;
    }

    .cart-checkout-btn {
        font-size: 1rem;
        padding: 14px;
    }
}
