:root {
    --cream: #faf8f5;
    --paper: #fffdfa;
    --sand: #eee8df;
    --sand-dark: #d7c8b3;
    --gold: #c5a059;
    --ink: #1f1f1f;
    --muted: #77736d;
    --line: #e8e2d9;
    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.announcement { padding: 7px 20px; background: var(--ink); color: #fff; text-align: center; font-size: 10px; letter-spacing: .13em; }
.site-header { position: relative; z-index: 10; background: var(--paper); border-bottom: 1px solid rgba(31,31,31,.06); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; gap: 11px; align-items: center; font-family: var(--serif); font-size: 20px; line-height: 1.15; white-space: nowrap; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: 20px; font-style: italic; }
.brand-logo { display: block; width: auto; max-width: 130px; height: auto; max-height: 48px; object-fit: contain; }
.brand small { display: block; margin-top: 6px; color: var(--muted); font: 8px var(--sans); letter-spacing: .18em; }
.main-nav { display: flex; align-items: center; gap: clamp(13px, 1.8vw, 23px); }
.main-nav a, .header-actions { font-size: 12px; }
.main-nav a { position: relative; padding: 8px 0; color: #56534e; white-space: nowrap; }
.main-nav a::after { position: absolute; right: 0; bottom: 1px; left: 0; height: 1px; background: var(--gold); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.marketplace-link { padding: 7px 10px; border: 1px solid var(--gold); color: #806b47; font-size: 10px; }
.marketplace-link:hover { background: var(--gold); color: white; }
.cart-link span { display: inline-grid; min-width: 21px; height: 21px; margin-left: 4px; place-items: center; border-radius: 50%; background: var(--sand); font-size: 10px; }
.menu-toggle { display: none; border: 0; background: none; color: var(--ink); font-size: 20px; }
.hero { position: relative; min-height: 620px; overflow: hidden; background: #e8e1d8; }
.hero-image { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246,242,235,.96) 0%, rgba(246,242,235,.89) 35%, rgba(246,242,235,.14) 75%), url("https://images.unsplash.com/photo-1611652022419-a9419f74343d?w=2000&q=90") center 43% / cover; }
.hero-content { position: relative; min-height: 620px; padding-top: 136px; }
.eyebrow { margin: 0 0 16px; color: #88734e; font-size: 9px; font-weight: 600; letter-spacing: .2em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.16; }
.hero h1 { margin: 0 0 17px; font-size: clamp(48px, 6.7vw, 82px); letter-spacing: -.035em; }
.hero h1 em, .page-hero h1 em, .story-copy h2 em { color: #a48a5d; font-weight: 400; }
.hero-content > p:not(.eyebrow) { max-width: 390px; margin-bottom: 29px; color: #5d5952; font-size: 14px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 18px; padding: 0 23px; border: 1px solid transparent; font-size: 11px; font-weight: 600; letter-spacing: .03em; transition: background .2s, color .2s, border-color .2s; }
.button span { font-size: 16px; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #4a4338; }
.button-outline { border-color: #bfb4a3; color: var(--ink); background: transparent; }
.button-outline:hover { border-color: var(--ink); }
.button-full { width: 100%; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.icon-arrow-up-right { display: inline-block; width: .9em; height: .9em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.1em; }
.button .icon-arrow-up-right { width: 14px; height: 14px; }
.text-link .icon-arrow-up-right { width: 12px; height: 12px; }
.hero-note { position: absolute; bottom: 32px; left: 32px; color: #77716a; font-size: 8px; letter-spacing: .18em; }
.hero-caption { position: absolute; right: max(32px, calc((100% - 1200px)/2)); bottom: 43px; color: white; font-size: 9px; letter-spacing: .15em; line-height: 1.8; text-align: right; text-shadow: 0 1px 5px #333; }
.section { padding-block: 94px; }
.category-section { padding-top: 87px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 34px; }
.section-heading h2, .care-inner h2, .story-copy h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.025em; }
.text-link { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--gold); font-size: 11px; }
.text-link span { font-size: 15px; }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.category-card { position: relative; height: 275px; overflow: hidden; background: var(--sand); }
.category-card::after { position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.4)); content: ""; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-card:hover img { transform: scale(1.05); }
.category-card span { position: absolute; z-index: 1; bottom: 19px; left: 18px; color: #fff; font-family: var(--serif); font-size: 22px; }
.category-card i { position: absolute; z-index: 1; right: 17px; bottom: 23px; color: white; font-style: normal; }
.category-card .icon-arrow-up-right { width: 17px; height: 17px; }
.featured-section { background: #f7f4ef; }
.featured-section .section { padding-block: 83px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.product-photo { position: relative; display: block; overflow: hidden; aspect-ratio: .86; background: var(--sand); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-photo img { transform: scale(1.045); }
.badge { position: absolute; top: 13px; left: 13px; padding: 5px 9px; background: rgba(255,253,250,.92); color: #725e3b; font-size: 9px; letter-spacing: .04em; }
.product-info { padding-top: 13px; }
.product-info .eyebrow { margin-bottom: 5px; font-size: 8px; letter-spacing: .12em; }
.product-info h3 { margin-bottom: 7px; font-size: 17px; }
.product-info h3 a:hover { color: #88734e; }
.price { font-size: 12px; font-weight: 600; }
.price del, .detail-price del { margin-left: 8px; color: #a39d94; font-size: 11px; font-weight: 400; }
.story-section { display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: 11%; padding-block: 104px; }
.story-photo { position: relative; height: 490px; background: var(--sand); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-photo span { position: absolute; right: -24px; bottom: 22px; padding: 11px 15px; background: var(--paper); font-size: 8px; letter-spacing: .14em; }
.story-copy h2 { margin-bottom: 21px; font-size: clamp(39px, 5vw, 59px); }
.story-copy > p:not(.eyebrow) { max-width: 400px; margin-bottom: 25px; color: var(--muted); font-size: 13px; }
.care-strip { background: #eee8df; }
.care-inner { display: flex; min-height: 230px; align-items: center; justify-content: space-between; gap: 36px; }
.care-inner .eyebrow { margin-bottom: 8px; }
.care-inner h2 { font-size: 33px; }
.care-inner > p { max-width: 340px; margin: 0; color: #625e57; font-size: 12px; }
.site-footer { padding-top: 60px; background: #252421; color: #f9f7f3; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 55px; padding-bottom: 50px; }
.footer-brand { color: white; }
.footer-brand small { color: #bbb4a8; }
.footer-grid p { max-width: 250px; margin: 17px 0 0; color: #bbb7b0; font-size: 11px; }
.footer-grid h3 { margin: 4px 0 16px; font-family: var(--sans); font-size: 11px; font-weight: 600; }
.footer-grid > div:not(:first-child) > a:not(.footer-social) { display: block; margin: 9px 0; color: #bbb7b0; font-size: 11px; }
.footer-social { display: inline-block; margin-top: 13px; color: #e4c990; font-size: 11px; }
.footer-bottom { display: flex; justify-content: space-between; padding-block: 17px; border-top: 1px solid #44413b; color: #aaa59d; font-size: 9px; }
.page-hero { padding-block: 78px 70px; background: var(--cream); text-align: center; }
.page-hero h1 { margin-bottom: 15px; font-size: clamp(42px, 5vw, 60px); }
.page-hero > .wrap > p:last-child { max-width: 570px; margin: 0 auto; color: var(--muted); font-size: 13px; }
.catalog-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding-block: 48px 90px; }
.filters { align-self: start; padding: 20px 18px; border: 1px solid var(--line); }
.filters h2 { margin-bottom: 20px; font-size: 22px; }
.filters label, .checkout-form label, .admin-form label, .login-card label, .customer-panel label { display: block; margin-bottom: 15px; font-size: 10px; font-weight: 600; }
.filters input, .filters select, .checkout-form input, .checkout-form textarea, .admin-form input, .admin-form select, .admin-form textarea, .login-card input, .customer-panel input, .customer-panel select, .admin-filter-form input, .admin-filter-form select { width: 100%; min-height: 42px; margin-top: 6px; padding: 9px 11px; border: 1px solid #ded8ce; border-radius: 0; outline: none; background: white; color: var(--ink); font-size: 12px; }
input:focus, textarea:focus, select:focus { border-color: var(--gold) !important; }
.filters .button { margin-top: 3px; }
.range-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.range-fields input { min-width: 0; }
.filter-reset { display: block; margin-top: 12px; color: var(--muted); font-size: 10px; text-align: center; text-decoration: underline; }
.catalog-top { display: flex; justify-content: space-between; margin-bottom: 20px; color: var(--muted); font-size: 10px; }
.catalog-results .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 43px; }
.pagination a { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); font-size: 11px; }
.pagination a.current { border-color: var(--ink); background: var(--ink); color: white; }
.breadcrumbs { display: flex; gap: 10px; padding-block: 19px; color: var(--muted); font-size: 10px; }
.product-detail { display: grid; grid-template-columns: 1.1fr .8fr; align-items: start; gap: 9%; padding-block: 16px 90px; }
.gallery-main { width: 100%; height: min(650px, 58vw); padding: 0; overflow: hidden; border: 0; background: var(--cream); cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-main img.is-zoomed { transform: scale(1.45); cursor: zoom-out; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 11px; }
.gallery-thumb { width: 72px; height: 78px; padding: 0; overflow: hidden; border: 1px solid var(--line); background: var(--cream); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info { position: sticky; top: 20px; padding-top: 25px; }
.product-detail-info h1 { margin-bottom: 12px; font-size: clamp(34px, 4vw, 47px); }
.detail-price { margin-bottom: 21px; font-size: 17px; font-weight: 600; }
.detail-description { max-width: 490px; color: var(--muted); font-size: 12px; }
.detail-specs { margin-block: 24px; border-top: 1px solid var(--line); }
.detail-specs div { display: flex; justify-content: space-between; gap: 20px; padding-block: 11px; border-bottom: 1px solid var(--line); font-size: 10px; }
.detail-specs span { color: var(--muted); }
.detail-specs b { font-weight: 500; text-align: right; }
.add-cart-form { display: flex; gap: 10px; }
.add-cart-form label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding-left: 12px; color: var(--muted); font-size: 10px; }
.add-cart-form input { width: 55px; height: 46px; border: 0; padding: 5px; text-align: center; }
.add-cart-form .button { flex: 1; }
.whatsapp-link { display: block; margin-top: 17px; color: #6b7651; font-size: 11px; text-align: center; }
.description-accordion { margin-top: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; }
.description-accordion summary { padding-block: 13px; cursor: pointer; }
.description-accordion p, .shipping-note { color: var(--muted); font-size: 10px; }
.shipping-note { padding-top: 17px; }
.standard-page { min-height: 50vh; padding-block: 72px 100px; }
.standard-page > h1 { margin-bottom: 30px; font-size: clamp(40px, 5vw, 58px); }
.empty-state { padding: 55px 20px; text-align: center; }
.empty-state h1, .empty-state h2 { font-size: 35px; }
.empty-state p { margin: 0 auto 25px; color: var(--muted); font-size: 13px; }
.not-found-page { display: grid; min-height: 58vh; place-items: center; padding-block: 70px; text-align: center; }
.not-found-content { max-width: 620px; }
.not-found-code { margin: 0; color: var(--gold); font-family: var(--serif); font-size: clamp(88px, 16vw, 150px); line-height: 1; }
.not-found-page h1, .admin-not-found h2 { margin: 10px 0 12px; font-family: var(--serif); font-size: clamp(32px, 5vw, 48px); font-weight: 500; }
.not-found-page .not-found-content > p:not(.eyebrow, .not-found-code) { max-width: 490px; margin: 0 auto; color: var(--muted); font-size: 13px; }
.not-found-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 25px; }
.admin-not-found { max-width: 760px; margin: 45px auto 0; padding: 45px 24px; text-align: center; }
.admin-not-found .not-found-code { font-size: clamp(72px, 12vw, 110px); }
.admin-not-found h2 { font-size: clamp(27px, 4vw, 38px); }
.admin-not-found > .muted { max-width: 460px; margin: 0 auto; font-size: 12px; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1.5fr .8fr; align-items: start; gap: 55px; }
.cart-items { margin-bottom: 21px; border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto 25px; align-items: center; gap: 19px; padding-block: 17px; border-bottom: 1px solid var(--line); }
.cart-item > img { width: 90px; height: 100px; object-fit: cover; background: var(--cream); }
.cart-item-copy > a { display: block; margin-bottom: 5px; font-family: var(--serif); font-size: 17px; }
.cart-item-copy > span, .cart-item > strong { font-size: 11px; }
.cart-item-copy label { display: block; margin-top: 10px; color: var(--muted); font-size: 9px; }
.cart-item-copy input { width: 50px; height: 26px; margin-left: 8px; border: 1px solid var(--line); text-align: center; }
.remove-button { border: 0; background: transparent; color: var(--muted); font-size: 21px; }
.order-summary { padding: 24px; border: 1px solid var(--line); background: #fff; }
.order-summary h2 { margin-bottom: 20px; font-size: 23px; }
.order-summary > div { display: flex; justify-content: space-between; gap: 15px; margin-block: 12px; font-size: 10px; }
.order-summary > div b { white-space: nowrap; font-weight: 600; }
.summary-total { margin-top: 20px !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px !important; }
.shipping-progress { padding: 9px; background: var(--cream); color: #746449; font-size: 9px; }
.order-summary .button { margin-top: 13px; }
.continue-link { display: block; margin-top: 15px; color: var(--muted); font-size: 10px; text-align: center; text-decoration: underline; }
.checkout-form { padding: 25px; border: 1px solid var(--line); }
.checkout-form h2 { margin-bottom: 21px; font-size: 25px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.full-field { grid-column: 1 / -1; }
.checkout-form textarea, .admin-form textarea { resize: vertical; }
.checkout-form label span { color: var(--muted); font-weight: 400; }
.form-hint { margin: 14px 0 0; color: var(--muted); font-size: 9px; }
.notice { margin: 0 0 20px; padding: 12px 15px; font-size: 11px; }
.notice.success { border: 1px solid #c8d8c0; background: #f2f7ef; color: #42633e; }
.notice.error { border: 1px solid #e5c7c1; background: #fff4f1; color: #8a4338; }
.confirmation { padding-block: 110px; }
.bank-transfer-details { width: min(560px, 100%); margin: 24px auto; padding: 22px; border: 1px solid var(--line); background: var(--cream); text-align: left; }
.bank-transfer-details h2 { margin-bottom: 8px; font-size: 21px; }
.bank-transfer-details > p, .bank-transfer-details dl { margin-bottom: 14px; font-size: 11px; }
.bank-transfer-details dl { display: grid; gap: 8px; margin-top: 16px; }
.bank-transfer-details dl > div { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 12px; }
.bank-transfer-details dt { color: var(--muted); }
.bank-transfer-details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.bank-iban { letter-spacing: .04em; }
.bank-transfer-details .bank-iban-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bank-iban-copy .bank-iban { flex: 1 1 175px; }
.bank-transfer-copy-button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--sand-dark); background: var(--paper); color: var(--ink); font-size: 9px; }
.bank-transfer-copy-button:hover { border-color: var(--gold); background: #fff; }
.bank-transfer-copy-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bank-transfer-details .bank-transfer-reference { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; }
.bank-transfer-reference > span { flex: 1 1 190px; }
.bank-transfer-copy-feedback { min-height: 1.4em; margin: 8px 0 0 !important; color: var(--muted); font-size: 10px !important; }
.confirm-mark { display: grid; width: 62px; height: 62px; margin: 0 auto 27px; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: #9c7c45; font-size: 28px; }
.confirmation .eyebrow { margin-bottom: 12px; }
.confirmation h1 { font-size: clamp(39px, 5vw, 56px); }
.confirm-total { margin-top: 20px !important; }
.narrow-page { max-width: 720px; }
.narrow-page > p { color: var(--muted); font-size: 12px; }
.tracking-form { max-width: 500px; margin-top: 28px; }
.tracking-result { margin-top: 30px; padding: 24px; background: var(--cream); }
.tracking-result h2 { font-size: 25px; }
.tracking-result > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.order-tracking-number { padding: 9px 12px; background: var(--cream); color: var(--ink) !important; font-size: 11px !important; overflow-wrap: anywhere; }
.shipping-tracking-details { display: grid; gap: 7px; margin-block: 12px; }
.shipping-tracking-details .order-tracking-number { margin: 0 !important; }
.shipping-tracking-link { width: fit-content; color: var(--ink); font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.order-items-summary { width: min(720px, 100%); margin: 24px auto; padding: 22px; border: 1px solid var(--line); background: #fff; text-align: left; }
.order-items-summary h2 { margin: 0 0 12px; font-size: 20px; }
.order-items-summary ul { margin: 0; padding: 0; list-style: none; }
.order-items-summary li { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 11px; }
.order-items-summary li > div { display: grid; gap: 3px; }
.order-items-summary li span { color: var(--muted); }
.order-items-summary li > strong { white-space: nowrap; }
.order-tracking-field { margin-top: 18px; }
.order-tracking-field[hidden] { display: none; }
.order-tracking-field label { display: block; margin-bottom: 6px; font-size: 10px; font-weight: 600; }
.order-tracking-field .field-help { margin-top: 6px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 12%; padding-block: 75px 100px; }
.contact-layout h2 { font-size: 40px; }
.contact-layout > div > p:not(.eyebrow) { max-width: 370px; color: var(--muted); font-size: 12px; }
.contact-detail { margin-top: 20px; color: var(--ink) !important; }
.editorial-content { padding-block: 60px 100px; }
.legal-content { padding-block: 42px 90px; }
.legal-notice { margin-bottom: 22px; padding: 15px 18px; border: 1px solid #e6d7b4; background: #fbf7ed; color: #66583e; font-size: 11px; line-height: 1.7; }
.legal-copy { color: #555149; font-size: 13px; line-height: 1.9; white-space: normal; overflow-wrap: anywhere; }
.legal-copy br + br { display: block; content: ""; margin-top: 13px; }
.legal-copy a, .checkout-form .form-hint a { color: #816a3e; text-decoration: underline; text-underline-offset: 3px; }
.policy-settings { display: grid; gap: 12px; margin-block: 10px 24px; }
.policy-settings h2 { margin: 0; font-size: 20px; }
.policy-settings label { margin: 0; }
.policy-settings textarea { min-height: 220px; font-size: 11px; line-height: 1.6; }
.editorial-content > img { width: 100%; max-height: 550px; object-fit: cover; }
.editorial-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; padding-block: 60px 15px; }
.editorial-columns h2 { font-size: 36px; }
.editorial-columns p { color: var(--muted); font-size: 13px; }
.care-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.care-steps article { padding: 30px; background: var(--cream); }
.care-steps article > span { color: var(--gold); font-size: 10px; }
.care-steps h2 { margin: 17px 0 10px; font-size: 25px; }
.care-steps p { margin: 0; color: var(--muted); font-size: 12px; }

/* Admin panel */
.admin-body { min-height: 100vh; background: #f6f4f0; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; width: 245px; flex-direction: column; padding: 28px 20px; background: #24231f; color: white; }
.admin-brand { margin: 0 0 45px 7px; font-size: 18px; }
.admin-brand .brand-logo { max-width: 145px; max-height: 42px; }
.admin-brand small { color: #b8ad99; }
.admin-sidebar nav { display: grid; gap: 5px; }
.admin-sidebar nav a { padding: 12px 13px; color: #ccc8c0; font-size: 11px; }
.admin-sidebar nav a:hover { background: #35332d; color: #fff; }
.admin-store-link { margin: auto 0 5px; padding: 12px; border-top: 1px solid #46443f; color: #d8c18e; font-size: 10px; }
.admin-main { min-height: 100vh; margin-left: 245px; }
.admin-topbar { display: flex; min-height: 105px; align-items: center; justify-content: space-between; padding: 17px 38px; border-bottom: 1px solid #e9e5dd; background: var(--paper); }
.admin-topbar .eyebrow { margin-bottom: 5px; }
.admin-topbar h1 { margin: 0; font-size: 29px; }
.admin-user { display: flex; align-items: center; gap: 18px; color: #5e5a54; font-size: 11px; }
.admin-role { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.admin-user form { display: inline; }
.admin-user button, .link-button { padding: 0; border: 0; background: transparent; color: #88734e; font-size: 10px; }
.admin-content { max-width: 1500px; padding: 32px 38px 70px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 24px; }
.stat-card { display: flex; min-height: 145px; flex-direction: column; align-items: flex-start; padding: 20px; border: 1px solid #eae5dd; background: white; }
.stat-card > span:first-child { color: var(--muted); font-size: 10px; }
.stat-card strong { margin: 6px 0; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.stat-card a { margin-top: auto; color: #8b744b; font-size: 9px; }
.stat-note { margin-top: auto; color: var(--muted); font-size: 9px; }
.warning-stat strong { color: #a34a3c; }
.admin-panel { margin-top: 21px; padding: 22px; border: 1px solid #e9e5dd; background: #fff; }
.admin-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.admin-panel-heading h2, .admin-form > h2 { margin: 0; font-size: 21px; }
.admin-panel-heading .eyebrow { margin-bottom: 4px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 500; white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid #f0ede8; font-size: 10px; }
td a { color: #806b47; }
.status { display: inline-block; padding: 5px 8px; background: #f1eee8; color: #74684f; font-size: 9px; white-space: nowrap; }
.status-preparing { background: #fff4df; color: #926929; }
.status-shipped { background: #eaf1f5; color: #486679; }
.status-delivered { background: #edf5eb; color: #56744f; }
.status-cancelled { background: #f9eae7; color: #985247; }
.table-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.table-actions form { display: inline; }
.table-actions button { padding: 0; border: 0; background: none; color: #9b5145; font-size: 10px; }
.product-list-panel .admin-panel-heading { margin-bottom: 12px; }
.product-list-panel .admin-panel-heading h2 { display: flex; align-items: center; gap: 9px; }
.result-count { display: inline-grid; min-width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--cream); color: #806b47; font: 10px var(--sans); }
.product-admin-table { min-width: 900px; }
.product-admin-table tbody tr:hover { background: #fcfaf7; }
.product-name-cell { min-width: 210px; }
.product-name-cell strong { font-size: 11px; font-weight: 600; }
.toggle-form { margin: 0; }
.toggle-control { display: inline-flex; min-height: 34px; align-items: center; gap: 8px; padding: 4px 0; border: 0; background: transparent; color: #77736d; cursor: pointer; font: 10px var(--sans); white-space: nowrap; }
.toggle-control:hover .toggle-track { filter: brightness(.94); }
.toggle-control:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.toggle-control.is-on { color: #52694b; }
.toggle-track { display: inline-flex; width: 34px; height: 19px; align-items: center; padding: 2px; border-radius: 20px; background: #d7d3cc; transition: background .18s ease; }
.toggle-track > span { width: 15px; height: 15px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s ease; }
.toggle-control.is-on .toggle-track { background: #718767; }
.toggle-control.is-on .toggle-track > span { transform: translateX(15px); }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 15px; }
.admin-filter-form { display: flex; gap: 9px; }
.admin-filter-form input, .admin-filter-form select { width: auto; min-width: 160px; margin: 0; }
.admin-filter-form .button { min-height: 42px; }
.admin-form label { margin-bottom: 15px; }
.admin-form .form-grid { gap: 0 16px; }
.admin-form .button { margin-top: 7px; }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; font-weight: 400; }
.field-error { display: block; margin-top: 5px; color: #a34a3c; font-size: 10px; font-weight: 400; line-height: 1.45; }
.field-error-summary { margin: 0 0 14px; padding: 10px 12px; border: 1px solid #e5c7c1; background: #fff4f1; }
[aria-invalid="true"] { border-color: #b75a4c !important; }
.checkbox-row { display: flex; gap: 23px; margin: 7px 0 18px; }
.checkbox-row label, .check-label { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; }
.checkbox-row input, .check-label input { width: 15px !important; min-height: auto !important; height: 15px; margin: 0 !important; accent-color: var(--gold); }
.admin-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.admin-image-grid article { border: 1px solid var(--line); }
.admin-image-grid article.is-primary { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.admin-image-grid img { width: 100%; height: 150px; object-fit: cover; }
.image-missing-status { display: block; color: #9b5145; font-size: 10px; line-height: 1.5; }
.admin-image-grid article > div { display: grid; gap: 7px; padding: 10px; }
.product-image-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 0 0 15px; }
.product-image-previews[hidden] { display: none; }
.image-preview-heading { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 11px; }
.product-image-preview { min-width: 0; padding: 8px; border: 1px solid var(--line); background: white; }
.product-image-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--cream); }
.product-image-preview-name { overflow-wrap: anywhere; margin: 8px 0 4px; font-size: 10px; }
.product-image-preview label { display: flex !important; align-items: center; gap: 7px; margin: 7px 0 0 !important; font-size: 10px; }
.product-image-preview input[type="radio"] { width: 15px !important; min-height: 15px; height: 15px; margin: 0 !important; accent-color: var(--gold); }
.danger-link { color: #9b5145; }
.admin-split { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: start; gap: 18px; }
.admin-split > * { min-width: 0; }
.admin-split > .admin-panel { margin-top: 0; }
.admin-split .admin-form > label { margin-top: 12px; }
.admin-split .admin-form > h2 { margin-bottom: 18px; }
.admin-split .text-link { margin-left: 12px; }
.detail-admin-split { margin-top: 20px; grid-template-columns: 1.35fr .8fr; }
.customer-panel > p { margin-block: 14px; color: #5f5a53; font-size: 11px; }
.customer-panel > h2 { font-size: 22px; }
.customer-panel label { margin-top: 23px; }
.customer-panel .button { margin-top: 9px; }
.order-total-admin { padding-top: 15px; border-top: 1px solid var(--line); text-align: right; font-size: 12px; }
.order-total-admin strong { margin-left: 12px; }
.muted { color: var(--muted); font-size: 11px; }
.message-row { display: flex; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid #f0ede8; font-size: 10px; }
.message-row > span { display: grid; gap: 3px; }
.message-row small { color: var(--muted); font-size: 9px; }
.message-row time { color: var(--muted); white-space: nowrap; }
.message-row.unread strong { color: #8d6e37; }
.message-detail h2 { font-size: 26px; }
.message-detail > p { font-size: 10px; }
.message-body { margin-top: 25px; padding: 20px; background: var(--cream); font-size: 11px; }
.settings-form { max-width: 900px; }
.test-data-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; border-bottom: 1px solid var(--line); }
.test-data-tabs a { display: inline-flex; align-items: center; gap: 9px; padding: 11px 14px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 11px; }
.test-data-tabs a.is-active { border-color: var(--gold); color: var(--ink); }
.test-data-tabs a span { display: inline-grid; min-width: 21px; height: 21px; place-items: center; border-radius: 12px; background: var(--cream); color: #806b47; font-size: 9px; }
.test-data-form .check-label { white-space: nowrap; }
.test-data-confirm { display: flex; max-width: 320px; flex-direction: column; gap: 6px; margin: 16px 0 8px; color: #5e5141; font-size: 10px; }
.test-data-confirm input { max-width: 190px; text-transform: uppercase; }
.settings-form .muted { margin-bottom: 23px; }
.logo-setting { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
.logo-setting > .field-label { color: #47433d; font-size: 10px; font-weight: 500; }
.logo-setting label { margin: 0; }
.logo-preview { display: flex; min-height: 88px; align-items: center; padding: 14px; border: 1px dashed var(--line); background: var(--cream); }
.logo-preview .brand-mark { width: 52px; height: 52px; }
.logo-preview .brand-logo { max-width: 220px; max-height: 76px; }
.settings-assets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.settings-asset { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 16px; border: 1px solid var(--line); background: #fff; }
.settings-asset > .field-label { color: #47433d; font-size: 10px; font-weight: 600; }
.settings-asset label { margin: 0; }
.settings-asset-preview { display: flex; min-height: 150px; align-items: center; justify-content: center; padding: 12px; overflow: hidden; border: 1px dashed var(--line); background: var(--cream); }
.settings-asset-preview img { display: block; max-width: 100%; max-height: 200px; object-fit: contain; }
.share-image-preview { aspect-ratio: 1200 / 630; }
.share-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.favicon-preview { min-height: 120px; }
.favicon-preview img { width: 64px; height: 64px; image-rendering: auto; }
.settings-asset .asset-remove { display: flex; align-items: center; gap: 7px; color: #9b5145; }
.settings-asset .asset-remove input { width: auto; margin: 0; accent-color: #9b5145; }
.bank-settings { margin-top: 8px; padding: 18px; border: 1px solid var(--line); background: var(--cream); }
.bank-settings > .field-label { margin-bottom: 0; font-size: 12px; font-weight: 600; }
.bank-settings > .field-help { margin-top: -6px; }
.bank-setting-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.user-management { margin-top: 21px; }
.category-management { margin-top: 21px; }
.category-management .admin-panel-heading { align-items: flex-start; }
.category-management-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.category-management-actions .field-help { margin: 0 6px 0 0; }
.category-management-actions .button { min-height: 40px; }
.user-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.user-admin-table { min-width: 920px; }
.user-admin-table td small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.user-admin-table .user-address { max-width: 210px; white-space: normal; }
.user-actions { gap: 10px; }
.user-actions .muted { white-space: nowrap; }
.category-admin-table { min-width: 840px; }
.category-admin-table td small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.category-actions { gap: 10px; }
.category-admin-table tbody tr[draggable="true"] { cursor: grab; }
.category-admin-table tbody tr.is-dragging { opacity: .4; }
.category-admin-table tbody tr.is-drop-target { background: #f7f2e8; }
.category-move-cell { min-width: 105px; white-space: nowrap; }
.category-drag-handle { display: inline-block; padding: 0 6px; color: #88734e; cursor: grab; font-size: 16px; letter-spacing: -4px; }
.category-move-button { padding: 4px 6px; border: 0; background: transparent; color: #806b47; cursor: pointer; font-size: 13px; }
.category-move-button:hover { background: var(--cream); }
.category-move-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.admin-dialog { width: min(650px, calc(100% - 32px)); max-height: min(90vh, 900px); padding: 0; overflow-y: auto; border: 1px solid #e5dfd4; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px rgba(24, 22, 18, .24); }
.admin-dialog::backdrop { background: rgba(26, 24, 20, .58); backdrop-filter: blur(2px); }
.user-dialog-form, .category-dialog-form, .category-delete-form { padding: 26px; }
.category-dialog { width: min(700px, calc(100% - 32px)); }
.category-delete-dialog { width: min(500px, calc(100% - 32px)); }
.user-dialog-heading, .category-dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.user-dialog-heading .eyebrow, .category-dialog-heading .eyebrow { margin-bottom: 5px; }
.user-dialog-heading h2, .category-dialog-heading h2 { margin: 0; font-size: 23px; }
.user-dialog-heading .muted { margin: 7px 0 0; }
.category-delete-form > p { margin: 16px 0; font-size: 12px; }
.button-danger { border-color: #9b5145; background: #9b5145; color: #fff; cursor: pointer; }
.button-danger:hover { border-color: #7f3f35; background: #7f3f35; }
.dialog-close { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); background: white; color: var(--ink); cursor: pointer; font-size: 23px; line-height: 1; }
.dialog-close:hover { background: var(--cream); }
.dialog-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.role-badge { display: inline-block; padding: 5px 8px; border-radius: 20px; background: #f0eee9; color: #635d52; font-size: 9px; white-space: nowrap; }
.role-super_admin { background: #f3e7c9; color: #725820; font-weight: 700; }
.role-admin { background: #f4eddd; color: #806b47; }
.role-catalog { background: #eaf1e7; color: #52694b; }
.role-orders { background: #eaf1f5; color: #486679; }
.log-panel { margin-top: 16px; }
.activity-log-table { min-width: 760px; }
.error-log-list { display: grid; max-height: 420px; gap: 1px; overflow: auto; margin: 0; padding: 0; list-style: none; background: #282722; }
.error-log-list li { padding: 10px 12px; border-bottom: 1px solid #403e37; }
.error-log-list pre { margin: 0; color: #e3ddd0; font: 10px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 20px; background: var(--cream); }
.login-card { width: min(430px, 100%); padding: 40px; border: 1px solid var(--line); background: white; }
.login-card .brand { margin-bottom: 36px; }
.login-card .eyebrow { margin-bottom: 6px; }
.login-card h1 { margin-bottom: 22px; font-size: 31px; }
.login-card .button { margin-top: 6px; }
.back-store { display: block; margin-top: 20px; color: var(--muted); font-size: 10px; text-align: center; }

@media (max-width: 950px) {
    .wrap { width: min(100% - 44px, 780px); }
    .header-inner { gap: 18px; }
    .menu-toggle { display: block; order: -1; }
    .main-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: 12px 20px 20px; border-top: 1px solid var(--line); background: var(--paper); box-shadow: 0 10px 18px rgba(0,0,0,.07); }
    .main-nav.is-open { display: grid; }
    .main-nav a { padding: 9px 0; font-size: 12px; }
    .brand { font-size: 17px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .category-card { height: 240px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-results .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .story-section { gap: 7%; }
    .footer-grid { gap: 25px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-content { padding-inline: 25px; }
    .admin-sidebar { width: 205px; }
    .admin-main { margin-left: 205px; }
    .admin-split, .detail-admin-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) {
    .admin-toolbar { align-items: flex-start; flex-direction: column; }
    .admin-filter-form { width: 100%; flex-wrap: wrap; }
    .admin-filter-form input, .admin-filter-form select { min-width: 0; flex: 1 1 170px; }
}
@media (max-width: 680px) {
    .wrap { width: calc(100% - 36px); }
    .announcement { font-size: 8px; }
    .header-inner { min-width: 0; min-height: 70px; gap: 8px; }
    .brand { min-width: 0; margin-right: auto; font-size: 15px; }
    .brand > span { min-width: 0; }
    .brand-mark { width: 31px; height: 31px; font-size: 17px; }
    .brand small, .marketplace-link { display: none; }
    .header-actions { flex: 0 0 auto; gap: 8px; font-size: 10px; }
    .hero, .hero-content { min-height: 560px; }
    .hero-image { background-position: 59% center; background-image: linear-gradient(90deg, rgba(246,242,235,.95) 0%, rgba(246,242,235,.78) 58%, rgba(246,242,235,.08) 100%), url("https://images.unsplash.com/photo-1611652022419-a9419f74343d?w=1200&q=85"); }
    .hero-content { padding-top: 116px; }
    .hero h1 { font-size: 54px; }
    .hero-caption { display: none; }
    .hero-note { left: 0; }
    .section { padding-block: 65px; }
    .category-section { padding-top: 63px; }
    .section-heading { display: grid; grid-template-columns: minmax(0, 1fr); align-items: flex-start; gap: 12px; }
    .section-heading > div { min-width: 0; }
    .section-heading h2 { font-size: 31px; }
    .section-heading > .text-link { justify-self: start; margin-top: 0; font-size: 9px; white-space: nowrap; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .category-card { height: 205px; }
    .category-card span { left: 12px; font-size: 19px; }
    .category-card i { right: 11px; }
    .product-grid, .catalog-results .product-grid { gap: 22px 12px; }
    .product-info h3 { font-size: 15px; }
    .product-photo { aspect-ratio: .78; }
    .story-section { grid-template-columns: 1fr; gap: 37px; padding-block: 67px; }
    .story-photo { height: 390px; margin-right: 14px; }
    .story-copy h2 { font-size: 47px; }
    .care-inner { min-height: auto; flex-wrap: wrap; gap: 17px; padding-block: 37px; }
    .care-inner > div { width: 100%; }
    .care-inner > p { flex: 1 1 55%; }
    .care-inner h2 { font-size: 30px; }
    .care-inner > .text-link, .care-inner > .button { font-size: 9px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .footer-bottom { gap: 15px; font-size: 8px; }
    .footer-bottom { flex-wrap: wrap; }
    .page-hero { padding-block: 57px 49px; }
    .page-hero h1 { font-size: 43px; }
    .catalog-layout { grid-template-columns: 1fr; gap: 25px; padding-block: 25px 65px; }
    .filters { padding: 15px; }
    .filters, .catalog-layout > * { min-width: 0; }
    .filters form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
    .filters form > * { min-width: 0; }
    .filters input, .filters select { min-width: 0; }
    .filters h2 { margin-bottom: 12px; }
    .filters label { font-size: 9px; }
    .filters .button, .filter-reset { grid-column: 1 / -1; }
    .product-detail { grid-template-columns: 1fr; gap: 22px; padding-top: 0; }
    .gallery-main { height: min(110vw, 500px); }
    .product-detail-info { position: static; padding-top: 0; }
    .product-detail-info h1 { font-size: 37px; }
    .standard-page { padding-block: 50px 70px; }
    .cart-layout, .checkout-layout, .contact-layout { grid-template-columns: 1fr; gap: 24px; }
    .cart-item { grid-template-columns: 68px 1fr auto 18px; gap: 10px; }
    .cart-item > img { width: 68px; height: 78px; }
    .cart-item-copy > a { font-size: 14px; }
    .cart-item > strong { font-size: 9px; }
    .checkout-form { padding: 18px; }
    .contact-layout { padding-block: 50px 70px; }
    .contact-layout h2 { font-size: 34px; }
    .editorial-content { padding-block: 35px 70px; }
    .editorial-columns { grid-template-columns: 1fr; gap: 10px; padding-block: 36px; }
    .editorial-columns h2 { font-size: 30px; }
    .care-steps { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; width: auto; padding: 15px 18px; }
    .admin-brand { margin: 0 0 13px; }
    .admin-sidebar nav { display: flex; overflow-x: auto; gap: 2px; }
    .admin-sidebar nav a { flex: 0 0 auto; padding: 9px; font-size: 9px; }
    .admin-store-link { display: none; }
    .admin-main { margin-left: 0; }
    .admin-topbar { min-height: 78px; padding: 12px 18px; }
    .admin-topbar h1 { font-size: 23px; }
    .admin-user { gap: 9px; font-size: 9px; }
    .admin-content { padding: 20px 15px 45px; }
    .stats-grid { gap: 9px; }
    .stat-card { min-height: 127px; padding: 13px; }
    .stat-card strong { font-size: 25px; }
    .admin-panel { padding: 14px; }
    .product-list-panel .admin-panel-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .category-management .admin-panel-heading { align-items: flex-start; flex-direction: column; }
    .category-management-actions { justify-content: flex-start; }
    .admin-split, .detail-admin-split { grid-template-columns: 1fr; }
    .settings-assets { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .user-management .admin-panel-heading { align-items: flex-start; }
    .user-dialog-form, .category-dialog-form, .category-delete-form { padding: 20px; }
    .full-field { grid-column: auto; }
    .login-card { padding: 28px 22px; }
}
@media (max-width: 380px) {
    .header-inner { gap: 6px; }
    .brand { gap: 7px; }
    .header-actions { gap: 5px; }
}
@media (max-width: 520px) {
    .bank-setting-grid { grid-template-columns: 1fr; }
    .bank-transfer-details dl > div { grid-template-columns: 85px minmax(0, 1fr); gap: 8px; }
}
