:root {
    --ink: #2e1727;
    --plum: #401d36;
    --berry: #a62f61;
    --rose: #d56a91;
    --blush: #f2cedc;
    --cream: #fbf6ef;
    --paper: #fffdf9;
    --gold: #bf8b34;
    --sage: #66725d;
    --muted: #746a70;
    --line: #e4d8d5;
    --success: #2f6b50;
    --danger: #9d2d36;
    --shadow: 0 18px 55px rgba(55, 24, 45, .12);
    --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .2;
    background-image: radial-gradient(circle at 20% 10%, rgba(213,106,145,.2), transparent 26%), radial-gradient(circle at 82% 30%, rgba(191,139,52,.14), transparent 25%);
    z-index: -1;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 90px 0; }
.section-sm { padding: 55px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading h2, .display-title, .editorial-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.02;
}
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
.eyebrow { color: var(--berry); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -50px; background: var(--ink); color: white; padding: 10px 16px; z-index: 100; }
.skip-link:focus { top: 10px; }

.announcement { display: flex; justify-content: center; gap: 12px; padding: 8px 20px; color: white; background: var(--ink); text-align: center; font-size: .78rem; }
.announcement span { color: var(--blush); text-transform: uppercase; letter-spacing: .1em; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(251,246,239,.92); border-bottom: 1px solid rgba(64,29,54,.1); backdrop-filter: blur(14px); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; flex: none; border-radius: 50% 50% 45% 55%; color: white; background: var(--berry); border: 2px solid var(--gold); font-family: Georgia, serif; font-weight: 700; }
.brand-copy { display: grid; line-height: 1.18; }
.brand-copy strong { font-family: Georgia, serif; font-size: 1.08rem; }
.brand-copy small { color: var(--muted); font-size: .68rem; letter-spacing: .03em; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: .9rem; font-weight: 650; }
.site-nav a { padding: 10px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--berry); border-color: var(--rose); }
.cart-link { display: flex; align-items: center; gap: 7px; }
.cart-link span { display: grid; place-items: center; width: 24px; height: 24px; color: white; background: var(--berry); border-radius: 50%; font-size: .72rem; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle > span:not(.sr-only) { display: block; width: 25px; height: 2px; margin: 5px 0; background: var(--ink); }

.hero { min-height: 670px; display: grid; align-items: center; overflow: hidden; position: relative; background: linear-gradient(105deg, #f9e4eb 0 58%, var(--plum) 58%); }
.hero::after { content: "✦"; position: absolute; right: 5vw; top: 10%; color: var(--gold); font-size: 3rem; opacity: .8; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 80px; align-items: center; padding-block: 62px; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { max-width: 760px; margin: 14px 0 24px; font-family: Georgia, serif; font-size: clamp(3.4rem, 7vw, 6.9rem); font-weight: 500; line-height: .88; letter-spacing: -.06em; }
.hero h1 em { color: var(--berry); font-weight: 400; }
.hero p { max-width: 620px; margin: 0 0 28px; font-size: 1.08rem; color: #5d4b56; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { position: relative; height: 530px; }
.hero-photo::before { content: ""; position: absolute; inset: -20px 45px 30px -28px; border: 1px solid rgba(255,255,255,.45); border-radius: 52% 52% 12px 12px; transform: rotate(-3deg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; border-radius: 48% 48% 14px 14px; box-shadow: 0 28px 80px rgba(0,0,0,.3); filter: saturate(.92) contrast(1.02); }
.photo-caption { position: absolute; right: -20px; bottom: 26px; width: 185px; padding: 15px 18px; background: var(--paper); box-shadow: var(--shadow); font-family: Georgia, serif; font-size: .85rem; transform: rotate(2deg); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 22px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: white; font-weight: 750; transition: transform .2s, background .2s, color .2s; }
.button:hover, .button:focus-visible { transform: translateY(-2px); background: var(--berry); border-color: var(--berry); }
.button-outline { color: var(--ink); background: transparent; }
.button-outline:hover { color: white; }
.button-light { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.button-small { min-height: 38px; padding: 7px 15px; font-size: .84rem; }
.button-danger { background: var(--danger); border-color: var(--danger); }
.button-block { width: 100%; }

.value-strip { background: var(--paper); border-block: 1px solid var(--line); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.value-item { padding: 27px 30px; display: flex; gap: 14px; align-items: center; border-right: 1px solid var(--line); }
.value-item:last-child { border: 0; }
.value-icon { color: var(--gold); font-size: 1.5rem; }
.value-item strong { display: block; font-family: Georgia, serif; }
.value-item small { color: var(--muted); }

.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.category-card { min-height: 210px; padding: 25px; display: flex; flex-direction: column; justify-content: end; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--plum); color: white; }
.category-card:nth-child(2n) { background: var(--berry); }
.category-card:nth-child(3n) { background: var(--sage); }
.category-card::before { content: "✦"; position: absolute; top: 12px; right: 20px; color: var(--gold); font-size: 3rem; opacity: .55; }
.category-card h3 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 1.35rem; }
.category-card p { margin: 0; color: rgba(255,255,255,.72); font-size: .82rem; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { position: relative; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(55,24,45,.05); transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-image { height: 320px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #ead9df, #f8efe8); color: var(--berry); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.image-placeholder { display: grid; place-items: center; width: 95px; height: 95px; border: 1px solid rgba(166,47,97,.35); border-radius: 50%; font-family: Georgia, serif; font-size: 1.3rem; text-align: center; }
.product-body { padding: 20px; }
.product-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.product-body h3 { margin: 9px 0 10px; font-family: Georgia, serif; font-size: 1.28rem; line-height: 1.15; }
.product-price { display: flex; gap: 8px; align-items: baseline; font-weight: 850; }
.product-price del { color: var(--muted); font-size: .82rem; font-weight: 400; }
.badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--blush); color: var(--berry); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.badge-gold { background: #f3e4c3; color: #725014; }
.empty-state { padding: 54px; text-align: center; border: 1px dashed #cdbdbd; border-radius: var(--radius); background: rgba(255,255,255,.45); }
.empty-state h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 1.8rem; }

.story-panel { display: grid; grid-template-columns: .86fr 1.14fr; min-height: 600px; background: var(--plum); color: white; border-radius: 32px; overflow: hidden; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: sepia(.12) saturate(.9); }
.story-copy { padding: clamp(40px, 7vw, 90px); display: flex; flex-direction: column; justify-content: center; }
.story-copy h2 { margin: 14px 0 24px; font-family: Georgia, serif; font-size: clamp(2.8rem, 5vw, 5rem); line-height: .95; font-weight: 500; }
.story-copy p { color: rgba(255,255,255,.75); font-size: 1.05rem; }
.story-copy .eyebrow { color: #f1b8cc; }

.page-hero { padding: 78px 0 60px; background: #f4dce5; border-bottom: 1px solid var(--line); }
.page-hero .display-title { font-size: clamp(3rem, 7vw, 6.2rem); }
.page-hero p { max-width: 700px; margin: 18px 0 0; color: #604d58; font-size: 1.08rem; }
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 38px; }
.filters { align-self: start; padding: 22px; position: sticky; top: 110px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.filters h2 { margin-top: 0; font-family: Georgia, serif; }
.filter-list { display: grid; gap: 7px; }
.filter-list a { padding: 8px 10px; border-radius: 8px; color: var(--muted); }
.filter-list a:hover, .filter-list a.active { background: var(--blush); color: var(--berry); }
.search-row { display: flex; gap: 10px; margin-bottom: 25px; }
.search-row input { flex: 1; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-gallery { min-height: 620px; overflow: hidden; display: grid; place-items: center; background: #eadde0; border-radius: 30px; }
.product-gallery img { width: 100%; height: 620px; object-fit: cover; }
.product-info { padding-top: 25px; }
.product-info h1 { margin: 12px 0 18px; font-family: Georgia, serif; font-size: clamp(2.5rem, 5vw, 4.7rem); line-height: .95; font-weight: 500; }
.detail-price { font-size: 1.5rem; margin-bottom: 24px; }
.provenance-box, .notice-box { padding: 20px; margin: 24px 0; background: #f4ece6; border-left: 4px solid var(--gold); border-radius: 6px 14px 14px 6px; }
.quantity { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: white; overflow: hidden; }
.quantity button { width: 42px; height: 46px; border: 0; background: transparent; font-size: 1.2rem; }
.quantity input { width: 52px; text-align: center; border: 0; outline: 0; }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }

.form-card, .summary-card, .panel { padding: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 35px rgba(55,24,45,.05); }
.form-card h2, .summary-card h2, .panel h2 { margin-top: 0; font-family: Georgia, serif; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-group { display: grid; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .82rem; font-weight: 800; }
input, select, textarea { width: 100%; padding: 13px 14px; border: 1px solid #cfc1c4; border-radius: 11px; background: white; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--berry); box-shadow: 0 0 0 3px rgba(166,47,97,.12); }
textarea { min-height: 120px; resize: vertical; }
.help { color: var(--muted); font-size: .78rem; }
.checkbox-row { display: flex; gap: 10px; align-items: start; }
.checkbox-row input { width: auto; margin-top: 5px; }
.checkout-layout, .cart-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 35px; align-items: start; }
.summary-card { position: sticky; top: 115px; }
.summary-line { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.summary-line.total { padding-top: 18px; border: 0; font-size: 1.2rem; font-weight: 850; }
.cart-item { display: grid; grid-template-columns: 105px 1fr auto; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-thumb { width: 105px; height: 115px; overflow: hidden; display: grid; place-items: center; background: #eadde0; border-radius: 12px; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h3 { margin: 0 0 5px; font-family: Georgia, serif; }
.text-link { color: var(--berry); text-decoration: underline; text-underline-offset: 3px; }

.tracking-search { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; }
.tracking-card { margin-top: 35px; overflow: hidden; }
.tracking-head { padding: 28px; color: white; background: var(--plum); display: flex; justify-content: space-between; gap: 20px; }
.tracking-head h2 { margin: 0; font-family: Georgia, serif; }
.progress-shell { margin: 30px 0; height: 10px; overflow: hidden; background: #eadfe2; border-radius: 999px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--berry), var(--gold)); border-radius: inherit; }
.timeline { position: relative; margin: 25px 0 0; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 10px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 27px 18px; }
.timeline-item::before { content: ""; position: absolute; left: -29px; top: 6px; width: 13px; height: 13px; background: var(--berry); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--berry); border-radius: 50%; }
.timeline-item h3 { margin: 0; font-size: 1rem; }
.timeline-item p { margin: 3px 0; color: var(--muted); }
.timeline-item time { color: var(--muted); font-size: .76rem; }

.legacy-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.legacy-intro .editorial-title { font-size: clamp(3rem, 6vw, 6rem); }
.legacy-image { height: 650px; overflow: hidden; border-radius: 50% 50% 20px 20px; }
.legacy-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.milestone-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.milestone { padding: 25px; background: var(--paper); border-top: 4px solid var(--rose); }
.milestone strong { display: block; color: var(--berry); font-family: Georgia, serif; font-size: 1.7rem; }

.flash { padding: 12px 0; color: white; background: var(--success); }
.flash-error { background: var(--danger); }
.flash .container { display: flex; justify-content: space-between; gap: 20px; }
.flash button { color: inherit; border: 0; background: transparent; font-size: 1.4rem; }
.error-list { padding: 15px 20px; margin-bottom: 20px; color: var(--danger); background: #fae4e4; border-radius: 10px; }

.site-footer { padding-top: 65px; color: rgba(255,255,255,.75); background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .8fr 1.1fr; gap: 48px; }
.footer-grid h3 { color: white; font-family: Georgia, serif; }
.footer-grid > div > a:not(.brand) { display: block; margin: 8px 0; }
.footer-grid > div > a:hover { color: var(--blush); }
.footer-brand { color: white; }
.footer-note { padding: 20px; border: 1px solid rgba(255,255,255,.15); border-radius: 15px; }
.footer-note p { font-size: .82rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .75rem; }

@media (max-width: 1020px) {
    .menu-toggle { display: block; }
    .site-nav { display: none; position: absolute; inset: 86px 20px auto; padding: 22px; flex-direction: column; align-items: stretch; gap: 5px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 15px; }
    .site-nav.is-open { display: flex; }
    .hero { background: linear-gradient(180deg, #f9e4eb 0 62%, var(--plum) 62%); }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-photo { width: min(620px, 100%); margin-inline: auto; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .milestone-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .container, .narrow { width: min(100% - 28px, 1180px); }
    .announcement { display: block; }
    .announcement span { display: none; }
    .brand-copy small { display: none; }
    .section { padding: 62px 0; }
    .section-heading { align-items: start; flex-direction: column; }
    .hero { min-height: auto; }
    .hero-grid { padding-block: 45px; }
    .hero h1 { font-size: clamp(3.2rem, 16vw, 5.3rem); }
    .hero-photo { height: 430px; }
    .photo-caption { right: 5px; }
    .value-grid, .category-grid, .product-grid, .form-grid, .story-panel, .shop-layout, .product-detail, .checkout-layout, .cart-layout, .legacy-intro { grid-template-columns: 1fr; }
    .value-item { border-right: 0; border-bottom: 1px solid var(--line); }
    .category-card { min-height: 150px; }
    .story-photo { height: 420px; }
    .filters, .summary-card { position: static; }
    .product-gallery, .product-gallery img { min-height: 430px; height: 430px; }
    .cart-item { grid-template-columns: 80px 1fr; }
    .cart-item > :last-child { grid-column: 2; }
    .tracking-search { grid-template-columns: 1fr; }
    .tracking-head { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
    .legacy-image { height: 500px; }
}

@media (max-width: 480px) {
    .brand-copy strong { font-size: .88rem; }
    .brand-mark { width: 42px; height: 42px; }
    .header-inner { min-height: 74px; }
    .site-nav { inset-block-start: 74px; }
    .hero-actions .button { width: 100%; }
    .product-grid, .milestone-grid { grid-template-columns: 1fr; }
    .form-card, .summary-card, .panel { padding: 21px; }
}

/* Admin */
.admin-body { background: #f3efec; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 20px; color: rgba(255,255,255,.76); background: var(--ink); overflow-y: auto; }
.admin-sidebar .brand { color: white; margin-bottom: 34px; }
.admin-nav { display: grid; gap: 6px; }
.admin-nav a { padding: 11px 13px; border-radius: 9px; }
.admin-nav a:hover, .admin-nav a.active { color: white; background: rgba(255,255,255,.12); }
.admin-nav hr { width: 100%; margin: 15px 0; border: 0; border-top: 1px solid rgba(255,255,255,.12); }
.admin-main { min-width: 0; padding: 34px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.admin-topbar h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem,4vw,3rem); font-weight: 500; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 25px; }
.stat-card { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.stat-card small { color: var(--muted); font-weight: 800; text-transform: uppercase; }
.stat-card strong { display: block; margin-top: 7px; font-family: Georgia, serif; font-size: 2.1rem; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; background: var(--paper); }
.data-table th, .data-table td { padding: 14px 15px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table th { color: var(--muted); font-size: .73rem; text-transform: uppercase; letter-spacing: .06em; }
.table-product { display: flex; align-items: center; gap: 11px; min-width: 220px; }
.table-product img, .admin-thumb { width: 48px; height: 52px; object-fit: cover; border-radius: 7px; background: #eadde0; }
.actions { display: flex; flex-wrap: wrap; gap: 7px; }
.status-pill { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: #e7e1e3; font-size: .72rem; font-weight: 800; }
.status-active, .status-paid, .status-delivered, .status-completed { color: #245f45; background: #dceee4; }
.status-pending, .status-processing, .status-packed { color: #7a5718; background: #f6e8c8; }
.status-cancelled, .status-failed, .status-refunded { color: #8b2830; background: #f5dfe1; }
.admin-login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-art { min-height: 100vh; background: linear-gradient(rgba(46,23,39,.22),rgba(46,23,39,.72)), var(--login-image) center top/cover; }
.login-panel { display: grid; place-items: center; padding: 30px; }
.login-card { width: min(470px,100%); }
.admin-note { padding: 14px; margin-block: 18px; color: #674a14; background: #f7e9c8; border: 1px solid #e7ce91; border-radius: 10px; }

@media (max-width: 980px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .admin-nav { grid-template-columns: repeat(3, 1fr); }
    .admin-nav hr { display: none; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .admin-main { padding: 20px 14px; }
    .admin-nav { grid-template-columns: repeat(2,1fr); }
    .admin-topbar { align-items: flex-start; flex-direction: column; }
    .stat-grid, .admin-login { grid-template-columns: 1fr; }
    .login-art { display: none; }
}

