:root {
    --ink: #2b2427;
    --muted: #766c70;
    --line: #eadfe2;
    --rose: #c95770;
    --rose-dark: #9d3f55;
    --soft: #fff7f4;
    --cream: #fffaf7;
    --green: #2f7a4f;
    --shadow: 0 16px 44px rgba(63, 40, 48, .12);
    --site-logo-width: 170px;
    --site-logo-height: 80px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, h5, h6, strong { font-weight: 700; }
.top-strip {
    background: var(--ink);
    color: #fff;
    text-align: center;
    font-size: 13px;
    padding: 8px 12px;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}
.nav-wrap {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 76px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: var(--site-logo-width); height: var(--site-logo-height); object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav > a, .nav-menu > a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 11px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #51484c;
}
.main-nav > a:hover, .main-nav > a.active, .nav-menu:hover > a, .nav-menu.active > a { background: var(--soft); color: var(--rose-dark); }
.nav-menu { position: relative; }
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 520px;
    display: none;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow);
}
.nav-menu:hover .mega-menu { display: grid; }
.mega-menu a { display: block; color: var(--muted); font-size: 13px; padding: 4px 0; }
.mega-menu .mega-title { color: var(--ink); font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.search { width: min(240px, 22vw); }
.search input, .filters input, .filters select, .buy-box select, .buy-box input, .checkout-form input, .checkout-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 42px;
    padding: 10px 12px;
    background: #fff;
}
.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ink);
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}
.cart-link span[data-cart-count] {
    min-width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--rose);
    font-size: 12px;
}
.account-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 999px;
    padding: 0 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.cart-link i, .account-link i { font-size: 16px; }
.menu-toggle { display: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 42px; }
.flash { max-width: 1240px; margin: 16px auto 0; padding: 12px 16px; background: #edf8f1; color: var(--green); border: 1px solid #ccebd8; border-radius: 10px; }
.app-loader {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .68);
    backdrop-filter: blur(3px);
}
.app-loader[hidden] {
    display: none;
}
.app-loader-box {
    min-width: 132px;
    min-height: 112px;
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 22px 26px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
    font-weight: 600;
}
.app-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #f1dce2;
    border-top-color: var(--rose);
    border-radius: 999px;
    animation: app-spin .72s linear infinite;
}
@keyframes app-spin {
    to { transform: rotate(360deg); }
}
.section { max-width: 1240px; margin: 0 auto; padding: 44px 18px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h1, .section-head h2 { margin: 0; font-size: clamp(24px, 2.7vw, 34px); font-weight: 700; }
.section-head a { color: var(--rose-dark); font-weight: 600; }
.hero-slider { position: relative; min-height: 560px; overflow: hidden; background: var(--soft); }
.hero-slide {
    position: absolute;
    inset: 0;
    min-height: 560px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.025);
    transition: opacity .72s ease, transform 1.4s ease, visibility .72s ease;
    pointer-events: none;
}
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(255, 250, 247, .48) 0%, rgba(255, 250, 247, .32) 34%, rgba(255, 250, 247, .1) 64%, rgba(255, 250, 247, .02) 100%),
        linear-gradient(0deg, rgba(43, 36, 39, .08), rgba(43, 36, 39, .01) 48%);
    pointer-events: none;
}
.hero-slide.image-only::before { display: none; }
.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
    z-index: 1;
}
.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 8px 24px rgba(43, 36, 39, .14);
}
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }
.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 7px;
}
.hero-dots button {
    width: 8px;
    height: 8px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .68);
    cursor: pointer;
}
.hero-dots button.active {
    width: 24px;
    background: #fff;
}
.hero-copy {
    position: relative;
    z-index: 2;
    width: min(560px, calc(100% - 36px));
    margin-left: max(18px, calc((100vw - 1240px) / 2 + 18px));
    padding: 20px 0;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease .18s, transform .55s ease .18s;
}
.hero-slide.active .hero-copy {
    opacity: 1;
    transform: translateY(0);
}
.hero-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 4.6vw, 60px);
    line-height: 1;
    letter-spacing: 0;
    font-weight: 700;
    -webkit-text-stroke: 1px rgba(43, 36, 39, .18);
    text-shadow: 0 2px 6px rgba(255, 255, 255, .82), 0 10px 28px rgba(43, 36, 39, .24);
}
.hero-copy p { margin: 0 0 24px; max-width: 500px; color: #3f373a; font-size: 18px; line-height: 1.55; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--rose);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.btn:hover { background: var(--rose-dark); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--soft);
    border: 1px solid var(--line);
}
.category-card img { width: 100%; height: 100%; object-fit: cover; min-height: 190px; }
.category-card span { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); border-radius: 999px; padding: 7px 11px; font-weight: 700; }
.promo-section { padding-top: 18px; }
.banner-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .9fr);
    grid-template-rows: repeat(2, minmax(180px, 1fr));
    gap: 16px;
}
.promo-banner {
    position: relative;
    min-height: 180px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--soft);
    isolation: isolate;
}
.promo-banner.featured {
    grid-row: span 2;
    min-height: 380px;
}
.promo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}
.promo-banner:hover img { transform: scale(1.035); }
.promo-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(43, 36, 39, .55), rgba(43, 36, 39, .06) 62%);
}
.promo-banner span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    max-width: min(320px, calc(100% - 36px));
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.08;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .2);
}
.promo-banner.featured span { font-size: clamp(26px, 3vw, 40px); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.related-products {
    padding-top: 12px;
}
.related-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 280px);
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    padding: 2px 2px 12px;
    scrollbar-width: thin;
}
.related-slider .product-card {
    scroll-snap-align: start;
}
.related-loader {
    color: var(--muted);
    font-size: 13px;
    padding: 8px 2px 0;
}
.related-loader[hidden] {
    display: none;
}
.product-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-media { position: relative; display: block; background: var(--soft); }
.product-card-slider {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.product-card-slider a {
    display: block;
    width: 100%;
    height: 100%;
}
.product-media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.product-card-slider .card-slide {
    display: none;
    width: 100%;
    height: 100%;
}
.product-card-slider .card-slide.active { display: block; }
.card-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity .18s ease, transform .18s ease;
    padding: 0;
    min-height: 32px;
    min-width: 32px;
}
.card-arrow.prev { left: 9px; }
.card-arrow.next { right: 9px; }
.product-card:hover .card-arrow {
    opacity: 1;
}
.card-arrow:hover {
    transform: translateY(-50%) scale(1.06);
}
.card-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 9px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 5px;
}
.card-dots button {
    width: 7px;
    height: 7px;
    min-height: 0;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    cursor: pointer;
}
.card-dots button.active {
    width: 18px;
    background: #fff;
}
.sale-badge { position: absolute; top: 10px; left: 10px; background: var(--rose); color: #fff; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 700; }
.product-body { padding: 13px; display: grid; gap: 8px; }
.product-body p { margin: 0; color: var(--muted); font-size: 12px; }
.product-body h3 { margin: 0; font-size: 16px; line-height: 1.35; min-height: 44px; font-weight: 600; }
.product-price { display: flex; gap: 9px; align-items: center; }
.product-price del, .price del { color: var(--muted); font-size: 13px; }
.product-actions button {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--ink);
    background: #fff;
    color: var(--ink);
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}
.product-actions button:hover { background: var(--ink); color: #fff; }
.product-actions {
    display: grid;
    grid-template-columns: 1fr 74px;
    gap: 8px;
}
.product-actions button:first-child {
    border-color: var(--line);
}
.load-more-wrap {
    display: flex;
    justify-content: center;
    padding-top: 26px;
}
.load-more-btn[hidden] {
    display: none;
}
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.filters {
    position: sticky;
    top: 104px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}
.filters h2 { margin: 0 0 14px; font-size: 22px; font-weight: 700; }
.filters form, .buy-box, .checkout-form { display: grid; gap: 13px; }
label { display: grid; gap: 6px; color: #51484c; font-size: 13px; font-weight: 600; }
.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 38px; align-items: start; }
.zoomable-image {
    position: relative;
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}
.main-image { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 10px; }
.thumbs button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 0; overflow: hidden; cursor: pointer; }
.thumbs img { aspect-ratio: 1 / 1; object-fit: cover; }
.eyebrow { color: var(--rose-dark); font-weight: 700; }
.product-info h1 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.05; margin: 0 0 12px; font-weight: 700; }
.price { display: flex; gap: 12px; align-items: center; font-size: 25px; font-weight: 700; margin-bottom: 16px; }
.buy-box { width: min(100%, 520px); padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); }
.size-chart-panel {
    margin: 16px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    width: min(100%, 520px);
}
.size-chart-panel.compact {
    margin-top: 14px;
    max-width: 360px;
}
.size-chart-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}
.size-chart-panel img {
    width: 100%;
    border-radius: 6px;
    background: var(--soft);
}
.description { color: #554b4f; line-height: 1.7; }
.cart-page h1, .checkout h1 { margin-top: 0; }
.cart-row {
    display: grid;
    grid-template-columns: 86px 1fr 90px 120px 90px;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.cart-row img { width: 86px; height: 86px; object-fit: cover; border-radius: 8px; background: var(--soft); }
.cart-row span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.cart-row input { min-height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.cart-row button { border: 0; background: transparent; color: var(--rose-dark); font-weight: 700; cursor: pointer; }
.cart-summary { display: flex; justify-content: end; align-items: center; gap: 16px; padding-top: 18px; }
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.contact-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 24px;
    align-items: start;
}
.contact-info {
    display: grid;
    gap: 12px;
}
.contact-info div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 4px 12px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--cream);
}
.contact-info i {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: var(--rose-dark);
}
.contact-info span {
    color: var(--muted);
    font-size: 13px;
}
.contact-info strong {
    overflow-wrap: anywhere;
}
.contact-form {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    min-height: 150px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
}
.contact-form input {
    min-height: 42px;
}
.contact-form textarea {
    resize: vertical;
}
.checkout-form, .order-summary {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: #fff;
}
.checkout-form textarea { min-height: 120px; resize: vertical; }
.delivery-options {
    display: grid;
    gap: 10px;
    margin: 4px 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--cream);
}
.delivery-options-title {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}
.delivery-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}
.delivery-option input {
    width: 16px;
    height: 16px;
}
.coupon-box {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 10px;
}
.coupon-box label {
    margin: 0;
}
.coupon-box .btn {
    min-height: 42px;
    padding-inline: 18px;
}
.coupon-box .btn.secondary {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}
.coupon-alert {
    margin-top: -4px;
    padding: 9px 11px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.35;
}
.coupon-alert.success {
    border: 1px solid #b7dfc7;
    background: #eefaf2;
    color: #17643a;
}
.coupon-alert.error {
    border: 1px solid #efc1c1;
    background: #fff1f1;
    color: #9b2525;
}
.coupon-alert.muted {
    border: 1px solid var(--line);
    background: var(--cream);
    color: var(--muted);
}
.order-summary { display: grid; gap: 12px; }
.order-summary h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.order-summary div { display: flex; justify-content: space-between; gap: 14px; color: #51484c; }
.order-summary .checkout-items {
    display: grid;
    gap: 10px;
}
.order-summary .checkout-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.checkout-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--soft);
}
.checkout-item div {
    display: grid;
    gap: 4px;
}
.checkout-item span {
    color: var(--ink);
    font-weight: 700;
}
.checkout-item small {
    color: var(--muted);
    font-size: 12px;
}
.order-summary .grand { border-top: 1px solid var(--line); padding-top: 12px; font-size: 18px; color: var(--ink); }
.confirmation-page {
    max-width: 980px;
}
.confirmation-card {
    display: grid;
    gap: 20px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow);
}
.confirmation-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.confirmation-head span,
.confirmation-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 4px;
}
.confirmation-head h1 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
}
.confirmation-head > strong {
    color: var(--rose-dark);
    font-size: 26px;
}
.confirmation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.confirmation-grid > div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--cream);
}
.confirmation-grid .wide {
    grid-column: 1 / -1;
}
.confirmation-items {
    display: grid;
    gap: 10px;
}
.confirmation-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.confirmation-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--soft);
}
.confirmation-item span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}
.confirmation-totals {
    display: grid;
    gap: 10px;
    justify-self: end;
    width: min(100%, 360px);
}
.confirmation-totals div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.confirmation-totals .grand {
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 18px;
}
.confirmation-actions {
    display: flex;
    justify-content: flex-end;
}
.site-footer {
    margin-top: 36px;
    background: var(--ink);
    color: #fff;
    display: grid;
    grid-template-columns: 1.6fr .9fr 1.3fr 1.2fr;
    gap: 24px;
    padding: 36px max(18px, calc((100vw - 1240px) / 2 + 18px));
}
.site-footer img { width: var(--site-logo-width); height: var(--site-logo-height); object-fit: contain; background: #fff; border-radius: 10px; margin-bottom: 10px; }
.site-footer a, .site-footer p { display: block; color: rgba(255,255,255,.72); margin: 7px 0 0; }
.site-footer p:empty { display: none; }
.site-footer p i { margin-right: 7px; color: #fff; }
.site-footer [data-footer-policy] {
    line-height: 1.55;
}
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 90;
    width: min(420px, 100vw);
    height: 100vh;
    background: #fff;
    box-shadow: -18px 0 46px rgba(43, 36, 39, .18);
    transform: translateX(105%);
    transition: transform .22s ease;
    display: grid;
    grid-template-rows: auto 1fr;
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head {
    min-height: 68px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
}
.drawer-head strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}
.drawer-head button, .site-modal-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    cursor: pointer;
    font-size: 22px;
}
[data-cart-drawer-body] { overflow: auto; padding: 16px; }
.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(43, 36, 39, .38);
}
.drawer-item {
    display: grid;
    grid-template-columns: 74px 1fr 34px;
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.drawer-item img { width: 74px; height: 74px; object-fit: cover; border-radius: 8px; background: var(--soft); }
.drawer-item span { display: block; color: var(--muted); font-size: 12px; margin: 4px 0 8px; }
.drawer-item input { width: 76px; min-height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.drawer-item button {
    border: 0;
    background: transparent;
    color: var(--rose-dark);
    font-size: 16px;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.drawer-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.drawer-total.grand { font-size: 19px; border-bottom: 0; }
.empty-cart { color: var(--muted); }
.site-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(43, 36, 39, .42);
}
.site-modal[hidden], .drawer-backdrop[hidden] { display: none; }
.site-modal-panel {
    position: relative;
    width: min(780px, 100%);
    max-height: min(760px, calc(100vh - 36px));
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 22px;
}
.site-modal-panel.quick-view-panel {
    width: min(880px, 100%);
    overflow: hidden;
    border-radius: 16px;
    padding: 0;
}
.quick-view-panel [data-modal-body] {
    max-height: min(760px, calc(100vh - 36px));
    overflow: auto;
    border-radius: inherit;
}
.site-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}
.quick-view-panel .site-modal-close {
    top: 16px;
    right: 28px;
    box-shadow: 0 8px 22px rgba(43, 36, 39, .14);
}
.modal-error {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    margin: 0 48px 16px 0;
    padding: 13px 14px;
    border: 1px solid #efbdc7;
    border-left: 4px solid var(--rose-dark);
    border-radius: 10px;
    background: linear-gradient(180deg, #fff6f8, #fff1f4);
    color: #8f3349;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 26px rgba(157, 63, 85, .1);
}
.modal-error i {
    margin-top: 1px;
    color: var(--rose-dark);
    font-size: 17px;
}
.quick-view {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 22px;
    align-items: start;
}
.quick-view-panel .quick-view {
    padding: 22px;
    border-radius: inherit;
    background: #fff;
}
.quick-view-main { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: var(--soft); }
.quick-view-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.quick-view-thumbs button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}
.quick-view-thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--soft); }
.quick-view h2, .auth-panel h2 { margin: 0 0 10px; font-size: 28px; font-weight: 700; }
.quick-buy {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}
.quick-buy input, .quick-buy select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
}
.image-zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(20, 16, 18, .78);
}
.image-zoom-modal[hidden] {
    display: none;
}
.image-zoom-modal img {
    max-width: min(1100px, 100%);
    max-height: 76vh;
    object-fit: contain;
    border-radius: 10px;
    background: var(--soft);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .3);
}
.image-zoom-close {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 131;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
    font-size: 24px;
    cursor: pointer;
}
.image-zoom-arrow {
    position: fixed;
    top: 50%;
    z-index: 131;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
}
.image-zoom-arrow.prev { left: 18px; }
.image-zoom-arrow.next { right: 18px; }
.image-zoom-arrow[hidden] { display: none; }
.image-zoom-thumbs {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 131;
    display: flex;
    gap: 10px;
    max-width: min(760px, calc(100vw - 32px));
    padding: 10px;
    overflow-x: auto;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
}
.image-zoom-thumbs[hidden] {
    display: none;
}
.image-zoom-thumbs button {
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}
.image-zoom-thumbs button.active {
    border-color: var(--accent);
}
.image-zoom-thumbs img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    border-radius: 7px;
    box-shadow: none;
}
.auth-panel {
    max-width: 520px;
    margin: 0 auto;
}
.auth-hero {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 16px;
    align-items: center;
    margin: -4px -4px 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
}
.auth-hero img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 8px 22px rgba(43, 36, 39, .08);
}
.auth-hero span {
    display: block;
    color: var(--rose-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 5px;
}
.auth-hero h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.08;
    font-weight: 700;
}
.auth-hero p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.45;
}
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 6px;
    background: #f7f1f3;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 16px;
}
.auth-tabs button {
    border: 0;
    background: transparent;
    border-radius: 9px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    color: var(--muted);
}
.auth-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 4px 16px rgba(43, 36, 39, .08); }
.auth-form {
    display: grid;
    gap: 14px;
}
.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.auth-form input,
.auth-form textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 11px 12px;
    background: #fff;
}
.auth-form textarea {
    min-height: 88px;
    resize: vertical;
}
.auth-form input:focus,
.auth-form textarea:focus {
    outline: 3px solid rgba(201, 87, 112, .16);
    border-color: rgba(201, 87, 112, .55);
}
.auth-submit {
    width: 100%;
    margin-top: 2px;
}
.account-card {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}
.account-card div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}
.account-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}
@media (max-width: 980px) {
    .menu-toggle { display: inline-grid; place-items: center; }
    .main-nav {
        display: none;
        position: absolute;
        top: 124px;
        left: 0;
        right: 0;
        padding: 14px 18px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
    }
    .main-nav.open { display: flex; }
    .nav-menu:hover .mega-menu { display: none; }
    .mega-menu { position: static; min-width: 0; box-shadow: none; grid-template-columns: 1fr; }
    .search { display: none; }
    .account-link { margin-left: auto; }
    .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
    .related-slider { grid-auto-columns: minmax(220px, 42vw); }
    .banner-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
    .promo-banner.featured { grid-row: auto; min-height: 260px; }
    .promo-banner { min-height: 210px; }
    .shop-layout, .product-detail, .checkout, .contact-layout { grid-template-columns: 1fr; }
    .confirmation-grid { grid-template-columns: 1fr; }
    .filters { position: static; }
    .cart-row { grid-template-columns: 70px 1fr; }
    .cart-row input, .cart-row > div:nth-child(4), .cart-row button { grid-column: 2; }
    .site-footer { grid-template-columns: 1fr; }
    .quick-view { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .nav-wrap { gap: 10px; min-height: 70px; }
    .account-link,
    .cart-link {
        width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
        justify-content: center;
        gap: 0;
    }
    .account-link span,
    .cart-link .cart-label {
        display: none;
    }
    .cart-link span[data-cart-count] {
        position: absolute;
        top: -5px;
        right: -5px;
        min-width: 18px;
        height: 18px;
        display: inline-grid;
        place-items: center;
        border-radius: 999px;
        background: var(--rose);
        font-size: 10px;
        border: 2px solid #fff;
    }
    .cart-link { position: relative; }
    .hero-slider, .hero-slide { min-height: 470px; }
    .hero-slider.image-only-active {
        aspect-ratio: var(--hero-aspect-ratio, 16 / 9);
        height: auto;
        min-height: 0;
        max-height: 70vh;
    }
    .hero-slider.image-only-active .hero-slide {
        min-height: 0;
    }
    .hero-slide.image-only {
        background-size: contain;
        background-repeat: no-repeat;
        background-color: var(--soft);
    }
    .hero-arrow {
        width: 34px;
        height: 34px;
        font-size: 22px;
    }
    .hero-arrow.prev { left: 8px; }
    .hero-arrow.next { right: 8px; }
    .hero-slide::before {
        background:
            linear-gradient(180deg, rgba(255, 250, 247, .48) 0%, rgba(255, 250, 247, .34) 48%, rgba(255, 250, 247, .14) 100%),
            linear-gradient(0deg, rgba(43, 36, 39, .08), rgba(43, 36, 39, .01));
    }
    .hero-copy {
        width: min(520px, calc(100% - 64px));
        margin-left: 44px;
    }
    .category-grid, .product-grid, .banner-grid { grid-template-columns: 1fr; }
    .related-slider { grid-auto-columns: minmax(210px, 78vw); }
    .promo-banner, .promo-banner.featured { min-height: 190px; }
    .promo-banner span, .promo-banner.featured span { font-size: 22px; }
    .section { padding: 32px 14px; }
    .auth-hero { grid-template-columns: 1fr; text-align: center; }
    .auth-hero img { margin: 0 auto; }
    .auth-grid { grid-template-columns: 1fr; }
    .account-card div { display: grid; gap: 4px; }
    .confirmation-head,
    .confirmation-actions {
        align-items: flex-start;
        flex-direction: column;
    }
    .confirmation-item {
        grid-template-columns: 60px 1fr;
    }
    .confirmation-item b {
        grid-column: 2;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-copy,
    .app-spinner {
        transition: none;
        animation: none;
    }
}
