: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;
}

.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;
}

.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: #0f4ea8;
    border-color: var(--header-accent-border);
    box-shadow: 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 16px;
    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: translateY(-1px);
}

.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;
}

.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;
    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;
    margin-left: auto;
    margin-bottom: 0;
    white-space: nowrap;
}

.product-card .product-rating .stars,
.product-card .stars {
    color: #c28b2c;
}

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

.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;
}

.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;
}

.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 .category-header {
    width: 100%;
    margin: 0 0 24px;
    padding: 40px 48px !important;
}

.category-page .category-header .category-info {
    max-width: none;
    margin: 0;
}

.category-page .category-hero-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 32px;
    align-items: stretch;
}

.category-page .category-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: flex-start;
    min-width: 0;
}

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

.category-page .category-hero-collections {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    padding: 22px 24px;
    border: 1px solid rgba(227, 217, 205, 0.9);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.42);
}

.category-page .category-hero-collections-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.category-page .category-hero-collections-nav {
    position: static;
    transform: none;
    width: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

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

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

.category-page .category-hero-collections .subcategories-carousel {
    gap: 14px;
    padding: 0;
}

.category-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 .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 .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

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

.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;
}

@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;
    }

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

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

@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;
    }

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

    .category-page .category-header {
        padding: 24px 18px !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;
    }
}
