:root {
    --primary-color: #22201c;
    --secondary-color: #8b7765;
    --primary-hover: #11100e;
    --secondary-hover: #6f5f51;
    --gradient-bg: linear-gradient(135deg, #22201c 0%, #4c4239 100%);
    --gradient-hover: linear-gradient(135deg, #11100e 0%, #3a322b 100%);
    --org-gradient-bg: linear-gradient(135deg, #d9ccb9 0%, #cdbba4 100%);
    --orange-color: #9b7f66;
    --header-accent-start: #2390ff;
    --header-accent-mid: #1664d9;
    --header-accent-end: #0f4ea8;
    --header-accent-gradient: linear-gradient(135deg, var(--header-accent-start) 0%, var(--header-accent-mid) 52%, var(--header-accent-end) 100%);
    --header-accent-shadow: 0 10px 22px rgba(22, 100, 217, 0.18);
    --header-accent-border: rgba(15, 78, 168, 0.26);
}

body {
    background: #f7f3ee;
    color: #221f1b;
}

header {
    background: #ffffff;
    color: #221f1b;
    box-shadow: none;
    border-bottom: 1px solid #e6ddd2;
}

.header-main {
    background: #ffffff;
    padding: 16px 0 14px;
}

.header-content {
    margin: 0 auto;
    max-width: 1440px;
    grid-template-columns: 180px 1fr auto auto;
    gap: 18px;
}

.mobile-account-overlay,
.mobile-account-drawer,
.mobile-cart-fab {
    display: none;
}

.logo img {
    filter: saturate(0.85);
}

.search-box {
    background: #fbfaf8;
    border: 1px solid #ddd2c6;
    border-radius: 999px;
    color: #221f1b;
    padding: 13px 56px 13px 18px;
}

.search-box::placeholder {
    color: #8a7f74;
}

.search-btn {
    right: 6px;
    top: 6px;
    height: calc(100% - 12px);
    border-radius: 999px;
    background: #221f1b;
    padding: 0 16px;
}

.search-btn:hover {
    background: #11100e;
}

.account-info,
.user-info,
.cart-info {
    color: #221f1b;
    background: transparent;
}

.header-user-avatar {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

.user-menu-avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

@media (min-width: 993px) {
    .user-menu-dropdown {
        display: none !important;
    }

    .mobile-account-overlay {
        display: block;
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        background: rgba(17, 16, 14, 0.42);
        backdrop-filter: blur(3px);
        z-index: 10044;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.24s ease, visibility 0.24s ease;
    }

    .mobile-account-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-account-drawer {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: clamp(480px, 52vw, 680px);
        height: 100dvh;
        background: #fffdfb;
        z-index: 10045;
        flex-direction: column;
        box-shadow: -20px 0 40px rgba(34, 31, 27, 0.18);
        transform: translateX(100%);
        transition: transform 0.28s ease;
        overflow: hidden;
        isolation: isolate;
    }

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

    .mobile-account-drawer-header {
        min-height: 68px;
        padding: 16px 18px;
        background: #221f1b;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .mobile-account-drawer-title {
        margin: 0;
        font-size: 17px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-account-drawer-close {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: none;
    }

    .mobile-account-drawer-body {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: 18px 16px 18px;
        background: #fffdfb;
    }

    .mobile-account-summary {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px;
        margin-bottom: 16px;
        border: 1px solid #eee4d8;
        border-radius: 18px;
        background: #f8f4ef;
    }

    .mobile-account-avatar {
        width: 48px;
        height: 48px;
        border-radius: 999px;
        background: #221f1b;
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        flex-shrink: 0;
    }

    .mobile-account-avatar img {
        width: 100%;
        height: 100%;
        border-radius: 999px;
        object-fit: cover;
        display: block;
    }

    .mobile-account-name {
        font-size: 15px;
        font-weight: 600;
        color: #221f1b;
        margin-bottom: 2px;
    }

    .mobile-account-email {
        font-size: 13px;
        color: #7d7064;
        word-break: break-word;
    }

    .mobile-account-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-account-link {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 48px;
        padding: 12px 14px;
        border: 1px solid #eee4d8;
        border-radius: 16px;
        background: #fffdfb;
        color: #221f1b;
        text-decoration: none;
    }

    .mobile-account-link.logout {
        color: #8d2f37;
    }

    .mobile-account-guest {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .mobile-account-guest-copy {
        margin: 0;
        color: #6b5f55;
        font-size: 14px;
        line-height: 1.5;
    }

    .mobile-account-auth {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .mobile-account-auth-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 4px;
        border: 1px solid #e6ddd2;
        border-radius: 999px;
        background: #f6efe8;
    }

    .mobile-account-auth-tab {
        min-height: 40px;
        border: none;
        border-radius: 999px;
        background: transparent;
        color: #6b5f55;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .mobile-account-auth-tab.active {
        background: #221f1b;
        color: #ffffff;
    }

    .mobile-account-auth-panel {
        display: none;
    }

    .mobile-account-auth-panel.active {
        display: block;
    }

    .mobile-account-auth-form {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-account-field-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mobile-account-field {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .mobile-account-field label {
        font-size: 12px;
        font-weight: 600;
        color: #5b5046;
    }

    .mobile-account-field input,
    .mobile-account-field select {
        min-height: 44px;
        width: 100%;
        padding: 11px 14px;
        border: 1px solid #ddd2c6;
        border-radius: 14px;
        background: #fffdfb;
        color: #221f1b;
        box-shadow: none;
    }

    .mobile-account-field input:focus,
    .mobile-account-field select:focus {
        outline: none;
        border-color: #4c4239;
    }

    .mobile-account-check {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 13px;
        line-height: 1.5;
        color: #6b5f55;
    }

    .mobile-account-check input {
        margin-top: 3px;
    }

    .mobile-account-check a {
        color: #221f1b;
    }

    .mobile-account-submit {
        min-height: 46px !important;
        width: 100% !important;
        border-radius: 999px !important;
        background: #221f1b !important;
        border: 1px solid #221f1b !important;
        color: #ffffff !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

.account-info:hover,
.user-info:hover,
.cart-info:hover {
    color: #11100e;
}

.cart-count {
    background: #221f1b;
}

.nav-bar {
    background: #fffdfb;
    border-top: 1px solid #f1ebe4;
    border-bottom: 1px solid #e6ddd2;
    padding: 10px 0;
}

.main-navigation {
    gap: 18px;
}

.quick-categories {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.quick-categories::-webkit-scrollbar {
    display: none;
}

.nav-links {
    flex: 0 0 auto;
}

.all-categories-btn {
    background: transparent;
    color: #221f1b;
    border: 1px solid transparent;
    box-shadow: none;
    border-radius: 999px;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.all-categories-btn .menu-icon span {
    background: currentColor;
}

.all-categories-btn:hover,
.all-categories-btn:focus-visible,
.all-categories-btn.active,
.all-categories-wrapper:hover .all-categories-btn {
    background: transparent;
    color: #221f1b;
    border-color: #221f1b;
    box-shadow: none;
    transform: none;
}

.category-link,
.nav-link,
.main-navigation > a {
    color: #3b332c;
}

.quick-category-link,
.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.1;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.quick-category-link:hover,
.quick-category-link:focus-visible,
.quick-category-link.active {
    background: #221f1b !important;
    border-color: rgba(34, 31, 27, 0.18);
    box-shadow: var(--header-accent-shadow);
    color: #ffffff !important;
    text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
    background: #221f1b !important;
    border-color: rgba(34, 31, 27, 0.18);
    box-shadow: var(--header-accent-shadow);
    color: #ffffff !important;
    text-decoration: none;
}

.quick-category-link:hover,
.quick-category-link:focus-visible,
.nav-link:hover,
.nav-link:focus-visible {
    transform: none;
}

.quick-category-link.active,
.nav-link.active {
    transform: none;
}

.category-link:hover,
.category-link.active {
    background: transparent;
    color: #11100e;
}

.nav-link i,
.quick-category-link i {
    color: inherit;
}

.hero-section {
    background: transparent;
    padding-top: 18px;
}

.hero-banners {
    gap: 18px;
    max-width: 1440px;
    min-height: auto;
    padding: 0 24px 8px;
}

.main-banner,
.side-banner {
    background: #efe7dc !important;
    border: 1px solid #ddd2c6;
    border-radius: 22px;
    box-shadow: none;
}

.main-banner {
    padding: 44px 48px;
}

.side-banners {
    gap: 18px;
}

.banner-bg-image {
    opacity: 0.14;
}

.banner-content h2,
.side-banner h3 {
    color: #1f1a17 !important;
    text-shadow: none;
}

.banner-content p,
.side-banner p,
.side-banner .banner-link {
    color: #5f544a !important;
}

.banner-btn {
    background: #221f1b;
    color: #ffffff;
    border-radius: 999px;
    box-shadow: none;
}

.banner-btn:hover {
    background: #11100e;
    color: #ffffff;
    transform: none;
}

.homepage-section,
.recommendation-section,
.flash-sale,
.new-arrivals-section,
.products-section {
    background: transparent;
    border-bottom: 0;
}

.recommendation-section,
.flash-sale,
.new-arrivals-section,
.products-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
}

.homepage-section .section-header,
.flash-sale-header,
.new-arrivals-section .section-header,
.recommendation-section .section-header {
    margin-bottom: 18px;
    padding-bottom: 0;
    border-bottom: 0;
    align-items: center;
}

.homepage-section .section-title,
.flash-title,
.new-arrivals-section .section-title,
.recommendation-section .section-title {
    color: #1f1a17;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -0.02em;
}

.homepage-section .section-icon,
.flash-icon,
.recommendation-section .section-icon {
    color: #8b7765;
}

.homepage-section .view-all-link,
.recommendation-section .carousel-btn {
    color: #3a322b;
}

.homepage-section .view-all-link:hover,
.recommendation-section .carousel-btn:hover {
    color: #11100e;
}

.recommendation-section .carousel-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommendation-section .carousel-btn,
.recommendation-section .subcategory-nav-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #221f1b;
    color: #ffffff;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: none;
}

.recommendation-section .carousel-btn i,
.recommendation-section .subcategory-nav-btn i {
    display: block;
    font-size: 16px;
    line-height: 1;
}

.recommendation-section .carousel-btn:hover,
.recommendation-section .subcategory-nav-btn:hover {
    background: #221f1b;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(34, 31, 27, 0.12);
    transform: none;
}

.recommendation-section .carousel-btn:disabled,
.recommendation-section .subcategory-nav-btn:disabled {
    background: #c9bfb5;
    color: #fffdfb;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.countdown,
.time-unit,
.discount,
.discount-badge {
    background: #f1ebe4;
    color: #3a322b;
    border: 1px solid #ddd2c6;
}

.time-unit {
    box-shadow: none;
}

.product-grid,
.flash-products-grid,
.products-grid {
    gap: 20px;
}

.product-card {
    background: #fffdfb;
    border: 1px solid #e3d9cd;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(34, 32, 28, 0.04);
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(34, 32, 28, 0.08);
    border-color: #d6c8b9;
}

.product-card .product-image {
    background: #f8f4ef;
}

.product-card .product-badges {
    gap: 6px;
}

.product-badges .badge,
.product-badges .badge-sale,
.product-badges .badge-choice,
.product-badges .badge-new,
.product-badges .badge-free-ship {
    background: rgba(255, 255, 255, 0.92);
    color: #3a322b;
    border: 1px solid #ddd2c6;
    border-radius: 999px;
    font-weight: 600;
    text-transform: none;
}

.product-card .wishlist-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd2c6;
    width: 32px;
    height: 32px;
}

.product-card .product-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px 16px;
}

.product-card .product-title {
    color: #211d19;
    font-size: 14px;
    font-weight: 500;
    height: 36px;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0;
}

.product-card .product-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.product-card .product-price {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
}

.product-card .product-rating {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    margin-left: auto;
    margin-bottom: 0;
    white-space: nowrap;
}

.product-card .product-rating .stars,
.product-card .stars {
    color: #c28b2c;
    display: inline-block;
    white-space: nowrap;
}

.product-card .rating-text,
.product-card .seller-info {
    color: #7d7064;
}

.product-card .rating-text {
    display: inline-block;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
}

.product-card .current-price,
.product-detail .product-price-section .current-price,
.product-detail .price-main .current-price {
    color: #1f1a17;
    font-size: 17px;
    font-weight: 700;
}

.product-card .original-price,
.product-detail .product-price-section .original-price {
    color: #968879;
}

.product-card .shipping-info,
.product-detail .shipping-info,
.product-price-section .shipping-info {
    color: #6c7f58;
    font-weight: 500;
    margin-bottom: 0;
}

.product-card .seller-info {
    margin-bottom: 0;
}

.product-card .product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.product-card .product-actions .btn,
.product-card .btn.btn-primary,
.product-card .btn.btn-secondary,
.product-card .btn.btn-warning,
.product-card .btn-cart,
.product-card .btn-details,
.product-card .btn-wishlist {
    width: 100%;
    min-height: 44px;
    padding: 11px 14px;
    border-radius: 999px;
    justify-content: center;
    font-weight: 600;
    text-decoration: none;
}

.product-card .btn.btn-primary,
.product-card .btn-cart {
    background: #221f1b;
    border-color: #221f1b;
    color: #ffffff;
}

.product-card .btn.btn-primary:hover,
.product-card .btn-cart:hover {
    background: #11100e;
    border-color: #11100e;
}

.product-card .btn.btn-secondary,
.product-card .btn-details {
    background: #fffdfb;
    color: #221f1b;
    border-color: #ddd2c6;
}

.product-card .btn.btn-secondary:hover,
.product-card .btn-details:hover {
    background: #f6f0e9;
    color: #11100e;
}

.product-card .btn.btn-warning,
.product-card .btn-wishlist {
    background: #efe7dc;
    color: #3f342b;
    border-color: #ddd2c6;
}

.product-card .btn.btn-warning:hover,
.product-card .btn-wishlist:hover {
    background: #e6dbcf;
    color: #2c241f;
}

/* Icon spacing inside product card buttons */
.product-card .btn-cart i,
.product-card .btn.btn-primary i {
    margin-right: 6px;
}

.breadcrumb-item,
.breadcrumb-current {
    color: #5f544a;
}

.breadcrumb-item:hover {
    color: #11100e;
}

.category-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px 56px;
    background: transparent;
}

.details .container {
    max-width: 1440px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
}

.details .breadcrumb {
    max-width: none;
    margin: 0;
    padding: 20px 0 18px;
}

.category-page .breadcrumb {
    max-width: none;
    margin: 0;
    padding: 20px 0 18px;
}

.category-page .category-header,
.new-arrivals-page .new-arrivals-header {
    background: #efe7dc !important;
    border: 1px solid #e3d9cd;
    border-radius: 22px;
    box-shadow: none;
}

.category-page:not(.new-arrivals-page) .category-header {
    display: block;
    width: 100%;
    margin: 0 0 24px;
    padding: 24px 28px !important;
}

.category-page:not(.new-arrivals-page) .category-header .category-info {
    width: 100%;
    max-width: none;
    margin: 0;
}

.new-arrivals-page .new-arrivals-header {
    display: block;
    width: 100%;
    margin: 0 0 24px;
    padding: 24px 28px !important;
}

.new-arrivals-page .new-arrivals-header .category-info {
    width: 100%;
    max-width: none;
    margin: 0;
    position: relative;
    z-index: 2;
}

.category-page .category-hero-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
    width: 100%;
    margin: 0 auto;
}

.category-page .category-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    min-width: 0;
    width: 100%;
    text-align: center;
}

.category-page .mobile-subcategory-picker {
    display: none;
}

.category-page .category-hero-collections {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    width: 100%;
    align-self: stretch;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid rgba(227, 217, 205, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.42);
}

.category-page .category-hero-collections-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 36px;
    position: relative;
}

.category-page .category-hero-collections-title {
    margin: 0;
    color: #1f1a17;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.category-page .category-hero-collections-nav {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

.category-page .category-hero-collections-nav .subcategory-nav-btn {
    position: static;
    width: 36px;
    height: 36px;
    font-size: 14px;
    transform: none;
}

.category-page .category-hero-carousel-wrapper {
    max-width: none;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow: hidden;
}

.category-page .category-hero-collections .subcategories-carousel {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 0;
    width: 100%;
}

.category-page .category-hero-collections .subcategories-carousel.is-static {
    transform: none !important;
}

.category-page .category-hero-collections .subcategories-carousel.is-static .subcategory-item {
    flex: 1 1 0;
    min-width: 0;
}

.category-page .category-hero-collections .subcategory-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 160px;
    min-height: 112px;
    padding: 14px 12px;
}

.category-page .category-hero-collections .subcategory-name {
    margin: 0;
    color: #2c4157;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.category-page .category-hero-collections .subcategory-desc {
    display: none;
}

.category-page:not(.new-arrivals-page) .category-header::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.category-page .category-title,
.new-arrivals-page .category-title,
.category-page .category-description,
.new-arrivals-page .category-description,
.category-page .products-count {
    color: #1f1a17;
    text-shadow: none;
}

.category-page .products-count,
.new-arrivals-page .category-description {
    opacity: 0.75;
}

.category-page:not(.new-arrivals-page) .category-title {
    width: 100%;
    margin: 0;
    font-size: clamp(28px, 3.6vw, 46px);
    line-height: 1.06;
    text-align: center;
}

.category-page:not(.new-arrivals-page) .category-description {
    margin: 0;
    max-width: 640px;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
}

.new-arrivals-page .category-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.08;
    text-align: left;
}

.new-arrivals-page .category-title i {
    font-size: 0.85em;
}

.new-arrivals-page .category-description {
    margin: 8px 0 0;
    max-width: 760px;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
}

.category-page .subcategories-section {
    background: #fffdfb;
    border: 1px solid #ece2d7;
    border-radius: 22px;
    border-top: 1px solid #ece2d7;
    border-bottom: 1px solid #ece2d7;
    width: 100%;
    margin: 0 0 24px;
    padding: 32px 34px;
}

.category-page .subcategories-title,
.category-page .products-section-title {
    color: #1f1a17;
}

.category-page .subcategories-header,
.category-page .subcategories-carousel-wrapper,
.category-page .category-content,
.category-page .products-container {
    max-width: none;
    margin: 0;
}

.category-page .category-content {
    display: block;
}

.category-page .subcategories-header {
    margin-bottom: 28px;
}

.category-page .subcategories-carousel-wrapper {
    padding: 0 56px;
}

.category-page .subcategory-nav-btn {
    background: #221f1b;
    box-shadow: none;
}

.category-page .subcategory-nav-btn:hover {
    box-shadow: 0 10px 22px rgba(34, 31, 27, 0.12);
}

.category-page .subcategories-section .subcategory-item {
    background: #f8f4ef;
    border: 1px solid #e3d9cd;
    border-radius: 18px;
    box-shadow: none;
}

.category-page .subcategories-section .subcategory-item:hover {
    border-color: #d2c2b1;
    box-shadow: 0 12px 24px rgba(34, 32, 28, 0.06);
}

.category-page .products-container {
    width: 100%;
    padding: 0;
}

.category-page .products-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 24px;
}

.category-page .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.category-page .products-section-title {
    text-align: left;
    margin: 0;
}

.new-arrivals-page .products-section-title {
    margin: 0 0 24px;
}

.category-page .products-summary {
    margin: 0;
    color: #6a5d52;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.product-detail {
    background: #fffdfb;
    border: 1px solid #e3d9cd;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(34, 32, 28, 0.05);
    gap: 32px;
    padding: 28px;
}

.product-detail .main-image,
.product-detail .thumbnail {
    background: #f8f4ef;
    border-color: #e0d6ca;
}

.product-detail .thumbnail.active,
.product-detail .thumbnail:hover {
    border-color: #4c4239;
}

.product-detail .product-title {
    color: #1f1a17;
}

.product-detail .product-rating {
    border-bottom-color: #eee4d8;
}

.product-detail .product-rating .rating-text,
.product-detail .sold-count {
    color: #7d7064;
}

.product-detail .product-price-section {
    margin-bottom: 10px;
}

.product-detail .product-price-section .current-price,
.product-detail .price-main .current-price {
    color: #1f1a17;
    font-size: 30px;
}

.product-detail .product-price-section .discount-badge {
    background: #efe7dc;
    color: #4c4239;
    border: 1px solid #d8ccbf;
}

.product-detail .shipping-info,
.product-detail .sale-ends,
.product-detail .selected-shipping,
.product-detail .selected-value {
    color: #5f544a;
}

.product-detail .shipping-option,
.product-detail .attribute-option {
    background: #fffdfb;
    border-color: #ddd2c6;
    border-radius: 14px;
    box-shadow: none;
}

.product-detail .shipping-option:hover,
.product-detail .attribute-option:hover {
    border-color: #8b7765;
    box-shadow: 0 6px 18px rgba(34, 32, 28, 0.06);
}

.product-detail .shipping-option.selected,
.product-detail .attribute-option.selected {
    border-color: #4c4239;
    background: #f6f0e9;
    box-shadow: 0 8px 20px rgba(34, 32, 28, 0.08);
}

.product-detail .option-label,
.product-detail .attribute-option.selected .option-label {
    background: #f8f4ef;
    border-top-color: #e0d6ca;
    color: #5f544a;
}

.product-detail .shipping-option.selected .shipping-method-name,
.product-detail .shipping-price,
.product-detail .attribute-option.selected .option-text,
.product-detail .attribute-option.selected .option-label {
    color: #1f1a17;
}

.product-detail .selection-indicator,
.product-detail .shipping-option .selection-indicator {
    background: #221f1b;
}

.product-detail .qty-btn,
.product-detail #quantity {
    border-color: #ddd2c6;
    border-radius: 999px;
    background: #fffdfb;
}

.product-detail .qty-btn:hover {
    border-color: #4c4239;
    color: #1f1a17;
}

.product-detail .product-actions .btn {
    border-radius: 999px;
}

.product-detail .btn-add-cart,
.product-detail .btn-buy-now,
.product-detail .btn-add-wishlist-primary {
    background: #221f1b;
    color: #ffffff;
}

.product-detail .btn-add-cart:hover,
.product-detail .btn-buy-now:hover,
.product-detail .btn-add-wishlist-primary:hover {
    background: #11100e;
    transform: none;
    box-shadow: none;
}

.product-detail .btn-wishlist,
.product-detail .btn-wishlist-compact {
    background: #fffdfb;
    color: #3a322b;
    border-color: #ddd2c6;
}

.product-detail .btn-wishlist:hover,
.product-detail .btn-wishlist-compact:hover {
    background: #f6f0e9;
    border-color: #4c4239;
    color: #11100e;
}

.product-detail .out-of-stock-notice {
    background: #f6f0e9;
    color: #6a5949;
    border-color: #ddd2c6;
}

.checkout-page {
    background: #f7f3ee;
    padding: 24px 0 56px;
}

.checkout-page .container {
    max-width: 1440px !important;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

.checkout-page-header,
.checkout-page .checkout-section,
.checkout-page .order-summary {
    background: #fffdfb;
    border: 1px solid #e3d9cd;
    border-radius: 22px;
    box-shadow: none;
}

.checkout-page-header {
    background: linear-gradient(135deg, #efe7dc 0%, #f7f2eb 100%);
    border-color: #e3d9cd;
}

.checkout-page-header__icon {
    background: #f4ece2;
    color: #221f1b;
}

.checkout-page-header__copy h1,
.checkout-page .section-header h3,
.checkout-page .order-summary h3,
.checkout-page .quick-checkout-header h2,
.checkout-page .step-title,
.checkout-page .price-row.total,
.checkout-page .item-name {
    color: #1f1a17;
}

.checkout-page-header__copy p,
.checkout-page .quick-checkout-header p,
.checkout-page .step-subtitle,
.checkout-page .section-status,
.checkout-page .item-options,
.checkout-page .item-quantity,
.checkout-page .price-row,
.checkout-page .form-group label,
.checkout-page .checkbox-label,
.checkout-page .card-details,
.checkout-page .address-details {
    color: #5f544a;
}

.checkout-page .checkout-section,
.checkout-page .order-summary,
.checkout-page .address-card,
.checkout-page .payment-card,
.checkout-page .quick-checkout-card,
.checkout-page .card-element,
.checkout-page .billing-form {
    border-color: #e3d9cd;
    box-shadow: none;
}

.checkout-page .quick-checkout-kicker,
.checkout-page .default-badge {
    background: #f4ece2;
    color: #221f1b;
    border: 1px solid #e3d9cd;
}

.checkout-page .step-number {
    background: #221f1b;
    color: #ffffff;
}

.checkout-page .form-group input,
.checkout-page .form-group select,
.checkout-page .card-element {
    background: #fffdfb;
    border: 1px solid #ddd2c6;
    color: #221f1b;
}

.checkout-page .form-group input:focus,
.checkout-page .form-group select:focus,
.checkout-page .card-element.StripeElement--focus {
    border-color: #221f1b;
    box-shadow: 0 0 0 3px rgba(34, 31, 27, 0.08);
}

.checkout-page .address-card:hover,
.checkout-page .payment-card:hover,
.checkout-page .quick-checkout-card:hover {
    border-color: #cdbba4;
    box-shadow: none;
}

.checkout-page .address-option input[type="radio"]:checked + .address-card,
.checkout-page .payment-option input[type="radio"]:checked + .payment-card {
    border-color: #221f1b;
    background: #f8f4ef;
}

.checkout-page .btn-next-step,
.checkout-page .btn-quick-checkout {
    background: #221f1b;
    border-color: #221f1b;
    color: #ffffff;
    box-shadow: none;
}

.checkout-page .btn-next-step:hover,
.checkout-page .btn-quick-checkout:hover {
    background: #11100e;
    border-color: #11100e;
}

.checkout-page .btn-prev-step,
.checkout-page .quick-checkout-secondary,
.checkout-page .quick-checkout-change-link,
.checkout-page .item-action-btn {
    background: #fffdfb;
    color: #221f1b;
    border: 1px solid #ddd2c6;
    box-shadow: none;
}

.checkout-page .btn-prev-step:hover,
.checkout-page .quick-checkout-secondary:hover,
.checkout-page .quick-checkout-change-link:hover,
.checkout-page .item-action-btn:hover:not(:disabled) {
    background: #f6f0e9;
    color: #11100e;
    border-color: #cdbba4;
}

.checkout-page .quick-checkout-change-link,
.checkout-page .item-action-btn {
    text-decoration: none;
}

.cart-selection-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #eee4d8;
    background: #f8f4ef;
}

.cart-selection-summary {
    font-size: 13px;
    font-weight: 600;
    color: #4c4239;
}

.cart-selection-remove {
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #ddd2c6;
    border-radius: 999px;
    background: #fffdfb;
    color: #8d2f37;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: none;
    transform: none;
}

.item-scroll-hint {
    position: absolute;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f3ebe1;
    color: #6f6154;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.item-scroll-hint.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.cart-item {
    position: relative;
    padding-left: 46px;
    padding-right: 16px;
}

.cart-item-select {
    position: absolute;
    top: 16px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cart-item-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cart-item-checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid #cdbda9;
    border-radius: 6px;
    background: #fffdfb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-item-checkbox:checked + .cart-item-checkmark {
    background: #221f1b;
    border-color: #221f1b;
}

.cart-item-checkbox:checked + .cart-item-checkmark::after {
    content: "";
    width: 6px;
    height: 10px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg) translate(-1px, -1px);
}

.cart-item-remove {
    position: static;
    width: 30px;
    height: 30px;
    border: 1px solid #e7d8cb;
    border-radius: 999px;
    background: #fffdfb;
    color: #8d2f37;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    cursor: pointer;
    transform: none;
    flex-shrink: 0;
}

.cart-item-remove i {
    font-size: 14px;
    line-height: 1;
}

.cart-sidebar.has-items .cart-selection-bar {
    display: flex;
}

.cart-sidebar.has-items .cart-selection-bar[style*="display: none"] {
    display: none !important;
}

.cart-sidebar .btn-continue-shopping {
    min-height: 42px;
    border-radius: 999px;
    background: #fffdfb;
    border: 1px solid #ddd2c6;
    color: #221f1b;
    box-shadow: none;
    transform: none;
}

.cart-sidebar .btn-checkout {
    min-height: 46px;
    border-radius: 999px;
    background: #221f1b;
    border: 1px solid #221f1b;
    color: #ffffff;
    box-shadow: none;
    transform: none;
}

.cart-sidebar .btn-checkout:hover,
.cart-sidebar .btn-continue-shopping:hover {
    box-shadow: none;
    transform: none;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.cart-sidebar {
    display: flex;
    flex-direction: column;
}

.cart-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.cart-items-container {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
    padding-bottom: 46px;
    scrollbar-width: thin;
    scrollbar-color: #d3c4b4 transparent;
}

.cart-items-container::-webkit-scrollbar {
    width: 8px;
}

.cart-items-container::-webkit-scrollbar-track {
    background: transparent;
}

.cart-items-container::-webkit-scrollbar-thumb {
    background: #d3c4b4;
    border-radius: 999px;
}

.cart-item-scroll-hint {
    bottom: 8px;
}

.cart-item-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
}

.cart-item-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: 4px;
}

.cart-item-quantity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    flex-wrap: nowrap;
    min-width: 98px;
}

.cart-item .item-top-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    width: 100%;
}

.cart-item .item-price {
    font-size: 15px;
    font-weight: 700;
    color: #221f1b;
    white-space: nowrap;
}

.cart-item .item-options {
    color: #74695d;
    font-size: 12px;
    line-height: 1.35;
}

.cart-item .item-options small {
    display: block;
}

.cart-item .item-shipping {
    color: #74695d;
    font-size: 12px;
    line-height: 1.35;
}

.cart-item .item-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.cart-item .item-quantity {
    color: #6f6154;
    font-size: 13px;
    font-weight: 600;
}

.cart-item .item-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 992px) {
    .header-content {
        margin: 0 16px;
        grid-template-columns: 1fr auto auto;
    }

    .hero-banners,
    .recommendation-section,
    .flash-sale,
    .new-arrivals-section,
    .products-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .product-detail {
        padding: 22px;
        gap: 22px;
    }

    .category-page {
        padding: 0 12px 44px;
    }

    .details .container {
        padding: 0 12px !important;
    }

    .category-page .category-hero-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-page:not(.new-arrivals-page) .category-header {
        padding: 22px 20px !important;
    }

    .new-arrivals-page .new-arrivals-header {
        padding: 22px 20px !important;
    }

    .checkout-page {
        padding: 20px 0 40px;
    }
}

@media (max-width: 768px) {
    body {
        background: #f7f3ee;
    }

    .header-main {
        padding: 12px 0;
    }

    .nav-bar {
        padding: 8px 0;
    }

    .hero-banners {
        padding: 0 12px 8px;
        gap: 12px;
    }

    .main-banner {
        padding: 26px 22px;
    }

    .banner-content h2 {
        font-size: 34px;
    }

    .section-title,
    .flash-title,
    .new-arrivals-section .section-title {
        font-size: 24px;
    }

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

    .product-detail {
        border-radius: 16px;
        padding: 18px;
    }

    .category-page {
        padding: 0 12px 36px;
    }

    .details .container {
        padding: 0 12px !important;
    }

    .category-page .category-hero-layout {
        display: block;
    }

    .category-page:not(.new-arrivals-page) .category-header {
        padding: 18px 14px !important;
    }

    .new-arrivals-page .new-arrivals-header {
        padding: 18px 14px !important;
    }

    .category-page .category-hero-collections {
        display: none;
    }

    .category-page .mobile-subcategory-picker {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 4px;
    }

    .category-page .mobile-subcategory-label {
        color: #5f544a;
        font-size: 13px;
        font-weight: 600;
    }

    .category-page .mobile-subcategory-select {
        width: 100%;
        min-height: 46px;
        padding: 0 16px;
        border: 1px solid #ddd2c6;
        border-radius: 999px;
        background: #fffdfb;
        color: #1f1a17;
        font-size: 14px;
        appearance: none;
    }

    .category-page .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .category-page .products-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .category-page .products-summary {
        white-space: normal;
    }

    .checkout-page {
        padding: 18px 0 36px;
    }

    .checkout-page .container {
        padding: 0 12px;
    }

    .checkout-page-header,
    .checkout-page .checkout-section,
    .checkout-page .order-summary {
        border-radius: 16px;
    }
}

/* Mobile and tablet minimalist override layer.
   This intentionally sits at the end of the sheet so it wins over the legacy
   responsive/mobile bundles that are still part of the pipeline. */

@media (max-width: 992px) {
    html,
    body {
        overflow-x: hidden;
    }

    #site-global-modals {
        position: static !important;
        z-index: auto !important;
    }

    #site-global-modals .modal-overlay {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        z-index: 2147483640 !important;
    }

    #site-global-modals .modal-overlay > * {
        z-index: 2147483641 !important;
        /* position is NOT forced here — JS sets position:fixed on the drawer panel */
    }

    .user-menu-dropdown {
        display: none !important;
    }

    .mobile-account-overlay {
        display: block;
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        background: rgba(17, 16, 14, 0.42) !important;
        backdrop-filter: blur(3px);
        z-index: 2147483644 !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.24s ease, visibility 0.24s ease;
    }

    .mobile-account-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-cart-fab {
        display: inline-flex;
        position: fixed;
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        z-index: 10030;
        width: 58px;
        height: 58px;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: none;
        border-radius: 999px;
        background: #221f1b;
        color: #ffffff;
        box-shadow: 0 16px 30px rgba(34, 31, 27, 0.24);
        cursor: pointer;
    }

    .mobile-cart-fab-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        line-height: 1;
    }

    .mobile-cart-fab-count {
        position: absolute;
        top: -3px;
        right: -3px;
        min-width: 19px;
        height: 19px;
        padding: 0 5px;
        border-radius: 999px;
        border: 2px solid #f7f3ee;
        background: #ea545e;
        color: #ffffff;
        font-size: 10px;
        font-weight: 700;
        display: none;
        align-items: center;
        justify-content: center;
    }

    .mobile-account-drawer {
        display: flex;
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        background: #fffdfb !important;
        z-index: 2147483645 !important;
        flex-direction: column;
        box-shadow: none !important;
        transform: translateX(100%) !important;
        transition: transform 0.28s ease !important;
        overflow: hidden !important;
        isolation: isolate !important;
    }

    .mobile-account-drawer.active {
        transform: translateX(0) !important;
    }

    .mobile-account-drawer-header {
        min-height: 68px;
        padding: 16px 18px;
        background: #221f1b;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .mobile-account-drawer-title {
        margin: 0;
        font-size: 17px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-account-drawer-close {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: none;
    }

    .mobile-account-drawer-body {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
        -webkit-overflow-scrolling: touch;
        background: #fffdfb !important;
        position: relative;
        z-index: 1;
    }

    .mobile-account-summary {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px;
        margin-bottom: 16px;
        border: 1px solid #eee4d8;
        border-radius: 18px;
        background: #f8f4ef;
    }

    .mobile-account-avatar {
        width: 48px;
        height: 48px;
        border-radius: 999px;
        background: #221f1b;
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        flex-shrink: 0;
    }

    .mobile-account-avatar img {
        width: 100%;
        height: 100%;
        border-radius: 999px;
        object-fit: cover;
        display: block;
    }

    .mobile-account-name {
        font-size: 15px;
        font-weight: 600;
        color: #221f1b;
        margin-bottom: 2px;
    }

    .mobile-account-email {
        font-size: 13px;
        color: #7d7064;
        word-break: break-word;
    }

    .mobile-account-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-account-link {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 48px;
        padding: 12px 14px;
        border: 1px solid #eee4d8;
        border-radius: 16px;
        background: #fffdfb;
        color: #221f1b;
        text-decoration: none;
    }

    .mobile-account-link.logout {
        color: #8d2f37;
    }

    .mobile-account-guest {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .mobile-account-guest-copy {
        margin: 0;
        color: #6b5f55;
        font-size: 14px;
        line-height: 1.5;
    }

    .mobile-account-guest-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-account-guest-actions .btn {
        min-height: 44px;
        border-radius: 999px;
        justify-content: center;
    }

    .mobile-account-auth {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .mobile-account-auth-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 4px;
        border: 1px solid #e6ddd2;
        border-radius: 999px;
        background: #f6efe8;
    }

    .mobile-account-auth-tab {
        min-height: 40px;
        border: none;
        border-radius: 999px;
        background: transparent;
        color: #6b5f55;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .mobile-account-auth-tab.active {
        background: #221f1b;
        color: #ffffff;
    }

    .mobile-account-auth-panel {
        display: none;
    }

    .mobile-account-auth-panel.active {
        display: block;
    }

    .mobile-account-auth-form {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-account-field-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mobile-account-field {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .mobile-account-field label {
        font-size: 12px;
        font-weight: 600;
        color: #5b5046;
    }

    .mobile-account-field input,
    .mobile-account-field select {
        min-height: 44px;
        width: 100%;
        padding: 11px 14px;
        border: 1px solid #ddd2c6;
        border-radius: 14px;
        background: #fffdfb;
        color: #221f1b;
        box-shadow: none;
    }

    .mobile-account-field input:focus,
    .mobile-account-field select:focus {
        outline: none;
        border-color: #4c4239;
    }

    .mobile-account-check {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 13px;
        line-height: 1.5;
        color: #6b5f55;
    }

    .mobile-account-check input {
        margin-top: 3px;
    }

    .mobile-account-check a {
        color: #221f1b;
    }

    .mobile-account-submit {
        min-height: 46px !important;
        width: 100% !important;
        border-radius: 999px !important;
        background: #221f1b !important;
        border: 1px solid #221f1b !important;
        color: #ffffff !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .cart-overlay {
        z-index: 2147483642 !important;
    }

    .cart-sidebar {
        width: min(88vw, 400px) !important;
        max-width: 400px !important;
        right: 0 !important;
        transform: translateX(100%) !important;
        transition: transform 0.28s ease !important;
        z-index: 2147483643 !important;
    }

    .cart-sidebar.active {
        transform: translateX(0) !important;
    }

    .homepage-section,
    .products-section,
    .recommendation-section,
    .new-arrivals-section,
    .flash-sale,
    .category-page .products-container,
    .category-page .product-grid,
    .search-page .product-grid,
    .product-grid,
    .product-card,
    .product-card:hover,
    .product-card:active,
    .product-card .product-image,
    .product-card .product-info,
    .product-card .wishlist-btn,
    .product-card .product-badges {
        z-index: auto !important;
        transform: none !important;
        will-change: auto !important;
    }

    html.cart-open,
    body.cart-open,
    html.mobile-account-open,
    body.mobile-account-open {
        overflow: hidden !important;
    }

    html.cart-open .mobile-cart-fab,
    body.cart-open .mobile-cart-fab {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .logo {
        top: auto !important;
        left: auto !important;
    }

    .header-content {
        margin: 0 16px !important;
        grid-template-columns: 152px minmax(0, 1fr) auto !important;
        gap: 12px !important;
    }

    .logo img {
        width: 116px !important;
    }

    .header-actions {
        gap: 8px !important;
    }

    .account-info span:not(.account-icon),
    .user-info .user-name,
    .user-info .dropdown-arrow,
    .cart-info > span {
        display: none !important;
    }

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

    .account-info,
    .user-info,
    .cart-info {
        min-width: 40px;
        min-height: 40px;
        width: 40px;
        height: 40px;
        justify-content: center;
        padding: 0 !important;
        border: 1px solid #ddd2c6;
        border-radius: 999px;
        background: #fffdfb !important;
    }

    .cart-info {
        display: inline-flex !important;
        align-items: center !important;
        position: relative !important;
        order: 1 !important;
    }

    .account-section {
        order: 2 !important;
    }

    .cart-info .cart-icon {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    .cart-info .cart-count {
        top: 2px !important;
        right: 1px !important;
    }

    .main-navigation {
        gap: 10px !important;
        padding: 0 16px !important;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .main-navigation::-webkit-scrollbar {
        display: none;
    }

    .quick-categories {
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto !important;
    }

    .quick-category-link,
    .nav-link {
        min-height: 40px;
        padding: 9px 14px;
        font-size: 14px;
    }

    .hero-banners,
    .recommendation-section,
    .flash-sale,
    .new-arrivals-section,
    .products-section,
    .page-content .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .footer .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-header {
        padding: 32px 30px 24px;
    }

    .page-body {
        padding: 30px;
    }

    .account-page-shell .account-layout {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .account-page-shell .account-sidebar {
        position: static !important;
    }

    .account-container,
    .account-page-shell,
    .checkout-page,
    .checkout-page .checkout-content,
    .checkout-page .checkout-main,
    .checkout-page .checkout-sidebar {
        background: #f7f3ee !important;
    }

    .account-page-shell .account-sidebar,
    .account-page-shell .account-content,
    .account-page-shell .account-section-body,
    .account-page-shell .profile-section,
    .account-page-shell .orders-container,
    .account-page-shell .addresses-container,
    .account-page-shell .payment-methods-container,
    .account-page-shell .wishlist-container,
    .account-page-shell .order-card,
    .account-page-shell .address-card,
    .account-page-shell .payment-card,
    .account-page-shell .wishlist-summary,
    .checkout-page .checkout-page-header,
    .checkout-page .checkout-section,
    .checkout-page .order-summary,
    .checkout-page .quick-checkout-card,
    .checkout-page .address-card,
    .checkout-page .payment-card,
    .checkout-page .billing-form,
    .checkout-page .card-element {
        background: #fffdfb !important;
        border: 1px solid #e6ddd2 !important;
        border-radius: 18px !important;
        box-shadow: none !important;
    }

    .account-page-shell .menu-item,
    .account-page-shell .form-actions .btn,
    .checkout-page .btn-next-step,
    .checkout-page .btn-quick-checkout,
    .checkout-page .btn-prev-step,
    .checkout-page .quick-checkout-secondary,
    .checkout-page .quick-checkout-change-link,
    .checkout-page .item-action-btn {
        box-shadow: none !important;
        transform: none !important;
    }

    .checkout-page .form-group input,
    .checkout-page .form-group select,
    .checkout-page .card-element {
        background: #fffdfb !important;
        border: 1px solid #ddd2c6 !important;
        border-radius: 14px !important;
        box-shadow: none !important;
        color: #221f1b !important;
    }

    .checkout-page .btn-next-step,
    .checkout-page .btn-quick-checkout {
        background: #221f1b !important;
        border: 1px solid #221f1b !important;
        color: #ffffff !important;
    }

    .checkout-page .btn-prev-step,
    .checkout-page .quick-checkout-secondary,
    .checkout-page .quick-checkout-change-link,
    .checkout-page .item-action-btn {
        background: #fffdfb !important;
        border: 1px solid #ddd2c6 !important;
        color: #221f1b !important;
    }
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    .header-main {
        padding: 12px 0 10px !important;
    }

    .header-content {
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) 88px !important;
        grid-template-areas:
            "nav logo actions"
            "search search search" !important;
        align-items: center !important;
        gap: 10px 12px !important;
        margin: 0 12px !important;
        text-align: left !important;
    }

    .mobile-nav-trigger {
        grid-area: nav;
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        flex-direction: column;
        border: 1px solid #ddd2c6;
        border-radius: 999px;
        background: #fffdfb;
        color: #221f1b;
        padding: 0;
        appearance: none;
        box-shadow: none;
        cursor: pointer;
    }

    .mobile-nav-trigger span {
        display: block;
        width: 16px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
    }

    .mobile-nav-trigger span:nth-child(2) {
        width: 12px;
    }

    .mobile-nav-trigger span:nth-child(3) {
        width: 9px;
    }

    .logo {
        grid-area: logo !important;
        top: auto !important;
        left: auto !important;
        margin: 0 !important;
        justify-self: center;
        width: auto !important;
        display: flex !important;
        align-items: center !important;
        text-align: center !important;
    }

    .logo img {
        width: 112px !important;
    }

    .search-container {
        grid-area: search !important;
        width: 100% !important;
        margin: 0 !important;
        order: 4 !important;
    }

    .search-box {
        background: #fbfaf8 !important;
        color: #221f1b !important;
        border: 1px solid #ddd2c6 !important;
        border-radius: 999px !important;
        padding: 13px 54px 13px 16px !important;
        font-size: 16px !important;
        box-shadow: none !important;
    }

    .search-box::placeholder {
        color: #8a7f74 !important;
    }

    .search-btn {
        top: 5px !important;
        right: 5px !important;
        width: 42px !important;
        height: calc(100% - 10px) !important;
        padding: 0 !important;
        border-radius: 999px !important;
        background: #221f1b !important;
        box-shadow: none !important;
    }

    .header-actions {
        grid-area: actions !important;
        justify-self: end;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: auto !important;
        min-width: 88px !important;
        gap: 8px !important;
    }

    .account-section {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: 40px !important;
        min-width: 40px !important;
    }

    .account-info,
    .user-info,
    .cart-info {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 0 !important;
        justify-content: center !important;
        border: 1px solid #ddd2c6;
        border-radius: 999px;
        background: #fffdfb !important;
    }

    .account-info,
    .user-info,
    .cart-info {
        display: inline-flex !important;
    }

    .account-icon,
    .user-icon,
    .cart-info i {
        font-size: 18px;
        line-height: 1;
    }

    .nav-bar {
        padding: 8px 0 12px !important;
        background: #fffdfb !important;
    }

    .main-navigation {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 0 12px !important;
        overflow-x: auto !important;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .main-navigation::-webkit-scrollbar {
        display: none;
    }

    .all-categories-wrapper,
    .nav-links {
        display: none !important;
    }

    .quick-categories {
        display: flex !important;
        gap: 8px !important;
        width: 100%;
        overflow-x: auto !important;
        padding-bottom: 2px;
    }

    .quick-category-link {
        min-height: 38px !important;
        padding: 9px 14px !important;
        font-size: 13px !important;
        border-radius: 999px !important;
        box-shadow: none !important;
    }

    .hero-section {
        padding-top: 14px;
    }

    .hero-banners {
        padding: 0 12px 8px !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .side-banners {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .main-banner,
    .side-banner {
        border-radius: 18px !important;
    }

    .main-banner {
        padding: 24px 20px !important;
    }

    .banner-content h2 {
        font-size: clamp(30px, 10vw, 40px) !important;
        line-height: 1.05 !important;
    }

    .banner-content p,
    .side-banner p {
        font-size: 15px !important;
    }

    .homepage-section,
    .recommendation-section,
    .flash-sale,
    .new-arrivals-section,
    .products-section {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .homepage-section .section-header,
    .flash-sale-header,
    .new-arrivals-section .section-header,
    .recommendation-section .section-header {
        align-items: center;
        gap: 8px;
    }

    .section-title,
    .flash-title,
    .new-arrivals-section .section-title {
        font-size: 22px !important;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .product-card {
        min-width: 0;
        border-radius: 16px !important;
    }

    .product-card .product-title {
        font-size: 13px !important;
        height: 34px !important;
        min-height: 34px !important;
        line-height: 1.28 !important;
        margin-bottom: 0 !important;
    }

    .product-card .product-info {
        padding: 12px 12px 14px !important;
    }

    .product-card .product-meta-row {
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    .product-card .product-price {
        gap: 4px !important;
        min-width: 0 !important;
    }

    .product-card .current-price {
        font-size: 15px !important;
    }

    .product-card .original-price {
        font-size: 11px !important;
    }

    .product-card .product-rating {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        flex-wrap: nowrap !important;
        flex: 0 0 auto !important;
        margin-left: 0 !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    .product-card .product-rating .stars {
        display: inline-block !important;
        font-size: 11px !important;
        letter-spacing: -0.4px !important;
        white-space: nowrap !important;
    }

    .product-card .rating-text {
        display: inline-block !important;
        font-size: 11px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .product-card .seller-info {
        display: none !important;
    }

    .product-card .product-actions {
        gap: 6px;
    }

    .product-card .product-actions .btn,
    .product-card .btn.btn-primary,
    .product-card .btn.btn-secondary,
    .product-card .btn.btn-warning,
    .product-card .btn-cart,
    .product-card .btn-details,
    .product-card .btn-wishlist {
        min-height: 40px !important;
        padding: 10px 12px !important;
        border-radius: 999px !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
        box-shadow: none !important;
    }

    .product-card .product-actions .btn::before,
    .product-card .btn-cart::before,
    .product-card .btn-details::before,
    .product-card .btn-wishlist::before {
        content: none !important;
    }

    .product-card .product-actions .btn i,
    .product-card .btn-cart i,
    .product-card .btn-details i,
    .product-card .btn-wishlist i {
        font-size: 14px !important;
        margin-right: 6px !important;
    }

    .product-card .btn.btn-primary,
    .product-card .btn-cart {
        background: #221f1b !important;
        border-color: #221f1b !important;
        color: #ffffff !important;
    }

    .product-card .btn.btn-secondary,
    .product-card .btn-details {
        background: #fffdfb !important;
        border: 1px solid #ddd2c6 !important;
        color: #221f1b !important;
    }

    .product-card .btn.btn-warning,
    .product-card .btn-wishlist {
        background: #efe7dc !important;
        border: 1px solid #ddd2c6 !important;
        color: #3f342b !important;
    }

    .category-page,
    .new-arrivals-page,
    .page-content {
        padding-bottom: 32px !important;
    }

    .category-page .breadcrumb,
    .details .breadcrumb,
    .page-content .breadcrumb {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .category-page .breadcrumb::-webkit-scrollbar,
    .details .breadcrumb::-webkit-scrollbar,
    .page-content .breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .category-page:not(.new-arrivals-page) .category-header,
    .new-arrivals-page .new-arrivals-header,
    .page-article,
    .product-detail {
        border-radius: 18px !important;
    }

    .category-page:not(.new-arrivals-page) .category-header,
    .new-arrivals-page .new-arrivals-header {
        padding: 20px 16px !important;
    }

    .details .container,
    .page-content .container {
        padding: 0 12px !important;
    }

    .product-detail {
        grid-template-columns: 1fr !important;
        padding: 16px !important;
        gap: 16px !important;
    }

    .product-images,
    .product-info {
        min-width: 0;
    }

    .product-rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .price-main {
        gap: 10px;
    }

    .product-detail .quantity-section {
        margin: 0 !important;
        padding: 14px !important;
        background: #f8f4ef !important;
        border: 1px solid #e6ddd2 !important;
        border-radius: 18px !important;
    }

    .product-detail .quantity-section label {
        display: block !important;
        margin-bottom: 10px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #4c4239 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
    }

    .product-detail .quantity-controls {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
    }

    .product-detail .qty-btn {
        width: 40px !important;
        height: 40px !important;
        border: 1px solid #ddd2c6 !important;
        border-radius: 999px !important;
        background: #fffdfb !important;
        color: #221f1b !important;
        box-shadow: none !important;
        transform: none !important;
        font-size: 18px !important;
        font-weight: 600 !important;
    }

    .product-detail #quantity {
        width: 72px !important;
        height: 40px !important;
        border: 1px solid #ddd2c6 !important;
        border-radius: 999px !important;
        background: #fffdfb !important;
        color: #221f1b !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        box-shadow: none !important;
    }

    .product-detail .stock-info {
        font-size: 12px !important;
        color: #7d7064 !important;
        font-weight: 500 !important;
    }

    .product-detail .product-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 14px !important;
    }

    .product-detail .product-actions .btn {
        width: 100% !important;
        min-height: 46px !important;
        padding: 12px 18px !important;
        border-radius: 999px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .product-detail .btn-add-cart,
    .product-detail .btn-add-wishlist-primary {
        background: #221f1b !important;
        border: 1px solid #221f1b !important;
        color: #ffffff !important;
    }

    .product-detail .btn-buy-now {
        background: #fffdfb !important;
        border: 1px solid #ddd2c6 !important;
        color: #221f1b !important;
    }

    .product-detail .btn-add-cart:hover,
    .product-detail .btn-add-cart:active,
    .product-detail .btn-add-wishlist-primary:hover,
    .product-detail .btn-add-wishlist-primary:active {
        background: #11100e !important;
        border-color: #11100e !important;
        color: #ffffff !important;
        transform: none !important;
    }

    .product-detail .btn-buy-now:hover,
    .product-detail .btn-buy-now:active {
        background: #f6efe8 !important;
        border-color: #cdbda9 !important;
        color: #221f1b !important;
        transform: none !important;
    }

    .page-header {
        padding: 24px 20px 20px !important;
    }

    .page-title {
        font-size: 30px !important;
    }

    .page-description {
        font-size: 15px !important;
    }

    .page-body {
        padding: 24px 20px 28px !important;
        font-size: 15px !important;
    }

    .page-body ul,
    .page-body ol {
        padding: 16px 18px 16px 34px !important;
        border-radius: 16px !important;
    }

    .footer {
        margin-top: 28px !important;
    }

    .footer-main {
        padding: 28px 0 18px !important;
    }

    .footer .container {
        padding: 0 16px !important;
    }

    .mobile-account-field-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }

    .footer-section h3.footer-title {
        font-size: 16px !important;
        margin-bottom: 16px !important;
    }

    .footer-links a {
        font-size: 13px !important;
    }

    .footer-bottom-content {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .copyright {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .copyright-affiliation {
        display: inline-flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        color: #d8c8b6 !important;
        font-size: 13px !important;
        line-height: 1.5;
    }

    .copyright-affiliation-label {
        display: inline-flex;
        align-items: center;
        padding: 3px 9px;
        border: 1px solid rgba(216, 200, 182, 0.24);
        border-radius: 999px;
        background: rgba(216, 200, 182, 0.08);
        color: #f2e6d8;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .footer-payment-info,
    .footer-badges {
        width: 100%;
        justify-content: flex-start;
    }

    .back-to-top {
        display: none !important;
    }

    .mobile-menu-v2 {
        background: #fffdfb !important;
    }

    .mobile-menu-v2 .menu-header {
        background: #221f1b !important;
        color: #ffffff !important;
        padding: 16px !important;
        box-shadow: none !important;
    }

    .mobile-menu-v2 .menu-title {
        color: #ffffff !important;
        font-size: 18px !important;
        font-weight: 600 !important;
    }

    .mobile-menu-v2 .menu-close-btn,
    .mobile-menu-v2 .menu-back-btn {
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        color: #ffffff !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 999px !important;
        box-shadow: none !important;
    }

    .mobile-menu-v2 .menu-content,
    .mobile-menu-v2 .nav-panel {
        background: #fffdfb !important;
    }

    .mobile-menu-v2 .breadcrumb-trail {
        background: #f4ede5 !important;
        border-bottom: 1px solid #e6ddd2 !important;
    }

    .mobile-menu-v2 .breadcrumb-item {
        color: #6b5f55 !important;
    }

    .mobile-menu-v2 .category-item {
        padding: 14px 16px !important;
        border-bottom: 1px solid #eee4d8 !important;
        background: #fffdfb !important;
        color: #221f1b !important;
    }

    .mobile-menu-v2 .category-item:hover,
    .mobile-menu-v2 .category-item:active {
        background: #f7f2eb !important;
    }

    .mobile-menu-v2 .category-icon {
        background: #f6efe8 !important;
        color: #4c4239 !important;
        border-radius: 12px !important;
    }

    .mobile-menu-v2 .category-name {
        color: #221f1b !important;
        font-weight: 600 !important;
    }

    .mobile-menu-v2 .category-count,
    .mobile-menu-v2 .loading-text,
    .mobile-menu-v2 .empty-state-text {
        color: #7d7064 !important;
    }

    .mobile-menu-v2 .category-arrow {
        color: #7d7064 !important;
    }

    .mobile-menu-v2 .category-item.special {
        background: #f8f4ef !important;
    }

    .mobile-menu-v2 .category-item.special .category-icon {
        background: #221f1b !important;
        color: #ffffff !important;
    }

    .mobile-menu-v2 .loading-spinner {
        border-top-color: #221f1b !important;
    }

    .mobile-menu-backdrop.active {
        background: rgba(17, 16, 14, 0.42) !important;
    }

    .cart-overlay {
        z-index: 10040 !important;
        background: rgba(17, 16, 14, 0.42) !important;
        backdrop-filter: blur(3px) !important;
    }

    .cart-sidebar {
        width: min(92vw, 380px) !important;
        max-width: 380px !important;
        right: 0 !important;
        height: 100dvh !important;
        z-index: 10050 !important;
        background: #fffdfb !important;
        border-radius: 0 !important;
        box-shadow: -20px 0 40px rgba(34, 31, 27, 0.18) !important;
        transform: translateX(100%) !important;
        transition: transform 0.28s ease !important;
        overflow: hidden !important;
    }

    .cart-sidebar.active {
        transform: translateX(0) !important;
    }

    .cart-header {
        min-height: 68px !important;
        padding: 16px 18px !important;
        background: #221f1b !important;
        color: #ffffff !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }

    .cart-header::before {
        display: none !important;
    }

    .cart-header h3 {
        font-size: 17px !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .cart-close {
        width: 40px !important;
        height: 40px !important;
        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        color: #ffffff !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .cart-close:hover,
    .cart-close:active {
        background: rgba(255, 255, 255, 0.14) !important;
        transform: none !important;
    }

    .cart-content {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        min-height: 0 !important;
        overflow: hidden !important;
        overflow-x: hidden !important;
        background: #fffdfb !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .cart-empty {
        display: none !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 28px 22px !important;
        margin: 0 !important;
        text-align: center !important;
        color: #6b5f55 !important;
        background: #fffdfb !important;
        min-height: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
    }

    .cart-sidebar.is-empty .cart-empty,
    .cart-sidebar.has-error .cart-empty {
        display: flex !important;
    }

    .cart-sidebar.is-empty .cart-items-container,
    .cart-sidebar.has-error .cart-items-container {
        display: none !important;
    }

    .cart-sidebar.has-items .cart-empty {
        display: none !important;
    }

    .cart-sidebar.has-items .cart-items-container {
        display: block !important;
    }

    .cart-sidebar.has-items .cart-footer {
        display: block !important;
    }

    .cart-empty i {
        font-size: 40px !important;
        color: #8a7f74 !important;
        margin-bottom: 12px !important;
    }

    .cart-empty p {
        font-size: 15px !important;
        color: #4c4239 !important;
        margin-bottom: 16px !important;
    }

    .cart-empty .btn {
        min-height: 42px !important;
        padding: 10px 18px !important;
        border-radius: 999px !important;
        background: #221f1b !important;
        border-color: #221f1b !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }

    .cart-items-container {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        background: #fffdfb !important;
        overflow-y: auto !important;
    }

    .cart-selection-bar {
        display: none;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 16px;
        border-bottom: 1px solid #eee4d8;
        background: #f8f4ef;
    }

    .cart-selection-summary {
        font-size: 13px;
        font-weight: 600;
        color: #4c4239;
    }

    .cart-selection-remove {
        min-height: 34px;
        padding: 7px 12px;
        border: 1px solid #ddd2c6;
        border-radius: 999px;
        background: #fffdfb;
        color: #8d2f37;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        font-size: 12px;
        font-weight: 600;
        box-shadow: none;
    }

    .cart-item {
        position: relative;
        padding: 14px 16px !important;
        padding-left: 46px !important;
        padding-right: 16px !important;
        border-bottom: 1px solid #eee4d8 !important;
        gap: 12px !important;
        align-items: flex-start !important;
        background: #fffdfb !important;
    }

    .cart-item-select {
        position: absolute;
        top: 16px;
        left: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

    .cart-item-checkbox {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .cart-item-checkmark {
        width: 18px;
        height: 18px;
        border: 1px solid #cdbda9;
        border-radius: 6px;
        background: #fffdfb;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .cart-item-checkbox:checked + .cart-item-checkmark {
        background: #221f1b;
        border-color: #221f1b;
    }

    .cart-item-checkbox:checked + .cart-item-checkmark::after {
        content: "";
        width: 6px;
        height: 10px;
        border-right: 2px solid #ffffff;
        border-bottom: 2px solid #ffffff;
        transform: rotate(45deg) translate(-1px, -1px);
    }

    .cart-item-remove {
        position: static;
        width: 30px;
        height: 30px;
        border: 1px solid #e7d8cb;
        border-radius: 999px;
        background: #fffdfb;
        color: #8d2f37;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: none;
        cursor: pointer;
        flex-shrink: 0;
    }

    .cart-item-remove i {
        font-size: 14px;
        line-height: 1;
    }

    .cart-item-image {
        width: 64px !important;
        height: 64px !important;
        margin-right: 0 !important;
        border-radius: 14px !important;
        background: #f7f2eb !important;
        overflow: hidden !important;
        flex-shrink: 0 !important;
    }

    .cart-item-details {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }

    .cart-item-name {
        font-size: 14px !important;
        line-height: 1.35 !important;
        color: #221f1b !important;
        margin-bottom: 6px !important;
    }

    .cart-item .item-top-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: start !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .cart-item .item-price {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #221f1b !important;
        white-space: nowrap !important;
    }

    .cart-item .item-options,
    .cart-item .item-shipping {
        color: #6b5f55 !important;
        font-size: 13px !important;
    }

    .cart-item .item-options small {
        display: block !important;
        line-height: 1.35 !important;
    }

    .cart-item .item-bottom-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        width: 100% !important;
        margin-top: 4px !important;
    }

    .cart-item .item-quantity {
        color: #6b5f55 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
    }

    .cart-item .item-actions {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .cart-item-quantity {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-top: 0 !important;
        flex-wrap: nowrap !important;
        min-width: 98px !important;
    }

    .quantity-btn {
        width: 30px !important;
        height: 30px !important;
        border-radius: 999px !important;
        border: 1px solid #ddd2c6 !important;
        background: #fffdfb !important;
        color: #221f1b !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .quantity-display {
        min-width: 18px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #221f1b !important;
    }

    .cart-footer {
        display: block;
        padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        background: #fffdfb !important;
        border-top: 1px solid #eee4d8 !important;
        box-shadow: 0 -6px 20px rgba(34, 31, 27, 0.08) !important;
    }

    .cart-summary {
        margin-bottom: 12px !important;
    }

    .summary-line {
        color: #6b5f55 !important;
        font-size: 13px !important;
    }

    .summary-line.total-line {
        color: #221f1b !important;
        font-size: 15px !important;
    }

    .btn-checkout {
        min-height: 46px !important;
        border-radius: 999px !important;
        background: #221f1b !important;
        border-color: #221f1b !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }

    .btn-continue-shopping {
        min-height: 42px !important;
        border-radius: 999px !important;
        background: #fffdfb !important;
        border: 1px solid #ddd2c6 !important;
        color: #221f1b !important;
        box-shadow: none !important;
        transform: none !important;
    }

    html.cart-open .cart-info,
    body.cart-open .cart-info {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .mobile-account-drawer,
    .cart-sidebar {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
    }
}

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

    .copyright {
        align-items: flex-start;
    }

    .copyright-affiliation {
        justify-content: flex-start;
    }

    .footer-section {
        text-align: left !important;
    }

    .footer-section h3.footer-title::after {
        left: 0 !important;
        transform: none !important;
    }

    .page-title {
        font-size: 28px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT CARD — Temu-style portrait card (desktop + mobile)
   Overrides all earlier product-card rules in this file.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Card shell — no border, clean shadow */
.product-card {
    border: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.09) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    transition: box-shadow 0.2s !important;
}
.product-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.13) !important;
    border: none !important;
}

/* Portrait image — 3:4 ratio, object-fit cover */
.product-card .product-image {
    position: relative !important;
    aspect-ratio: 3 / 4 !important;
    width: 100% !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
    flex-shrink: 0 !important;
}
.product-card .product-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Badges — keep on image */
.product-card .product-badges {
    position: absolute !important;
    top: 7px !important;
    left: 7px !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}
.product-card .badge-sale {
    background: #e63946 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
}
.product-card .badge-choice {
    background: #f59e0b !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
}

/* Desktop wishlist button — hide (moved to image overlay on mobile, skip on desktop) */
.product-card .wishlist-btn {
    display: none !important;
}

/* ── Circle cart button — always visible, overlaid on image ─────────────── */
.mob-cart-circle-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.20) !important;
    cursor: pointer !important;
    z-index: 3 !important;
    padding: 0 !important;
    transition: transform 0.15s, box-shadow 0.15s !important;
}
.mob-cart-circle-btn i {
    font-size: 17px !important;
    color: #1f1a17 !important;
    margin: 0 !important;
    display: block !important;
}
.mob-cart-circle-btn:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.25) !important;
    transform: scale(1.06) !important;
}
.mob-cart-circle-btn:active {
    transform: scale(0.93) !important;
}
.mob-cart-circle-btn--oos i {
    color: #ea545e !important;
}

/* ── Info area below image ───────────────────────────────────────────────── */
.product-card .product-info {
    padding: 8px 10px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    flex: 1 !important;
}

/* Title — visible on desktop, 2 lines max */
.product-card .product-title {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #222 !important;
    line-height: 1.35 !important;
    height: auto !important;
    max-height: 32px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    margin-bottom: 2px !important;
}

/* Price row */
.product-card .product-meta-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
}
.product-card .product-price {
    display: flex !important;
    align-items: baseline !important;
    gap: 5px !important;
    flex-wrap: wrap !important;
}
.product-card .current-price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #e63946 !important;
}
.product-card .original-price {
    font-size: 11px !important;
    color: #aaa !important;
    text-decoration: line-through !important;
}

/* Hide: rating, seller info, old action buttons */
.product-card .product-rating,
.product-card .seller-info,
.product-card .product-actions {
    display: none !important;
}

/* ── Gradient overlay: title + sold + price + cart button on the image ────── */
.product-card .pc-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.38) 60%, transparent 100%);
    padding: 28px 8px 9px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none; /* let clicks pass to image; buttons inside re-enable */
    border-radius: 0 0 10px 10px;
}

.product-card .pc-title {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    /* Cap width so title never slides behind the cart button */
    max-width: 200px;
}

.product-card .pc-bottom-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
}

.product-card .pc-price-col {
    display: flex;
    flex-direction: column;
    gap: 1px;
    /* Take available space but leave room for the circle btn */
    min-width: 0;
    flex: 1 1 0;
    max-width: calc(100% - 52px); /* 42px btn + 10px gap */
    margin-bottom: 5px;
}

.product-card .pc-sold {
    font-size: 10px;
    color: rgba(255,255,255,0.85);
    line-height: 1.2;
    white-space: nowrap;
}

.product-card .pc-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.product-card .pc-current {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    line-height: 1;
}

.product-card .pc-original {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    text-decoration: line-through;
    line-height: 1;
}

/* Re-enable pointer events on the cart button */
.product-card .mob-cart-circle-btn {
    pointer-events: all !important;
    flex-shrink: 0;
}

/* Desktop (>768px): show title, larger button */
@media (min-width: 769px) {
    .product-card .pc-title {
        display: -webkit-box !important;
        font-size: 16px;
        max-width: 200px; /* never overlaps the cart button */
    }
    .product-card .pc-current {
        font-size: 16px;
    }
    .product-card .pc-sold {
        font-size: 11px;
    }
    .product-card .mob-cart-circle-btn {
        width: 42px !important;
        height: 42px !important;
    }
    /* Ensure price column never bleeds under the button */
    .product-card .pc-price-col {
        max-width: calc(100% - 52px);
    }
}

/* Tablet (481px – 768px): title visible but smaller cards — keep it tight */
@media (min-width: 481px) and (max-width: 768px) {
    .product-card .pc-title {
        display: -webkit-box !important;
        font-size: 13px;
        max-width: calc(100% - 50px); /* always stays left of circle btn */
    }
    .product-card .pc-price-col {
        max-width: calc(100% - 50px);
    }
}

/* Mobile (<480px): hide title, compact price + sold */
@media (max-width: 480px) {
    .product-card .pc-title {
        display: none !important;
    }
    .product-card .pc-current {
        font-size: 13px;
    }
    .product-card .pc-sold {
        font-size: 9px;
    }
    .product-card .pc-price-col {
        max-width: calc(100% - 46px);
    }
}

/* Hide old product-info panel — everything is now on the image */
.product-card .product-info {
    display: none !important;
}
