:root {
    color-scheme: light;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #20231f;
    background: #f6f4ef;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
}

.shell {
    width: min(100% - 2rem, 42rem);
    padding: 3rem 0;
}

.eyebrow {
    color: #76614c;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 8vw, 4.5rem); margin: .4rem 0 1rem; }
.status { color: #555950; font-size: 1.1rem; margin-bottom: 2rem; }
a { color: #315c40; font-weight: 650; }
.button { display: inline-block; padding: .75rem 1rem; border: 1px solid #315c40; border-radius: 4px; text-decoration: none; }
.button:hover, .button:focus-visible { background: #315c40; color: #fff; }

button.button {
    background: transparent;
    color: #315c40;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
}

.auth-shell { max-width: 28rem; }

.auth-form {
    display: grid;
    gap: .75rem;
}

.auth-form label { font-weight: 650; }

.auth-form input {
    width: 100%;
    min-height: 2.75rem;
    padding: .65rem .75rem;
    border: 1px solid #9d9d95;
    border-radius: 4px;
    background: #fff;
    color: inherit;
    font: inherit;
}

.auth-form input:focus-visible {
    outline: 3px solid rgba(49, 92, 64, .25);
    border-color: #315c40;
}

.auth-form .button { margin-top: .5rem; }

.alert {
    padding: .75rem;
    border-left: 4px solid #a33a2b;
    background: #fff1ee;
    color: #70251b;
}

.admin-shell { width: min(100% - 2rem, 60rem); }

.admin-body { display: block; }
.admin-body .shell { margin-inline: auto; }

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px solid #d8d5ce;
}

.admin-header h1 { font-size: 2rem; }
.admin-content { padding: 2rem 0; }
.admin-content h2 { font-size: 1.25rem; }

.admin-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.admin-nav a {
    display: grid;
    gap: .3rem;
    padding: 1rem;
    border: 1px solid #d1cec6;
    border-radius: 6px;
    background: #fff;
    text-decoration: none;
}

.admin-nav span { color: #555950; font-weight: 400; }

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.page-header h1, .form-shell h1 { font-size: 2rem; }
.back-link { display: inline-block; margin-bottom: .5rem; }
.notice { padding: .75rem; border-left: 4px solid #315c40; background: #edf6ef; }
.empty-state { padding: 2rem 0; border-top: 1px solid #d8d5ce; }
.empty-state h2 { font-size: 1.25rem; }

.table-scroll { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    padding: .8rem;
    border-bottom: 1px solid #ddd9d1;
    text-align: left;
    vertical-align: middle;
}

th { color: #555950; font-size: .85rem; }
td code { white-space: nowrap; }

.status-label { font-size: .85rem; font-weight: 700; }
.status-label.is-active { color: #28643c; }
.status-label.is-inactive { color: #777970; }

.row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    white-space: nowrap;
}

.link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #315c40;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
    text-decoration: underline;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-shell { width: min(100% - 2rem, 38rem); }
.admin-form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field label, .checkbox-field { font-weight: 650; }
.field-small { max-width: 10rem; }

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 2.75rem;
    padding: .65rem .75rem;
    border: 1px solid #9d9d95;
    border-radius: 4px;
    background: #fff;
    color: inherit;
    font: inherit;
}

.field textarea { resize: vertical; }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
    outline: 3px solid rgba(49, 92, 64, .25);
    border-color: #315c40;
}

.field-error { color: #8d2d21; font-size: .9rem; }

.checkbox-field {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.checkbox-field input { width: 1.1rem; height: 1.1rem; }
.form-actions { display: flex; align-items: center; gap: 1rem; }

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(8rem, .5fr);
    gap: 1rem;
}

.option-list { display: grid; gap: .8rem; }
.meta-label { display: block; margin-top: .25rem; color: #76614c; font-size: .75rem; font-weight: 700; }
.danger-link { color: #982f23; }

.upload-form {
    display: flex;
    align-items: end;
    gap: 1rem;
    padding: 1.25rem 0 2rem;
    border-bottom: 1px solid #d8d5ce;
}

.upload-form .field { flex: 1; }
.field-hint { color: #62665e; font-size: .85rem; }

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
    gap: 1rem;
    padding-top: 2rem;
}

.image-item {
    display: grid;
    align-content: start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #d1cec6;
    border-radius: 6px;
    background: #fff;
}

.image-preview {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #ebe9e3;
}

.image-preview img { width: 100%; height: 100%; object-fit: contain; }

.primary-label {
    position: absolute;
    top: .5rem;
    left: .5rem;
    padding: .3rem .45rem;
    border-radius: 3px;
    background: #20231f;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
}

.image-fields { display: grid; gap: .8rem; }

.public-body {
    display: block;
    min-width: 20rem;
    background: #f7f6f2;
}

.site-header {
    border-bottom: 1px solid #d8d5ce;
    background: #fff;
}

.site-header-inner {
    width: min(100% - 2rem, 72rem);
    min-height: 4.5rem;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    color: #20231f;
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
}

.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a[aria-current="page"] { text-decoration-thickness: 2px; }

.public-shell {
    width: min(100% - 2rem, 72rem);
    min-height: calc(100vh - 9rem);
    margin-inline: auto;
    padding: 2.5rem 0 4rem;
}

.catalog-intro {
    max-width: 46rem;
    padding: 1rem 0 2.5rem;
}

.catalog-intro h1, .catalog-page-header h1 {
    margin: .35rem 0 .75rem;
    font-size: 2.75rem;
}

.catalog-intro > p:last-child { color: #555950; font-size: 1.15rem; }

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    padding: 1.25rem 0;
    border-block: 1px solid #d8d5ce;
}

.category-links a { text-decoration: none; }
.category-links a:hover { text-decoration: underline; }
.category-links span { color: #777970; font-size: .8rem; }

.product-section { padding-top: 2.5rem; }

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-heading h2 { margin: 0; font-size: 1.5rem; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
    gap: 1.25rem;
}

.product-card {
    overflow: hidden;
    border: 1px solid #ddd9d1;
    border-radius: 6px;
    background: #fff;
}

.product-image-link {
    display: grid;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    place-items: center;
    background: #ebe9e3;
}

.product-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
}

.product-image-link:hover img { transform: scale(1.025); }
.product-placeholder, .detail-placeholder { color: #777970; font-size: .9rem; }

.product-card-body { padding: 1rem; }
.product-category { margin: 0 0 .35rem; color: #76614c; font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.product-card h2, .product-card h3 { margin: 0 0 .65rem; font-size: 1.1rem; }
.product-card h2 a, .product-card h3 a { color: #20231f; text-decoration: none; }
.product-card h2 a:hover, .product-card h3 a:hover { text-decoration: underline; }
.product-card-body > p:not(.product-category, .product-price) { color: #62665e; font-size: .9rem; }
.product-price { margin: 1rem 0 0; color: #28643c; font-weight: 800; }

.catalog-page-header { padding: 1rem 0; }

.category-filter {
    display: flex;
    gap: .5rem;
    margin-bottom: 2rem;
    padding-bottom: .75rem;
    overflow-x: auto;
    border-bottom: 1px solid #d8d5ce;
}

.category-filter a {
    flex: 0 0 auto;
    padding: .5rem .7rem;
    color: #555950;
    text-decoration: none;
}

.category-filter a.is-current { border-bottom: 2px solid #315c40; color: #20231f; }

.public-empty {
    padding: 3rem 0;
    border-top: 1px solid #d8d5ce;
}

.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; font-size: .9rem; }
.breadcrumbs span { color: #8b8d87; }

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(18rem, .7fr);
    gap: 3rem;
    align-items: start;
}

.gallery-main, .detail-placeholder {
    display: grid;
    width: 100%;
    aspect-ratio: 4 / 3;
    place-items: center;
    overflow: hidden;
    background: #ebe9e3;
}

.gallery-main img { width: 100%; height: 100%; object-fit: contain; }

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .6rem;
    margin-top: .75rem;
}

.gallery-thumb {
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    background: #ebe9e3;
    cursor: pointer;
}

.gallery-thumb.is-current { border-color: #315c40; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info { position: sticky; top: 1.5rem; }
.product-info h1 { margin: .3rem 0 1rem; font-size: 2.25rem; }
.detail-price { color: #28643c; font-size: 1.4rem; font-weight: 800; }
.detail-summary { color: #555950; font-size: 1.05rem; line-height: 1.6; }
.detail-description { padding-top: 1.25rem; border-top: 1px solid #d8d5ce; line-height: 1.7; }

.site-footer {
    width: min(100% - 2rem, 72rem);
    margin-inline: auto;
    padding: 1.5rem 0 2.5rem;
    border-top: 1px solid #d8d5ce;
    color: #62665e;
    font-size: .9rem;
}

@media (max-width: 36rem) {
    .admin-header { align-items: stretch; flex-direction: column; padding-bottom: 1.5rem; }
    .admin-header .button { width: 100%; }
    .page-header { align-items: stretch; flex-direction: column; }
    .page-header .button { text-align: center; }
    .form-grid { grid-template-columns: 1fr; }
    .upload-form { align-items: stretch; flex-direction: column; }
    .catalog-intro h1, .catalog-page-header h1 { font-size: 2.1rem; }
    .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
    .product-info { position: static; }
    .gallery-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Luminous editorial storefront */
:root { --ink:#30282c; --muted:#685c62; --primary:#f8cfe2; --primary-strong:#edaac9; --wine:#a24972; --wine-dark:#843858; --blush:#fff7fb; --line:#eadfe5; --serif:Georgia,"Times New Roman",serif; --sans:"Segoe UI",Arial,sans-serif; }
.public-body { min-width:0; display:block; overflow-x:clip; color:var(--ink); background:#fff; font-family:var(--sans); }
.public-body>.home-main { width:100%; min-width:0; }
.public-body h1,.public-body h2,.public-body h3,.brand,.site-footer strong { font-family:var(--serif); letter-spacing:0; }
.site-header { position:sticky; top:0; z-index:20; width:100%; border-bottom:1px solid #f0eaea; background:rgba(255,255,255,.96); }
.site-header-inner { width:100%; max-width:none; min-height:5.5rem; padding-inline:clamp(1rem,3vw,3rem); box-sizing:border-box; }
.brand { color:var(--wine); font-size:1.7rem; font-weight:700; }
.site-header nav { min-width:0; max-width:calc(100% - 12rem); margin-left:auto; align-items:center; gap:2rem; overflow-x:auto; white-space:nowrap; scrollbar-width:none; }
.site-header nav::-webkit-scrollbar { display:none; }
.site-header nav a { display:inline-flex; flex:0 0 auto; align-items:center; min-height:2.75rem; color:#4f4546; font-size:.9rem; font-weight:600; text-decoration:none; }
.site-header nav a:hover,.site-header nav a:focus-visible { color:var(--wine); }
.header-cart { position:relative; width:2.75rem; height:2.75rem; flex:0 0 2.75rem; display:grid; place-items:center; border:1px solid transparent; border-radius:50%; color:var(--ink); text-decoration:none; transition:background-color 160ms ease,border-color 160ms ease,color 160ms ease; }
.header-cart:hover,.header-cart:focus-visible { border-color:var(--primary); background:var(--blush); color:var(--wine); }
.header-cart:focus-visible { outline:3px solid rgba(248,207,226,.8); outline-offset:2px; }
.header-cart[aria-current="page"] { border-color:var(--primary); background:var(--blush); }
.header-cart svg { width:1.45rem; height:1.45rem; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
.header-cart-count { position:absolute; top:-.15rem; right:-.2rem; min-width:1.2rem; height:1.2rem; padding:0 .25rem; display:grid; place-items:center; box-sizing:border-box; border:2px solid #fff; border-radius:999px; background:var(--primary-strong); color:var(--ink); font-size:.65rem; font-weight:800; line-height:1; }
.hero-section { min-height:calc(100vh - 5.5rem); display:grid; align-items:center; background:#fff; }
.hero-inner { width:min(100% - 3rem,72rem); margin-inline:auto; padding:5rem 0; display:grid; grid-template-columns:minmax(0,.9fr) minmax(20rem,.7fr); gap:clamp(3rem,9vw,8rem); align-items:center; }
.hero-copy { max-width:35rem; }
.eyebrow { margin:0 0 1rem; color:var(--wine); font-size:.72rem; font-weight:700; text-transform:uppercase; }
.hero-copy h1 { margin:0 0 1.5rem; font-size:clamp(2.7rem,6vw,4.8rem); line-height:1.03; }
.hero-copy>p:not(.eyebrow) { max-width:31rem; margin:0 0 2rem; color:var(--muted); font-size:1.08rem; line-height:1.75; }
.button-primary { border-color:var(--wine); background:var(--wine); color:#fff; }
.button-primary:hover,.button-primary:focus-visible { border-color:var(--wine-dark); background:var(--wine-dark); }
.hero-media { width:100%; height:clamp(26rem,68vh,40rem); min-height:0; display:grid; place-items:center; overflow:hidden; border-radius:8px; background:#faf8f8; text-decoration:none; }
.hero-picture { width:100%; height:100%; display:block; }
.hero-media img { width:100%; height:100%; padding:1.25rem; box-sizing:border-box; object-fit:contain; }
.hero-placeholder { height:100%; display:grid; place-items:center; color:var(--wine); }
.public-section { width:min(100% - 3rem,72rem); margin-inline:auto; padding:6rem 0; }
.section-title { margin-bottom:2.5rem; }
.section-title h2 { margin:0; font-size:clamp(2rem,4vw,3rem); line-height:1.15; }
.section-title-centered { text-align:center; }
.section-title-row { display:flex; align-items:end; justify-content:space-between; gap:2rem; }
.section-title-row>a { color:var(--wine); text-decoration:none; }
.category-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap:1.5rem; }
.category-card { position:relative; min-height:18rem; overflow:hidden; border-radius:8px; background:#f7f4f4; color:#fff; text-decoration:none; }
.category-card::after { content:""; position:absolute; inset:45% 0 0; background:linear-gradient(transparent,rgba(35,27,28,.7)); }
.category-card img { width:100%; height:100%; object-fit:cover; transition:transform 350ms ease; }
.category-card:hover img { transform:scale(1.03); }
.category-card span { position:absolute; z-index:1; left:1.25rem; bottom:1.25rem; font-family:var(--serif); font-size:1.35rem; font-weight:700; }
.category-showcase { overflow:hidden; }
.category-showcase-header { position:relative; }
.category-showcase-header .section-title { padding-inline:7rem; }
.category-showcase-header .section-title h2 { font-size:clamp(1.75rem,3vw,2.35rem); }
.category-showcase-controls { position:absolute; right:0; bottom:.2rem; display:flex; gap:.55rem; }
.category-showcase-controls button { width:2.65rem; height:2.65rem; padding:0; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; background:#fff; color:var(--ink); cursor:pointer; font-size:1.15rem; transition:border-color 160ms ease,background-color 160ms ease; }
.category-showcase-controls button:hover,.category-showcase-controls button:focus-visible { border-color:var(--primary-strong); background:var(--blush); }
.category-showcase-controls button:focus-visible { outline:3px solid rgba(248,207,226,.8); outline-offset:2px; }
.category-showcase-controls button:disabled { opacity:.35; cursor:default; }
.category-showcase-track { display:flex; gap:1.5rem; overflow-x:auto; overscroll-behavior-inline:contain; scroll-behavior:smooth; scroll-snap-type:x mandatory; scrollbar-width:none; }
.category-showcase-track::-webkit-scrollbar { display:none; }
.category-showcase-track.is-short { justify-content:center; }
.category-showcase-track:focus-visible { outline:3px solid rgba(248,207,226,.75); outline-offset:5px; }
.category-showcase-card { flex:0 0 calc((100% - 4.5rem)/4); min-width:0; display:grid; justify-items:center; gap:1rem; color:var(--ink); text-align:center; text-decoration:none; scroll-snap-align:start; }
.category-showcase-ring { width:min(100%,15rem); aspect-ratio:1; padding:4px; display:block; box-sizing:border-box; border-radius:50%; background:linear-gradient(135deg,#f9ce34 5%,#ee2a7b 48%,#6228d7 100%); transition:transform 180ms ease; }
.category-showcase-image { width:100%; height:100%; padding:5px; display:block; box-sizing:border-box; border-radius:50%; background:#fff; }
.category-showcase-image img,.category-showcase-placeholder { width:100%; height:100%; display:grid; place-items:center; border-radius:50%; object-fit:cover; background:var(--blush); }
.category-showcase-placeholder { color:var(--wine); font-family:var(--serif); font-size:3rem; }
.category-showcase-name { font-family:var(--serif); font-size:1.08rem; line-height:1.25; }
.category-showcase-card:hover .category-showcase-ring,.category-showcase-card:focus-visible .category-showcase-ring { transform:translateY(-3px); }
.category-showcase-card:focus-visible { outline:0; }
.featured-section { border-top:1px solid #f0eaea; }
.product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:2.5rem 1.5rem; align-items:stretch; }
.product-card { min-width:0; height:100%; display:flex; overflow:visible; flex-direction:column; border:0; border-radius:0; background:#fff; }
.product-image-link { aspect-ratio:1; border-radius:8px; background:#faf8f8; }
.product-image-link img { padding:.75rem; box-sizing:border-box; object-fit:contain; }
.product-card-body { min-height:0; padding:1rem .15rem 0; display:flex; flex:1 1 auto; flex-direction:column; }
.product-category { color:var(--wine); font-size:.7rem; }
.product-card h2,.product-card h3 { font-size:1.3rem; }
.product-price { color:var(--wine); font-family:var(--serif); font-size:1.05rem; }
.product-card-actions { margin-top:auto; padding-top:1rem; }
.product-card-actions form { margin:0; }
.cart-feedback { position:fixed; z-index:80; top:5.5rem; right:1rem; max-width:min(26rem,calc(100% - 2rem)); padding:.85rem 1rem; border:1px solid #bfe1cf; border-radius:6px; background:#effaf4; color:#155f39; box-shadow:0 12px 30px rgba(48,40,44,.14); font-weight:700; opacity:0; transform:translateY(-.5rem); pointer-events:none; transition:opacity 160ms ease,transform 160ms ease; }
.cart-feedback.is-visible { opacity:1; transform:translateY(0); }
.cart-feedback.is-error { border-color:#e6bec7; background:#fff3f5; color:#8a2942; }
.product-card-cart-button,.product-card-detail-link { width:100%; min-height:2.75rem; display:flex; align-items:center; justify-content:center; box-sizing:border-box; text-align:center; text-decoration:none; }
.product-card-cart-button:disabled { border-color:var(--line); background:#f5f2f3; color:var(--muted); cursor:not-allowed; }
.story-section { padding:6rem 1.5rem; border-block:1px solid #f3eeee; background:#fff; }
.story-inner { width:min(100%,66rem); margin-inline:auto; display:grid; grid-template-columns:minmax(18rem,.75fr) minmax(0,1fr); gap:clamp(3rem,8vw,7rem); align-items:center; }
.story-inner>img,.story-placeholder { width:100%; aspect-ratio:4/5; object-fit:cover; border-radius:8px; background:var(--blush); }
.story-copy h2 { margin:0 0 1.5rem; font-size:clamp(2.2rem,4vw,3.5rem); line-height:1.1; }
.story-copy>p:not(.eyebrow) { color:var(--muted); line-height:1.75; }
.story-copy ul { margin:2rem 0 0; padding:0; display:grid; gap:1rem; list-style:none; }
.story-copy li { padding-left:1.5rem; position:relative; }
.story-copy li::before { content:"+"; position:absolute; left:0; color:var(--wine); }
.social-section { padding-bottom:7rem; }
.social-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap:.75rem; }
.social-grid img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:6px; }
.public-shell { width:min(100% - 3rem,72rem); padding:4rem 0 7rem; }
.catalog-page-header { padding:2rem 0 3rem; }
.catalog-intro h1,.catalog-page-header h1 { font-size:clamp(2.5rem,5vw,4rem); }
.category-filter { gap:1rem; border-color:var(--line); }
.category-filter a.is-current { border-bottom-color:var(--wine); color:var(--wine); }
.product-detail { grid-template-columns:minmax(0,1.1fr) minmax(19rem,.75fr); gap:clamp(3rem,7vw,6rem); }
.product-gallery.has-thumbnails { display:grid; grid-template-columns:4.5rem minmax(0,1fr); gap:1rem; align-items:start; }
.product-gallery { position:relative; min-width:0; }
.gallery-main,.detail-placeholder { width:100%; aspect-ratio:auto; border-radius:8px; background:#fff; }
.gallery-main { position:relative; min-height:0; padding:0; display:block; overflow:hidden; border:1px solid var(--line); font:inherit; line-height:0; cursor:zoom-in; }
.detail-placeholder { min-height:20rem; display:grid; place-items:center; }
.product-gallery.has-thumbnails .gallery-main { grid-column:2; grid-row:1; }
.gallery-main img { display:block; width:auto; max-width:100%; height:auto; max-height:min(78vh,50rem); margin-inline:auto; padding:0; object-fit:contain; }
.gallery-open-hint { position:absolute; right:1rem; bottom:.8rem; left:1rem; padding:.45rem .65rem; border-radius:4px; background:rgba(255,255,255,.9); color:var(--wine); font-size:.78rem; font-weight:700; text-align:center; pointer-events:none; }
.gallery-zoom-lens { position:absolute; z-index:2; width:7.5rem; height:7.5rem; border:1px solid rgba(132,76,81,.5); background:rgba(255,255,255,.32); transform:translate(-50%,-50%); pointer-events:none; }
.gallery-zoom-pane { position:absolute; z-index:30; top:0; left:calc(100% + 2rem); width:min(34rem,42vw); height:var(--gallery-main-height,40rem); border:1px solid var(--line); border-radius:8px; background-color:#fff; background-repeat:no-repeat; background-size:250% auto; box-shadow:0 18px 45px rgba(45,41,41,.18); pointer-events:none; }
.gallery-zoom-pane[hidden],.gallery-zoom-lens[hidden] { display:none; }
.gallery-thumbs { display:flex; flex-direction:column; grid-column:1; grid-row:1; gap:.65rem; max-height:var(--gallery-main-height,40rem); margin:0; overflow-y:auto; scrollbar-width:thin; }
.gallery-thumb { width:100%; flex:0 0 auto; border-radius:6px; background:#faf8f8; }
.gallery-thumb img { object-fit:contain; }
.gallery-thumb.is-current { border-color:var(--wine); }
.is-gallery-open { overflow:hidden; }
.gallery-lightbox { position:fixed; z-index:100; inset:0; display:grid; grid-template-columns:4rem minmax(0,1fr) 4rem; grid-template-rows:3rem minmax(0,1fr) auto 5rem; gap:1rem; padding:1.25rem; background:#211f20; color:#fff; }
.gallery-lightbox[hidden] { display:none; }
.gallery-lightbox-close,.gallery-lightbox-arrow { border:0; background:transparent; color:#fff; cursor:pointer; }
.gallery-lightbox-close { grid-column:3; grid-row:1; justify-self:end; width:3rem; height:3rem; font-size:2.4rem; line-height:1; }
.gallery-lightbox-arrow { grid-row:2; align-self:center; width:3.25rem; height:3.25rem; border:1px solid rgba(255,255,255,.35); border-radius:50%; font-size:1.5rem; }
.gallery-lightbox-arrow.is-previous { grid-column:1; }
.gallery-lightbox-arrow.is-next { grid-column:3; }
.gallery-lightbox-arrow[hidden] { display:none; }
.gallery-lightbox-stage { position:relative; grid-column:2; grid-row:2; min-width:0; min-height:0; overflow:hidden; }
.gallery-lightbox-stage img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.gallery-lightbox-count { grid-column:2; grid-row:3; margin:0; color:#fff; font-size:.8rem; text-align:center; }
.gallery-lightbox-thumbs { grid-column:1/-1; grid-row:4; display:flex; justify-content:center; gap:.6rem; min-width:0; overflow-x:auto; }
.gallery-lightbox-thumbs[hidden] { display:none; }
.gallery-lightbox-thumb { width:4rem; height:4rem; flex:0 0 auto; padding:.2rem; overflow:hidden; border:2px solid transparent; border-radius:5px; background:#fff; cursor:pointer; }
.gallery-lightbox-thumb.is-current { border-color:#d99ca2; }
.gallery-lightbox-thumb img { width:100%; height:100%; object-fit:contain; }
.product-specifications { grid-column:1/-1; width:100%; margin-top:2.75rem; border-top:1px solid var(--line); }
.product-specifications h2 { margin:0; padding:1.5rem 0 1rem; font-size:1.35rem; }
.product-specifications details { border-top:1px solid var(--line); }
.product-specifications details:last-child { border-bottom:1px solid var(--line); }
.product-specifications summary { min-height:3.5rem; padding:.9rem 0; display:flex; align-items:center; justify-content:space-between; gap:1rem; color:var(--ink); font-weight:700; list-style:none; cursor:pointer; }
.product-specifications summary::-webkit-details-marker { display:none; }
.product-specifications summary::after { content:"+"; flex:0 0 auto; color:var(--wine); font-size:1.4rem; font-weight:400; }
.product-specifications details[open] summary::after { content:"\2212"; }
.specification-table-wrap { padding:0 0 1rem; overflow-x:auto; }
.specification-table { width:100%; border-collapse:collapse; font-size:.92rem; }
.specification-table th,.specification-table td { padding:.7rem .25rem; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.specification-table th { width:48%; color:var(--muted); font-weight:600; }
.specification-table td { color:var(--ink); }
.specification-empty,.stock-detail { margin:0; padding:0 0 1.25rem; color:var(--muted); }
.stock-status { margin:.4rem 0 1.4rem; font-size:.88rem; font-weight:700; }
.stock-status.is-available,.stock-detail.is-available { color:#267044; }
.stock-status.is-empty,.stock-detail.is-empty { color:#a23838; }
.stock-status.is-unknown,.stock-detail.is-unknown { color:var(--muted); }
.product-info h1 { margin:.35rem 0 1rem; font-size:clamp(2.5rem,4.5vw,4rem); line-height:1.05; }
.detail-price { color:var(--wine); font-family:var(--serif); font-size:1.65rem; }
.detail-summary,.detail-description { color:var(--muted); font-size:1.05rem; line-height:1.75; }
.product-share { margin-top:2rem; padding-top:1.5rem; border-top:1px solid var(--line); }
.product-share>p:first-child { margin:0 0:.8rem; color:var(--muted); font-size:.78rem; font-weight:700; text-transform:uppercase; }
.share-actions { display:flex; flex-wrap:wrap; gap:.65rem; }
.share-button { width:2.75rem; height:2.75rem; padding:0; display:inline-grid; place-items:center; flex:0 0 auto; border:1px solid var(--line); border-radius:50%; background:#fff; color:var(--ink); cursor:pointer; transition:border-color 160ms ease,background-color 160ms ease,color 160ms ease,transform 160ms ease; }
.share-button svg { width:1.2rem; height:1.2rem; overflow:visible; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.share-button svg .is-filled,.share-facebook svg { fill:currentColor; stroke:none; }
.share-button:hover,.share-button:focus-visible { border-color:currentColor; background:#fff; transform:translateY(-1px); }
.share-button:focus-visible { outline:3px solid rgba(132,76,81,.18); outline-offset:2px; }
.share-facebook { color:#1877f2; }
.share-instagram { color:#c13584; }
.share-whatsapp { color:#128c7e; }
.share-x { color:#111; }
.share-pinterest { color:#bd081c; }
.share-feedback { min-height:1.2rem; margin:.65rem 0 0; color:var(--muted); font-size:.78rem; line-height:1.45; }
.cookie-consent { position:fixed; z-index:50; right:1.25rem; bottom:1.25rem; left:1.25rem; width:min(calc(100% - 2.5rem),58rem); margin-inline:auto; padding:1.15rem 1.25rem; display:flex; align-items:center; justify-content:space-between; gap:1.5rem; border:1px solid var(--line); border-radius:8px; background:#fff; box-shadow:0 12px 35px rgba(45,41,41,.14); }
.cookie-consent[hidden],.cookie-preferences[hidden] { display:none; }
.cookie-consent strong { font-family:var(--serif); color:var(--wine); font-size:1.05rem; }
.cookie-consent p { max-width:39rem; margin:.3rem 0 0; color:var(--muted); font-size:.85rem; line-height:1.5; }
.cookie-consent p a { color:var(--wine); }
.cookie-consent-actions { display:flex; align-items:center; gap:.65rem; flex:0 0 auto; }
.cookie-consent-actions .button { min-width:6.5rem; text-align:center; cursor:pointer; }
.cookie-consent-actions .cookie-reject { border-color:var(--line); color:var(--ink); background:#fff; }
.cookie-consent-actions .cookie-reject:hover,.cookie-consent-actions .cookie-reject:focus-visible { border-color:var(--ink); background:#fff; }
.cookie-preferences { position:fixed; z-index:40; left:1rem; bottom:1rem; padding:.45rem .7rem; border:1px solid var(--line); border-radius:4px; background:#fff; color:var(--muted); font:inherit; font-size:.72rem; cursor:pointer; }
.cookie-preferences:hover,.cookie-preferences:focus-visible { border-color:var(--wine); color:var(--wine); }
.product-videos { margin-top:6rem; padding-top:4rem; border-top:1px solid var(--line); }
.product-videos h2 { margin:0 0 2rem; font-size:2.5rem; }
.video-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,28rem),1fr)); gap:2rem; }
.video-grid article { min-width:0; }
.video-grid h3 { font-size:1.2rem; }
.video-grid video,.video-grid iframe { width:100%; aspect-ratio:16/9; border:0; border-radius:8px; background:#111; }
.site-footer { width:min(100% - 3rem,72rem); margin-inline:auto; padding:3rem 0; display:flex; align-items:end; justify-content:space-between; gap:2rem; border-top:1px solid var(--line); background:#fff; }
.site-footer strong { color:var(--wine); font-size:1.4rem; }
.site-footer p { margin:.45rem 0 0; color:var(--muted); }
.site-footer nav { display:flex; gap:1.5rem; }
.site-footer a { color:var(--ink); text-decoration:none; }
.content-page { width:min(100% - 3rem,52rem); min-height:calc(100vh - 15rem); margin-inline:auto; padding:6rem 0 8rem; }
.content-page h1 { margin:.25rem 0 2.5rem; font-size:clamp(2.8rem,6vw,5rem); line-height:1.05; }
.page-copy { color:var(--muted); font-size:1.08rem; line-height:1.85; }
.page-copy p { margin:0 0 1.5rem; }
.page-copy h2 { margin:3.25rem 0 1rem; color:var(--ink); font-size:1.65rem; line-height:1.25; }
.page-copy ul { margin:0 0 1.75rem; padding-left:1.4rem; }
.page-copy li { margin:.55rem 0; padding-left:.25rem; }
.form-section-heading { padding-top:1rem; border-top:1px solid var(--line); }
.form-section-heading h2 { margin:0; font-family:var(--serif); font-size:1.5rem; }
.form-section-heading p { margin:.35rem 0 0; color:var(--muted); }
.product-spec-fields { grid-template-columns:repeat(3,minmax(0,1fr)); }
.media-form { max-width:48rem; margin:2rem 0; padding:1.5rem; border:1px solid var(--line); border-radius:8px; }
.media-list { display:grid; gap:.75rem; }
.media-list article { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 0; border-bottom:1px solid var(--line); }
.media-list article div { display:grid; gap:.25rem; }
.media-list article span { color:var(--muted); font-size:.8rem; text-transform:uppercase; }
.category-image-picker { margin:1.5rem 0; padding:1.25rem; border:1px solid var(--line); border-radius:8px; }
.category-image-picker legend { padding:0 .35rem; font-weight:700; }
.category-image-picker>p { color:var(--muted); }
.category-image-picker>div { display:grid; grid-template-columns:repeat(auto-fill,minmax(8rem,1fr)); gap:.75rem; }
.category-image-option { position:relative; min-width:0; padding:.55rem; display:grid; gap:.45rem; border:1px solid var(--line); border-radius:6px; cursor:pointer; }
.category-image-option:has(input:checked) { border-color:var(--wine); box-shadow:0 0 0 2px var(--blush); }
.category-image-option input { position:absolute; top:.75rem; left:.75rem; }
.category-image-option img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:4px; }
.category-image-option span { overflow:hidden; font-size:.78rem; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }
.category-image-option.is-automatic { min-height:8rem; place-content:center; text-align:center; }
@media (max-width:48rem) {
    .site-header-inner { width:100%; min-height:4.5rem; padding-inline:1rem; }
    .site-header nav { gap:1rem; }
    .hero-section { min-height:auto; }
    .hero-inner { width:min(100% - 2rem,38rem); padding:2.5rem 0 3rem; grid-template-columns:1fr; gap:1.5rem; }
    .hero-copy h1 { font-size:2.65rem; }
    .hero-media { height:17rem; min-height:0; }
    .public-section,.public-shell { width:min(100% - 2rem,38rem); }
    .public-section { padding:4.5rem 0; }
    .category-grid,.product-grid { grid-template-columns:1fr 1fr; }
    .category-card { min-height:13rem; }
    .section-title-row { align-items:start; flex-direction:column; }
    .story-section { padding:4.5rem 1rem; }
    .story-inner { grid-template-columns:1fr; gap:2.5rem; }
    .social-grid { grid-template-columns:1fr 1fr; }
    .product-detail { grid-template-columns:1fr; gap:2rem; }
    .product-gallery.has-thumbnails { grid-template-columns:1fr; grid-template-rows:auto auto; gap:.75rem; }
    .gallery-main { height:auto; min-height:0; }
    .gallery-main img { max-height:70vh; }
    .detail-placeholder { min-height:20rem; }
    .product-gallery.has-thumbnails .gallery-main { grid-column:1; grid-row:1; }
    .gallery-thumbs { flex-direction:row; grid-column:1; grid-row:2; max-height:none; overflow-x:auto; overflow-y:hidden; }
    .gallery-thumb { width:4.25rem; flex-basis:4.25rem; }
    .gallery-zoom-pane,.gallery-zoom-lens { display:none!important; }
    .gallery-lightbox { grid-template-columns:2.75rem minmax(0,1fr) 2.75rem; grid-template-rows:2.75rem minmax(0,1fr) auto 4.5rem; gap:.5rem; padding:.75rem; }
    .gallery-lightbox-close { width:2.75rem; height:2.75rem; }
    .gallery-lightbox-arrow { width:2.5rem; height:2.5rem; font-size:1.15rem; }
    .gallery-lightbox-thumb { width:3.5rem; height:3.5rem; }
    .product-specifications { margin-top:2rem; }
    .product-spec-fields { grid-template-columns:1fr; }
    .product-info { position:static; }
    .site-footer { width:min(100% - 2rem,38rem); align-items:start; flex-direction:column; }
    .cookie-consent { align-items:stretch; flex-direction:column; gap:1rem; }
    .cookie-consent-actions { width:100%; }
    .cookie-consent-actions .button { flex:1 1 50%; }
}

.add-to-cart { margin:1.5rem 0; padding:1rem 0; display:flex; align-items:end; gap:.75rem; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.add-to-cart label,.cart-quantity label { display:block; color:var(--muted); font-size:.8rem; font-weight:700; }
.add-to-cart input,.cart-quantity input { width:5rem; min-height:2.75rem; padding:.5rem; border:1px solid var(--line); border-radius:4px; }
.button-secondary { min-height:2.5rem; padding:.5rem .75rem; border:1px solid #f8cfe2; border-radius:4px; background:#f8cfe2; color:#4d3f45; cursor:pointer; font:inherit; font-weight:700; }
.button-secondary:hover,.button-secondary:focus-visible { border-color:#f3b9d3; background:#f3b9d3; color:#352c30; }
.cart-page { padding-top:3rem; padding-bottom:5rem; }
.cart-title h1 { margin:.25rem 0 2rem; }
.cart-alert { padding:.85rem 1rem; border-left:3px solid var(--accent); background:#fff7f7; color:var(--ink); }
.cart-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(17rem,22rem); gap:3rem; align-items:start; }
.cart-items { border-top:1px solid var(--line); }
.cart-item { padding:1.25rem 0; display:grid; grid-template-columns:7rem minmax(10rem,1fr) auto auto; gap:1.25rem; align-items:center; border-bottom:1px solid var(--line); }
.cart-item-image { width:7rem; height:7rem; display:grid; place-items:center; background:#fff; }
.cart-item-image img { width:100%; height:100%; object-fit:contain; }
.cart-item-info h2 { margin:0 0 .45rem; font-size:1.1rem; }
.cart-item-info h2 a,.cart-summary>a,.cart-item-total .link-button { color:inherit; text-decoration:none; }
.cart-item-info h2 a:hover,.cart-item-info h2 a:focus-visible,.cart-summary>a:hover,.cart-summary>a:focus-visible { color:var(--wine); text-decoration:none; }
.cart-item-total .link-button:hover,.cart-item-total .link-button:focus-visible { color:var(--wine-dark); text-decoration:none; }
.cart-item-info p { margin:.2rem 0; color:var(--muted); }
.cart-quantity { display:grid; gap:.35rem; }
.cart-item-total { min-width:7.5rem; display:grid; justify-items:end; gap:.75rem; }
.cart-summary { padding:1.5rem; border:1px solid var(--line); border-radius:6px; background:#fff; }
.cart-summary h2 { margin-top:0; }
.cart-summary>div { padding:1rem 0; display:flex; justify-content:space-between; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.cart-summary>p { color:var(--muted); }
.cart-summary>.button { width:100%; margin:.75rem 0 1rem; }
.cart-summary>.button:disabled { cursor:not-allowed; opacity:.55; }
.shipping-quote-form { margin-top:1rem; display:grid; gap:.45rem; }
.shipping-quote-form>label,.shipping-options legend { color:var(--muted); font-size:.8rem; font-weight:700; }
.shipping-quote-form>div { display:flex; gap:.5rem; }
.shipping-quote-form input { width:100%; min-width:0; min-height:2.75rem; padding:.55rem .65rem; border:1px solid var(--line); border-radius:4px; font:inherit; }
.shipping-error { margin:.75rem 0 0; padding:.65rem .75rem; border-left:3px solid #a23838; background:#fff7f7; color:#7b2c2c!important; font-size:.82rem; line-height:1.4; }
.shipping-options { margin-top:1rem; display:grid; gap:.75rem; }
.shipping-options fieldset { min-width:0; margin:0; padding:0; border:0; }
.shipping-options legend { margin-bottom:.45rem; }
.shipping-option { padding:.7rem .55rem; display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:.55rem; align-items:center; border-top:1px solid var(--line); cursor:pointer; }
.shipping-option:last-child { border-bottom:1px solid var(--line); }
.shipping-option.is-selected { background:var(--blush); }
.shipping-option input { width:1rem; height:1rem; accent-color:var(--wine); }
.shipping-option span { min-width:0; display:grid; gap:.15rem; }
.shipping-option strong { overflow-wrap:anywhere; font-size:.86rem; }
.shipping-option small { color:var(--muted); font-size:.75rem; }
.shipping-option b { color:var(--wine); font-size:.84rem; white-space:nowrap; }
.shipping-options>.button-secondary { width:100%; }
.cart-summary .cart-total { border-top:0; }
.cart-total strong { color:var(--wine); font-family:var(--serif); font-size:1.15rem; }
.checkout-page { max-width:68rem; }
.checkout-steps { margin-bottom:3rem; display:grid; grid-template-columns:repeat(4,1fr); border-bottom:1px solid var(--line); }
.checkout-steps>* { padding:.8rem .25rem; color:var(--muted); font-size:.78rem; font-weight:700; text-align:center; text-decoration:none; }
.checkout-steps strong { border-bottom:2px solid var(--wine); color:var(--wine); }
.checkout-title { max-width:42rem; margin-bottom:2.5rem; }
.checkout-title h1 { margin:.25rem 0 .75rem; font-size:clamp(2.4rem,5vw,3.75rem); }
.checkout-title>p:last-child { color:var(--muted); line-height:1.6; }
.checkout-form { display:grid; gap:2.5rem; }
.checkout-form>section { padding:1.5rem 0 0; border-top:1px solid var(--line); }
.checkout-form h2 { margin:0 0 1.25rem; font-size:1.35rem; }
.checkout-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.1rem 1.25rem; }
.checkout-fields .field { margin:0; }
.checkout-fields .field-wide { grid-column:1/-1; }
.checkout-fields label span { color:var(--muted); font-weight:400; }
.checkout-fields select { width:100%; min-height:2.85rem; padding:.65rem .75rem; border:1px solid #d8cecf; border-radius:6px; background:#fff; font:inherit; }
.checkout-consent>label { display:flex; align-items:flex-start; gap:.7rem; color:var(--muted); line-height:1.5; }
.checkout-consent input { width:1.1rem; height:1.1rem; margin-top:.15rem; flex:0 0 auto; accent-color:var(--wine); }
.checkout-consent a,.checkout-actions a,.review-section a { color:var(--wine); }
.checkout-actions { display:flex; align-items:center; justify-content:flex-end; gap:1.5rem; }
.review-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(17rem,22rem); gap:3rem; align-items:start; }
.review-content { display:grid; gap:1rem; }
.review-section { padding:1.25rem 0; border-top:1px solid var(--line); }
.review-section:last-child { border-bottom:1px solid var(--line); }
.review-section header { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.review-section h2 { margin:0; font-size:1.25rem; }
.review-section p { color:var(--muted); line-height:1.65; }
.review-item { padding:.8rem 0; display:flex; justify-content:space-between; gap:1rem; color:var(--muted); }
.review-summary>p { font-size:.8rem; line-height:1.45; }
.review-summary>form .button { width:100%; margin:.75rem 0 0; }
.order-page { min-height:calc(100vh - 15rem); max-width:52rem; }
.order-page h1 { margin:.25rem 0 1rem; font-size:clamp(2.5rem,6vw,4.5rem); }
.order-lead { color:var(--muted); font-size:1.1rem; line-height:1.65; }
.order-timeline { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:2.5rem 0; padding:0; list-style:none; }
.order-timeline li { position:relative; display:grid; justify-items:center; gap:.65rem; color:var(--muted); text-align:center; font-size:.82rem; }
.order-timeline li::before { content:""; position:absolute; top:.45rem; right:50%; left:-50%; height:2px; background:var(--line); }
.order-timeline li:first-child::before { display:none; }
.order-timeline li>span { position:relative; z-index:1; width:1rem; height:1rem; border:2px solid var(--line); border-radius:50%; background:#fff; }
.order-timeline .is-complete,.order-timeline .is-current { color:var(--ink); }
.order-timeline .is-complete::before,.order-timeline .is-current::before { background:var(--wine); }
.order-timeline .is-complete>span { border-color:var(--wine); background:var(--wine); }
.order-timeline .is-current>span { border-color:var(--wine); box-shadow:0 0 0 4px #f3e5e5; }
.order-status { margin:2.5rem 0; border-block:1px solid var(--line); }
.order-status>div { padding:1rem 0; display:grid; grid-template-columns:9rem minmax(0,1fr); gap:.25rem 1rem; border-bottom:1px solid var(--line); }
.order-status>div:last-child { border-bottom:0; }
.order-status span { color:var(--muted); font-size:.8rem; font-weight:700; text-transform:uppercase; }
.order-status small { grid-column:2; color:var(--muted); }
.order-notice { padding:1rem; border-left:3px solid var(--wine); background:var(--blush); color:var(--muted); line-height:1.55; }
.order-payment-form { margin:1.5rem 0; }
.order-payment-form .button,.order-payment-button { display:inline-flex; justify-content:center; min-width:15rem; }
@media (max-width:54rem) {
    .cart-layout { grid-template-columns:1fr; }
    .review-layout { grid-template-columns:1fr; }
    .cart-item { grid-template-columns:5.5rem minmax(0,1fr) auto; }
    .cart-item-image { width:5.5rem; height:5.5rem; }
    .cart-quantity { grid-column:2; }
    .cart-item-total { grid-column:3; grid-row:1 / span 2; }
}
@media (max-width:36rem) {
    .add-to-cart { align-items:stretch; flex-wrap:wrap; }
    .add-to-cart .button { flex:1; }
    .cart-item { grid-template-columns:4.5rem minmax(0,1fr); align-items:start; }
    .cart-item-image { width:4.5rem; height:4.5rem; }
    .cart-quantity,.cart-item-total { grid-column:2; grid-row:auto; justify-items:start; }
    .checkout-steps { overflow-x:auto; grid-template-columns:repeat(4,minmax(7rem,1fr)); }
    .checkout-fields { grid-template-columns:1fr; }
    .checkout-fields .field-wide { grid-column:auto; }
    .checkout-actions { align-items:stretch; flex-direction:column-reverse; text-align:center; }
    .checkout-actions .button { width:100%; }
    .order-status>div { grid-template-columns:1fr; }
    .order-status small { grid-column:1; }
    .order-timeline { grid-template-columns:1fr; gap:0; }
    .order-timeline li { min-height:3.25rem; grid-template-columns:1rem 1fr; justify-items:start; text-align:left; }
    .order-timeline li::before { top:-2.25rem; right:auto; bottom:2.25rem; left:.45rem; width:2px; height:auto; }
}
@media (max-width:30rem) {
    .brand { font-size:1.35rem; }
    .site-header nav a { font-size:.78rem; }
    .category-grid,.product-grid { grid-template-columns:1fr; }
}

/* Quiet operational admin */
.admin-body { min-width:20rem; color:var(--ink); background:#fff; font-family:var(--sans); }
.admin-body h1,.admin-body h2,.admin-nav strong,.metric-grid strong { font-family:var(--serif); letter-spacing:0; }
.admin-shell { width:min(100% - 3rem,75rem); padding:2.5rem 0 5rem; }
.admin-header { align-items:center; padding-bottom:1.5rem; border-color:var(--line); }
.admin-header h1 { margin:.2rem 0 0; font-size:2rem; }
.admin-content { padding:4rem 0; }
.admin-content>h2 { margin:0 0 .5rem; font-size:clamp(2.2rem,5vw,4rem); line-height:1.05; }
.admin-content>p { color:var(--muted); }
.metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1.25rem; margin:3rem 0; }
.metric-grid article { min-height:13rem; padding:1.75rem; display:flex; flex-direction:column; border:1px solid var(--line); border-radius:8px; background:#fff; }
.metric-grid span { color:var(--muted); font-size:.78rem; font-weight:700; text-transform:uppercase; }
.metric-grid strong { margin:.75rem 0 auto; color:var(--ink); font-size:3rem; }
.metric-grid article:last-child strong { color:var(--wine); font-size:2rem; }
.metric-grid small { padding-top:1rem; border-top:1px solid var(--line); color:var(--muted); }
.quick-title { margin:0 0 1rem; font-size:1.75rem!important; }
.admin-nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
.admin-nav a { min-height:7rem; padding:1.25rem; justify-content:center; border-color:var(--line); border-radius:8px; }
.admin-nav a:hover,.admin-nav a:focus-visible { border-color:#d4babc; background:var(--blush); }
.admin-nav strong { color:var(--wine); font-size:1.25rem; }
.admin-body .button { border-color:var(--wine); color:var(--wine); }
.admin-body .button:hover,.admin-body .button:focus-visible { background:var(--wine); color:#fff; }
.page-header { padding-bottom:1.5rem; border-bottom:1px solid var(--line); }
.page-header h1,.form-shell h1 { font-family:var(--serif); font-size:2.5rem; }
table { border:1px solid #f0eaea; }
th { background:#fffafa; color:var(--muted); }
th,td { border-color:#eee6e6; }
.notice { border-left-color:var(--wine); background:var(--blush); }
.field input,.field select,.field textarea,.auth-form input { border-color:#d8cecf; border-radius:6px; }
.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible,.auth-form input:focus-visible { outline-color:rgba(132,76,81,.2); border-color:var(--wine); }
.status-label.is-active { color:#28643c; }
.admin-body .link-button,.admin-body a { color:var(--wine); }
.admin-body button.button { border-color:var(--wine); color:var(--wine); }
.breadcrumbs a { color:var(--wine); }
.order-filters { display:flex; align-items:end; gap:1rem; margin:0 0 2rem; }
.order-filters .field { min-width:12rem; }
.order-filters .button { min-height:2.75rem; }
.order-state { display:inline-block; font-size:.82rem; font-weight:700; white-space:nowrap; }
.state-paid,.state-delivered { color:#28643c; }
.state-pending,.state-preparing,.state-shipped { color:#765b18; }
.state-failed,.state-expired,.state-cancelled,.state-refunded,.state-disputed { color:#8d2d21; }
.state-paid_review { color:#8a5a13; }
.order-heading-status { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:1rem; }
.order-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:3rem; margin:2rem 0 0; }
.order-detail-grid section,.order-admin-section { min-width:0; padding:0 0 2rem; border-bottom:1px solid var(--line); }
.order-detail-grid h2,.order-admin-section h2 { margin:0 0 1rem; font-size:1.35rem; }
.order-data { margin:0; }
.order-data div { display:grid; grid-template-columns:minmax(7rem,.4fr) minmax(0,1fr); gap:1rem; padding:.7rem 0; border-top:1px solid #eee6e6; }
.order-data dt { color:var(--muted); font-size:.85rem; font-weight:700; }
.order-data dd { min-width:0; margin:0; overflow-wrap:anywhere; }
.order-admin-section { padding-top:2rem; }
.order-subheading { margin:2rem 0 .75rem; font-size:1rem; }
.order-action-form { max-width:42rem; }
.order-action-form .button { justify-self:start; }
.danger-button { border-color:#8d2d21!important; color:#8d2d21!important; }
.danger-button:hover,.danger-button:focus-visible { background:#8d2d21!important; color:#fff!important; }
.order-history { display:grid; gap:0; margin:0; padding:0; list-style:none; }
.order-history li { padding:1rem 0; border-top:1px solid #eee6e6; }
.order-history span { display:block; margin-top:.25rem; color:var(--muted); font-size:.85rem; }
.order-history p { margin:.5rem 0 0; }
.operations-alert { padding:1rem; border-left:3px solid #8d2d21; background:#fff4f2; color:var(--ink)!important; }
.operations-section { padding:2rem 0; border-bottom:1px solid var(--line); }
.operations-section h2 { margin:0 0 1rem; font-size:1.35rem; }
.operations-section table { margin:0; }
.operation-state { font-size:.82rem; font-weight:700; }
.operation-state.is-healthy { color:#28643c; }
.operation-state.is-alert { color:#8d2d21; }
.operation-code { display:block; margin-top:.25rem; color:var(--muted); font-family:monospace; }
.empty-line { margin:0; color:var(--muted); }
.operation-actions { display:flex; align-items:flex-start; flex-direction:column; gap:.5rem; }
@media (max-width:48rem) {
    .admin-shell { width:min(100% - 2rem,42rem); }
    .metric-grid { grid-template-columns:1fr; }
    .metric-grid article { min-height:10rem; }
    .admin-nav { grid-template-columns:1fr; }
    .order-filters { align-items:stretch; flex-direction:column; }
    .order-filters .field { width:100%; min-width:0; }
    .order-detail-grid { grid-template-columns:1fr; gap:2rem; }
    .order-heading-status { justify-content:flex-start; }
}

/* Storefront refinement: blush primary, compact product purchase panel and responsive navigation. */
.public-body .button,
.public-body button.button {
    border-color:var(--primary-strong);
    background:var(--primary);
    color:var(--ink);
    font-weight:700;
}
.public-body .button:hover,.public-body .button:focus-visible,
.public-body button.button:hover,.public-body button.button:focus-visible {
    border-color:var(--primary-strong);
    background:var(--primary-strong);
    color:var(--ink);
}
.public-body .button-primary { border-color:var(--primary-strong); background:var(--primary); color:var(--ink); }
.public-body .button-primary:hover,.public-body .button-primary:focus-visible { border-color:var(--primary-strong); background:var(--primary-strong); color:var(--ink); }
.site-header-inner { position:relative; }
.site-menu-toggle { display:none; width:2.75rem; height:2.75rem; padding:.65rem; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--ink); cursor:pointer; }
.site-menu-toggle span { display:block; width:100%; height:2px; margin:.25rem 0; background:currentColor; transition:transform 160ms ease,opacity 160ms ease; }
.site-menu-toggle:focus-visible { outline:3px solid rgba(248,207,226,.8); outline-offset:2px; }
.is-menu-open .site-menu-toggle span:nth-child(1) { transform:translateY(6px) rotate(45deg); }
.is-menu-open .site-menu-toggle span:nth-child(2) { opacity:0; }
.is-menu-open .site-menu-toggle span:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }
.product-info { top:7rem; }
.product-detail { column-gap:clamp(3rem,7vw,6rem); row-gap:2.5rem; }
.product-detail-content { grid-column:1; min-width:0; }
.product-detail-content .product-specifications { margin-top:0; }
.product-info h1 { max-width:22ch; margin:.35rem 0 .9rem; font-size:2.25rem; line-height:1.12; overflow-wrap:anywhere; }
.detail-price { margin:.5rem 0; font-size:2rem; }
.add-to-cart { align-items:flex-end; }
.add-to-cart>div { display:grid; gap:.35rem; }
.add-to-cart .button { min-height:2.75rem; flex:1 1 auto; text-align:center; }
.product-description { grid-column:1/-1; width:100%; padding:2rem 0 0; }
.product-description h2 { margin:0 0 1.1rem; font-size:1.35rem; }
.product-description .detail-summary { margin:0 0 1rem; color:var(--ink); font-weight:600; }
.product-description .detail-description { padding-top:1rem; border-top:1px solid var(--line); }
.product-sticky-trigger { grid-column:1/-1; width:100%; height:1px; }
.product-sticky-purchase { position:fixed; z-index:38; right:1rem; bottom:1rem; left:1rem; width:min(calc(100% - 2rem),48rem); min-height:6.25rem; margin-inline:auto; padding:1rem 1.15rem; display:grid; grid-template-columns:5rem minmax(0,1fr) auto; gap:1rem; align-items:center; border:1px solid var(--line); border-radius:8px; background:#fff; box-shadow:0 18px 50px rgba(48,40,44,.2); }
.product-sticky-purchase[hidden] { display:none; }
.product-sticky-purchase.is-visible { animation:product-sticky-in 180ms ease-out both; }
.product-sticky-purchase>img,.product-sticky-placeholder { width:5rem; height:5rem; display:block; object-fit:contain; border-radius:6px; background:#faf8f8; }
.product-sticky-purchase>div { min-width:0; display:grid; gap:.4rem; }
.product-sticky-purchase strong { display:-webkit-box; overflow:hidden; font-family:var(--sans); font-size:.95rem; line-height:1.3; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.product-sticky-purchase span { color:var(--wine); font-family:var(--serif); font-weight:700; }
.product-sticky-purchase form { margin:0; }
.product-sticky-purchase .button { min-width:12rem; min-height:3rem; }
@keyframes product-sticky-in { from { opacity:0; transform:translateY(1rem); } to { opacity:1; transform:translateY(0); } }
.product-shipping { margin:1.5rem 0 0; padding:1.5rem 0; border-top:1px solid var(--line); }
.product-shipping h2 { margin:0 0 .8rem; font-family:var(--sans); font-size:.9rem; }
.product-shipping form>div { display:flex; gap:.5rem; }
.product-shipping input[type="text"] { width:100%; min-width:0; min-height:2.75rem; padding:.6rem .7rem; border:1px solid var(--line); border-radius:4px; font:inherit; }
.product-shipping .button-secondary { flex:0 0 auto; }
.product-shipping-result { margin-top:.8rem; color:var(--muted); font-size:.82rem; line-height:1.4; }
.product-shipping-result.is-error { padding:.65rem .75rem; border-left:3px solid #a23838; background:#fff7f7; color:#7b2c2c; }
.product-shipping-result ul { margin:0; padding:0; display:grid; list-style:none; }
.product-shipping-result li { padding:.65rem 0; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.15rem .75rem; border-top:1px solid var(--line); }
.product-shipping-result li:last-child { border-bottom:1px solid var(--line); }
.product-shipping-result li span { color:var(--ink); font-weight:600; }
.product-shipping-result li strong { color:var(--wine); }
.product-shipping-result li small { grid-column:1/-1; color:var(--muted); }
.related-products { margin-top:5rem; padding-top:4rem; border-top:1px solid var(--line); }
.related-products .section-title { margin-bottom:2rem; }
.related-products .section-title h2 { font-size:2.25rem; }
.related-products-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }

@media (max-width:56rem) {
    .site-header-inner.has-menu-toggle { min-height:4.5rem; gap:.5rem; }
    .has-menu-toggle .site-menu-toggle { display:block; margin-left:auto; flex:0 0 auto; }
    .has-menu-toggle nav[aria-label="Principal"] { position:absolute; top:calc(100% + 1px); right:0; left:0; z-index:25; max-width:none; margin:0; padding:.6rem 1rem 1rem; display:none; align-items:stretch; flex-direction:column; gap:0; overflow:visible; white-space:normal; border-bottom:1px solid var(--line); background:#fff; box-shadow:0 12px 24px rgba(48,40,44,.08); }
    .has-menu-toggle.is-menu-open nav[aria-label="Principal"] { display:flex; }
    .has-menu-toggle nav[aria-label="Principal"] a { width:100%; min-height:2.8rem; padding:.25rem 0; border-bottom:1px solid #f5edf1; font-size:.9rem; }
    .related-products-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:48rem) {
    .product-info h1 { max-width:none; font-size:2rem; }
    .product-detail-content { grid-column:auto; }
    .category-showcase-header .section-title { padding-inline:0; }
    .category-showcase-controls { display:none; }
    .category-showcase-track { margin-inline:-1rem; padding:0 1rem; gap:1rem; }
    .category-showcase-track.is-short { justify-content:flex-start; }
    .category-showcase-card { flex-basis:min(68vw,15rem); }
    .related-products { margin-top:4rem; padding-top:3rem; }
    .product-sticky-purchase { bottom:5.4rem; grid-template-columns:3.75rem minmax(0,1fr) auto; gap:.7rem; min-height:0; padding:.7rem; }
    .product-sticky-purchase>img,.product-sticky-placeholder { width:3.75rem; height:3.75rem; }
    .product-sticky-purchase .button { min-width:0; min-height:2.75rem; padding:.65rem .8rem; font-size:.82rem; }
}

@media (max-width:30rem) {
    .brand { max-width:calc(100% - 4rem); font-size:1.4rem; overflow-wrap:anywhere; }
    .add-to-cart { align-items:stretch; flex-direction:column; }
    .add-to-cart>div,.add-to-cart input { width:100%; }
    .product-shipping form>div { align-items:stretch; flex-direction:column; }
    .related-products-grid { grid-template-columns:1fr; }
    .product-sticky-purchase { grid-template-columns:3.5rem minmax(0,1fr); }
    .product-sticky-purchase>img,.product-sticky-placeholder { width:3.5rem; height:3.5rem; }
    .product-sticky-purchase form { grid-column:1/-1; }
    .product-sticky-purchase .button { width:100%; }
}

@media (prefers-reduced-motion:reduce) {
    .product-sticky-purchase.is-visible { animation:none; }
}

/* Shared storefront footer, social feed and contact channel. */
.social-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.social-grid a { position:relative; display:block; aspect-ratio:1; overflow:hidden; border-radius:6px; background:var(--blush); }
.social-grid img { width:100%; height:100%; border-radius:0; object-fit:cover; transition:transform 220ms ease; }
.social-grid a:hover img,.social-grid a:focus-visible img { transform:scale(1.035); }
.social-grid a:focus-visible { outline:3px solid var(--primary-strong); outline-offset:3px; }

.site-footer { width:100%; margin:0; padding:0; border:0; background:#a9577d; color:#fff8fb; font-size:.9rem; }
.site-footer-inner { width:min(100% - 3rem,76rem); margin-inline:auto; padding:4rem 0; display:grid; grid-template-columns:minmax(12rem,1.2fr) minmax(7.5rem,.75fr) minmax(16.5rem,1.45fr) minmax(8.5rem,.85fr) minmax(9.5rem,.9fr); gap:clamp(1.25rem,2vw,2.25rem); align-items:start; }
.site-footer strong { display:block; margin:0 0 1rem; color:#fff; font-family:var(--sans); font-size:.82rem; font-weight:750; letter-spacing:0; }
.site-footer .footer-brand>strong { margin-bottom:.75rem; font-family:var(--serif); font-size:1.75rem; }
.site-footer p { margin:0 0 1rem; color:#fff8fb; line-height:1.65; }
.site-footer nav,.footer-block { display:grid; align-content:start; gap:.85rem; }
.site-footer a { width:fit-content; color:#fff8fb; text-decoration:none; line-height:1.45; }
.site-footer a:hover,.site-footer a:focus-visible { color:#fff; text-decoration:underline; text-underline-offset:.25rem; }
.site-footer .footer-service-hours { max-width:15rem; margin:.25rem 0 0; color:#fff8fb; line-height:1.55; }
.footer-service-hours b { color:#fff; }
.footer-block[aria-label="Atendimento"] a[href^="mailto:"] { white-space:nowrap; }
.footer-social { min-width:13rem; }
.footer-social>div { display:flex; flex-wrap:nowrap; gap:.65rem; }
.footer-social--brand { min-width:0; margin-top:1.25rem; }
.footer-social-link { width:2.7rem!important; height:2.7rem; display:grid; place-items:center; border:1px solid rgba(255,255,255,.42); border-radius:50%; color:#fff!important; }
.footer-social-link:hover,.footer-social-link:focus-visible { background:rgba(255,255,255,.14); text-decoration:none!important; }
.footer-social-link svg { width:1.2rem; height:1.2rem; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.footer-social-link svg .is-filled { fill:currentColor; stroke:none; }
.footer-social-link svg .is-cutout { fill:#a9577d; stroke:none; }
.footer-security { min-width:10rem; }
.footer-security-badges { display:grid; justify-items:start; gap:.7rem; }
.security-badge { min-width:0; display:block; border-radius:6px; line-height:1!important; }
.security-badge:hover,.security-badge:focus-visible { box-shadow:0 6px 18px rgba(69,30,48,.2); transform:translateY(-1px); }
.security-badge:focus-visible { outline:3px solid #fff; outline-offset:3px; }
.security-badge img { width:auto; max-width:6rem; height:auto; max-height:4rem; display:block; object-fit:contain; }
.security-badge.is-ssl img { width:5rem; }
.security-badge.is-norton img,.security-badge.is-dmca img { width:7rem; }
.security-badge.is-google img { width:89px; max-height:none; }
.footer-payments { grid-column:1/-1; display:grid; justify-items:center; padding-top:.25rem; text-align:center; }
.footer-payment-brands { display:flex; flex-wrap:wrap; justify-content:center; gap:.65rem; }
.payment-brand { width:3.75rem; height:2.5rem; display:grid; place-items:center; overflow:hidden; padding:.35rem; border:1px solid rgba(255,255,255,.35); border-radius:4px; background:#fff; }
.payment-brand img { display:block; width:auto; max-width:100%; height:auto; max-height:100%; object-fit:contain; }
.payment-brand.is-mastercard img { max-width:2.75rem; max-height:1.9rem; }
.payment-brand.is-amex img { max-width:2.1rem; max-height:2.1rem; }
.footer-legal { grid-column:1/-1; padding-top:2rem; border-top:1px solid rgba(255,255,255,.25); text-align:center; }
.site-footer .footer-legal p { max-width:68rem; margin:0 auto; color:#fff8fb; font-size:.78rem; line-height:1.7; }
.whatsapp-float { position:fixed; z-index:35; right:1.25rem; bottom:1.25rem; width:3.65rem; height:3.65rem; display:grid; place-items:center; border:2px solid #fff; border-radius:50%; background:#25d366; color:#fff; box-shadow:0 10px 28px rgba(37,96,62,.28); transition:transform 160ms ease,box-shadow 160ms ease; }
.whatsapp-float:hover,.whatsapp-float:focus-visible { color:#fff; transform:translateY(-2px); box-shadow:0 14px 32px rgba(37,96,62,.34); }
.whatsapp-float:focus-visible { outline:3px solid var(--primary-strong); outline-offset:3px; }
.whatsapp-float svg { width:1.75rem; height:1.75rem; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }

@media (max-width:64rem) {
    .site-footer-inner { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .footer-brand { grid-column:1/-1; max-width:30rem; }
}

@media (max-width:36rem) {
    .social-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
    .site-footer-inner { width:min(100% - 2rem,32rem); padding:3rem 0 6.75rem; grid-template-columns:1fr; gap:2.25rem; }
    .footer-brand { grid-column:auto; }
    .whatsapp-float { right:1rem; bottom:1rem; width:3.4rem; height:3.4rem; }
}

/* Compact internal headings and link hover without decorative underlines. */
.public-body a:hover,.public-body a:focus-visible { text-decoration:none!important; }
.public-body .catalog-intro h1,
.public-body .catalog-page-header h1,
.public-body .content-page h1,
.public-body .cart-title h1,
.public-body .checkout-title h1,
.public-body .order-page h1,
.public-body .public-empty h1 {
    font-size:clamp(1.75rem,3vw,2.25rem);
    line-height:1.12;
}
.public-body .product-info h1 { font-size:clamp(1.7rem,2.5vw,2rem); line-height:1.18; }

/* Administrative workspace */
.has-admin-sidebar {
    --admin-sidebar-width:15.5rem;
    --admin-sidebar-compact:4.75rem;
    min-height:100vh;
    display:block;
    background:#fff;
}
.admin-sidebar-state { position:fixed; width:1px; height:1px; opacity:0; pointer-events:none; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.admin-sidebar {
    position:fixed;
    z-index:60;
    inset:0 auto 0 0;
    width:var(--admin-sidebar-width);
    padding:1.25rem .85rem;
    display:flex;
    flex-direction:column;
    border-right:1px solid var(--line);
    background:#fff;
    box-shadow:8px 0 30px rgba(84,54,68,.035);
    transition:width 180ms ease,transform 180ms ease;
}
.admin-sidebar svg { width:1.2rem; height:1.2rem; flex:0 0 1.2rem; }
.admin-sidebar-head { min-height:3.3rem; display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.admin-sidebar-brand { min-width:0; display:flex; align-items:center; gap:.75rem; color:var(--ink)!important; text-decoration:none; }
.admin-brand-mark {
    width:2.35rem;
    height:2.35rem;
    flex:0 0 2.35rem;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:var(--primary);
    color:#8f4166;
    font-family:var(--serif);
    font-size:1.2rem;
    font-weight:700;
}
.admin-brand-copy { min-width:0; display:grid; gap:.12rem; }
.admin-brand-copy strong { overflow:hidden; color:#9d4f73; font-family:var(--serif); font-size:1.15rem; text-overflow:ellipsis; white-space:nowrap; }
.admin-brand-copy small { overflow:hidden; color:var(--muted); font-size:.68rem; text-overflow:ellipsis; white-space:nowrap; }
.admin-sidebar-collapse,.admin-mobile-menu {
    width:2.35rem;
    height:2.35rem;
    flex:0 0 2.35rem;
    display:grid;
    place-items:center;
    border:1px solid var(--line);
    border-radius:6px;
    background:#fff;
    color:var(--muted);
    cursor:pointer;
}
.admin-sidebar-collapse:hover,.admin-sidebar-collapse:focus-visible,.admin-mobile-menu:hover,.admin-mobile-menu:focus-visible { border-color:var(--primary-strong); background:var(--blush); color:#9d4f73; }
.admin-sidebar-nav { display:grid; gap:.25rem; margin-top:2rem; }
.admin-sidebar-nav a,.admin-sidebar-foot a,.admin-sidebar-foot button {
    min-height:2.75rem;
    padding:.65rem .75rem;
    display:flex;
    align-items:center;
    gap:.8rem;
    border:0;
    border-radius:6px;
    background:transparent;
    color:#4e454a!important;
    font:inherit;
    font-size:.84rem;
    font-weight:650;
    text-align:left;
    text-decoration:none!important;
    cursor:pointer;
    transition:background-color 150ms ease,color 150ms ease;
}
.admin-sidebar-nav a:hover,.admin-sidebar-nav a:focus-visible,.admin-sidebar-foot a:hover,.admin-sidebar-foot a:focus-visible,.admin-sidebar-foot button:hover,.admin-sidebar-foot button:focus-visible { background:var(--blush); color:#9d4f73!important; }
.admin-sidebar-nav a.is-active { background:#fff1f7; color:#984567!important; box-shadow:inset 3px 0 0 var(--primary-strong); }
.admin-sidebar-nav a span,.admin-sidebar-foot span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-sidebar-foot { margin-top:auto; padding-top:1rem; border-top:1px solid var(--line); }
.admin-sidebar-foot form { margin:0; }
.admin-sidebar-foot button { width:100%; }
.admin-account { display:block; padding:.65rem .75rem 0; overflow:hidden; color:var(--muted); font-size:.68rem; text-overflow:ellipsis; white-space:nowrap; }
.admin-mobile-menu,.admin-sidebar-backdrop { display:none; }

.has-admin-sidebar>.admin-shell,.has-admin-sidebar>.form-shell {
    width:auto;
    min-width:0;
    margin:0 0 0 var(--admin-sidebar-width);
    padding:2rem clamp(1.5rem,3vw,3.5rem) 5rem;
    transition:margin-left 180ms ease;
}
.has-admin-sidebar>.form-shell { max-width:70rem; }
.admin-sidebar-state:checked~.admin-sidebar { width:var(--admin-sidebar-compact); }
.admin-sidebar-state:checked~.admin-sidebar .admin-brand-copy,
.admin-sidebar-state:checked~.admin-sidebar .admin-sidebar-nav span,
.admin-sidebar-state:checked~.admin-sidebar .admin-sidebar-foot span,
.admin-sidebar-state:checked~.admin-sidebar .admin-account { display:none; }
.admin-sidebar-state:checked~.admin-sidebar .admin-sidebar-head { justify-content:center; }
.admin-sidebar-state:checked~.admin-sidebar .admin-sidebar-brand { display:none; }
.admin-sidebar-state:checked~.admin-sidebar .admin-sidebar-collapse svg { transform:rotate(180deg); }
.admin-sidebar-state:checked~.admin-sidebar .admin-sidebar-nav a,
.admin-sidebar-state:checked~.admin-sidebar .admin-sidebar-foot a,
.admin-sidebar-state:checked~.admin-sidebar .admin-sidebar-foot button { justify-content:center; padding-inline:.5rem; }
.admin-sidebar-state:checked~.admin-shell,.admin-sidebar-state:checked~.form-shell { margin-left:var(--admin-sidebar-compact); }

.has-admin-sidebar .admin-header,.has-admin-sidebar .page-header { min-height:4.25rem; align-items:center; margin:0 0 2rem; padding:0 0 1.25rem; }
.has-admin-sidebar .admin-header h1,.has-admin-sidebar .page-header h1,.has-admin-sidebar .form-shell>h1 { margin:.25rem 0 0; font-size:clamp(1.8rem,3vw,2.35rem); }
.has-admin-sidebar .admin-content { padding:1rem 0; }
.has-admin-sidebar .admin-content>h2 { font-size:clamp(2rem,4vw,3.35rem); }
.has-admin-sidebar .back-link { margin-bottom:.15rem; color:#9d4f73; font-size:.78rem; text-decoration:none; }
.has-admin-sidebar a,.has-admin-sidebar .link-button { text-decoration:none; }
.has-admin-sidebar a:hover,.has-admin-sidebar a:focus-visible,.has-admin-sidebar .link-button:hover,.has-admin-sidebar .link-button:focus-visible { color:#8f4166; text-decoration:none; }
.has-admin-sidebar .button,.has-admin-sidebar button.button { border-color:var(--primary-strong); background:var(--primary); color:#5b3547; }
.has-admin-sidebar .button:hover,.has-admin-sidebar .button:focus-visible,.has-admin-sidebar button.button:hover,.has-admin-sidebar button.button:focus-visible { border-color:#dc90b3; background:#efb4cf; color:#4b2939; }
.has-admin-sidebar .button-secondary { background:#fff; }

.has-admin-sidebar .metric-grid { gap:1rem; margin:2rem 0 2.5rem; }
.has-admin-sidebar .metric-grid article { min-height:10.5rem; padding:1.35rem; border-color:var(--line); box-shadow:0 10px 30px rgba(84,54,68,.045); }
.has-admin-sidebar .metric-grid article::before { content:""; width:2rem; height:2rem; margin-bottom:.85rem; border-radius:50%; background:var(--blush); box-shadow:inset 0 0 0 1px var(--line); }
.has-admin-sidebar .metric-grid strong { margin:.45rem 0 auto; font-size:2.35rem; }
.has-admin-sidebar .metric-grid article:last-child strong { color:#9d4f73; font-size:1.65rem; }
.has-admin-sidebar .admin-nav { grid-template-columns:repeat(4,minmax(0,1fr)); gap:.85rem; margin-top:0; }
.has-admin-sidebar .admin-nav a { min-height:6.5rem; padding:1rem; border-color:var(--line); box-shadow:0 8px 24px rgba(84,54,68,.035); }
.has-admin-sidebar .admin-nav a:hover,.has-admin-sidebar .admin-nav a:focus-visible { border-color:var(--primary-strong); background:var(--blush); }
.has-admin-sidebar .admin-nav strong { color:#8f4166; font-size:1.05rem; }

.has-admin-sidebar .table-scroll { border:1px solid var(--line); border-radius:7px; background:#fff; box-shadow:0 10px 30px rgba(84,54,68,.035); }
.has-admin-sidebar table { border:0; }
.has-admin-sidebar th { padding:.85rem 1rem; background:#fff9fc; color:#5e5158; font-size:.75rem; text-transform:uppercase; }
.has-admin-sidebar td { padding:1rem; }
.has-admin-sidebar tbody tr:hover { background:#fffbfd; }
.has-admin-sidebar .status-label { display:inline-flex; padding:.25rem .55rem; border-radius:999px; background:#f2f1f1; font-size:.72rem; }
.has-admin-sidebar .status-label.is-active { background:#edf7f0; }
.has-admin-sidebar .status-label.is-inactive { background:#f2f1f1; }
.has-admin-sidebar .row-actions { gap:.65rem; }
.has-admin-sidebar .admin-form { max-width:54rem; }
.has-admin-sidebar .notice,.has-admin-sidebar .alert { max-width:54rem; border-radius:0 6px 6px 0; }

@media (max-width:72rem) {
    .has-admin-sidebar .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .has-admin-sidebar .admin-nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:62rem) {
    .admin-mobile-menu { position:fixed; z-index:58; top:.85rem; left:.85rem; display:grid; box-shadow:0 6px 18px rgba(84,54,68,.12); }
    .admin-sidebar { width:min(19rem,88vw); transform:translateX(-102%); box-shadow:18px 0 45px rgba(54,35,44,.18); }
    .admin-sidebar-state:checked~.admin-sidebar { width:min(19rem,88vw); transform:translateX(0); }
    .admin-sidebar-state:checked~.admin-sidebar .admin-brand-copy { display:grid; }
    .admin-sidebar-state:checked~.admin-sidebar .admin-sidebar-nav span,
    .admin-sidebar-state:checked~.admin-sidebar .admin-sidebar-foot span { display:inline; }
    .admin-sidebar-state:checked~.admin-sidebar .admin-account { display:block; }
    .admin-sidebar-state:checked~.admin-sidebar .admin-sidebar-brand { display:flex; }
    .admin-sidebar-state:checked~.admin-sidebar .admin-sidebar-head { justify-content:space-between; }
    .admin-sidebar-state:checked~.admin-sidebar .admin-sidebar-collapse svg { transform:rotate(0); }
    .admin-sidebar-state:checked~.admin-sidebar .admin-sidebar-nav a,
    .admin-sidebar-state:checked~.admin-sidebar .admin-sidebar-foot a,
    .admin-sidebar-state:checked~.admin-sidebar .admin-sidebar-foot button { justify-content:flex-start; padding-inline:.75rem; }
    .admin-sidebar-collapse { display:none; }
    .admin-sidebar-backdrop { position:fixed; z-index:59; inset:0; background:rgba(48,40,44,.34); cursor:pointer; }
    .admin-sidebar-state:checked~.admin-sidebar-backdrop { display:block; }
    .has-admin-sidebar>.admin-shell,.has-admin-sidebar>.form-shell,
    .admin-sidebar-state:checked~.admin-shell,.admin-sidebar-state:checked~.form-shell { width:100%; margin-left:0; padding:5rem 1.25rem 4rem; }
}

@media (max-width:42rem) {
    .has-admin-sidebar .metric-grid,.has-admin-sidebar .admin-nav { grid-template-columns:1fr; }
    .has-admin-sidebar .metric-grid article { min-height:9rem; }
    .has-admin-sidebar .page-header { align-items:stretch; }
    .has-admin-sidebar .page-header .button { width:100%; text-align:center; }
}
.order-payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,18rem),1fr));
    gap: 16px;
    margin: 24px 0;
}

.order-payment-option {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.order-payment-option h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.25rem;
}

.order-payment-option p {
    margin: 0;
    color: var(--muted);
}

.order-payment-options .order-payment-form {
    margin: 8px 0 0;
}

.order-payment-options .button {
    width: 100%;
}
.markdown-toolbar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.markdown-toolbar button {
    min-width: 2.35rem;
    min-height: 2.35rem;
    border: 1px solid #e7d7de;
    background: #fff;
    color: #503f46;
    cursor: pointer;
    font: inherit;
}

.markdown-toolbar button:hover,
.markdown-toolbar button:focus-visible {
    border-color: #d99db8;
    background: #fff6fa;
}

.markdown-toolbar .markdown-preview-button {
    width: auto;
    margin-left: auto;
    padding-inline: 0.85rem;
}

.markdown-preview {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #eadde3;
    background: #fff;
}

.markdown-preview h3 {
    margin-top: 0;
    font-size: 1rem;
}

.detail-description > :first-child {
    margin-top: 0;
}

.detail-description > :last-child {
    margin-bottom: 0;
}

.detail-description h2,
.detail-description h3,
.detail-description h4 {
    margin: 1.4rem 0 0.65rem;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.detail-description ul,
.detail-description ol {
    padding-left: 1.35rem;
}

.detail-description a {
    color: #a84570;
    font-weight: 700;
}

.review-stars {
    color: #f2b01e;
    letter-spacing: 0;
    white-space: nowrap;
}

.product-rating-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: -0.35rem 0 0.8rem;
    color: #594a50;
    font-size: 0.92rem;
}

.product-rating-link:hover,
.product-rating-link:focus-visible {
    color: #a84570;
}

.product-reviews {
    margin-top: 3.5rem;
    scroll-margin-top: 2rem;
}

.review-empty {
    padding: 1.5rem;
    border: 1px solid #eadde3;
    background: #fffafb;
    text-align: center;
}

.review-empty .review-stars {
    font-size: 1.6rem;
}

.review-empty p {
    margin: 0.45rem 0 0;
}

.review-summary {
    display: grid;
    grid-template-columns: minmax(10rem, 0.35fr) minmax(16rem, 1fr);
    gap: 2rem;
    padding: 1.5rem;
    border: 1px solid #eadde3;
    background: #fffafb;
}

.review-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.review-score > strong {
    font-family: Georgia, serif;
    font-size: 3rem;
    line-height: 1;
}

.review-score .review-stars {
    margin: 0.5rem 0;
    font-size: 1.25rem;
}

.review-distribution {
    display: grid;
    gap: 0.45rem;
}

.review-distribution > div {
    display: grid;
    grid-template-columns: 2.8rem 1fr 2rem;
    align-items: center;
    gap: 0.65rem;
}

.review-distribution progress {
    width: 100%;
    height: 0.6rem;
    accent-color: #f2b01e;
}

.review-list,
.admin-review-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.review-card,
.admin-review-card {
    padding: 1.25rem;
    border: 1px solid #eadde3;
    background: #fff;
}

.review-card header,
.admin-review-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.review-card header > div {
    display: grid;
    gap: 0.25rem;
}

.review-card time,
.review-card > p,
.admin-review-card > p {
    color: #65575d;
}

.review-card .verified-purchase {
    display: inline-block;
    margin: 0.8rem 0 0;
    color: #276844;
    font-size: 0.82rem;
    font-weight: 700;
}

.review-media {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.review-media img,
.review-media video {
    display: block;
    width: 9rem;
    height: 9rem;
    border: 1px solid #eadde3;
    object-fit: cover;
    background: #f7f2f4;
}

.review-form-page {
    max-width: 48rem;
}

.customer-review-form {
    margin-top: 1.5rem;
}

.review-rating-field {
    margin: 0;
    padding: 0;
    border: 0;
}

.review-rating-field legend {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.review-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.review-rating-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.review-rating-input label {
    padding: 0.15rem;
    color: #cfc4c8;
    cursor: pointer;
    font-size: 2.2rem;
    line-height: 1;
}

.review-rating-input input:checked ~ label,
.review-rating-input label:hover,
.review-rating-input label:hover ~ label {
    color: #f2b01e;
}

.review-rating-input input:focus-visible + label {
    outline: 2px solid #a84570;
    outline-offset: 2px;
}

.review-content-notice {
    color: #65575d;
    font-size: 0.86rem;
}

.order-review-products {
    margin: 2rem 0;
    padding: 1.25rem;
    border: 1px solid #eadde3;
    background: #fffafb;
}

.order-review-products article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-top: 1px solid #eadde3;
}

.order-review-products .button {
    flex: 0 0 auto;
}

.review-admin-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.review-admin-filters a {
    padding: 0.55rem 0.8rem;
    border: 1px solid #eadde3;
    background: #fff;
}

.review-admin-filters a.is-active {
    border-color: #d99db8;
    background: #fff1f7;
    color: #8f355e;
}

.admin-review-card header h2 {
    margin: 0.5rem 0 0.15rem;
    font-size: 1.15rem;
}

.admin-review-card header p {
    margin: 0;
    color: #65575d;
}

@media (max-width: 42rem) {
    .review-summary {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .review-card header,
    .admin-review-card header,
    .order-review-products article {
        align-items: flex-start;
        flex-direction: column;
    }

    .review-media img,
    .review-media video {
        width: calc(50vw - 2.5rem);
        height: calc(50vw - 2.5rem);
        max-width: 10rem;
        max-height: 10rem;
    }
}
