* {
    box-sizing: border-box;
}

:root {
    --mobile-bottom-nav-height: 0px;
    --mobile-bottom-nav-offset: 0px;
}

html {
    background: #fff;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #222;
    background: #fff;
}

body.public-site {
    font-family: var(--font-public), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: var(--font-public-size, 14px);
    font-weight: var(--font-public-weight, 400);
    --mobile-bottom-nav-space: calc(var(--mobile-bottom-nav-height) + var(--mobile-bottom-nav-offset));
    min-height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
}

body.public-site button,
body.public-site input,
body.public-site select,
body.public-site textarea {
    font: inherit;
}

/* Product-specific font — applies to product cards, names, prices, badges, and related info */
/* ── Product Listing (home / category) ── */
body.public-site .product-card,
body.public-site .product-info,
body.public-site .product-title,
body.public-site .product-pricing,
body.public-site .price-current,
body.public-site .price-old,
body.public-site .badge-discount,
body.public-site .badge-new,
body.public-site .badge-bestseller,
body.public-site .selling-fast,
body.public-site .color-swatches,
body.public-site .size-badge,
body.public-site .size-swatch,
body.public-site .variant-swatch,
body.public-site .add-to-cart-bar,
/* ── Product Detail Page ── */
body.public-site .product-detail-new,
body.public-site .info-new,
body.public-site .info-new h1,
body.public-site .price-block,
body.public-site .current-price,
body.public-site .old-price,
body.public-site .old-price-row,
body.public-site .discount-badge,
body.public-site .lowest-price,
body.public-site .opt-title,
body.public-site .color-thumbnails,
body.public-site .pdp-sizes,
body.public-site .size-btn,
body.public-site .qty-cart-row,
body.public-site .btn-add-cart,
body.public-site .accordion-title,
body.public-site .accordion-content,
/* ── Related Products ── */
body.public-site .related-item {
    font-family: var(--font-product), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================
   HEADER STYLES
   ========================================= */
.site-header {
    background: #fff;
    width: 100%;
    position: relative;
    z-index: 1200;
}

.mobile-brand-row {
    display: none;
}

.mobile-search-row {
    display: none;
}

.mobile-nav-backdrop,
.mobile-bottom-nav {
    display: none;
}

body.mobile-menu-open {
    overflow: hidden;
}

.mobile-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
}

.mobile-brand-text {
    font-family: "Times New Roman", Times, serif;
    color: #222;
    letter-spacing: 3px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.1);
}

.main-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding: 15px 40px;
}

/* Header Contact (Left) */
.header-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #444;
}

.header-contact i {
    font-size: 24px;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.phone-number {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    margin-bottom: 2px;
}

.work-hours {
    font-size: 12px;
    color: #999;
}

/* Header Logo (Center) */
.header-logo {
    text-align: center;
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-decoration: none;
    min-width: 0;
    max-width: 100%;
}

.logo img {
    height: 42px;
    width: auto;
    display: block;
}

.logo-text {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    font-size: var(--brand-font-size, 38px);
    font-family: var(--brand-font-family, "Times New Roman", Times, serif);
    font-weight: var(--brand-font-weight, 400);
    color: #222;
    letter-spacing: 3px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.1);
}

.footer-brand-text {
    display: inline-block;
    letter-spacing: 0.08em;
    color: inherit;
}

body.public-site > main {
    flex: 1 0 auto;
    background: #fff;
    transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}

.site-footer {
    margin-top: auto;
    background: #fff;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

body.is-page-transitioning > main {
    opacity: 0.55;
    transform: translateY(4px);
    filter: saturate(0.96);
}

body.is-page-transitioning .site-footer {
    opacity: 0.65;
    transform: translateY(4px);
}

/* Header Actions (Right) */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
    width: 250px;
}

.search-live-shell {
    position: relative;
}

.search-form input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    color: #555;
    background: transparent;
    padding: 5px 0;
}

.search-form input::placeholder {
    color: #999;
}

.search-form button {
    background: none;
    border: none;
    cursor: pointer;
    color: #444;
    font-size: 16px;
    padding: 0 5px;
}

.search-form button:hover {
    color: #000;
}

/* Header Icons & Actions */
.header-icons {
    display: flex;
    gap: 30px;
    align-items: flex-end;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.cart-trigger-link {
    color: inherit;
    text-decoration: none;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 0;
}

.action-item i, .action-btn i {
    font-size: 24px;
}

.action-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.action-item:hover, .action-btn:hover {
    color: #000;
}

/* Cart Badge */
.cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #e0e0e0;
    color: #333;
    font-size: 11px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-badge[hidden],
.mobile-bottom-cart-badge[hidden] {
    display: none;
}

.cart-dropdown-wrapper {
    position: relative;
}

.cart-preview-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: -16px;
    width: 360px;
    background: #fff;
    border: 1px solid #ece3d8;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(35, 24, 15, 0.14);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1100;
}

.cart-dropdown-wrapper:hover .cart-preview-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-live-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(420px, 92vw);
    background: #fff;
    border: 1px solid #ece3d8;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(35, 24, 15, 0.14);
    overflow: hidden;
    z-index: 1200;
}

.search-live-list {
    display: flex;
    flex-direction: column;
}

.search-live-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #f3ebe2;
    transition: background 0.2s ease;
}

.search-live-item:hover {
    background: #fbf7f1;
}

.search-live-thumb {
    width: 68px;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: #f8f4ef;
    border-radius: 12px;
}

.search-live-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.search-live-name {
    font-size: 14px;
    font-weight: 600;
    color: #221c17;
    line-height: 1.35;
}

.search-live-price {
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

.search-live-empty {
    padding: 18px 16px;
    font-size: 14px;
    color: #65584b;
}

.search-live-footer {
    display: block;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #221c17;
    background: #fbf7f1;
    text-align: center;
}

.search-live-footer:hover {
    background: #f6efe6;
}

.cart-preview-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0e7dc;
    font-size: 12px;
    color: #6e6256;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cart-preview-header strong {
    font-size: 13px;
    color: #241912;
}

.cart-preview-list {
    display: grid;
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.cart-preview-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.cart-preview-image {
    width: 64px;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: #f8f4ee;
    border: 1px solid #efe5d8;
    border-radius: 12px;
    display: block;
}

.cart-preview-info {
    min-width: 0;
}

.cart-preview-name {
    font-size: 13px;
    font-weight: 700;
    color: #231912;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.cart-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    color: #73685d;
}

.cart-preview-price {
    font-size: 13px;
    font-weight: 800;
    color: #231912;
    white-space: nowrap;
}

.cart-preview-footer {
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid #f0e7dc;
}

.cart-preview-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #5b4e42;
}

.cart-preview-total strong {
    font-size: 15px;
    color: #1b120d;
}

.cart-preview-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d51b1b 0%, #a50d0d 100%);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cart-preview-empty {
    padding: 10px 0 4px;
    font-size: 13px;
    line-height: 1.6;
    color: #73685d;
}

/* Language Dropdown */
.lang-dropdown-wrapper {
    position: relative;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    transform: translateY(10px);
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    min-width: 220px;
    max-width: min(280px, calc(100vw - 24px));
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    padding: 10px 0;
    border-radius: 16px;
    overflow: hidden;
}

.lang-dropdown-wrapper:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 10px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.lang-dropdown a:hover {
    background: #f9f9f9;
}

.flag-icon {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border: 1px solid #eee;
    border-radius: 50%;
    flex: 0 0 20px;
}

.lang-action-btn {
    min-width: 44px;
    min-height: 44px;
}

.current-lang-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border-color: #d8d8d8;
}

/* Global Buttons */
.btn {
    padding: 12px 20px;
    border: 0;
    background: #111;
    color: #fff;
    cursor: pointer;
    display: inline-block;
}

/* =========================================
   HERO SLIDER
   ========================================= */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1920px; /* Khung ảnh chuẩn tối đa */
    margin: 0 auto;    /* Căn giữa nếu màn hình to hơn 1920px */
    aspect-ratio: 1920 / 600; /* Tỷ lệ rộng hơn, chiều cao ngắn đi (1920x600) */
    overflow: hidden;
    background: #f3e6df;
}

.slider-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.mobile-bottom-nav-item {
    appearance: none;
    border: 0;
    background: transparent;
    color: #888;
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 10px 8px 9px;
    font: inherit;
    cursor: pointer;
    position: relative;
    border-radius: 18px;
    transition: color 0.22s ease, transform 0.22s ease, background-color 0.22s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-nav-item::before {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    top: 5px;
    bottom: 5px;
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
    transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
    z-index: 0;
}

.mobile-bottom-nav-item > * {
    position: relative;
    z-index: 1;
}

.mobile-bottom-nav-item i {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.22s ease, color 0.22s ease;
}

.mobile-bottom-nav-item span {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    transition: color 0.22s ease, opacity 0.22s ease;
}

.mobile-bottom-nav-item.is-active,
.mobile-bottom-nav-item:hover,
.mobile-bottom-nav-item:focus-visible {
    color: #17211a;
}

.mobile-bottom-nav-item.is-active {
    color: #111;
    transform: translateY(-2px);
}

.mobile-bottom-nav-item.is-transition-target {
    color: #111;
    transform: translateY(-2px) scale(0.985);
}

.mobile-bottom-nav-item.is-active::before {
    background: linear-gradient(180deg, #fff8ef 0%, #f6ece0 100%);
    box-shadow: 0 10px 22px rgba(55, 34, 17, 0.1);
    transform: scale(1.01);
}

.mobile-bottom-nav-item.is-transition-target::before {
    background: linear-gradient(180deg, #fff6ea 0%, #f3e7d8 100%);
    box-shadow: 0 8px 18px rgba(55, 34, 17, 0.1);
    transform: scale(0.99);
}

.mobile-bottom-nav-item.is-active i {
    color: #111;
    transform: translateY(-1px) scale(1.04);
}

.mobile-bottom-nav-item.is-active span:last-child {
    color: #111;
    font-weight: 800;
}

.mobile-bottom-nav-item:not(.is-active) span:last-child {
    opacity: 0.88;
}

.mobile-bottom-cart-icon {
    position: relative;
    display: inline-flex;
}

.mobile-bottom-cart-badge {
    position: absolute;
    top: -7px;
    right: -10px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
}

.slider-nav-btn:hover {
    background: #111;
    color: #fff;
}

.slider-nav-btn.prev {
    left: 20px;
}

.slider-nav-btn.next {
    right: 20px;
}

/* Dots indicator */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #fff;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

.section {
    max-width: 1180px;
    margin: 50px auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 400; /* Chữ mỏng sang trọng */
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #111;
}

/* Đường kẻ ngang 2 bên chữ NOVINKY */
.section-title::before,
.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #ddd; /* Màu xám nhạt */
}

.section-title::before {
    margin-right: 30px;
}

.section-title::after {
    margin-left: 30px;
}

.section-subtitle {
    font-size: 13px;
    color: #999;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin: 0;
}

.section-action {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.section-action-link {
    position: relative;
    overflow: hidden;
    min-width: 220px;
    border-radius: 6px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.12);
}

.section-action-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.32) 50%, transparent 100%);
    transform: skewX(-22deg);
    transition: left 0.45s ease;
}

.section-action-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(17, 17, 17, 0.2);
    background: #1f1f1f;
}

.section-action-link:hover::after {
    left: 140%;
}

.section-action-link:active {
    transform: translateY(1px) scale(0.985);
    box-shadow: 0 6px 14px rgba(17, 17, 17, 0.18);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    min-width: 0;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Image Container & Hover */
.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* Hoặc 4/5 tùy theo ảnh gốc */
    overflow: hidden;
    background: #f8f8f8;
    min-width: 0;
    border-radius: 6px;
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.img-primary, .img-secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.img-secondary {
    opacity: 0;
}

.product-card:hover .img-primary {
    opacity: 0;
}

.product-card:hover .img-secondary {
    opacity: 1;
}

/* Badges */
.badge-discount {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.1;
    letter-spacing: -0.3px;
    clip-path: polygon(50% 0%, 63% 10%, 78% 2%, 82% 18%, 98% 20%, 92% 35%, 100% 50%, 92% 65%, 98% 80%, 82% 82%, 78% 98%, 63% 90%, 50% 100%, 37% 90%, 22% 98%, 18% 82%, 2% 80%, 8% 65%, 0% 50%, 8% 35%, 2% 20%, 18% 18%, 22% 2%, 37% 10%);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f330f3;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    padding: 3px 6px;
    z-index: 2;
    text-transform: uppercase;
    border-radius: 4px;
}

.badge-bestseller {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: #e53e3e;
    color: #fff;
    font-size: 8px;
    font-weight: 600;
    padding: 3px 8px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 4px;
    line-height: 1;
}

.selling-fast {
    font-size: 12px;
    font-weight: 500;
    font-style: normal;
    color: #e53e3e;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 4px;
}

@keyframes sellingFastPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Heart Button */
.btn-heart {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #111;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: bottom 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.2s, color 0.2s;
}

.product-card:hover .btn-heart {
    bottom: 50px;
}

.btn-heart:hover {
    color: #b30000;
    transform: scale(1.1);
}

/* Add to Cart Animated Bar */
.add-to-cart-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(25, 25, 25, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 3;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
}

.product-card:hover .add-to-cart-bar {
    transform: translateY(0);
}

.add-to-cart-bar:hover {
    background: rgba(0, 0, 0, 1);
}

.cart-animation-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-icon {
    font-size: 15px;
    transform: translateX(0) scale(1);
    transition: transform 0.22s ease;
}

.cart-text {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    margin-left: 0;
    transition: max-width 0.34s ease 0.2s, opacity 0.28s ease 0.2s, margin-left 0.34s ease 0.2s;
}

@keyframes cartIconScoot {
    0% {
        transform: translateX(0) scale(1);
    }
    45% {
        transform: translateX(-4px) scale(1.06);
    }
    100% {
        transform: translateX(0) scale(1);
    }
}

.product-card:hover .cart-icon {
    animation: cartIconScoot 0.24s ease-out both;
}

.product-card:hover .cart-text {
    max-width: 150px;
    opacity: 1;
    margin-left: 10px;
}

/* Product Info Area */
.product-info {
    padding: 12px 0;
    min-width: 0;
}

.product-title {
    font-size: 12px;
    font-weight: 400;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.product-title a:hover {
    text-decoration: underline;
}

.product-card .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.product-card .product-summary {
    min-width: 0;
    flex: 1 1 auto;
}

.product-card .product-pricing {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-top: 2px;
}

.price-current {
    font-size: 13px;
    font-weight: 600;
    color: #111;
}

.price-old {
    font-size: 11px;
    text-decoration: line-through;
    color: #999;
}

.product-card .product-attributes {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 0 0 auto;
    gap: 4px;
    max-width: 50%;
    min-width: 0;
}

.product-card .variant-swatches,
.product-card .size-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 0 !important;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-end;
}

.product-card .color-swatches {
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-end;
}

.product-card .swatch {
    width: 12px;
    height: 12px;
}

.product-card .attribute-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 17px;
    padding: 0 4px;
    border: 1px dashed #d2d2d2;
    background: #fafafa;
    color: #666;
    font-size: 8px;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .product-card .product-meta {
        gap: 10px;
    }

    .product-card .product-attributes {
        max-width: 62%;
    }
}

.size-badge {
    border: 1px solid #ddd;
    font-size: 9px;
    padding: 1px 4px;
    color: #666;
}

.color-swatches {
    display: flex;
    gap: 5px;
}

.swatch {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.swatch:hover {
    transform: scale(1.18);
    border-color: #666;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.swatch:focus-visible,
.size-swatch:focus-visible,
.variant-swatch:focus-visible,
.size-btn:focus-visible {
    outline: 2px solid rgba(17, 17, 17, 0.42);
    outline-offset: 2px;
}

.swatch.selected {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #000;
}

.size-swatch,
.variant-swatch {
    border-radius: 4px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.size-swatch:hover {
    background: #f8f8f8;
    border-color: #777 !important;
    box-shadow: 0 6px 16px rgba(17, 17, 17, 0.08);
    transform: translateY(-1px);
}

.size-swatch.selected {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

.variant-swatch:hover {
    background: #f8f8f8;
    border-color: #777 !important;
    box-shadow: 0 6px 16px rgba(17, 17, 17, 0.08);
    transform: translateY(-1px);
}

.variant-swatch.selected {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

/* =========================================
   FOOTER STYLES
   ========================================= */
.site-footer {
    margin-top: 60px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    color: #333;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-contact-items {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-link {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    text-decoration: underline;
    margin-bottom: 3px;
}

.contact-link:hover {
    color: #555;
}

.contact-subtext {
    font-size: 12px;
    color: #888;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.footer-social a:hover {
    background: #444;
    transform: scale(1.05);
}

.footer-bottom {
    border-top: 1px solid #f0f0f0;
    padding: 30px 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-links a {
    font-size: 14px;
    color: #444;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-links a:hover {
    color: #000;
}

.footer-copyright {
    text-align: center;
    padding: 15px 20px 30px;
    background: #111;
    color: #fff;
    font-size: 12px;
}
.footer-copyright p {
    margin: 0;
}

/* =========================================
   BREADCRUMBS
   ========================================= */
.breadcrumb-container {
    background: #f9f9f9;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.breadcrumb-container .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 13px;
    color: #666;
}

.breadcrumb-container a {
    color: #333;
}

.breadcrumb-container a:hover {
    text-decoration: underline;
}

/* =========================================
   CATEGORY PAGE
   ========================================= */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-page-layout {
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 60px;
    min-width: 0;
}

.category-product-area {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.sidebar-filters h3 {
    font-size: 11px;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}

.filter-group {
    margin-bottom: 16px;
}

.category-filter-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-filter-list {
    display: block;
}

.filter-list li {
    margin-bottom: 6px;
}

.filter-list a {
    font-size: 11px;
    color: #555;
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 4px;
    border-radius: 5px;
    transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.filter-list a.active, .filter-list a:hover {
    color: #b30000;
    font-weight: 600;
    background: rgba(179, 0, 0, 0.08);
    box-shadow: 0 4px 10px rgba(179, 0, 0, 0.08);
    transform: translateX(1px);
}

.size-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 10px;
}

/* ── Size group visual separators ── */
.size-group-divider {
    position: relative;
    margin: 3px 0 0;
    border-top: 1px solid #e0e0e0;
    padding-top: 6px;
}

.size-group-label,
.size-group-label-top {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #999;
    margin-bottom: 1px;
}

.size-group-label-top {
    margin-bottom: 4px;
}

.size-group-divider,
.size-group-label-top {
    grid-column: 1 / -1;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    cursor: pointer;
    color: #444;
    min-width: 0;
    min-height: 22px;
    padding: 2px 4px;
    border-radius: 6px;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.custom-checkbox:hover {
    background: rgba(17, 17, 17, 0.05);
    box-shadow: 0 6px 14px rgba(17, 17, 17, 0.08);
    transform: translateX(1px);
}

.custom-checkbox input {
    accent-color: #b30000;
}

.filter-checkbox-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.filter-checkbox-row {
    min-height: 20px;
}

.color-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-filter-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.color-filter-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08), 0 6px 14px rgba(17, 17, 17, 0.12);
}

.price-slider {
    width: 100%;
}

.price-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
    margin-top: 8px;
}

.filter-price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.filter-input-label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    color: #666;
}

.filter-number-input {
    width: 100%;
    min-height: 28px;
    border: 1px solid #ddd;
    padding: 0 7px;
    font-size: 11px;
    outline: none;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.filter-number-input:hover,
.filter-number-input:focus {
    border-color: #b30000;
    background: #fffdfd;
    box-shadow: 0 0 0 3px rgba(179, 0, 0, 0.08);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.category-title {
    margin: 0;
    font-size: 24px;
    font-weight: 400;
}

.category-sort select {
    min-width: 170px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 12px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.category-sort select:hover,
.category-sort select:focus {
    border-color: #b30000;
    background: #fffdfd;
    box-shadow: 0 0 0 3px rgba(179, 0, 0, 0.08);
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-apply-button {
    width: 100%;
    min-height: 46px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.filter-clear-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #444;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.18s ease, transform 0.18s ease;
}

.filter-clear-link:hover {
    color: #b30000;
    transform: translateY(-1px);
}

.category-clear-top-link {
    margin-right: 15px;
    font-size: 12px;
    text-decoration: underline;
}

.category-active-filters {
    margin-bottom: 20px;
}

.active-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
    font-size: 13px;
}

.active-filter-remove {
    font-size: 16px;
    line-height: 1;
}

.filter-clear-chip {
    min-height: 36px;
    padding: 6px 4px;
}

.category-pagination-summary {
    margin-bottom: 18px;
    color: #555;
    font-size: 14px;
}

.category-pagination {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.category-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #d7d7d7;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-size: 14px;
}

.category-pagination-link.active {
    border-color: #111;
    background: #111;
    color: #fff;
}

.category-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 40px;
    color: #666;
    white-space: nowrap;
}

.category-mobile-toolbar,
.category-drawer-backdrop,
.category-filter-close {
    display: none;
}

.category-mobile-toolbar {
    gap: 10px;
    margin-bottom: 18px;
}

.category-mobile-trigger {
    flex: 1;
    min-height: 44px;
    border-radius: 6px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.category-mobile-trigger.secondary {
    background: #fff;
    color: #111;
}

.category-filter-close {
    border: 0;
    background: transparent;
    color: #111;
    font-size: 18px;
    cursor: pointer;
}

.category-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.category-chip-list {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    background: #f8f4ea;
    color: #111;
    border: 1px solid #efe6d2;
    font-size: 13px;
}

.category-chip.active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.drawer-title {
    margin: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    color: #333;
    font-size: 14px;
}

.page-num.active, .page-num:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* =========================================
   PRODUCT DETAIL PAGE
   ========================================= */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.main-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.thumb {
    width: 80px;
    height: 106px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.thumb.active, .thumb:hover {
    opacity: 1;
    border: 1px solid #000;
}

.pdp-title {
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.pdp-price-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pdp-price {
    font-size: 24px;
    font-weight: 600;
    color: #111;
}

.pdp-price-old {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.pdp-badge-sale {
    background: #b30000;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    font-weight: bold;
}

.pdp-description {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.pdp-section {
    margin-bottom: 25px;
}

.pdp-section-title {
    font-size: 13px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.pdp-colors {
    display: flex;
    gap: 10px;
}

.color-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-circle.active {
    border-color: #000;
    box-shadow: 0 0 0 2px #fff inset;
}

.pdp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.size-guide-link {
    font-size: 12px;
    text-decoration: underline;
    color: #666;
}

.pdp-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-btn {
    padding: 10px 20px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.size-btn:hover:not(.disabled) {
    border-color: #8a7a69;
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.1);
    transform: translateY(-2px);
    background: #faf8f5;
}

.size-btn.active {
    border-color: #111;
    background: #111;
    color: #fff;
}

.size-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.pdp-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.quantity-picker {
    display: flex;
    border: 1px solid #ccc;
    height: 50px;
}

.qty-btn {
    width: 40px;
    background: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    font-size: 16px;
    outline: none;
}

.btn-primary-add {
    flex: 1;
    background: #b30000;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary-add:hover {
    background: #800000;
}

.btn-heart-pdp {
    width: 50px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 20px;
    cursor: pointer;
}

.pdp-extras {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.extra-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #444;
    margin-bottom: 15px;
}

.extra-item i {
    font-size: 18px;
    color: #111;
}

/* =========================================
   CART & CHECKOUT PAGE
   ========================================= */
.cart-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 420px);
    gap: 28px;
    margin: 28px auto 72px;
    align-items: start;
}

.cart-title {
    font-size: 28px;
    margin: 0 0 22px 0;
    padding-bottom: 14px;
    border-bottom: 1px solid #ece7df;
    letter-spacing: 0.03em;
}

.cart-items-section,
.cart-summary-section {
    min-width: 0;
}

.cart-item-list {
    display: grid;
    gap: 18px;
}

.cart-item {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid #ece7df;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(244, 235, 225, 0.65), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #fdfbf8 100%);
    box-shadow: 0 18px 50px rgba(57, 39, 20, 0.06);
}

.cart-item-img img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: #f7f3ee;
    border-radius: 16px;
    display: block;
}

.cart-item-title {
    font-size: 16px;
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.45;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cart-item-meta {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

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

.cart-item-meta span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cf1f1f;
    flex: 0 0 auto;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #8b5e3c;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.cart-item-remove:hover {
    color: #c81e1e;
}

.cart-item-qty {
    display: inline-flex;
    align-items: center;
    align-self: center;
}

.cart-item-qty form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: #f6f1eb;
    border: 1px solid #ece2d7;
}

.cart-item-qty button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #3c2f24;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 6px 18px rgba(51, 34, 17, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cart-item-qty button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(51, 34, 17, 0.12);
    background: #fff6f1;
}

.cart-item-qty-value {
    min-width: 26px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.cart-item-price {
    font-weight: 800;
    font-size: 20px;
    color: #111827;
    letter-spacing: -0.02em;
}

.cart-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.cart-shipping-form {
    margin-top: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-field {
    padding: 12px 15px;
    border: 1px solid #ccc;
    font-size: 14px;
    outline: none;
}

.input-field.full-width {
    grid-column: 1 / -1;
}

.summary-box {
    position: sticky;
    top: 110px;
    padding: 28px;
    border-radius: 26px;
    border: 1px solid #ece3d8;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(251,247,242,0.98) 100%);
    box-shadow: 0 22px 60px rgba(50, 33, 16, 0.08);
}

.summary-box h2 {
    font-size: 18px;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #4b5563;
    gap: 16px;
}

.summary-divider {
    border: none;
    border-top: 1px solid #e8ddd0;
    margin: 20px 0;
}

.summary-line.total {
    font-size: 20px;
    font-weight: 800;
    color: #111;
}

.btn-checkout {
    width: 100%;
    padding: 16px 18px;
    background: linear-gradient(135deg, #d51b1b 0%, #a70f0f 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 16px 34px rgba(167, 15, 15, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-checkout:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(167, 15, 15, 0.28);
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    font-size: 24px;
    color: #666;
}

@media (max-width: 1100px) {
    .cart-page-layout {
        grid-template-columns: 1fr;
    }

    .summary-box {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-page-layout {
        margin: 18px auto 48px;
        gap: 18px;
    }

    .cart-title {
        font-size: 22px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .cart-item {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
        border-radius: 18px;
    }

    .cart-item-side {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-top: 6px;
    }

    .cart-item-title {
        font-size: 14px;
    }

    .cart-item-price {
        font-size: 18px;
    }

    .summary-box {
        padding: 22px 18px;
        border-radius: 20px;
    }
}

@media (max-width: 520px) {
    .cart-item {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .cart-item-qty form {
        gap: 4px;
        padding: 4px;
    }

    .cart-item-qty button {
        width: 34px;
        height: 34px;
    }

    .cart-item-side {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .summary-line,
    .summary-line.total {
        font-size: 14px;
    }

    .summary-line.total {
        font-size: 18px;
    }
}

/* =========================================
   MEGA MENU STYLES (NEW)
   ========================================= */
.nav-container {
    background: #fff;
}

.main-nav {
    position: relative;
    width: 100%;
    padding: 0 40px;
}

.menu-list {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 15px;
}

.menu-item {
    /* No padding, move to link */
}

.menu-item-row {
    display: flex;
    align-items: stretch;
}

.menu-item-link {
    position: relative;
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    padding: 10px 15px;
    transition: color 0.22s ease, transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
    flex: 1;
    transform-origin: center bottom;
}

.menu-item-link::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 6px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    opacity: 0.8;
    transition: transform 0.22s ease;
}

.menu-item-link:hover {
    color: #000;
    transform: translateY(-1px);
}

.menu-item-link:hover::after,
.menu-item.has-dropdown:hover > .menu-item-row .menu-item-link::after,
.menu-item-link:focus-visible::after {
    transform: scaleX(1);
}

.menu-item-link:active {
    transform: translateY(1px) scale(0.985);
}

.menu-item-link:focus-visible {
    outline: none;
    color: #000;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12);
    border-radius: 2px;
}

/* Sale Menu Item (Výprodej) */
.menu-item.menu-sale .menu-item-link {
    background-color: #d1121c;
    color: #fff;
    padding: 10px 18px;
    border-radius: 2px;
    box-shadow: 0 10px 18px rgba(209, 18, 28, 0.16);
}

.menu-item.menu-sale .menu-item-link::after {
    left: 12px;
    right: 12px;
    bottom: 5px;
    background: rgba(255, 255, 255, 0.92);
}

.menu-item.menu-sale .menu-item-link:hover {
    background-color: #a00d15;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(160, 13, 21, 0.24);
}

.menu-item.menu-sale .menu-item-link:active {
    transform: translateY(1px) scale(0.985);
    box-shadow: 0 8px 16px rgba(160, 13, 21, 0.2);
}

.menu-item.menu-sale .menu-item-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(209, 18, 28, 0.18), 0 10px 18px rgba(209, 18, 28, 0.16);
}

.submenu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #334155;
    cursor: pointer;
    padding: 0 14px;
    font-size: 14px;
}

.submenu-toggle i {
    transition: transform 0.2s ease;
}



/* Dropdown Container */
.mega-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.menu-item.has-dropdown:hover .mega-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.mega-menu-columns {
    display: flex;
    gap: 60px;
    flex: 1;
}

.mega-column h4 {
    font-size: 14px;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.mega-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-column ul li {
    margin-bottom: 10px;
}

.mega-column ul li a {
    font-size: 14px;
    color: #555;
    transition: color 0.2s;
    text-transform: none;
    font-weight: 400;
}

.mega-column ul li a:hover {
    color: #000;
    text-decoration: underline;
}

.mega-column ul li a.view-all {
    font-weight: 600;
    text-decoration: underline;
    margin-top: 10px;
    display: inline-block;
}

.mega-menu-banner {
    width: 300px;
    flex-shrink: 0;
}

.mega-menu-banner img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: #f8f4ef;
    border-radius: 4px;
    display: block;
}

/* =========================================
   RESPONSIVE DESIGN (MOBILES & TABLETS)
   ========================================= */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    padding: 5px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1024px) {
    /* Header Responsive */
    .main-header {
        padding: 10px 16px 12px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
    }

    .header-contact,
    .header-actions {
        display: flex;
        align-items: center;
    }

    .mobile-menu-toggle {
        display: block;
        font-size: 28px;
        justify-self: flex-start;
    }

    .header-contact i.fa-phone, .contact-details {
        display: none; /* Ẩn số điện thoại trên mobile để tiết kiệm diện tích */
    }

    .header-logo {
        display: block;
        min-width: 0;
    }

    .logo {
        gap: 10px;
        justify-content: center;
    }

    .logo img {
        height: 36px;
    }

    .logo-text {
        display: inline-block;
        max-width: 100%;
        white-space: nowrap;
        font-size: clamp(18px, 6vw, 32px) !important;
        letter-spacing: clamp(0.6px, 0.45vw, 1.5px);
        line-height: 1.05;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.08);
    }

    .search-form {
        display: none; /* Ẩn ô tìm kiếm trên mobile, có thể làm nút bấm xổ ra sau */
    }

    .header-actions > .search-live-shell {
        display: none;
    }

    .header-actions {
        min-width: 44px;
        justify-content: flex-end;
    }

    .header-icons {
        display: flex;
        gap: 0;
        align-items: center;
        justify-content: flex-end;
    }

    .action-item i, .action-btn i {
        font-size: 26px;
    }

    .header-icons > .action-item:not(.lang-dropdown-wrapper),
    .cart-dropdown-wrapper {
        display: none;
    }

    .lang-dropdown-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lang-dropdown {
        right: 0;
        left: auto;
        min-width: 196px;
        max-width: min(240px, calc(100vw - 20px));
    }

    .lang-dropdown a {
        padding: 10px 14px;
        font-size: 12px;
    }

    .action-item,
    .action-btn {
        justify-content: center;
    }

    .action-text {
        display: none; /* Ẩn chữ bên dưới Icon trên màn hình nhỏ */
    }

    .cart-preview-dropdown {
        display: none;
    }

    .nav-container {
        display: none;
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(var(--mobile-bottom-nav-space) - 1px);
        max-height: min(68vh, 560px);
        overflow: auto;
        background: #fff;
        border-top: 1px solid #ece3d8;
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -20px 48px rgba(26, 19, 13, 0.16);
        z-index: 1300;
    }

    .nav-container.is-open {
        display: block;
    }

    .mobile-nav-backdrop.is-open {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(17, 17, 17, 0.24);
        z-index: 1250;
    }

    .mobile-search-row {
        display: block;
        padding: 0 16px 14px;
        border-top: 1px solid #f3f3f3;
    }

    .mobile-search-shell {
        width: 100%;
    }

    .mobile-search-form {
        display: flex;
        width: 100%;
        padding: 0 14px;
        height: 46px;
        border: 1px solid #e8ddd2;
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(24, 18, 12, 0.05);
    }

    .mobile-search-form input {
        font-size: 14px;
    }

    .search-live-results-mobile {
        top: calc(100% + 8px);
        left: 0;
        width: 100%;
        border-radius: 18px;
    }

    /* Menu Navigation Responsive */
    .main-nav {
        padding: 12px 20px 18px;
    }

    .menu-list {
        display: none; /* Mặc định ẩn, bật lên bằng JS */
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        background: #fff;
    }

    .menu-list.active {
        display: flex;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: var(--mobile-bottom-nav-offset);
        isolation: isolate;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: start;
        min-height: 74px;
        padding: 8px 10px calc(9px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid #ece3d8;
        border-radius: 20px;
        box-shadow: 0 -16px 34px rgba(26, 19, 13, 0.1);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        z-index: 1400;
        overflow: hidden;
    }

    .mobile-bottom-nav::after {
        content: "";
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: -14px;
        height: 24px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.58);
        filter: blur(14px);
        opacity: 0.95;
        z-index: -1;
        pointer-events: none;
    }

    body.has-mobile-bottom-nav main,
    body.has-mobile-bottom-nav .site-footer {
        padding-bottom: var(--mobile-bottom-nav-space);
    }

    .menu-item {
        width: 100%;
        border-bottom: 1px solid #f5f5f5;
    }

    .menu-item-row {
        align-items: center;
    }

    .menu-item-link {
        display: block;
        padding: 15px 0;
        width: 100%;
        border-radius: 12px;
        transition: background-color 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
    }

    .menu-item-link::after {
        display: none;
    }

    .menu-item-link:hover,
    .menu-item-link:active,
    .menu-item-link:focus-visible,
    .menu-item.active > .menu-item-row .menu-item-link,
    .menu-item.has-dropdown:hover > .menu-item-row .menu-item-link {
        background: #f7efe5;
        color: #111;
        padding-left: 12px;
        transform: none;
    }

    .menu-item.active > .menu-item-row {
        background: #fcf6ef;
        border-radius: 14px;
    }

    .submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        border-radius: 12px;
        transition: background-color 0.18s ease, color 0.18s ease;
    }

    .menu-item.active > .menu-item-row .submenu-toggle,
    .submenu-toggle:hover,
    .submenu-toggle:focus-visible {
        background: #f1e4d4;
        color: #111;
    }

    .menu-item.active .submenu-toggle i {
        transform: rotate(180deg);
    }

    /* Mega Menu Dropdown Responsive */
    .mega-menu-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none; /* Dùng JS thả xuống kiểu Accordion */
        border-top: none;
        background: #fafafa;
        padding-left: 15px;
    }

    .menu-item.active .mega-menu-dropdown {
        display: block;
    }

    .mega-menu-content {
        padding: 15px 0;
        flex-direction: column;
        gap: 20px;
    }

    .mega-menu-columns {
        flex-direction: column;
        gap: 20px;
    }

    .mega-menu-banner {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Slider Responsive: Giữ khung banner cố định, ảnh tự co vừa khung */
    .hero-slider {
        aspect-ratio: 16 / 9;
    }

    .slide img {
        object-fit: cover;
        object-position: center;
    }

    /* Product Grid Responsive */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-product-area,
    .product-grid,
    .product-card {
        overflow-x: hidden;
    }

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

    .sidebar-filters {
        display: none;
    }

    .category-mobile-toolbar {
        display: flex;
        align-items: stretch;
    }

    .category-chip-list {
        display: flex;
    }

    .category-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "title title"
            "toolbar sort";
        align-items: stretch;
        gap: 12px;
    }

    .category-title {
        grid-area: title;
    }

    .category-mobile-toolbar {
        grid-area: toolbar;
        margin-bottom: 0;
    }

    .category-mobile-trigger.secondary {
        display: none;
    }

    .category-sort {
        grid-area: sort;
        width: 100%;
        display: flex;
        align-items: stretch;
    }

    .category-sort select {
        width: 100%;
        min-height: 44px;
    }

    .category-pagination {
        justify-content: flex-start;
        gap: 6px;
        margin-top: 22px;
        padding: 0 2px 8px;
        -webkit-overflow-scrolling: touch;
    }

    .category-pagination-link {
        min-width: 36px;
        min-height: 36px;
        padding: 0 10px;
        font-size: 13px;
        flex: 0 0 auto;
    }

    .category-pagination-ellipsis {
        min-width: 18px;
        min-height: 36px;
        flex: 0 0 auto;
    }

    .category-clear-top-link {
        display: none;
    }

    .category-drawer-backdrop {
        position: fixed;
        inset: 0;
        display: none;
        justify-content: flex-start;
        align-items: stretch;
        background: rgba(15, 23, 42, 0.45);
        z-index: 1200;
    }

    .category-drawer-backdrop.active {
        display: flex;
    }

    .category-drawer-panel {
        width: min(92vw, 380px);
        height: 100%;
        background: #fff;
        padding: 18px 16px 22px;
        overflow-y: auto;
        box-shadow: 12px 0 30px rgba(15, 23, 42, 0.15);
    }

    .category-filter-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        min-height: 40px;
    }

    .category-panel-header {
        margin-bottom: 16px;
    }
}

@media (max-width: 576px) {
    /* Mobile Siêu Nhỏ */
    .hero-slider {
        aspect-ratio: 4 / 3;
    }

    .main-header {
        padding: 10px 8px 12px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
    }

    .header-logo .logo img {
        height: 30px;
    }

    .logo-text {
        font-size: clamp(16px, 5.8vw, 24px) !important;
        letter-spacing: clamp(0.4px, 0.35vw, 1px);
    }
    
    .action-item i, .action-btn i {
        font-size: 22px;
    }

    .mobile-search-row {
        padding: 0 12px 12px;
    }

    .mobile-search-form {
        height: 42px;
        padding: 0 12px;
    }

    .mobile-search-form input {
        font-size: 13px;
    }

    .search-live-item {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 10px;
        padding: 10px 12px;
    }

    .search-live-thumb {
        width: 54px;
        border-radius: 10px;
    }

    .search-live-name {
        font-size: 13px;
    }

    .search-live-price {
        font-size: 12px;
    }

    .mobile-bottom-nav {
        min-height: 68px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .mobile-bottom-nav-item span {
        font-size: 10px;
    }

    /* Product Grid Mobile */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .container.category-page-layout {
        padding-left: 12px;
        padding-right: 12px;
    }

    .product-card .product-meta {
        gap: 8px;
    }

    .product-card .product-attributes {
        max-width: 56%;
    }

    .product-card .variant-swatches,
    .product-card .size-swatches,
    .product-card .color-swatches {
        gap: 3px;
    }

    .container {
        padding: 0 12px;
    }

    .category-title {
        font-size: 22px;
    }

    .category-mobile-trigger,
    .category-chip {
        font-size: 12px;
    }

    .product-title {
        font-size: 11px;
    }

    .price-current {
        font-size: 12px;
    }

    .cart-text {
        font-size: 11px;
    }

    .btn-heart {
        width: 28px;
        height: 28px;
        font-size: 12px;
        bottom: 5px;
        right: 5px;
    }
}

.search-page {
    padding: 24px 0 48px;
    background: #fff;
}

.search-page-header {
    margin-bottom: 24px;
}

.search-page-breadcrumb {
    margin: 0 0 10px;
    color: #7b6c5f;
    font-size: 13px;
}

.search-page-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: 0.03em;
    color: #1c1713;
}

.search-page-summary {
    margin: 12px 0 0;
    color: #5f5348;
    font-size: 15px;
}

.search-empty-state {
    padding: 28px 24px;
    border: 1px solid #ece3d8;
    border-radius: 24px;
    background: #fbf7f1;
    color: #4d433b;
}

.search-empty-state p {
    margin: 0;
}

.search-empty-state p + p {
    margin-top: 8px;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.search-result-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-result-image-link {
    display: block;
    aspect-ratio: 3 / 4;
    background: #f8f4ef;
    border-radius: 20px;
    overflow: hidden;
}

.search-result-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-result-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-result-name {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.search-result-price {
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .search-results-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 576px) {
    .search-page {
        padding: 18px 0 36px;
    }

    .search-page-summary {
        font-size: 14px;
    }

    .search-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .search-result-image-link {
        border-radius: 16px;
    }

    .search-result-name {
        font-size: 13px;
    }

    .search-result-price {
        font-size: 14px;
    }
}

/* =========================================
   IMAGE OPTIMIZATION – LQIP & RESPONSIVE
   ========================================= */

/* Wrapper with aspect-ratio to prevent layout shift */
.optimized-image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
}

/* LQIP blur placeholder */
.optimized-image-lqip {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(15px);
    transform: scale(1.1); /* prevent blur edge artifacts */
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

/* Real image inside <picture> */
.optimized-image-wrapper picture {
    display: block;
    width: 100%;
    height: 100%;
}

.optimized-image-wrapper picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fade transition when image loaded */
.optimized-image-wrapper.is-loaded .optimized-image-lqip {
    opacity: 0;
}
