/**
 * StyleVault — Tablet & mobile responsive overrides
 */

/* ── Shared overlays ─────────────────────────────────────────── */
.site-overlay,
.panel-sidebar-backdrop,
.plp-filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.site-overlay.is-visible,
.panel-sidebar-backdrop.is-visible,
.plp-filter-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

body.nav-open,
body.account-nav-open,
body.mobile-search-open {
    overflow: hidden;
}

body.plp-filters-open {
    overflow: hidden;
    width: 100%;
}

.plp-filter-skeleton {
    padding: 0.75rem 0 1rem;
}

.plp-filter-skeleton-line {
    height: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, #eef1f5 0%, #f8f9fb 50%, #eef1f5 100%);
    background-size: 200% 100%;
    animation: plpSkeletonPulse 1.2s ease-in-out infinite;
}

.plp-filter-skeleton-line.short {
    width: 55%;
}

@keyframes plpSkeletonPulse {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ── Storefront header (≤991px) ─────────────────────────────── */
@media (max-width: 991px) {
    .main-header {
        position: sticky;
        top: 0;
        z-index: 1050;
    }

    .header-inner {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 100%;
        min-height: 48px;
        padding: 10px 48px;
        gap: 0;
    }

    .main-nav,
    .header-icons {
        display: none !important;
    }

    .logo {
        flex: 0 1 auto;
        margin: 0 auto;
        font-size: 22px;
        max-width: calc(100% - 96px);
        text-align: center;
        line-height: 1.2;
    }

    .logo.logo-image {
        display: inline-flex;
        justify-content: center;
    }

    .site-logo-img {
        max-height: 36px !important;
        height: auto !important;
        margin: 0 auto;
    }

    .mobile-menu-btn {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: none;
        background: transparent;
        color: var(--secondary);
        font-size: 20px;
        border-radius: var(--radius);
        cursor: pointer;
        flex-shrink: 0;
        z-index: 2;
    }

    .mobile-menu-btn:hover {
        background: rgba(var(--primary-rgb), 0.08);
        color: var(--primary);
    }

    .mobile-search-btn {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: none;
        background: transparent;
        color: var(--secondary);
        font-size: 18px;
        border-radius: var(--radius);
        cursor: pointer;
        flex-shrink: 0;
        z-index: 2;
    }

    .mobile-search-btn:hover,
    .mobile-search-btn[aria-expanded="true"] {
        background: rgba(var(--primary-rgb), 0.08);
        color: var(--primary);
    }

    .mobile-search-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1048;
        background: rgba(15, 23, 42, 0.32);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.22s ease, visibility 0.22s ease;
    }

    body.mobile-search-open .mobile-search-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.mobile-search-open .header-inner {
        min-height: 48px;
        padding: 8px 12px;
    }

    body.mobile-search-open .header-inner > .mobile-search-btn,
    body.mobile-search-open .header-inner > .logo,
    body.mobile-search-open .header-inner > .mobile-menu-btn,
    body.mobile-search-open .header-inner > .main-nav {
        display: none !important;
    }

    .header-search-panel {
        display: none !important;
        flex: 0 0 100%;
        width: 100%;
        max-width: none;
        max-height: none;
        margin: 0;
        overflow: visible;
        opacity: 1;
        order: 0;
        padding: 0;
    }

    body.mobile-search-open .header-search-panel {
        display: flex !important;
    }

    .mobile-search-toolbar {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .mobile-search-cancel {
        flex-shrink: 0;
        border: none;
        background: none;
        color: var(--primary);
        font-size: 14px;
        font-weight: 600;
        line-height: 1;
        padding: 8px 0;
        cursor: pointer;
    }

    .header-search-panel .search-wrapper {
        display: block !important;
        position: relative;
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .header-search-panel .search-input {
        width: 100%;
        height: 40px;
        padding: 0 38px 0 14px;
        font-size: 15px;
        border-radius: 999px;
        background: #f3f4f6;
        border: 1px solid #ececf0;
    }

    .header-search-panel .search-input:focus {
        background: #fff;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    }

    .header-search-panel .search-input::placeholder {
        font-size: 14px;
        color: #9ca3af;
    }

    .header-search-panel .search-btn {
        width: 32px;
        height: 32px;
        right: 4px;
        font-size: 13px;
        border-radius: 999px;
        background: transparent;
        color: var(--text-muted);
    }

    .header-search-panel .search-btn:hover {
        background: rgba(var(--primary-rgb), 0.08);
        color: var(--primary);
    }

    body.mobile-search-open .header-search-panel .search-suggestions {
        position: fixed;
        left: 12px;
        right: 12px;
        top: var(--mobile-search-top, 56px);
        width: auto;
        max-height: calc(100dvh - var(--mobile-search-top, 56px) - 20px);
        margin-top: 6px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
        z-index: 1051;
    }

    .header-search-panel .suggestion-label {
        padding: 6px 12px 4px;
        font-size: 10px;
    }

    .header-search-panel .suggestion-item {
        gap: 10px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .header-search-panel .suggestion-item img {
        width: 36px;
        height: 36px;
        border-radius: 6px;
    }

    .header-search-panel .suggestion-item strong {
        font-size: 13px;
        line-height: 1.3;
    }

    .header-search-panel .suggestion-item small {
        font-size: 11px;
    }

    /* Mobile nav drawer — opens from the right */
    .mobile-nav-drawer {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        bottom: auto;
        display: flex;
        flex-direction: column;
        width: min(272px, 85vw);
        height: 100dvh;
        max-height: 100dvh;
        background: #fff;
        z-index: 1060;
        transform: translateX(100%);
        transition: transform 0.28s ease;
        overflow: hidden;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
        padding: 0;
        padding-top: env(safe-area-inset-top, 0px);
        box-sizing: border-box;
    }

    body.nav-open .mobile-nav-drawer {
        transform: translateX(0);
    }

    body.nav-open .mobile-bottom-nav {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    body.plp-filters-open .mobile-bottom-nav {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.plp-filters-open {
        padding-bottom: 0 !important;
    }

    .mobile-nav-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-shrink: 0;
        padding: 12px 14px;
        border-bottom: 1px solid var(--border);
    }

    .mobile-nav-drawer-logo {
        font-size: 20px;
        line-height: 1.1;
        min-width: 0;
        max-width: calc(100% - 44px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--primary);
    }

    .mobile-nav-drawer-logo span {
        color: var(--secondary);
    }

    .site-logo-img--drawer {
        display: block;
        max-height: 28px !important;
        height: auto !important;
        width: auto;
        max-width: 100%;
        margin: 0;
    }

    .mobile-nav-close {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
        border: none;
        background: #f5f5f6;
        border-radius: var(--radius);
        font-size: 16px;
        cursor: pointer;
        color: var(--secondary);
    }

    .mobile-nav-drawer-body {
        flex: 1 1 auto;
        min-height: 0;
        max-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    }

    .mobile-nav-drawer-body::-webkit-scrollbar {
        width: 4px;
    }

    .mobile-nav-drawer-body::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.18);
        border-radius: 4px;
    }

    .mobile-nav-drawer a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 11px 14px;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.35;
        color: var(--text);
        border-bottom: 1px solid #f0f0f2;
    }

    .mobile-nav-drawer a span {
        flex: 1 1 auto;
        min-width: 0;
    }

    .mobile-nav-drawer a:hover,
    .mobile-nav-drawer a.active {
        color: var(--primary);
        background: rgba(var(--primary-rgb), 0.06);
    }

    .mobile-nav-drawer .nav-icon {
        width: 18px;
        flex-shrink: 0;
        text-align: center;
        font-size: 14px;
        color: var(--text-muted);
    }

    .mobile-nav-user {
        padding: 10px 14px;
        background: #f9f9fa;
        margin-bottom: 0;
        font-size: 12px;
        line-height: 1.4;
        color: var(--text-muted);
        border-bottom: 1px solid #f0f0f2;
    }

    /* Top bar — utility links live in mobile menu on small screens */
    .top-bar-utility-link {
        display: none !important;
    }

    .top-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 8px 0;
    }

    .top-bar-left,
    .top-bar-right {
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    .top-bar-left {
        width: 100%;
    }

    .top-bar-announcement--inline {
        width: 100%;
        max-width: 100%;
    }

    .top-bar a {
        font-size: 12px;
    }

    /* Sections & grids */
    .section {
        padding: 32px 0;
    }

    .section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 20px;
    }

    .section-header .section-title {
        flex: 1 1 auto;
        min-width: 0;
        margin-bottom: 0;
        font-size: 18px;
        line-height: 1.25;
    }

    .section-header .section-link,
    .section-header .testimonials-next-btn {
        flex-shrink: 0;
        margin-left: auto;
        white-space: nowrap;
        font-size: 13px;
    }

    .section-header .section-link i,
    .section-header .testimonials-next-btn i {
        font-size: 0.85em;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        border-radius: 6px;
        border: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: none;
    }

    .product-card:hover {
        transform: none;
        box-shadow: none;
    }

    .product-image-wrap {
        position: relative;
        width: 100%;
        height: 168px;
        aspect-ratio: auto;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f5f6;
    }

    .product-image-wrap > a {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: 10px;
        box-sizing: border-box;
        -webkit-box-align: center;
        -webkit-box-pack: center;
    }

    .product-image-wrap img {
        display: block;
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center center;
        margin: auto;
        -webkit-user-drag: none;
        transform: none;
    }

    .product-card:hover .product-image-wrap img {
        transform: none;
    }

    .product-badges {
        top: 6px;
        left: 6px;
        gap: 4px;
        max-width: calc(100% - 40px);
    }

    .product-badge {
        padding: 2px 6px;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .product-card .wishlist-btn {
        opacity: 1;
        top: 6px;
        right: 6px;
        width: 30px;
        height: 30px;
        font-size: 13px;
        background: rgba(255, 255, 255, 0.72);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .product-quick-actions {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 1;
        transform: none;
        pointer-events: none;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        padding: 6px;
        margin: 0;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.18));
        border: none;
        flex-shrink: unset;
    }

    .product-card .btn-quick {
        pointer-events: auto;
        width: 32px;
        height: 32px;
        min-height: 32px;
        min-width: 32px;
        padding: 0;
        flex: 0 0 auto;
        font-size: 0;
        text-transform: none;
        letter-spacing: 0;
        border-radius: 50%;
        border: none;
        gap: 0;
        background: rgba(255, 255, 255, 0.55);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        color: var(--secondary);
        transition: transform 0.1s ease, background-color 0.1s ease;
    }

    .product-card .btn-quick:active:not(.is-loading) {
        transform: scale(0.92);
        background: rgba(255, 255, 255, 0.82);
    }

    .product-card .btn-add-cart {
        color: var(--primary);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .product-card .btn-add-cart:active:not(.is-loading) {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }

    .product-card .btn-quick-view {
        background: rgba(255, 255, 255, 0.55) !important;
        color: var(--secondary) !important;
        border: none !important;
    }

    .product-card .btn-quick-view:active {
        background: rgba(255, 255, 255, 0.82) !important;
    }

    .product-card .btn-quick i {
        font-size: 13px;
    }

    .product-card .btn-quick-text {
        display: none;
    }

    .product-info {
        padding: 8px 8px 10px;
    }

    .product-brand {
        font-size: 10px;
        margin-bottom: 2px;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    .product-name {
        font-size: 12px;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .product-price {
        gap: 4px;
    }

    .price-current {
        font-size: 12px;
    }

    .price-original,
    .price-discount {
        font-size: 10px;
    }

    .product-rating {
        font-size: 10px;
        margin-top: 3px;
    }

    .brands-slider {
        gap: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .site-footer {
        padding: 28px 0 18px;
        margin-top: 32px;
    }

    .site-footer .logo {
        font-size: 22px;
        margin-bottom: 0.5rem !important;
    }

    .site-footer p {
        font-size: 12px !important;
        line-height: 1.5;
    }

    .site-footer .footer-title {
        font-size: 11px;
        margin-bottom: 10px;
        letter-spacing: 0.04em;
    }

    .site-footer .footer-links li {
        margin-bottom: 6px;
    }

    .site-footer .footer-links a {
        font-size: 12px;
    }

    .site-footer .footer-bottom {
        font-size: 11px;
        padding-top: 16px;
        gap: 12px;
    }

    .site-footer .footer-bottom .fa-lg {
        font-size: 1.1em;
    }

    .site-footer .d-flex.gap-3.mt-3 a {
        font-size: 16px !important;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* PLP */
    .plp-mobile-toolbar {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
    }

    .filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(272px, 86vw);
        height: 100dvh;
        height: 100svh;
        max-height: 100svh;
        z-index: 1080;
        background: #fff;
        display: block;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.15);
        padding: 0;
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .filter-sidebar-scroll {
        overflow: visible;
        min-height: auto;
        padding: 0 0 12px;
    }

    body.plp-filters-open .filter-sidebar {
        transform: translateX(0);
    }

    body.plp-filters-open .plp-filter-overlay {
        z-index: 1075;
    }

    .plp-filter-close {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 3;
        margin-bottom: 0;
        padding: 10px 12px 8px;
        border-bottom: 1px solid var(--border);
        background: #fff;
    }

    .plp-filter-close strong {
        font-size: 14px;
        font-weight: 700;
    }

    .plp-filter-close .btn {
        padding: 4px 8px;
        font-size: 12px;
        line-height: 1;
    }

    .filter-sidebar .filter-group {
        margin: 0 12px 12px;
        padding-bottom: 12px;
    }

    .filter-sidebar .filter-group--categories {
        margin: 0 10px 10px;
        padding: 10px 10px 12px;
        border-radius: 6px;
    }

    .filter-sidebar .filter-title,
    .filter-sidebar .plp-category-title,
    .filter-sidebar .price-range-title {
        font-size: 11px;
        margin-bottom: 8px;
        letter-spacing: 0.04em;
    }

    .filter-sidebar .filter-option {
        font-size: 12px;
        margin-bottom: 6px;
        gap: 6px;
    }

    .filter-sidebar .filter-option input[type="checkbox"],
    .filter-sidebar .filter-option input[type="radio"] {
        width: 14px;
        height: 14px;
        margin-top: 0;
        flex-shrink: 0;
    }

    .filter-sidebar .plp-category-all-btn,
    .filter-sidebar .plp-category-label,
    .filter-sidebar .plp-category-name {
        font-size: 12px;
    }

    .filter-sidebar .plp-category-row,
    .filter-sidebar .plp-category-root-row {
        min-height: 28px;
        gap: 6px;
    }

    .filter-sidebar .plp-category-all-btn {
        margin-bottom: 6px;
    }

    .filter-sidebar .price-range-slider {
        height: 40px;
        margin: 4px 0 12px;
        touch-action: none;
        -webkit-user-select: none;
        user-select: none;
    }

    .filter-sidebar .price-range-input {
        pointer-events: auto;
        touch-action: none;
        height: 40px;
    }

    .filter-sidebar .price-range-input::-webkit-slider-thumb {
        width: 26px;
        height: 26px;
        margin-top: -11px;
    }

    .filter-sidebar .price-range-input::-moz-range-thumb {
        width: 26px;
        height: 26px;
    }

    .filter-sidebar .price-range-input::-webkit-slider-runnable-track {
        height: 6px;
    }

    .filter-sidebar .price-range-input::-moz-range-track {
        height: 6px;
    }

    .filter-sidebar .price-range-track {
        height: 6px;
        pointer-events: none;
    }

    .filter-sidebar .price-range-fill {
        pointer-events: none;
    }

    .filter-sidebar .price-range-values {
        font-size: 11px;
    }

    .filter-sidebar > .btn-link,
    .filter-sidebar-scroll > .btn-link {
        font-size: 12px;
        margin: 4px 12px 0;
        padding: 0;
    }

    .sort-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .sort-bar .form-select {
        width: 100% !important;
    }

    /* PDP */
    .pdp-layout {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .pdp-info {
        display: contents;
    }

    .pdp-header {
        order: 1;
    }

    .pdp-gallery {
        order: 2;
    }

    .pdp-purchase {
        order: 3;
    }

    .pdp-header .product-brand {
        font-size: 11px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        margin-bottom: 4px !important;
    }

    .pdp-header h1 {
        font-size: 1.15rem;
        line-height: 1.3;
        margin-bottom: 0.5rem !important;
    }

    .pdp-header-reviews {
        margin-bottom: 0 !important;
        gap: 0.5rem !important;
    }

    .pdp-header-reviews .text-muted {
        font-size: 12px;
    }

    .pdp-header-reviews .star-rating {
        font-size: 12px;
        line-height: 1;
    }

    .pdp-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pdp-actions .btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }

    .pdp-actions .wishlist-btn {
        flex: 0 0 auto;
    }

    /* Cart */
    .cart-item {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
    }

    .cart-item img {
        width: 80px;
        height: 96px;
    }

    .cart-item > .text-end,
    .cart-item .cart-item-actions {
        grid-column: 1 / -1;
        text-align: left !important;
    }

    .cart-summary {
        position: static;
        margin-top: 24px;
    }

    /* Account dashboard */
    .account-page {
        padding-top: 16px !important;
        padding-bottom: 20px !important;
    }

    .dashboard-layout {
        gap: 16px;
        min-height: 0;
    }

    .dashboard-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-height: 40px;
        font-size: 13px;
        margin-bottom: 12px !important;
    }

    /* Account dashboard — mobile drawer opens from the left */
    .account-page .account-nav-drawer {
        position: fixed;
        top: 0;
        left: 0;
        right: auto;
        bottom: auto;
        display: flex;
        flex-direction: column;
        width: min(272px, 85vw);
        height: 100dvh;
        max-height: 100dvh;
        background: #fff;
        z-index: 1060;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        overflow: hidden;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
        padding: 0;
        padding-top: env(safe-area-inset-top, 0px);
        box-sizing: border-box;
    }

    body.account-nav-open .account-page .account-nav-drawer {
        transform: translateX(0);
    }

    .account-sidebar-profile--desktop {
        display: none;
    }

    .mobile-nav-drawer-title {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.2;
        color: var(--text);
        min-width: 0;
    }

    .account-sidebar-profile--mobile .account-sidebar-points {
        display: block;
        margin-top: 2px;
        font-weight: 600;
        color: var(--primary);
    }

    .account-page .account-nav-drawer .dashboard-nav {
        flex: none;
        min-height: 0;
        overflow: visible;
        padding-bottom: 0;
    }

    .account-page .account-nav-drawer .dashboard-nav a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 11px 14px;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.35;
        margin-bottom: 0;
        border-radius: 0;
        color: var(--text);
        border-bottom: 1px solid #f0f0f2;
    }

    .account-page .account-nav-drawer .dashboard-nav a span {
        flex: 1 1 auto;
        min-width: 0;
    }

    .account-page .account-nav-drawer .dashboard-nav a:hover,
    .account-page .account-nav-drawer .dashboard-nav a.active {
        color: var(--primary);
        background: rgba(var(--primary-rgb), 0.06);
    }

    .account-page .account-nav-drawer .dashboard-nav .nav-icon {
        width: 18px;
        flex-shrink: 0;
        text-align: center;
        font-size: 14px;
        color: var(--text-muted);
    }

    .account-page .account-nav-drawer .dashboard-nav a:hover .nav-icon,
    .account-page .account-nav-drawer .dashboard-nav a.active .nav-icon {
        color: var(--primary);
    }

    body.account-nav-open .mobile-bottom-nav {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .dashboard-main {
        min-width: 0;
        overflow-x: hidden;
    }

    .dashboard-main h3 {
        font-size: 1.15rem;
        line-height: 1.3;
        margin-bottom: 12px !important;
    }

    .dashboard-main h4 {
        font-size: 1rem;
    }

    .dashboard-main h5 {
        font-size: 0.95rem;
        margin-bottom: 10px !important;
    }

    .dashboard-main h6 {
        font-size: 0.85rem;
    }

    .dashboard-main .stat-card {
        padding: 14px 12px;
    }

    .dashboard-main .stat-card .stat-value {
        font-size: 22px;
        line-height: 1.1;
    }

    .dashboard-main .stat-card .stat-label {
        font-size: 11px;
        line-height: 1.3;
    }

    .dashboard-main .card-body {
        padding: 14px;
    }

    .dashboard-main .card-header {
        padding: 10px 14px;
        font-size: 14px;
    }

    .dashboard-main .form-label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .dashboard-main .form-control,
    .dashboard-main .form-select {
        font-size: 14px;
        padding: 8px 10px;
        min-height: 40px;
    }

    .dashboard-main form[style*="max-width"],
    .dashboard-main .input-group[style*="max-width"] {
        max-width: 100% !important;
    }

    .dashboard-main .btn-primary,
    .dashboard-main .btn-outline,
    .dashboard-main .btn-outline-primary,
    .dashboard-main .btn-outline-secondary,
    .dashboard-main .btn-outline-danger {
        font-size: 13px;
        padding: 8px 14px;
    }

    .dashboard-main .btn-sm {
        font-size: 11px;
        padding: 5px 10px;
    }

    .dashboard-main .badge {
        font-size: 10px;
        font-weight: 600;
    }

    .dashboard-main .alert {
        font-size: 13px;
        padding: 10px 12px;
    }

    .dashboard-main .modal-dialog {
        margin: 12px auto;
        max-width: calc(100vw - 24px);
    }

    .dashboard-main .table-responsive {
        overflow: visible;
    }

    .dashboard-main .table {
        font-size: 12px;
    }

    .dashboard-main .table thead {
        display: none;
    }

    .dashboard-main .table tbody tr {
        display: block;
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 10px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }

    .dashboard-main .table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        padding: 5px 0;
        border: none;
        text-align: right;
    }

    .dashboard-main .table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 11px;
        text-align: left;
        flex: 0 0 auto;
        max-width: 42%;
    }

    .dashboard-main .table tbody td[data-label="Action"] {
        justify-content: flex-end;
        padding-top: 8px;
        margin-top: 4px;
        border-top: 1px solid var(--border);
    }

    .dashboard-main .table tbody td[data-label="Action"]::before {
        display: none;
    }

    .dashboard-main .d-flex.gap-3.border-bottom {
        flex-wrap: wrap;
        gap: 10px !important;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .dashboard-main .d-flex.gap-3.border-bottom img {
        width: 64px !important;
        height: 80px !important;
        flex-shrink: 0;
    }

    .dashboard-main .d-flex.gap-3.border-bottom .flex-grow-1 {
        flex: 1 1 calc(100% - 76px);
        min-width: 0;
        font-size: 13px;
    }

    .dashboard-main .d-flex.gap-3.border-bottom .fw-bold {
        width: 100%;
        text-align: right;
        font-size: 14px;
    }

    .dashboard-main .text-end.mt-3 {
        font-size: 13px;
    }

    .dashboard-main .text-end.mt-3 .fs-5 {
        font-size: 1rem !important;
    }

    .dashboard-main #wishlistGrid.product-grid {
        gap: 8px;
    }

    /* Auth pages */
    .auth-container {
        max-width: 100%;
        margin: 16px auto 24px;
        padding: 24px 18px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }

    .auth-container h2 {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .auth-card {
        margin: 0 0 24px;
    }

    /* Global page layout */
    .container.py-4 {
        padding-top: 16px !important;
        padding-bottom: 20px !important;
    }

    .container.py-5 {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    .container > .section-title,
    .container > h2.section-title {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 14px !important;
    }

    .container.py-5 > h1 {
        font-size: 1.35rem;
        line-height: 1.3;
        margin-bottom: 14px !important;
    }

    .breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
        margin-bottom: 12px !important;
    }

    .text-center.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .text-center.py-5 .fa-4x {
        font-size: 2.5em;
    }

    .text-center.py-5 h4 {
        font-size: 1.05rem;
    }

    /* CMS pages */
    .cms-content {
        overflow-wrap: anywhere;
        word-break: break-word;
        font-size: 14px;
        line-height: 1.6;
    }

    .cms-content img,
    .cms-content iframe,
    .cms-content video,
    .cms-content embed {
        max-width: 100%;
        height: auto;
    }

    .cms-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cms-content pre {
        overflow-x: auto;
        max-width: 100%;
        font-size: 12px;
    }

    /* Cart & checkout */
    .cart-item > .text-end {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 8px;
    }

    .cart-item > .text-end::before {
        content: 'Total';
        font-size: 11px;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .cart-summary h5,
    .cart-summary .summary-row,
    .cart-summary .small {
        font-size: 13px;
    }

    .cart-summary .summary-total {
        font-size: 15px;
    }

    .cart-summary .cart-coupon-group {
        flex-wrap: nowrap;
        width: 100%;
    }

    .cart-summary .cart-coupon-group .form-control {
        min-width: 0;
        flex: 1 1 0;
        font-size: 14px;
    }

    .cart-summary .cart-coupon-group .btn {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 13px;
    }

    .cart-summary .d-flex.gap-2.mb-2 {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px !important;
    }

    .cart-summary .d-flex.gap-2.mb-2 img {
        width: 44px !important;
        height: 54px !important;
        object-fit: cover;
        border-radius: 4px;
        flex-shrink: 0;
    }

    .cart-summary .d-flex.gap-2.mb-2 > div:last-child {
        margin-left: auto;
        font-weight: 600;
        white-space: nowrap;
    }

    .checkout-address-option {
        padding: 12px !important;
    }

    .checkout-address-option label > strong {
        display: block;
        font-size: 13px;
    }

    .checkout-address-option label > .small.ms-2 {
        display: block;
        margin-left: 0 !important;
        margin-top: 2px;
        font-size: 11px;
        word-break: break-all;
    }

    .checkout-address-option label > p {
        margin-top: 6px !important;
        font-size: 12px;
        line-height: 1.45;
    }

    .checkout-address-actions {
        gap: 8px !important;
    }

    .checkout-address-actions .btn-link {
        font-size: 12px;
    }

    .card-header.d-flex {
        flex-wrap: wrap;
        gap: 6px;
        padding: 12px 14px;
    }

    .card-header h5 {
        font-size: 0.95rem;
    }

    .card-header .small {
        font-size: 11px;
    }

    .card-body {
        padding: 14px;
    }

    #checkoutForm .form-label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    #checkoutForm .form-control,
    #checkoutForm .form-select {
        font-size: 14px;
        padding: 8px 10px;
        min-height: 40px;
    }

    #checkoutForm label.d-flex.align-items-center {
        font-size: 13px;
        padding: 10px 12px;
    }

    #pdpPriceBlock {
        font-size: 20px !important;
    }

    /* Contact */
    .contact-aside {
        padding: 18px 16px;
    }

    .contact-aside-title,
    .contact-form-title {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    .contact-info-list li {
        font-size: 13px;
    }

    .contact-aside-btn {
        font-size: 13px;
        padding: 10px 12px;
    }

    .contact-form-subtitle {
        font-size: 13px;
    }

    .contact-map-wrap iframe {
        height: 240px;
    }

    /* Track order */
    .input-group.input-group-lg .form-control,
    .input-group.input-group-lg .btn {
        font-size: 14px;
        padding: 10px 12px;
    }

    .input-group.input-group-lg {
        flex-wrap: wrap;
    }

    .input-group.input-group-lg .form-control {
        min-width: 0;
    }

    .input-group.input-group-lg .btn,
    .input-group.input-group-lg .btn-primary {
        width: 100%;
        border-radius: var(--radius) !important;
        margin-top: 8px;
    }

    /* Flash sale */
    .flash-sale-section {
        padding: 28px 0;
    }

    .countdown-item {
        min-width: 52px;
        padding: 8px 10px;
    }

    .countdown-item .num {
        font-size: 22px;
    }

    .countdown-item .label {
        font-size: 10px;
    }

    /* PLP */
    .plp-result-count {
        font-size: 12px;
    }

    .pagination {
        gap: 4px;
    }

    .pagination .page-link {
        min-width: 36px;
        min-height: 36px;
        padding: 6px 8px;
        font-size: 13px;
    }

    .card-body > .d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 10px;
    }

    .dashboard-main .card .d-flex.justify-content-between .fs-5 {
        font-size: 1rem !important;
        word-break: break-all;
    }

    /* Tables */
    .table-responsive-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -4px;
        padding: 0 4px;
    }

    .table-actions {
        flex-wrap: wrap;
    }

    /* Toast */
    .toast-container {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }

    /* Dialog */
    .sv-dialog {
        width: calc(100vw - 32px) !important;
        max-width: 420px;
        margin: 16px;
    }
}

/* ── Mobile (≤767px) ────────────────────────────────────────── */
@media (max-width: 767px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .account-page {
        padding-top: 12px !important;
        padding-bottom: 16px !important;
    }

    .mobile-nav-drawer {
        width: min(264px, 84vw);
    }

    .mobile-nav-drawer-header {
        padding: 10px 12px;
    }

    .mobile-nav-drawer-logo {
        font-size: 18px;
    }

    .site-logo-img--drawer {
        max-height: 26px !important;
    }

    .mobile-nav-close {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .mobile-nav-drawer a {
        padding: 10px 12px;
        font-size: 12px;
        gap: 8px;
    }

    .mobile-nav-drawer .nav-icon {
        width: 16px;
        font-size: 13px;
    }

    .mobile-nav-user {
        padding: 8px 12px;
        font-size: 11px;
    }

    .container > .section-title,
    .container > h2.section-title {
        font-size: 1.1rem;
    }

    .auth-container {
        margin: 12px auto 20px;
        padding: 20px 14px;
    }

    .auth-container h2 {
        font-size: 1.15rem;
        margin-bottom: 16px;
    }

    #pdpPriceBlock {
        font-size: 18px !important;
    }

    .contact-map-wrap iframe {
        height: 220px;
    }

    .flash-sale-section {
        padding: 22px 0;
    }

    .countdown-item {
        min-width: 46px;
        padding: 6px 8px;
    }

    .countdown-item .num {
        font-size: 18px;
    }

    .dashboard-main h3 {
        font-size: 1.05rem;
        margin-bottom: 10px !important;
    }

    .dashboard-main > .row.g-3.mb-4:has(.stat-card) {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 14px !important;
    }

    .dashboard-main > .row.g-3.mb-4:has(.stat-card) > [class*="col-"] {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .dashboard-main .stat-card {
        padding: 10px 8px;
        text-align: center;
    }

    .dashboard-main .stat-card .stat-value {
        font-size: 18px;
    }

    .dashboard-main .stat-card .stat-label {
        font-size: 10px;
    }

    .dashboard-main .row.g-3 > [class*="col-"] {
        --bs-gutter-x: 10px;
    }

    .dashboard-main .card .d-flex.flex-wrap.gap-2 {
        gap: 6px !important;
    }

    .dashboard-main .d-flex.gap-3.py-3 {
        gap: 10px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        font-size: 13px;
    }

    .dashboard-main .d-flex.gap-3.py-3 i {
        font-size: 14px;
    }

    .dashboard-main .border-bottom.pb-3.mb-3 {
        padding-bottom: 10px !important;
        margin-bottom: 10px !important;
        font-size: 13px;
    }

    .dashboard-main .border-bottom.pb-3.mb-3 p {
        font-size: 12px;
    }

    .dashboard-main .text-center.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .dashboard-main .text-center.py-5 .fa-4x {
        font-size: 2.5em;
    }

    .dashboard-main .text-center.py-5 h4 {
        font-size: 1rem;
    }

    /* Hero slider sizing handled in hero-slider.css */

    .testimonials-section.section {
        padding: 24px 0;
    }

    .testimonials-grid {
        gap: 10px;
    }

    .testimonials-grid .testimonial-card {
        flex: 0 0 84%;
        width: 84%;
        min-width: 84%;
        max-width: 84%;
    }

    .testimonial-card {
        min-height: 0;
        padding: 14px 12px 12px;
        border-radius: 6px;
    }

    .testimonial-card:hover {
        transform: none;
        box-shadow: none;
    }

    .testimonial-quote-badge {
        width: 30px;
        height: 30px;
        margin: 0 auto 8px;
        font-size: 11px;
    }

    .testimonial-text {
        font-size: 12px;
        line-height: 1.5;
    }

    .testimonial-stars {
        margin: 8px 0 10px;
        font-size: 10px;
        gap: 2px;
    }

    .testimonial-author {
        gap: 8px;
        padding-top: 10px;
    }

    .testimonial-photo {
        width: 34px;
        height: 34px;
    }

    .testimonial-name {
        font-size: 12px;
    }

    .testimonial-role {
        font-size: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    .site-footer {
        padding: 24px 0 14px;
        margin-top: 28px;
    }

    .site-footer .logo {
        font-size: 20px;
    }

    .site-footer p {
        font-size: 11px !important;
    }

    .site-footer .footer-title {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .site-footer .footer-links li {
        margin-bottom: 5px;
    }

    .site-footer .footer-links a {
        font-size: 11px;
    }

    .site-footer .footer-bottom {
        font-size: 10px;
        padding-top: 14px;
        gap: 10px;
    }

    .site-footer .footer-bottom .fa-lg {
        font-size: 1em;
    }

    .site-footer .d-flex.gap-3.mt-3 a {
        font-size: 14px !important;
    }

    .pdp-main-image {
        min-height: 280px;
        max-height: 55vh;
    }

    /* Product detail — compact options & actions */
    .pdp-info form .mb-3,
    .pdp-info .pdp-option-field {
        margin-bottom: 0.75rem !important;
    }

    .pdp-info .fw-semibold {
        font-size: 0.85rem;
        margin-bottom: 0.35rem !important;
    }

    .pdp-option-value {
        font-size: 0.85rem;
        gap: 0.5rem !important;
    }

    .color-swatch,
    .color-swatch--static {
        width: 28px;
        height: 28px;
        border-width: 1.5px;
    }

    .color-swatch.active {
        box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px var(--primary);
    }

    .variant-options {
        gap: 6px;
        margin: 8px 0;
    }

    .pdp-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        gap: 8px;
        margin: 14px 0;
        align-items: stretch;
    }

    .pdp-actions .btn {
        flex: unset;
        min-width: 0;
        margin: 0;
    }

    .pdp-actions .btn-primary,
    .pdp-actions .btn-outline {
        padding: 10px 8px;
        font-size: 12px;
        line-height: 1.2;
        white-space: nowrap;
        letter-spacing: 0.02em;
        text-transform: none;
    }

    .pdp-actions .btn-primary {
        font-weight: 600;
    }

    .pdp-actions .btn-primary i {
        font-size: 11px;
        margin-right: 0.35rem !important;
    }

    .pdp-actions .btn-outline {
        border-width: 1.5px;
        padding: 9px 8px;
    }

    .pdp-actions .wishlist-btn {
        width: 40px;
        min-width: 40px;
        height: auto;
        min-height: 40px;
        padding: 0;
        font-size: 14px;
        border-radius: var(--radius);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }

    #sizeSelect,
    #variantSelect {
        max-width: 100%;
        font-size: 14px;
        padding: 8px 12px;
        min-height: 40px;
    }

    .variant-options {
        gap: 6px;
    }

    .variant-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Product detail — compact description / specs tabs */
    .pdp-purchase > .mt-4.p-3.bg-light {
        margin-top: 0.75rem !important;
        padding: 10px 12px !important;
        font-size: 12px;
    }

    .pdp-purchase > .mt-4.p-3.bg-light .d-flex {
        gap: 0.5rem !important;
        margin-bottom: 0.35rem !important;
    }

    .pdp-purchase > .mt-4.p-3.bg-light .d-flex:last-child {
        margin-bottom: 0 !important;
    }

    .pdp-purchase > .mt-4.p-3.bg-light i {
        font-size: 12px;
        width: 14px;
        text-align: center;
        flex-shrink: 0;
    }

    .pdp-info .pdp-detail-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 0.75rem !important;
        border-bottom: none;
        padding-bottom: 0;
    }

    .pdp-info .pdp-detail-tabs .nav-item {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }

    .pdp-info .pdp-detail-tabs .nav-item:last-child {
        flex: 1 1 100%;
    }

    .pdp-info .pdp-detail-tabs .nav-item:last-child .nav-link {
        max-width: calc(50% - 3px);
        margin-left: auto;
        margin-right: auto;
    }

    .pdp-info .pdp-detail-tabs .nav-link {
        width: 100%;
        margin: 0;
        padding: 7px 6px;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.25;
        text-align: center;
        white-space: nowrap;
        border: 1px solid var(--border);
        border-radius: 999px;
        color: var(--text-muted);
        background: #f7f7f8;
        transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    }

    .pdp-info .pdp-detail-tabs .nav-link:hover,
    .pdp-info .pdp-detail-tabs .nav-link:focus {
        color: var(--primary);
        border-color: rgba(0, 0, 0, 0.12);
        background: #fff;
        isolation: isolate;
    }

    .pdp-info .pdp-detail-tabs .nav-link.active,
    .pdp-info .pdp-detail-tabs .nav-link.active:hover,
    .pdp-info .pdp-detail-tabs .nav-link.active:focus {
        color: #fff;
        background: var(--primary);
        border-color: var(--primary);
    }

    .pdp-info .pdp-detail-tab-content {
        margin-top: 8px;
        padding: 12px !important;
        font-size: 13px;
        line-height: 1.55;
        border-radius: 8px;
        border-color: var(--border) !important;
    }

    .pdp-info .pdp-detail-tab-content .tab-pane > :first-child {
        margin-top: 0;
    }

    .pdp-info .pdp-detail-tab-content .tab-pane > :last-child {
        margin-bottom: 0;
    }

    .pdp-info .pdp-detail-tab-content .product-kv-list {
        gap: 8px;
    }

    .pdp-info .pdp-detail-tab-content .product-kv-item {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px 12px;
        border-left-width: 2px;
        border-radius: 6px;
    }

    .pdp-info .pdp-detail-tab-content .product-kv-label {
        font-size: 10px;
        letter-spacing: 0.08em;
        padding-top: 0;
        padding-bottom: 4px;
        border-bottom: 1px solid var(--border);
    }

    .pdp-info .pdp-detail-tab-content .product-kv-value {
        font-size: 12px;
        line-height: 1.5;
    }

    .pdp-info .pdp-detail-tab-content .product-kv-empty {
        font-size: 12px;
    }

    /* PDP — reviews & related products */
    .pdp-page-section {
        padding: 20px 0;
    }

    .pdp-page-section > .section-title {
        font-size: 16px;
        line-height: 1.25;
        margin-bottom: 12px !important;
    }

    .pdp-reviews-section .border-bottom {
        padding-bottom: 10px !important;
        margin-bottom: 10px !important;
    }

    .pdp-reviews-section strong {
        font-size: 13px;
        font-weight: 600;
    }

    .pdp-reviews-section small.text-muted {
        font-size: 11px;
    }

    .pdp-reviews-section .star-rating {
        font-size: 11px;
        line-height: 1;
        margin-top: 4px;
    }

    .pdp-reviews-section h6 {
        font-size: 12px;
        margin-top: 6px !important;
        margin-bottom: 4px;
        line-height: 1.35;
    }

    .pdp-reviews-section p {
        font-size: 12px;
        line-height: 1.5;
    }

    .pdp-related-section .product-grid {
        gap: 8px;
    }

    .pdp-related-section .product-image-wrap {
        height: 132px;
    }

    .pdp-related-section .product-image-wrap > a {
        padding: 8px 6px;
    }

    .pdp-related-section .product-info {
        padding: 6px 6px 8px;
    }

    .pdp-related-section .product-brand {
        font-size: 9px;
    }

    .pdp-related-section .product-name {
        font-size: 11px;
        margin-bottom: 3px;
    }

    .pdp-related-section .price-current {
        font-size: 11px;
    }

    .pdp-related-section .price-original,
    .pdp-related-section .price-discount {
        font-size: 9px;
    }

    .pdp-related-section .product-card .wishlist-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
        top: 4px;
        right: 4px;
    }

    .pdp-related-section .product-badges {
        top: 4px;
        left: 4px;
        gap: 3px;
        max-width: calc(100% - 32px);
    }

    .pdp-related-section .product-badge {
        padding: 2px 5px;
        font-size: 8px;
    }

    .checkout-steps {
        flex-wrap: wrap;
        gap: 8px;
    }

    .contact-map-wrap iframe {
        height: 280px;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination .page-link {
        min-width: 40px;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Admin / vendor panels */
    .admin-main,
    .vendor-main {
        padding: 12px !important;
    }

    .admin-topbar,
    .vendor-topbar {
        padding: 0 10px;
        min-height: 56px;
    }

    .admin-panel .card-body,
    .vendor-panel .card-body {
        padding: 14px;
    }

    .admin-panel h1,
    .admin-panel .h3,
    .vendor-panel h1 {
        font-size: 1.35rem;
    }

    .admin-list-toolbar {
        flex-direction: column;
        align-items: stretch !important;
    }

    .admin-list-toolbar .form-control,
    .admin-list-toolbar .btn {
        width: 100%;
    }
}

/* ── Small mobile (≤575px) ───────────────────────────────────── */
@media (max-width: 575px) {
    .header-inner {
        padding-right: 44px;
        min-height: 44px;
    }

    .logo {
        font-size: 20px;
    }

    .mobile-nav-drawer {
        width: min(248px, 82vw);
    }

    .mobile-nav-drawer-logo {
        font-size: 17px;
    }

    .mobile-nav-drawer a {
        padding: 9px 12px;
        font-size: 11px;
    }

    .mobile-nav-drawer .nav-icon {
        width: 15px;
        font-size: 12px;
    }

    .header-search-panel .search-input {
        height: 38px;
        font-size: 14px;
    }

    .mobile-search-cancel {
        font-size: 13px;
    }

    body.mobile-search-open .header-search-panel .search-suggestions {
        left: 10px;
        right: 10px;
        max-height: calc(100dvh - var(--mobile-search-top, 56px) - 16px);
    }

    .cart-summary .cart-coupon-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .cart-summary .cart-coupon-group > .form-control,
    .cart-summary .cart-coupon-group > .btn {
        width: 100%;
        flex: none;
        border-radius: var(--radius) !important;
    }

    .cart-item .mt-2 {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .cart-item img {
        width: 72px;
        height: 86px;
    }

    .cms-content {
        font-size: 13px;
    }

    .container.py-5 > h1 {
        font-size: 1.2rem;
    }

    .site-footer {
        padding: 20px 0 12px;
    }

    .site-footer .logo {
        font-size: 18px;
    }

    .site-footer p {
        font-size: 10px !important;
    }

    .site-footer .footer-title {
        font-size: 9px;
        margin-bottom: 6px;
    }

    .site-footer .footer-links a {
        font-size: 10px;
    }

    .site-footer .footer-bottom {
        font-size: 9px;
    }

    .site-footer .d-flex.gap-3.mt-3 a {
        font-size: 13px !important;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-image-wrap {
        height: 148px;
    }

    .product-image-wrap > a {
        padding: 8px;
    }

    .product-quick-actions {
        gap: 5px;
        padding: 5px;
    }

    .product-card .btn-quick {
        width: 30px;
        height: 30px;
        min-height: 30px;
        min-width: 30px;
    }

    .product-card .btn-quick i {
        font-size: 12px;
    }

    .product-card .wishlist-btn {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .testimonials-section.section {
        padding: 20px 0;
    }

    .testimonials-grid .testimonial-card {
        flex: 0 0 82%;
        width: 82%;
        min-width: 82%;
        max-width: 82%;
    }

    .testimonial-card {
        padding: 12px 10px 10px;
    }

    .testimonial-text {
        font-size: 11px;
        line-height: 1.45;
    }

    .testimonial-quote-badge {
        width: 26px;
        height: 26px;
        margin-bottom: 6px;
        font-size: 10px;
    }

    .testimonial-photo {
        width: 30px;
        height: 30px;
    }

    .testimonial-name {
        font-size: 11px;
    }

    .cart-item {
        grid-template-columns: 72px 1fr;
    }

    .qty-control {
        width: fit-content;
    }

    .breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
    }

    .modern-category-card {
        flex: 0 0 100px;
        min-width: 100px;
    }

    .section-header .section-title {
        font-size: 17px;
    }

    .section-header .section-link,
    .section-header .testimonials-next-btn {
        font-size: 12px;
    }

    .pdp-actions {
        gap: 6px;
    }

    .pdp-actions .btn-primary,
    .pdp-actions .btn-outline {
        padding: 9px 6px;
        font-size: 11px;
    }

    .pdp-actions .wishlist-btn {
        width: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 13px;
    }

    .pdp-info .pdp-detail-tabs .nav-link {
        font-size: 10px;
        padding: 6px 5px;
    }

    .pdp-info .pdp-detail-tab-content {
        padding: 10px !important;
        font-size: 12px;
    }

    .pdp-info .pdp-detail-tab-content .product-kv-item {
        padding: 8px 10px;
    }

    .pdp-page-section > .section-title {
        font-size: 15px;
        margin-bottom: 10px !important;
    }

    .pdp-reviews-section strong {
        font-size: 12px;
    }

    .pdp-reviews-section p {
        font-size: 11px;
    }

    .pdp-related-section .product-image-wrap {
        height: 118px;
    }

    .pdp-related-section .product-name {
        font-size: 10px;
    }

    .pdp-related-section .price-current {
        font-size: 10px;
    }

    .color-swatch,
    .color-swatch--static {
        width: 24px;
        height: 24px;
    }
}

/* ── Admin & vendor panel shells (≤991px) ───────────────────── */
@media (max-width: 991px) {
    .vendor-shell .vendor-mobile-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 1040;
        min-height: 56px;
        padding: 0 14px;
        background: #1a1f2b;
        color: #fff;
    }

    .vendor-shell .vendor-mobile-bar button {
        width: 44px;
        height: 44px;
        border: none;
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        border-radius: 8px;
        font-size: 18px;
        cursor: pointer;
    }

    .vendor-shell .vendor-body {
        position: relative;
    }

    .vendor-shell .admin-sidebar,
    .vendor-shell .vendor-sidebar {
        position: fixed;
        top: 56px;
        left: 0;
        bottom: 0;
        z-index: 1035;
        width: 260px;
        transform: translateX(0);
        transition: transform 0.28s ease, width 0.28s ease;
        box-shadow: 8px 0 24px rgba(0, 0, 0, 0.18);
    }

    .vendor-shell.vendor-sidebar-collapsed .admin-sidebar,
    .vendor-shell.vendor-sidebar-collapsed .vendor-sidebar {
        transform: translateX(-100%);
        width: 260px;
        pointer-events: none;
    }

    .vendor-panel > .admin-sidebar {
        /* legacy single-row layout */
    }

    .admin-shell:not(.admin-sidebar-collapsed) .panel-sidebar-backdrop.is-visible,
    .vendor-shell:not(.vendor-sidebar-collapsed) .panel-sidebar-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .admin-main .table {
        font-size: 13px;
    }

    .admin-main .table td,
    .admin-main .table th {
        white-space: nowrap;
    }

    .admin-main .card-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-main .table {
        min-width: 560px;
    }

    .order-expand-panel .row {
        flex-direction: column;
    }
}

/* Desktop: hide mobile-only UI */
@media (min-width: 992px) {
    .header-inner {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 12px 16px;
    }

    .main-nav {
        display: flex !important;
        flex: 1 1 auto;
        flex-wrap: nowrap;
        align-items: center;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .header-search-panel {
        display: flex !important;
        align-items: center;
        flex: 0 1 400px;
        width: auto;
        max-width: 420px;
        min-width: 200px;
        max-height: none !important;
        margin-left: 0;
        overflow: visible !important;
        opacity: 1 !important;
        order: unset;
        padding: 0 !important;
    }

    .header-icons {
        display: flex !important;
        flex: 0 0 auto;
        margin-left: 0;
    }

    .top-bar-inner {
        flex-wrap: nowrap;
    }

    .top-bar-left {
        flex-wrap: nowrap;
    }

    .top-bar-utility-link {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .mobile-search-toolbar {
        display: contents;
    }

    .mobile-search-cancel,
    .mobile-search-backdrop {
        display: none !important;
    }

    .header-search-panel .search-wrapper {
        display: block !important;
    }

    .header-search-panel .search-input {
        height: auto;
        padding: 10px 44px 10px 16px;
        font-size: 14px;
        border-radius: var(--radius);
        background: #fff;
        border: 1px solid var(--border);
    }

    .header-search-panel .search-btn {
        width: 36px;
        height: 36px;
        right: 4px;
        font-size: inherit;
        border-radius: var(--radius);
        background: var(--primary);
        color: #fff;
    }

    .header-search-panel .search-suggestions {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 400px;
        margin-top: 0;
        border-radius: var(--radius);
    }

    .mobile-nav-drawer,
    .site-overlay,
    .plp-mobile-toolbar,
    .plp-filter-overlay,
    .plp-filter-close,
    .dashboard-nav-toggle,
    .mobile-search-btn {
        display: none !important;
    }

    .account-page .account-nav-drawer {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        width: auto;
        height: auto;
        max-height: none;
        transform: none !important;
        overflow: visible;
        box-shadow: none;
        padding: 24px;
        z-index: auto;
        background: #f9f9fa;
        border-radius: 8px;
    }

    .account-page .account-nav-drawer-header {
        display: none !important;
    }

    .account-page .account-nav-drawer-body {
        overflow: visible;
        padding-bottom: 0;
        flex: none;
        min-height: auto;
    }

    .account-sidebar-profile--mobile {
        display: none !important;
    }

    .account-sidebar-profile--desktop {
        display: block;
        margin-bottom: 12px;
    }

    .account-page .account-nav-drawer .dashboard-nav a {
        display: flex;
        align-items: center;
        border-bottom: none;
        border-radius: var(--radius);
        margin-bottom: 4px;
        padding: 12px 16px;
        font-size: 14px;
    }

    .account-page .account-nav-drawer .dashboard-nav a:hover,
    .account-page .account-nav-drawer .dashboard-nav a.active {
        background: var(--primary);
        color: #fff;
    }

    .account-page .account-nav-drawer .dashboard-nav a:hover .nav-icon,
    .account-page .account-nav-drawer .dashboard-nav a.active .nav-icon {
        color: #fff;
    }

    .account-page .account-nav-drawer .dashboard-nav .nav-icon {
        width: auto;
        font-size: 14px;
    }

    .vendor-shell .vendor-mobile-bar {
        display: none !important;
    }

    .vendor-shell .admin-sidebar,
    .vendor-shell .vendor-sidebar {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        top: auto !important;
        bottom: auto !important;
        width: 260px !important;
        pointer-events: auto !important;
    }

    .filter-sidebar {
        position: sticky !important;
        transform: none !important;
        width: auto !important;
        height: auto !important;
        box-shadow: none !important;
        padding: 0 !important;
        max-height: calc(100dvh - 120px);
        display: flex !important;
        flex-direction: column;
        overflow: hidden;
    }

    .filter-sidebar-scroll {
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 4px;
        padding-bottom: 0;
    }
}

/* ── Mobile bottom navigation bar ─────────────────────────────── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1045;
    align-items: stretch;
    justify-content: space-around;
    gap: 4px;
    background: var(--mobile-nav-bg, #fff);
    border-top: 1px solid var(--border, #e8e8ec);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
}

.mobile-bottom-nav-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 48px;
    padding: 4px 6px;
    color: var(--text-muted, #6b7280);
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}

.mobile-bottom-nav-item:hover,
.mobile-bottom-nav-item.is-active {
    color: var(--primary);
    background: rgba(var(--primary-rgb, 139, 38, 53), 0.06);
}

.mobile-bottom-nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    min-width: 28px;
    min-height: 28px;
}

.mobile-bottom-nav-icon-wrap .mobile-bottom-nav-badge {
    top: -4px;
    right: -8px;
}

.mobile-bottom-nav-label {
    line-height: 1.2;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-bottom-nav--preview {
    display: flex !important;
    position: relative !important;
    border-radius: 12px;
    border: 1px solid var(--border);
}

@media (max-width: 991px) {
    body.has-mobile-bottom-nav:has(.mobile-bottom-nav[data-bp="tablet"]) {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    body.has-mobile-bottom-nav .mobile-bottom-nav[data-bp="tablet"] {
        display: flex;
    }

    body.plp-filters-open.has-mobile-bottom-nav #mobileBottomNav,
    body.plp-filters-open.has-mobile-bottom-nav .mobile-bottom-nav {
        display: none !important;
    }
}

@media (max-width: 767px) {
    body.has-mobile-bottom-nav:has(.mobile-bottom-nav[data-bp="mobile"]) {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    body.has-mobile-bottom-nav .mobile-bottom-nav[data-bp="mobile"] {
        display: flex;
    }

    body.plp-filters-open.has-mobile-bottom-nav #mobileBottomNav,
    body.plp-filters-open.has-mobile-bottom-nav .mobile-bottom-nav {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .section,
    .flash-sale-section,
    .modern-category-section {
        content-visibility: auto;
        contain-intrinsic-size: 640px;
    }

    .hero-slider-section {
        content-visibility: visible;
    }
}
