/* ==========================================================================
   YASHO SAREES — LUXURY MOBILE-FIRST DESIGN SYSTEM & APP-LIKE UI
   ========================================================================== */

/* 1. Universal Viewport & Mobile Reset */
html,
body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    position: relative;
}

* {
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation;
    box-sizing: border-box;
}

@media (hover: none) and (pointer: coarse) {
    button:active,
    .btn:active,
    .btn-card-buy:active,
    .btn-card-cart:active,
    .product-card:active,
    .mobile-nav-item:active,
    .story-bubble:active,
    .category-card:active {
        transform: scale(0.96) !important;
        transition: transform 0.08s ease-out !important;
    }
}

/* Universal Nav Logo Dimensions */
.nav-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
}

.nav-logo img,
.nav-logo .logo-icon {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

.navbar.scrolled .nav-logo img,
.navbar.scrolled .nav-logo .logo-icon {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
}

/* 1.1 Universal Product Card Equal-Height & Locked Button Level Alignment */
.product-grid,
.wishlist-grid,
.related-grid,
.collection-grid {
    display: grid;
    align-items: stretch;
}

.product-card,
.wishlist-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.product-image-wrapper,
.product-image,
.wishlist-img-wrap {
    aspect-ratio: 4 / 5 !important;
    width: 100% !important;
    flex-shrink: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.product-info,
.wishlist-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
    padding: 16px 14px 14px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
}

.product-info h3,
.product-name,
.wishlist-title,
.wishlist-title a {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    height: 2.7em !important;
    min-height: 2.7em !important;
    max-height: 2.7em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 0 6px 0 !important;
    color: #1A1A1A !important;
}

.product-info .rating,
.product-rating {
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 0 6px 0 !important;
    font-size: 0.85rem !important;
    color: #D4AF37 !important;
}

.product-info .price,
.product-pricing,
.wishlist-price-wrap {
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    margin: 0 0 10px 0 !important;
    font-size: 1.15rem !important;
    font-weight: 750 !important;
    color: #8B1A2B !important;
}

.card-btn-group,
.card-actions-group,
.product-card .card-btn-group,
.wishlist-card .card-btn-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-top: auto !important;
    padding-top: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
}

.btn-card-cart,
.btn-card-buy,
.add-to-cart-btn {
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 2. iOS Safari 16px Font Auto-Zoom Prevention & Body Bottom Padding */
@media (max-width: 768px) {
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }

    body {
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* ==========================================================================
   3. HAMBURGER BUTTON, MOBILE DRAWER & DARK OVERLAY (TOP PRIORITY)
   ========================================================================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 38px;
    height: 38px;
    padding: 8px 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10002 !important;
    border-radius: 6px;
    transition: background 0.2s ease;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
    }
    .nav-links {
        display: none !important;
    }
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: #8B1A2B;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.navbar:not(.scrolled) .hamburger span {
    background: #D4AF37;
}

.navbar.scrolled .hamburger span {
    background: #8B1A2B;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
    background: #8B1A2B !important;
}

.hamburger.active span:nth-child(2) {
    opacity: 0 !important;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
    background: #8B1A2B !important;
}

/* Mobile Drawer Overlay */
.mobile-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    z-index: 10000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s !important;
}

.mobile-overlay.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

/* Mobile Drawer Menu */
.mobile-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    transform: translateX(105%) !important;
    width: 300px !important;
    max-width: 86vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    z-index: 10001 !important;
    padding: 24px 20px 40px !important;
    box-shadow: -6px 0 35px rgba(0, 0, 0, 0.28) !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s !important;
}

.mobile-menu.active {
    display: flex !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: all !important;
}

.mobile-menu a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    color: #1A1A1A !important;
    font-weight: 600 !important;
    padding: 13px 14px !important;
    border-radius: 8px !important;
    font-size: 0.96rem !important;
    transition: all 0.2s ease !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: #FAF8F5 !important;
    color: #8B1A2B !important;
    padding-left: 18px !important;
}

/* ==========================================================================
   4. APP-LIKE GLASSMORPHIC BOTTOM NAVIGATION TAB BAR
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 9998;
    justify-content: space-around;
    align-items: center;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
}

@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666666;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 6px 0;
    position: relative;
    transition: color 0.2s ease;
}

.mobile-nav-item i {
    font-size: 1.15rem;
    margin-bottom: 3px;
    position: relative;
    transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-item.active {
    color: #8B1A2B;
    font-weight: 700;
}

.mobile-nav-item.active i {
    color: #8B1A2B;
    transform: translateY(-2px);
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    width: 22px;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #AA820A);
    border-radius: 0 0 3px 3px;
}

.mobile-nav-badge {
    position: absolute;
    top: -5px;
    right: -9px;
    background: #8B1A2B;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 10px;
    text-align: center;
    padding: 0 4px;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   5. HORIZONTAL LUXURY CATEGORY STORY STRIP (Instagram/Myntra Style)
   ========================================================================== */
.mobile-category-stories {
    display: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 14px 12px;
    gap: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #FAF8F5 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.mobile-category-stories::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-category-stories {
        display: flex;
    }
}

.story-bubble {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 68px;
    text-align: center;
}

.story-ring {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    padding: 2.5px;
    background: linear-gradient(135deg, #D4AF37 0%, #8B1A2B 50%, #D4AF37 100%);
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.25);
    margin-bottom: 6px;
    transition: transform 0.2s ease;
}

.story-ring img,
.story-ring .story-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B1A2B;
    font-size: 1.2rem;
}

.story-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #333333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    letter-spacing: 0.2px;
}

/* ==========================================================================
   6. MOBILE SINGLE-COLUMN PRODUCT CARDS (ONE BELOW ANOTHER)
   ========================================================================== */
@media (max-width: 768px) {
    .product-grid,
    .wishlist-grid,
    .related-grid,
    .collection-grid,
    #featured-products,
    #trending-products,
    #collections-products,
    #category-products,
    #new-arrivals-products,
    #wishlist-items,
    #wishlistGridWrap,
    #relatedGrid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 22px !important;
        padding: 0 4px !important;
        max-width: 440px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }

    .product-card,
    .wishlist-card {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid rgba(212, 175, 55, 0.22) !important;
        background: #ffffff !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        margin: 0 !important;
    }

    .product-image-wrapper,
    .product-image,
    .wishlist-img-wrap {
        position: relative !important;
        aspect-ratio: 4 / 5 !important;
        width: 100% !important;
        height: auto !important;
        max-height: 480px !important;
        overflow: hidden !important;
        background: #faf8f5 !important;
    }

    .product-image img,
    .product-image-wrapper img,
    .wishlist-img-wrap img,
    .product-slides img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    /* Wishlist Heart overlay button */
    .product-actions-overlay {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        bottom: auto !important;
        left: auto !important;
        display: flex !important;
        gap: 8px !important;
        padding: 0 !important;
        z-index: 10 !important;
        opacity: 1 !important;
        pointer-events: all !important;
    }

    .product-actions-overlay .btn-quick-view {
        display: none !important;
    }

    .product-actions-overlay button {
        width: 38px !important;
        height: 38px !important;
        background: rgba(255, 255, 255, 0.94) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15) !important;
        border-radius: 50% !important;
        border: none !important;
        color: #8B1A2B !important;
        font-size: 1.05rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
    }

    .product-badge {
        position: absolute !important;
        top: 12px !important;
        left: 12px !important;
        background: #8B1A2B !important;
        color: #ffffff !important;
        font-size: 0.72rem !important;
        font-weight: 750 !important;
        padding: 4px 9px !important;
        border-radius: 4px !important;
        z-index: 5 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        letter-spacing: 0.5px !important;
    }

    .product-info,
    .wishlist-body {
        padding: 14px 16px 16px !important;
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
        justify-content: flex-start !important;
        background: #ffffff !important;
    }

    .product-info h3,
    .product-name,
    .wishlist-title,
    .wishlist-title a {
        font-size: 1.05rem !important;
        font-weight: 600 !important;
        margin-bottom: 6px !important;
        white-space: normal !important;
        line-height: 1.35 !important;
        height: 2.7em !important;
        min-height: 2.7em !important;
        max-height: 2.7em !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        color: #1A1A1A !important;
    }

    .product-info .rating,
    .product-rating {
        height: 20px !important;
        min-height: 20px !important;
        max-height: 20px !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        margin-bottom: 6px !important;
        font-size: 0.85rem !important;
        color: #D4AF37 !important;
    }

    .product-info .price,
    .product-pricing,
    .wishlist-price-wrap {
        display: flex !important;
        align-items: baseline !important;
        gap: 8px !important;
        height: 26px !important;
        min-height: 26px !important;
        max-height: 26px !important;
        margin-bottom: 10px !important;
        font-size: 1.15rem !important;
        font-weight: 750 !important;
        color: #8B1A2B !important;
    }

    .product-info .price .original,
    .wishlist-orig-price {
        font-size: 0.88rem !important;
        font-weight: 500 !important;
        color: #888888 !important;
        text-decoration: line-through !important;
    }

    /* CARD BUTTON GROUP: 50/50 LUXURY DUAL BUTTONS WITH FULL VISIBILITY & EQUAL LEVEL */
    .card-btn-group,
    .card-actions-group,
    .product-card .card-btn-group,
    .wishlist-card .card-btn-group {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-top: auto !important;
        padding-top: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        align-items: stretch !important;
    }

    .btn-card-cart {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
        height: 42px !important;
        padding: 0 10px !important;
        border-radius: 8px !important;
        border: 1.5px solid #8B1A2B !important;
        background: #ffffff !important;
        color: #8B1A2B !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        font-size: 0.86rem !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
        visibility: visible !important;
        opacity: 1 !important;
        transition: all 0.2s ease !important;
    }

    .btn-card-cart i {
        font-size: 0.92rem !important;
        flex-shrink: 0 !important;
        color: #8B1A2B !important;
    }

    .btn-card-cart:active {
        background: #fff5f5 !important;
        transform: scale(0.98) !important;
    }

    .btn-card-buy {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
        height: 42px !important;
        padding: 0 10px !important;
        border-radius: 8px !important;
        border: none !important;
        background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
        color: #ffffff !important;
        font-size: 0.86rem !important;
        font-weight: 750 !important;
        letter-spacing: 0.3px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4) !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        visibility: visible !important;
        opacity: 1 !important;
        box-sizing: border-box !important;
        transition: all 0.2s ease !important;
    }

    .btn-card-buy i {
        font-size: 0.92rem !important;
        flex-shrink: 0 !important;
        color: #ffffff !important;
    }

    .btn-card-buy:active {
        transform: scale(0.98) !important;
        box-shadow: 0 2px 8px rgba(217, 119, 6, 0.55) !important;
    }
}

/* ==========================================================================
   7. STICKY BOTTOM CHECKOUT BARS (cart.html & product.html)
   ========================================================================== */
.mobile-pdp-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1.5px solid rgba(212, 175, 55, 0.35);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
    z-index: 10001;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

.mobile-cart-sticky-bar {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-pdp-sticky-bar {
        display: flex;
    }
    .mobile-pdp-sticky-bar.visible {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}
@media (min-width: 769px) {
    .mobile-pdp-sticky-bar {
        display: none !important;
    }
}

/* ==========================================================================
   8. UNIVERSAL MOBILE RESPONSIVE LAYOUTS FOR ALL SUB-PAGES
   ========================================================================== */
@media (max-width: 768px) {
    /* Navbar compact padding */
    .navbar .container,
    .nav-container {
        padding: 0 16px !important;
    }

    .nav-logo {
        font-size: 1.15rem !important;
    }

    .logo-icon {
        width: 42px !important;
        height: 42px !important;
    }

    /* Sections */
    .section {
        padding: 40px 14px !important;
    }

    /* Categories Section on Homepage (Explore All 32 Saree Varieties) */
    #categories.section {
        padding: 30px 14px 24px !important;
    }

    #categories .section-header {
        margin-bottom: 14px !important;
    }

    #categories .section-tag {
        font-size: 0.70rem !important;
        padding: 3px 10px !important;
        margin-bottom: 4px !important;
    }

    #categories .section-title {
        font-size: 1.35rem !important;
        margin-bottom: 4px !important;
    }

    #categories .section-subtitle {
        font-size: 0.78rem !important;
        line-height: 1.35 !important;
        margin-bottom: 10px !important;
    }

    /* Compact Explore All 32 Saree Varieties Dropdown Card */
    .home-cat-dropdown-card {
        padding: 12px 14px 14px !important;
        margin: 0 auto 16px !important;
        border-radius: 14px !important;
        background: linear-gradient(135deg, #FFFDF8 0%, #FAF5EA 100%) !important;
        border: 1px solid rgba(212, 175, 55, 0.45) !important;
        box-shadow: 0 4px 16px rgba(212, 175, 55, 0.10) !important;
    }

    .home-dropdown-inner {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .home-dropdown-badge {
        display: none !important;
    }

    .home-dropdown-text {
        text-align: center !important;
        flex: none !important;
    }

    .home-dropdown-text h3 {
        font-size: 1.05rem !important;
        margin: 0 0 2px 0 !important;
        line-height: 1.25 !important;
        color: #5B0E1B !important;
        font-weight: 700 !important;
    }

    .home-dropdown-text p {
        font-size: 0.75rem !important;
        margin: 0 0 6px 0 !important;
        color: #666 !important;
        line-height: 1.3 !important;
    }

    .home-dropdown-select-wrap {
        width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
    }

    .home-category-select {
        font-size: 16px !important;
        min-height: 42px !important;
        height: 42px !important;
        padding: 8px 36px 8px 38px !important;
        border-radius: 25px !important;
    }

    .home-select-icon {
        left: 14px !important;
        font-size: 0.88rem !important;
    }

    /* Compact Category Grid & Cards */
    .category-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .category-card {
        padding: 10px 8px !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        border: 1px solid rgba(212, 175, 55, 0.22) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
        text-align: center !important;
    }

    .category-card::after {
        display: none !important;
    }

    .category-icon {
        font-size: 1.35rem !important;
        margin-bottom: 4px !important;
        color: #8B1A2B !important;
    }

    .category-card h3 {
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
        margin-bottom: 2px !important;
    }

    .category-card p {
        font-size: 0.67rem !important;
        line-height: 1.15 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* Collections & Categories Filter Bars */
    .filter-bar,
    .catalog-controls,
    #collections-list > div:first-of-type,
    div[style*="justify-content:space-between; align-items:center; margin-bottom:45px"] {
        padding: 14px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    /* Hide catalog search box on mobile view */
    #catalogSearch,
    .search-box-wrapper {
        display: none !important;
    }

    #fabricFilter,
    #priceSort,
    #categoryTabs select {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Cart Page Mobile Grid */
    .cart-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .cart-item {
        padding: 12px 6px !important;
        gap: 10px !important;
    }

    .cart-item-img {
        width: 70px !important;
        height: 90px !important;
    }

    .summary-card {
        position: static !important;
        padding: 18px 14px !important;
    }

    /* Checkout Page Mobile Grid */
    .checkout-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .checkout-card,
    .order-summary-card {
        padding: 18px 14px !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Product Details Page */
    .product-showcase,
    .product-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .gallery-main-img {
        height: 360px !important;
    }

    /* Profile Page Tabs */
    .profile-tabs-nav,
    .profile-sidebar {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        gap: 8px !important;
        padding-bottom: 6px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .profile-tab-btn,
    .profile-nav-btn,
    .profile-nav-item {
        flex: 0 0 auto !important;
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }

    /* Contact Page */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Auth / Login Page */
    .auth-card {
        margin: 20px 10px !important;
        padding: 24px 16px !important;
    }

    /* Footer */
    .footer {
        padding: 45px 16px 24px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px !important;
    }

    .footer-col {
        min-width: 0 !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

    .footer-col p,
    .footer-col a {
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
}

/* ==========================================================================
   TOP POPUPS & TOAST NOTIFICATIONS (UNIVERSAL TOP LUXURY BANNER SYSTEM)
   ========================================================================== */
#toast,
.toast {
    position: fixed !important;
    top: 24px !important;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(-140%) !important;
    z-index: 999999 !important;
    transition: all 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    max-width: min(92vw, 440px) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22) !important;
    border-radius: 12px !important;
}

#toast.show,
.toast.show {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ==========================================================================
   HERO LUXURY TRUST RIBBON & MOBILE HERO SYSTEM
   ========================================================================== */
@media (max-width: 991px) {
    .hero {
        min-height: auto !important;
        height: auto !important;
        padding-top: calc(75px + env(safe-area-inset-top, 0px)) !important;
        padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)) !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        position: relative !important;
        overflow: hidden !important;
        background: radial-gradient(ellipse 90% 50% at 50% 0%, rgba(201, 168, 76, 0.16) 0%, transparent 60%),
                    linear-gradient(180deg, #1A0A10 0%, #250E18 36%, #17070E 72%, #0F0408 100%) !important;
        border-bottom: 1px solid rgba(201, 168, 76, 0.25) !important;
    }

    .hero::after {
        display: none !important;
    }

    .hero-grid-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 520px !important;
        margin: 0 auto !important;
        position: relative !important;
        z-index: 3 !important;
        gap: 0 !important;
    }

    /* Unpack hero-content so elements flow linearly: Badge -> Title -> Saree Showcase Card -> Description -> Buttons -> Trust Ribbon */
    .hero-content {
        display: contents !important;
    }

    .hero-badge {
        order: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 6px 16px !important;
        font-size: clamp(0.7rem, 2.2vw, 0.78rem) !important;
        letter-spacing: 1.5px !important;
        border-radius: 50px !important;
        margin-bottom: 10px !important;
        background: rgba(201, 168, 76, 0.16) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(201, 168, 76, 0.45) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
        color: #E0C878 !important;
    }

    .hero h1 {
        order: 2 !important;
        font-family: var(--font-heading) !important;
        font-size: clamp(1.85rem, 5.5vw, 2.6rem) !important;
        font-weight: 800 !important;
        line-height: 1.18 !important;
        margin-bottom: 14px !important;
        letter-spacing: 0.5px !important;
        text-align: center !important;
        color: #ffffff !important;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9) !important;
    }

    .hero h1 span {
        font-size: clamp(0.78rem, 2.6vw, 0.95rem) !important;
        letter-spacing: 1.2px !important;
        margin-top: 6px !important;
        font-weight: 500 !important;
        font-style: italic !important;
        display: block !important;
        line-height: 1.4 !important;
        background: linear-gradient(45deg, #E0C878, #fff4d1) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        filter: drop-shadow(0 2px 8px rgba(201, 168, 76, 0.35)) !important;
    }

    /* STANDALONE MOBILE SAREE IMAGE SHOWCASE CARD (100% UNOBSCURED - NO TEXT OVERLAY) */
    .hero-media-wrapper {
        order: 3 !important;
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        max-width: 420px !important;
        margin: 8px auto 18px !important;
        z-index: 5 !important;
        pointer-events: all !important;
    }

    .hero-media-wrapper .hero-media {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 5 !important;
        max-height: 480px !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        border: 2px solid rgba(201, 168, 76, 0.45) !important;
        box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55), 0 0 25px rgba(201, 168, 76, 0.22) !important;
        background: #140d10 !important;
    }

    /* Completely remove dark gradient covering the saree images */
    .hero-media-wrapper .hero-media::before {
        display: none !important;
    }

    .hero-slides {
        display: flex !important;
        width: 100% !important;
        height: 100% !important;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .hero-slide {
        min-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
        flex-shrink: 0 !important;
    }

    .hero-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 12% !important;
        display: block !important;
    }

    /* Visible and easy-to-tap slider arrows on mobile */
    .hero-slider-arrow {
        display: flex !important;
        opacity: 0.92 !important;
        pointer-events: all !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        border: none !important;
        background: rgba(255, 255, 255, 0.94) !important;
        color: #1A1A1A !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
        z-index: 10 !important;
        cursor: pointer !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.88rem !important;
    }

    .hero-slider-arrow.prev {
        left: 10px !important;
    }

    .hero-slider-arrow.next {
        right: 10px !important;
    }

    .hero-dots {
        position: absolute !important;
        bottom: 12px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 10 !important;
        padding: 5px 12px !important;
        background: rgba(18, 14, 16, 0.70) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(201, 168, 76, 0.35) !important;
        border-radius: 20px !important;
        display: flex !important;
        gap: 6px !important;
    }

    .hero-dot {
        width: 7px !important;
        height: 7px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.45) !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }

    .hero-dot.active {
        width: 22px !important;
        border-radius: 10px !important;
        background: #E0C878 !important;
    }

    .hero p {
        order: 4 !important;
        font-size: clamp(0.85rem, 2.4vw, 0.95rem) !important;
        line-height: 1.6 !important;
        max-width: 460px !important;
        color: rgba(255, 255, 255, 0.92) !important;
        margin: 0 auto 16px !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85) !important;
        text-align: center !important;
        padding: 0 6px !important;
    }

    .hero-buttons {
        order: 5 !important;
        display: flex !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 440px !important;
        margin: 0 auto 18px !important;
        justify-content: center !important;
        align-items: center !important;
        flex-direction: row !important;
    }

    .hero-buttons .btn {
        min-height: 48px !important;
        padding: 13px 20px !important;
        font-size: 0.88rem !important;
        border-radius: 50px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        transition: var(--transition-smooth);
    }

    .hero-trust-ribbon {
        order: 6 !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 480px !important;
        margin: 0 auto !important;
    }

    .trust-pill {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 10px !important;
        border-radius: 10px !important;
        background: rgba(18, 14, 16, 0.72) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(201, 168, 76, 0.3) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
        min-width: 0 !important;
    }

    .trust-pill .trust-icon {
        width: 34px !important;
        height: 34px !important;
        border-radius: 8px !important;
        font-size: 0.88rem !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, rgba(201, 168, 76, 0.3) 0%, rgba(139, 26, 43, 0.4) 100%) !important;
        border: 1px solid rgba(201, 168, 76, 0.45) !important;
        color: #E0C878 !important;
    }

    .trust-pill .trust-info {
        display: flex !important;
        flex-direction: column !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .trust-pill .trust-info strong {
        font-size: clamp(0.68rem, 2.2vw, 0.76rem) !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        letter-spacing: 0.1px !important;
    }

    .trust-pill .trust-info span {
        font-size: clamp(0.58rem, 1.9vw, 0.65rem) !important;
        color: rgba(255, 255, 255, 0.75) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .hero-scroll-indicator {
        display: none !important;
    }
}

@media (max-width: 520px) {
    .hero-buttons {
        flex-direction: column !important;
        max-width: 320px !important;
        gap: 10px !important;
    }

    .hero-buttons .btn {
        width: 100% !important;
    }

    .hero-media-wrapper {
        max-width: 360px !important;
    }
}

@media (max-width: 380px) {
    .hero {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .hero-badge {
        padding: 5px 12px !important;
        font-size: 0.65rem !important;
        letter-spacing: 1px !important;
    }

    .hero h1 {
        font-size: 1.7rem !important;
    }

    .hero-media-wrapper {
        max-width: 300px !important;
    }

    .hero-buttons {
        max-width: 270px !important;
    }

    .hero-trust-ribbon {
        gap: 6px !important;
    }

    .trust-pill {
        padding: 6px 6px !important;
        gap: 5px !important;
    }

    .trust-pill .trust-icon {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.7rem !important;
    }

    .trust-pill .trust-info strong {
        font-size: 0.64rem !important;
    }

    .trust-pill .trust-info span {
        font-size: 0.54rem !important;
    }
}

