/* ==========================================================================
   ENTENDANCE - Responsive Stylesheet
   Mobile First Dock & Tablet/Mobile Viewport Optimizations
   Requirement #19: Fixed bottom navbar in mobile view
   ========================================================================== */

/* 1. Global Viewport & Horizontal Overflow Prevention */
html, body {
    overflow-x: clip;
    max-width: 100vw;
    width: 100%;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, svg, video {
    max-width: 100%;
    height: auto;
}

:root {
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ==========================================================================
   FIXED BOTTOM MOBILE NAVBAR (Requirement #19)
   Always visible on mobile viewports (< 768px)
   ========================================================================== */
.mobile-bottom-nav {
    display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
    /* Prevent content from being hidden behind fixed bottom bar with safe-area padding */
    body {
        padding-bottom: calc(64px + var(--safe-bottom));
    }

    /* Prevent iOS Safari auto-zoom on input focus */
    input, select, textarea,
    .form-control,
    .pincode-input,
    .search-main-input,
    .shop-search-input {
        font-size: 16px !important;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(60px + var(--safe-bottom));
        padding-bottom: var(--safe-bottom);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-color);
        z-index: 150;
        justify-content: space-around;
        align-items: center;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    }

    .mob-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-secondary);
        font-size: 0.65rem;
        font-weight: 700;
        gap: 3px;
        flex: 1;
        height: 100%;
        position: relative;
        text-decoration: none;
        transition: color var(--transition-fast);
    }

    .mob-nav-item svg {
        width: 20px;
        height: 20px;
    }

    .mob-nav-item.active, .mob-nav-item:hover {
        color: var(--brand-black);
    }

    .mob-nav-badge {
        position: absolute;
        top: 6px;
        right: calc(50% - 16px);
        background: var(--brand-black);
        color: #ffffff;
        font-size: 0.58rem;
        font-weight: 800;
        height: 16px;
        min-width: 16px;
        padding: 0 3px;
        border-radius: var(--radius-full);
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .mob-nav-badge.wishlist {
        background: var(--brand-rose);
    }

    /* Top Marquee on Mobile */
    .top-marquee-wrapper {
        font-size: 0.7rem;
        padding: 0.35rem 0;
    }

    /* Header adjustments on mobile */
    .desktop-nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.35rem;
        color: #ffffff;
        align-items: center;
        justify-content: center;
    }

    .header-inner {
        height: 56px;
        padding: 0 0.85rem;
        gap: 0.5rem;
    }

    .brand-logo {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
    }

    .site-logo-img {
        height: 20px;
        max-width: 125px;
        object-fit: contain;
    }

    .logo-title {
        font-size: 1.25rem;
        letter-spacing: 0.08em;
        line-height: 1.1;
    }

    .logo-tagline {
        font-size: 0.44rem;
        letter-spacing: 0.12em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 170px;
    }

    .header-actions {
        gap: 0.35rem;
    }

    .action-btn {
        padding: 0.4rem;
        min-width: 38px;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .action-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Full-Width Minimal Hero Section Mobile */
    .hero-slider-section,
    .hero-slider-section.full-width-hero-section {
        padding: 0;
        width: 100%;
    }

    .flipkart-banner-wrapper,
    .flipkart-banner-wrapper.full-width-hero-viewport {
        border-radius: 0;
        min-height: 480px;
        width: 100%;
    }

    .flipkart-banner-slide,
    .flipkart-banner-slide.minimal-hero-slide {
        min-height: 480px;
        padding: 0;
        background-position: center center;
        align-items: flex-end;
        border-radius: 0;
    }

    .image-only-slide,
    .image-only-slide .hero-slide-img,
    .full-width-hero-viewport:has(.image-only-slide) {
        min-height: 280px;
        max-height: 440px;
    }

    .hero-slide-inner-container {
        padding: 3rem 1.25rem 2.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-slide-overlay {
        background: linear-gradient(
            180deg, 
            rgba(9, 13, 22, 0.3) 0%, 
            rgba(9, 13, 22, 0.65) 45%, 
            rgba(9, 13, 22, 0.94) 100%
        );
    }

    .hero-minimal-content {
        max-width: 100%;
        width: 100%;
    }

    .hero-minimal-tag {
        font-size: 0.68rem;
        margin-bottom: 0.5rem;
    }

    .hero-minimal-tag .tag-badge {
        font-size: 0.65rem;
        padding: 2px 7px;
    }

    .hero-minimal-title {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 0.6rem;
    }

    .hero-minimal-desc {
        font-size: 0.88rem;
        line-height: 1.45;
        margin-bottom: 1.25rem;
        max-width: 100%;
    }

    .hero-minimal-cta {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        margin-bottom: 1.25rem;
    }

    .btn-minimal-primary,
    .btn-minimal-secondary {
        width: 100%;
        padding: 0.85rem 1.25rem;
        font-size: 0.88rem;
    }

    .hero-minimal-trust {
        font-size: 0.7rem;
        gap: 0.5rem;
        justify-content: center;
        width: 100%;
    }

    /* Floating Arrow Buttons on Mobile: compact & accessible */
    .flipkart-arrow-btn {
        width: 34px;
        height: 34px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .flipkart-prev-btn {
        left: 6px;
    }

    .flipkart-next-btn {
        right: 6px;
    }

    .flipkart-indicators {
        bottom: 10px;
        padding: 4px 8px;
    }

    /* Category Grid on Home */
    .category-grid-home {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Subcategory navigation in Polo section */
    .subcat-pills-nav {
        display: flex;
        gap: 0.4rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.4rem;
        margin-bottom: 1.25rem;
        flex-wrap: nowrap;
    }

    .subcat-pills-nav::-webkit-scrollbar {
        display: none;
    }

    .subcat-pill {
        white-space: nowrap;
        font-size: 0.72rem;
        padding: 0.4rem 0.85rem;
    }

    /* Product Grids on Mobile (2 per row) */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-thumb-wrap {
        border-radius: 12px 12px 0 0;
    }

    .product-details {
        padding: 0.75rem 0.75rem 0.85rem;
    }

    .product-meta-row {
        margin-bottom: 0.25rem;
    }

    .product-cat-name {
        font-size: 0.62rem;
    }

    .product-name {
        font-size: 0.82rem;
        min-height: 2.5em;
        line-height: 1.25;
        margin-bottom: 0.3rem;
    }

    .product-fabric-specs {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
        gap: 4px;
        flex-wrap: wrap;
        white-space: normal;
        overflow: hidden;
    }

    .product-price-row {
        gap: 0.4rem;
        margin-bottom: 0.4rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .product-compare {
        font-size: 0.72rem;
    }

    .product-discount-pill {
        font-size: 0.62rem;
        padding: 1px 5px;
    }

    .product-shipping-trust {
        font-size: 0.58rem;
        padding: 2px 6px;
        margin-bottom: 0.6rem;
    }

    .btn-card-add {
        padding: 0.55rem 0.5rem;
        font-size: 0.75rem;
        border-radius: 6px;
        gap: 4px;
    }

    .wishlist-toggle-btn {
        width: 30px;
        height: 30px;
        top: 8px;
        right: 8px;
    }

    .wishlist-toggle-btn svg {
        width: 14px;
        height: 14px;
    }

    .product-badges {
        top: 8px;
        left: 8px;
        gap: 4px;
    }

    .badge-tag {
        font-size: 0.58rem;
        padding: 2px 6px;
    }

    /* ==========================================================================
       Trust Bar Mobile (2x2 Elevated Feature Cards)
       ========================================================================== */
    .trust-bar {
        background: #f8fafc;
        border-top: 1px solid #f1f5f9;
        border-bottom: 1px solid #e2e8f0;
        padding: 1.2rem 0;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 0.85rem;
        align-items: stretch;
    }

    .trust-item {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 0.95rem 0.85rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 2px 6px rgba(0, 0, 0, 0.02);
        box-sizing: border-box;
        height: 100%;
        transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .trust-item:active {
        transform: scale(0.985);
        border-color: #cbd5e1;
    }

    .trust-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .trust-icon svg {
        width: 20px;
        height: 20px;
    }

    .trust-content,
    .trust-item > div:last-child {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        width: 100%;
        min-width: 0;
    }

    .trust-heading {
        font-family: var(--font-heading);
        font-size: 0.82rem;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.25;
        letter-spacing: -0.01em;
        word-break: break-word;
    }

    .trust-sub {
        font-size: 0.69rem;
        color: #64748b;
        line-height: 1.35;
        font-weight: 450;
    }

    /* Packaging Showcase Mobile */
    .packaging-showcase-section {
        padding: 3.5rem 0 2.5rem;
    }

    .packaging-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .packaging-container h2 {
        font-size: 1.85rem !important;
        margin: 0.5rem 0 0.85rem !important;
    }

    .packaging-visual-wrap {
        border-radius: 16px;
        box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.7);
        margin-top: 0.5rem;
    }

    /* Instagram Grid Mobile (3x2) */
    .ig-feed-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    /* Catalog Page Mobile: Hide Desktop Filter Sidebar & Sort Form */
    .catalog-sidebar-col,
    .desktop-filter-sidebar {
        display: none !important;
    }

    .desktop-sort-form {
        display: none !important;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3.5rem;
    }

    /* Myntra-Style Mobile Shop Bottom Dock */
    .mob-shop-dock {
        display: flex;
        position: fixed;
        bottom: calc(60px + var(--safe-bottom)); /* Docked right above the 60px mobile-bottom-nav */
        left: 0;
        right: 0;
        height: 50px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--border-color);
        z-index: 145;
        box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.05);
    }

    .mob-dock-action-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: none;
        border: none;
        font-size: 0.8rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        color: var(--brand-black);
        cursor: pointer;
        height: 100%;
        position: relative;
    }

    .mob-dock-sep {
        width: 1px;
        height: 24px;
        background: var(--border-color);
        align-self: center;
    }

    .mob-filter-badge {
        background: var(--brand-rose);
        color: #ffffff;
        font-size: 0.6rem;
        font-weight: 800;
        height: 16px;
        min-width: 16px;
        border-radius: var(--radius-full);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
    }

    /* On catalog page with mobile dock, elevate scroll to top button */
    .mob-shop-dock ~ .scroll-to-top-btn,
    body:has(.mob-shop-dock) .scroll-to-top-btn {
        bottom: calc(122px + var(--safe-bottom));
    }

    /* Cart Page Mobile */
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cart-item-row {
        display: grid;
        grid-template-columns: 80px 1fr;
        gap: 0.85rem;
        position: relative;
        align-items: start;
        padding-bottom: 1.25rem;
        border-bottom: 1px solid var(--border-color);
    }

    .cart-item-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px dashed #e2e8f0;
        padding-top: 0.65rem;
        margin-top: 0.25rem;
        width: 100%;
    }

    /* Checkout Page Mobile */
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .checkout-layout > form,
    .checkout-layout > div {
        padding: 1.25rem !important;
    }

    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Contact Page Mobile */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* PDP Grid Mobile */
    .product-detail-container {
        margin: 0.5rem auto 2.5rem;
        padding: 0 1rem calc(115px + var(--safe-bottom));
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: clip;
    }

    /* Single-line smooth horizontal scroll breadcrumb */
    .pdp-breadcrumb {
        display: flex;
        align-items: center;
        gap: 6px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.25rem 0 0.65rem;
        margin-bottom: 0.5rem;
        font-size: 0.74rem;
        max-width: 100%;
    }

    .pdp-breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .pdp-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .pdp-grid > *,
    .pdp-gallery-wrap,
    .pdp-info-col {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .pdp-gallery-wrap {
        position: relative;
        top: 0;
        width: 100%;
    }

    .pdp-main-image {
        position: relative;
        width: 100%;
        aspect-ratio: 3 / 4;
        border-radius: 16px;
        margin-bottom: 0.65rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
        border: 1px solid rgba(0, 0, 0, 0.06);
        overflow: hidden;
    }

    .pdp-main-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }

    .pdp-image-badge-chip {
        top: 10px;
        left: 10px;
        font-size: 0.62rem;
        padding: 4px 9px;
    }

    .pdp-thumbnails {
        display: flex;
        gap: 0.55rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 2px 2px 6px;
        margin-top: 0.4rem;
        max-width: 100%;
    }

    .pdp-thumbnails::-webkit-scrollbar {
        display: none;
    }

    .pdp-thumb-item {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
        border-radius: 10px;
        border: 2px solid transparent;
        cursor: pointer;
    }

    .pdp-thumb-item.active {
        border-color: var(--brand-black);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    /* Info Column & Header */
    .pdp-category-kicker {
        margin-bottom: 0.35rem;
    }

    .pdp-meta-chips-row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        margin-bottom: 0.9rem;
        width: 100%;
        max-width: 100%;
    }

    .pdp-meta-chip {
        font-size: 0.7rem;
        padding: 4px 9px;
        gap: 4px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .pdp-meta-chip svg {
        width: 12px;
        height: 12px;
    }

    .pdp-badge-row {
        gap: 0.4rem;
        margin-bottom: 0.45rem;
        flex-wrap: wrap;
    }

    .pdp-title {
        font-size: 1.35rem;
        line-height: 1.25;
        margin-bottom: 0.45rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .pdp-rating-summary {
        margin-bottom: 0.85rem;
        gap: 0.45rem;
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    /* Price Card Mobile */
    .pdp-price-card {
        padding: 0.9rem 1rem;
        margin-bottom: 1.15rem;
        border-radius: 12px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .pdp-price-main-row {
        gap: 0.65rem;
        margin-bottom: 0.4rem;
        flex-wrap: wrap;
    }

    .pdp-price {
        font-size: 1.55rem;
    }

    .pdp-compare {
        font-size: 0.95rem;
    }

    .pdp-discount-pill {
        font-size: 0.7rem;
        padding: 2px 7px;
    }

    .pdp-price-sub-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.4rem;
        font-size: 0.72rem;
        padding-top: 0.45rem;
    }

    .pdp-delivery-tag {
        white-space: nowrap;
        font-size: 0.72rem;
    }

    /* 3-Col Luxury Trust Strip Mobile (Zero Overflow) */
    .pdp-trust-strip {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.35rem;
        margin-bottom: 1.25rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .trust-strip-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.6rem 0.2rem;
        border-radius: 10px;
        gap: 0.3rem;
        min-width: 0;
        overflow: hidden;
        box-sizing: border-box;
    }

    .trust-strip-icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .trust-strip-icon svg {
        width: 14px;
        height: 14px;
    }

    .trust-strip-text {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    .trust-strip-text strong {
        display: block;
        font-size: 0.63rem;
        line-height: 1.2;
        white-space: normal;
        word-break: break-word;
    }

    .trust-strip-text span {
        display: block;
        font-size: 0.57rem;
        line-height: 1.2;
        color: #64748b;
        white-space: normal;
        word-break: break-word;
    }

    /* Selectors Mobile */
    .color-selector-section,
    .size-selector-section {
        margin-bottom: 1.15rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .selector-title {
        font-size: 0.82rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .selector-meta {
        font-size: 0.72rem;
        color: #64748b;
    }

    .color-pills-row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
        width: 100%;
    }

    .color-pill {
        min-height: 42px;
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 8px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .size-selector-header,
    .color-selector-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 0.65rem;
        width: 100%;
    }

    .size-pills-row {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.35rem;
        margin-bottom: 0.5rem;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .size-pills-row::-webkit-scrollbar {
        display: none;
    }

    .size-pill {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        font-weight: 800;
        border-radius: 8px;
        box-sizing: border-box;
        padding: 0 4px;
        white-space: nowrap;
    }

    .size-pill.one-size-pill {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }

    .pdp-fit-note {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        font-size: 0.73rem;
        padding: 0.55rem 0.75rem;
        margin-bottom: 1.15rem;
        border-radius: 8px;
        line-height: 1.35;
        min-width: 0;
        box-sizing: border-box;
        width: 100%;
    }

    .pdp-fit-note span {
        flex: 1;
        min-width: 0;
    }

    .size-guide-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.65rem;
        background: #f1f5f9;
        border-radius: 6px;
        text-decoration: none;
        color: var(--brand-black);
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Pincode Mobile */
    .pdp-pincode-card,
    .pincode-checker-box {
        padding: 0.9rem 1rem;
        border-radius: 12px;
        margin-bottom: 1.25rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .pincode-header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        width: 100%;
    }

    .pincode-title-wrap {
        font-size: 0.78rem;
    }

    .pincode-free-tag {
        font-size: 0.68rem;
    }

    .pincode-input-wrap {
        display: flex;
        gap: 0.45rem;
        width: 100%;
        margin-top: 0.65rem;
        box-sizing: border-box;
    }

    .pincode-input {
        flex: 1;
        min-width: 0;
        font-size: 14px !important;
        padding: 0.65rem 0.75rem;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .pincode-check-btn {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.82rem;
        padding: 0.65rem 1rem;
        border-radius: 8px;
    }

    /* CTAs Mobile (Add to Cart + Wishlist + Buy Now) */
    .pdp-cta-container {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
        margin-bottom: 1.15rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .pdp-cta-primary-row {
        display: flex;
        gap: 0.55rem;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .btn-pdp-cart {
        flex: 1 !important;
        min-width: 0 !important;
        width: auto !important;
        height: 48px;
        font-size: 0.85rem;
        font-weight: 800;
        border-radius: 10px;
        box-sizing: border-box;
    }

    .pdp-wishlist-action-btn {
        flex: 0 0 48px !important;
        width: 48px !important;
        height: 48px;
        padding: 0;
        border-radius: 10px;
        box-sizing: border-box;
    }

    .btn-magic-checkout {
        width: 100% !important;
        height: 48px;
        font-size: 0.82rem;
        font-weight: 800;
        border-radius: 10px;
        box-sizing: border-box;
    }

    /* Share Card Mobile */
    .pdp-share-card {
        padding: 0.85rem 0.95rem;
        border-radius: 12px;
        margin-bottom: 1.25rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .share-card-header {
        margin-bottom: 0.6rem;
    }

    .share-title-wrap {
        font-size: 0.76rem;
    }

    .share-hint {
        font-size: 0.68rem;
    }

    .share-actions-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
        width: 100%;
    }

    .share-action-btn {
        min-width: 0;
        padding: 0.55rem 0.35rem;
        font-size: 0.72rem;
        border-radius: 8px;
        gap: 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        box-sizing: border-box;
    }

    .share-action-btn svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    .pdp-actions-subrow {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .pdp-wishlist-btn {
        flex: 1;
        min-height: 42px;
        justify-content: center;
        font-size: 0.78rem;
        border-radius: 8px;
    }

    .product-share-row {
        gap: 0.4rem;
    }

    .share-label {
        display: none;
    }

    .share-btn {
        padding: 0.45rem 0.65rem;
        font-size: 0.72rem;
        border-radius: 8px;
    }

    /* Accordion Mobile */
    .pdp-accordion-group {
        margin-top: 0.5rem;
    }

    .pdp-accordion-header {
        padding: 0.95rem 0;
    }

    .pdp-acc-title {
        font-size: 0.82rem;
    }

    .pdp-acc-desc {
        font-size: 0.82rem;
        line-height: 1.6;
    }

    .pdp-specs-list {
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    /* Sticky Mobile Quick-Buy Bar */
    .pdp-sticky-bar {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(60px + var(--safe-bottom));
        z-index: 145;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
        padding: 0.55rem 1rem;
        transform: translateY(130%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
    }

    .pdp-sticky-bar.visible {
        transform: translateY(0);
        pointer-events: auto;
    }

    .pdp-sticky-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        max-width: 500px;
        margin: 0 auto;
    }

    .pdp-sticky-left {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        min-width: 0;
        flex: 1;
    }

    .pdp-sticky-thumb {
        width: 42px;
        height: 42px;
        border-radius: 6px;
        overflow: hidden;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        flex-shrink: 0;
    }

    .pdp-sticky-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .pdp-sticky-meta {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .pdp-sticky-title {
        font-size: 0.76rem;
        font-weight: 700;
        color: var(--brand-black);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }

    .pdp-sticky-sub {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-top: 2px;
    }

    .pdp-sticky-price {
        font-size: 0.88rem;
        font-weight: 800;
        color: var(--brand-black);
    }

    .pdp-sticky-pill {
        font-size: 0.65rem;
        font-weight: 700;
        color: #64748b;
        background: #f1f5f9;
        padding: 1px 6px;
        border-radius: 4px;
        text-transform: uppercase;
    }

    .pdp-sticky-right {
        flex-shrink: 0;
    }

    .btn-sticky-cart {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 42px;
        padding: 0 1.2rem;
        background: var(--brand-black);
        color: #ffffff;
        border: none;
        border-radius: 8px;
        font-size: 0.8rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
        transition: all var(--transition-fast);
    }

    .btn-sticky-cart:active {
        transform: scale(0.96);
    }

    /* Reviews Mobile */
    .review-form-card {
        padding: 1.25rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    /* Modals Mobile */
    .modal-backdrop {
        padding: 0.75rem;
    }

    .modal-dialog {
        width: 100%;
        max-width: 480px;
        max-height: 90vh;
        overflow-y: auto;
        margin: auto;
        border-radius: var(--radius-md);
    }

    .size-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Footer Mobile */
    .site-footer {
        padding: 3.5rem 0 calc(2.5rem + 64px + var(--safe-bottom));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.25rem 1.25rem;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .footer-social-col {
        grid-column: 1 / -1;
    }

    .footer-tagline {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-trust-badges {
        justify-content: center;
        gap: 1rem;
    }

    /* Scroll to Top Mobile Dock Adjustment */
    .scroll-to-top-btn {
        bottom: calc(74px + var(--safe-bottom));
        right: 1rem;
        width: 42px;
        height: 42px;
    }
}

/* Extra small mobile screens (<= 520px) */
@media (max-width: 520px) {
    .tint-tab-btn .tint-desc {
        display: none; /* Hide "(Pink & Blue)" on small mobile so UNISEX, MEN, WOMEN fit cleanly without wrapping */
    }

    .tint-tab-btn {
        font-size: 0.68rem;
        padding: 0.4rem 0.25rem;
    }

    .category-grid-home {
        grid-template-columns: 1fr;
    }

    /* Extra Small Screen Trust Bar Refinement (<= 380px) */
    .trust-grid {
        gap: 0.5rem;
        padding: 0 0.65rem;
    }

    .trust-item {
        padding: 0.8rem 0.65rem;
        gap: 0.5rem;
        border-radius: 12px;
    }

    .trust-icon {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .trust-icon svg {
        width: 17px;
        height: 17px;
    }

    .trust-heading {
        font-size: 0.77rem;
    }

    .trust-sub {
        font-size: 0.65rem;
        line-height: 1.3;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .catalog-layout {
        grid-template-columns: 240px 1fr;
        gap: 1.5rem;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .flipkart-banner-slide {
        padding: 2.25rem 2.5rem;
    }

    .banner-inner-grid,
    .hero-slide-grid {
        gap: 2rem;
    }

    .banner-hero-title,
    .hero-slide-title {
        font-size: 2.35rem;
    }

    .trust-bar {
        background: #f8fafc;
        border-top: 1px solid #f1f5f9;
        border-bottom: 1px solid #e2e8f0;
        padding: 1.35rem 0;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1.5rem;
    }

    .trust-item {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 1rem 1.15rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    }
}

/* Mobile Off-Canvas Navigation Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85%;
    max-width: 340px;
    background: #ffffff;
    z-index: 250;
    transform: translateX(-100%);
    transition: transform var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
}

.drawer-link:hover {
    background: var(--bg-secondary);
    color: var(--brand-blue);
}

/* Off-Canvas Drawer Accordion (Accessories & Subcategories) */
.drawer-item-accordion {
    display: flex;
    flex-direction: column;
}

.drawer-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.drawer-accordion-header:hover {
    background: var(--bg-secondary);
    color: var(--brand-blue);
}

.drawer-accordion-header.active {
    color: var(--brand-blue);
    background: rgba(37, 99, 235, 0.05);
}

.drawer-link-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.drawer-badge-new {
    background: var(--brand-black);
    color: #38bdf8;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.drawer-chevron-icon {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: #64748b;
    flex-shrink: 0;
}

.drawer-accordion-header.active .drawer-chevron-icon {
    transform: rotate(180deg);
    color: var(--brand-blue);
}

.drawer-submenu {
    list-style: none;
    padding: 0.35rem 0 0.5rem 0.85rem;
    margin: 0;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    border-left: 2px solid #e2e8f0;
    margin-left: 0.85rem;
}

.drawer-submenu.active {
    display: flex;
}

.drawer-sublink {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 0.6rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.drawer-sublink:hover {
    background: var(--bg-secondary);
    color: var(--brand-blue);
    padding-left: 0.85rem;
}

.drawer-sublink-all {
    font-weight: 700;
    color: #09090b;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 2px;
}

.sublink-dot {
    color: #94a3b8;
    font-size: 0.85rem;
}

.sublink-arrow {
    margin-left: auto;
    color: #94a3b8;
    font-size: 0.85rem;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 240;
    display: none;
}

.drawer-backdrop.active {
    display: block;
}

/* ==========================================================================
   MOBILE SEARCH MODAL & CATALOG SEARCH RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
    .search-overlay-dialog {
        max-width: 100%;
        margin-top: 0;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .search-bar-header {
        padding: 0.85rem 1rem;
        gap: 0.5rem;
    }

    .search-main-input {
        font-size: 0.95rem;
        padding: 0.75rem 3.5rem 0.75rem 2.5rem;
    }

    .search-box-icon {
        left: 10px;
        width: 18px;
        height: 18px;
    }

    .search-spinner {
        right: 36px;
    }

    .search-clear-btn {
        right: 10px;
        width: 22px;
        height: 22px;
        font-size: 1rem;
    }

    .search-close-btn {
        padding: 0.5rem 0.65rem;
    }

    .search-close-btn .esc-badge {
        display: none;
    }

    .search-tags-row {
        padding: 0.6rem 1rem;
    }

    .search-results-wrapper {
        padding: 0.85rem;
        max-height: calc(100vh - 170px);
    }

    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .search-card-thumb {
        padding-top: 110%;
    }

    .search-card-info {
        padding: 0.65rem;
    }

    .search-card-meta {
        font-size: 0.62rem;
        margin-bottom: 0.2rem;
    }

    .search-card-title {
        font-size: 0.78rem;
        line-height: 1.25;
        margin-bottom: 0.2rem;
    }

    .search-card-fit {
        display: none;
    }

    .search-card-price-row {
        margin-top: 0.35rem;
        margin-bottom: 0.25rem;
        gap: 0.3rem;
    }

    .search-card-price {
        font-size: 0.85rem;
    }

    .search-card-compare {
        font-size: 0.72rem;
    }

    .search-card-discount {
        font-size: 0.58rem;
        padding: 1px 3px;
    }

    .search-card-shipping {
        font-size: 0.62rem;
    }

    /* Shop Page Mobile In-Catalog Search */
    .shop-controls-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .shop-search-bar-wrapper {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        order: 2;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN FOR SPLIT-SCREEN FASHION HERO SLIDER
   Supports 320px, 375px, 390px, 414px, 768px, 1024px, 1366px, 1440px, 1920px
   ========================================================================== */

/* Tablet & Intermediate Viewports (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-split-viewport {
        height: 720px;
    }

    .hero-content-left {
        padding-left: 3.5vw;
    }

    .hero-content-right {
        padding-right: 3.5vw;
    }

    .hero-split-title {
        font-size: 2.2rem;
        letter-spacing: 0.1em;
    }

    .hero-split-subtitle {
        font-size: 0.74rem;
        letter-spacing: 0.18em;
    }

    .hero-fashion-btn {
        padding: 0.75rem 1.8rem;
        font-size: 0.74rem;
    }
}

/* Mobile Viewports (< 768px) - Controlled Vertical Stack */
@media (max-width: 768px) {
    .hero-split-viewport {
        height: clamp(600px, 86vh, 760px);
    }

    .hero-split-container {
        flex-direction: column;
    }

    .hero-split-side {
        flex: 0 0 50%;
        width: 100%;
        height: 50%;
    }

    /* Transition Organic Seam from Vertical S-Curve to Horizontal Curve */
    .hero-split-curve-seam {
        left: 0;
        right: 0;
        top: 50%;
        bottom: auto;
        width: 100%;
        height: 32px;
        transform: translateY(-50%);
        mix-blend-mode: screen;
        filter: drop-shadow(0 0 12px rgba(255, 190, 90, 0.45));
    }

    .hero-split-curve-seam::before {
        left: 0;
        right: 0;
        top: -20px;
        bottom: -20px;
        background: radial-gradient(ellipse at 50% 50%, rgba(255, 205, 120, 0.22) 0%, rgba(255, 225, 160, 0.08) 55%, transparent 75%);
    }

    .hero-split-seam-svg.desktop-seam {
        display: none !important;
    }

    .hero-split-seam-svg.mobile-seam {
        display: block !important;
        width: 100%;
        height: 100%;
    }

    /* Content Alignment in Stacked Halves */
    .hero-split-content {
        align-items: center;
        justify-content: center;
        padding: 1rem 1.25rem !important;
    }

    .hero-content-left {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .hero-content-right {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .hero-split-content-inner {
        max-width: 90%;
    }

    .hero-split-title {
        font-size: clamp(1.45rem, 5.8vw, 1.95rem);
        letter-spacing: 0.08em;
        margin-bottom: 0.35rem;
    }

    .hero-fashion-divider {
        width: 32px;
        height: 1px;
        margin: 0 auto 0.45rem auto;
    }

    .hero-split-subtitle {
        font-size: 0.65rem;
        letter-spacing: 0.16em;
        line-height: 1.35;
        margin-bottom: 0.75rem;
    }

    .hero-fashion-btn {
        padding: 0.55rem 1.45rem;
        font-size: 0.68rem;
        letter-spacing: 0.1em;
        gap: 6px;
    }

    .hero-fashion-btn svg {
        width: 12px;
        height: 12px;
    }

    /* Compact Controls on Mobile */
    .hero-fashion-nav-arrow {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.85);
    }

    .hero-fashion-nav-arrow svg {
        width: 16px;
        height: 16px;
    }

    .hero-fashion-prev-btn {
        left: 8px;
    }

    .hero-fashion-next-btn {
        right: 8px;
    }

    .hero-fashion-indicators {
        bottom: 14px;
        padding: 4px 10px;
        gap: 6px;
    }

    .hero-fashion-dot {
        width: 6px;
        height: 6px;
    }

    .hero-fashion-dot.active {
        width: 18px;
    }
}

/* Small Mobile Screens (320px - 380px) e.g. iPhone SE, Galaxy Fold folded */
@media (max-width: 380px) {
    .hero-split-viewport {
        height: clamp(560px, 84vh, 640px);
    }

    .hero-split-title {
        font-size: 1.3rem;
        letter-spacing: 0.06em;
        margin-bottom: 0.2rem;
    }

    .hero-fashion-divider {
        width: 24px;
        margin-bottom: 0.35rem;
    }

    .hero-split-subtitle {
        font-size: 0.58rem;
        letter-spacing: 0.12em;
        margin-bottom: 0.55rem;
        line-height: 1.25;
    }

    .hero-fashion-btn {
        padding: 0.45rem 1.15rem;
        font-size: 0.62rem;
        gap: 4px;
    }

    .hero-fashion-nav-arrow {
        display: none; /* Swipe is primary on ultra-compact screens */
    }
}

/* Ultra-Wide Displays (>= 1440px) */
@media (min-width: 1440px) {
    .hero-split-viewport {
        height: clamp(740px, 86vh, 940px);
    }

    .hero-split-title {
        font-size: 4.2rem;
    }

    .hero-split-subtitle {
        font-size: 0.95rem;
    }

    .hero-fashion-btn {
        padding: 0.95rem 2.6rem;
        font-size: 0.85rem;
    }
}


