:root {
    color-scheme: light;
    --ink: #121733;
    --body: #232a3a;
    --muted: #546071;
    --teal: #007c72;
    --deep-teal: #005c56;
    --mint: #e6f4ef;
    --border: #e1e5e8;
    --paper: #fbfbfa;
    --white: #fff;
    --radius: 15px;
    font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--body); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--deep-teal); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #11736b; outline-offset: 4px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.16; margin: 0 0 .72em; letter-spacing: -.026em; }
h1 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h2 { font-size: clamp(1.26rem, 2vw, 1.65rem); }
h3 { font-size: 1.13rem; }
p { margin: 0 0 1rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { color: var(--ink); font-weight: 730; margin-bottom: .7rem; }
.shell { width: min(100% - 3rem, 1230px); margin-inline: auto; }
.narrow { max-width: 720px; }
.content { padding-block: 1.8rem 4rem; min-height: 50vh; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; top: .8rem; left: .8rem; background: white; padding: .6rem; }
.announcement { background: #edf6f4; padding: .4rem .8rem; text-align: center; font-size: .8rem; color: #245450; }
.header { background: var(--white); border-bottom: 1px solid var(--border); }
.head-main { min-height: 78px; display: grid; grid-template-columns: 205px 1fr auto; align-items: center; gap: clamp(1rem, 4vw, 3.8rem); }
.logo img { object-fit: contain; width: 100%; max-width: 224px; height: auto; }
.search { display: flex; align-items: stretch; border: 1px solid #d5dbe0; border-radius: 9px; background: #fafafa; min-width: 0; }
.search input { background: transparent; border: 0; min-width: 0; padding: .65rem .9rem; flex: 1; }
.search-button { border: 0; background: transparent; color: var(--ink); padding: .65rem 1rem; display: grid; place-items: center; }
.search-icon { width: 15px; height: 15px; border: 1.7px solid currentColor; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; position: absolute; height: 7px; width: 1.7px; background: currentColor; bottom: -5px; right: -3px; transform: rotate(-43deg); }
.head-actions { display: flex; align-items: center; gap: 1.2rem; }
.head-link { align-items: center; color: var(--ink); display: flex; flex-direction: column; gap: .28rem; text-decoration: none; font-size: .78rem; font-weight: 650; position: relative; min-width: 2.6rem; padding: .5rem 0; }
.head-link:hover, .nav a:hover { color: var(--teal); }
.head-icon { display: block; width: 22px; height: 20px; position: relative; }
.person::before, .person::after, .basket::before, .basket::after { position: absolute; display: block; content: ""; }
.person::before { width: 7px; height: 7px; left: 7px; border: 1.6px solid; border-radius: 50%; }
.person::after { width: 16px; height: 7px; left: 2.5px; bottom: 0; border: 1.6px solid; border-radius: 9px 9px 2px 2px; }
.basket::before { width: 16px; height: 9px; left: 3px; top: 2px; border: 1.6px solid; border-radius: 2px 2px 4px 4px; transform: skew(-10deg); }
.basket::after { width: 4px; height: 4px; left: 6px; bottom: 1px; border-radius: 50%; background: currentColor; box-shadow: 10px 0 currentColor; }
.cart-count { border-radius: 2rem; position: absolute; top: 0; right: -8px; background: var(--teal); color: white; padding: 0 .38rem; min-width: 1.1rem; font-size: .72rem; }
.nav { border-top: 1px solid #edf0f2; }
.nav-inner { display: flex; align-items: center; gap: clamp(1rem, 4vw, 3.5rem); min-height: 47px; overflow-x: auto; scrollbar-width: thin; }
.nav a { font-size: .85rem; color: var(--ink); text-decoration: none; white-space: nowrap; padding-block: .65rem; }
.nav a.offer-link { color: var(--deep-teal); padding: .15rem .8rem; border: 1px solid #83b5b0; border-radius: 2rem; }
.hero { background: #f1eeea; overflow: hidden; }
.hero-inner { position: relative; display: grid; min-height: 319px; align-items: center; grid-template-columns: 1fr 1fr; isolation: isolate; }
.hero-copy { padding-block: 2.6rem; position: relative; z-index: 1; max-width: 39rem; }
.hero h1 { max-width: 13ch; font-size: clamp(2.25rem, 4.2vw, 4.1rem); line-height: .99; margin-bottom: .35em; letter-spacing: -.052em; }
.hero p { max-width: 35ch; font-size: clamp(1rem, 1.6vw, 1.15rem); }
.hero-image { width: 58%; height: 100%; object-fit: cover; position: absolute; right: -1.6%; top: 0; max-width: none; mask-image: linear-gradient(90deg,transparent 0%,#000 20%,#000 93%,transparent 100%); }
.buttons { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--teal); border-radius: 8px; padding: .57rem 1rem; background: var(--teal); color: white; cursor: pointer; text-decoration: none; font-weight: 700; text-align: center; font-size: .9rem; transition: background-color .16s, color .16s; }
.button:hover { background: var(--deep-teal); border-color: var(--deep-teal); }
.button.outline { color: var(--deep-teal); background: white; border-color: #a9c7c4; }
.button.outline:hover { background: var(--mint); }
.button.small { padding-inline: .65rem; font-size: .8rem; }
.button.full { width: 100%; }
.home-content { padding-block: 1.9rem 3.8rem; }
.shelf + .shelf { margin-top: 2.22rem; }
.section-head { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: space-between; align-items: baseline; margin-bottom: .8rem; }
.section-head h2 { margin-bottom: 0; }
.section-link, .text-link { font-weight: 650; }
.category-grid, .product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.08rem; }
.category-card, .card { border: 1px solid var(--border); border-radius: var(--radius); background: white; overflow: hidden; }
.category-card { text-decoration: none; color: var(--ink); text-align: center; }
.category-card img, .category-card .photo-empty { width: 100%; height: clamp(86px, 10vw, 132px); object-fit: cover; background: #eeebe4; }
.category-card b { display: block; padding: .63rem .35rem; font-size: .9rem; }
.category-card:hover, .card:hover { box-shadow: 0 6px 16px #162c3e0d; border-color: #b5c9c7; }
.card { display: flex; flex-direction: column; box-shadow: 0 2px 7px #17243b0a; }
.card-media { display: block; background: #efebe4; }
.card-media img, .card-media .photo-empty { width: 100%; height: auto; aspect-ratio: 1.7; object-fit: cover; }
.card-content { padding: .9rem; display: flex; flex: 1; flex-direction: column; align-items: start; }
.card-category { letter-spacing: .005em; color: var(--deep-teal); font-size: .81rem; font-weight: 700; margin-bottom: .32rem; }
.card h3 { margin: 0 0 .45rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.price { margin: auto 0 .72rem; font-weight: 760; color: var(--ink); }
.price span { font-size: .74rem; font-weight: 500; display: block; color: var(--muted); }
.footer { background: #f0f3f2; border-top: 1px solid var(--border); padding-block: 1.6rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer .logo img { width: 150px; mix-blend-mode: multiply; }
.footer nav { display: flex; flex-wrap: wrap; gap: .75rem 1.2rem; font-size: .84rem; }
.footer nav a { color: var(--body); text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }
.breadcrumb { display: block; margin-bottom: .8rem; font-size: .85rem; color: var(--muted); }
.breadcrumb a { color: inherit; }
.section-head,.tabs,.filters,.pagination { margin-bottom: 1.1rem; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.filters .field { min-width: 120px; flex: 1; }
.filters .tick { min-height: 44px; }
.empty { border: 1px dashed #afbfba; border-radius: var(--radius); text-align: center; padding: 2.3rem 1rem; }
.photo-empty { display: grid; place-items: center; color: #6b8e89; background: var(--mint); font-size: clamp(1.5rem, 6vw, 3.2rem); }
.product-layout, .purchase-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: clamp(1rem, 4vw, 2.7rem); align-items: start; }
.product-photos .primary-photo { width: 100%; aspect-ratio: 1.48; display: grid; object-fit: cover; border-radius: var(--radius); }
.gallery { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .7rem; }
.gallery img, .admin-thumb { width: 76px; height: 60px; object-fit: cover; border: 1px solid var(--border); border-radius: .5rem; }
.detail-price { color: var(--muted); }
.detail-price strong { font-size: 1.8rem; color: var(--ink); margin-left: .25rem; }
.product-details .field input[type=number], .cart-line input[type=number] { max-width: 8rem; }
.description { max-width: 53ch; }
.quote-product { padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--border); }
.delivery-option { display: block; margin-top: .4rem; }
.panel { border: 1px solid var(--border); background: white; border-radius: var(--radius); padding: clamp(1rem, 2.25vw, 1.6rem); min-width: 0; }
.panel > form + form { margin-top: 1rem; }
.panel > h3:not(:first-child) { margin-top: 1.3rem; }
.muted { color: var(--muted); font-size: .9rem; }
.note, .flash { border-radius: 10px; padding: .78rem 1rem; background: #edf5f3; color: #234d48; font-size: .91rem; overflow-wrap: anywhere; }
.flash { margin-top: .8rem; border-left: 4px solid var(--teal); }
.flash.error { color: #8b1524; background: #fff0f0; border-color: #c14242; }
.stack { display: grid; gap: .85rem; align-items: start; }
.stack > .button { justify-self: start; }
.stack > .button.full { justify-self: stretch; }
.inline { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; }
.inline .field { flex: 1 1 8rem; }
.field { color: var(--ink); display: grid; gap: .33rem; font-weight: 600; font-size: .87rem; min-width: 0; }
.field input, .field select, .field textarea { color: var(--body); width: 100%; min-height: 44px; padding: .52rem .65rem; border: 1px solid #aeb9c2; border-radius: 7px; background: white; font-weight: 450; }
.field textarea { resize: vertical; }
.tick { display: flex; align-items: center; min-height: 32px; gap: .5rem; font-size: .87rem; }
.tick input { accent-color: var(--teal); width: 18px; height: 18px; }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.text-button { background: transparent; padding: .38rem 0; color: var(--deep-teal); border: 0; text-decoration: underline; }
.line-list { display: flex; flex-direction: column; gap: 1rem; }
.cart-line { display: grid; grid-template-columns: 90px minmax(0,1fr) auto; gap: 1rem; align-items: start; }
.cart-line + .cart-line { border-top: 1px solid var(--border); padding-top: 1rem; }
.cart-line img, .cart-line .photo-empty { width: 90px; aspect-ratio: 1.2; object-fit: cover; border-radius: .5rem; }
.cart-line h2 { font-size: 1rem; margin-bottom: .3rem; }
.cart-line h2 a { color: var(--ink); }
.cart-line .inline .field { flex: 0 1 5rem; }
.summary { margin: 1rem 0; }
.summary div, .data-line, .plain-list li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; padding: .56rem 0; border-bottom: 1px solid var(--border); }
.summary dd { margin: 0; }
.summary-total { font-weight: 750; color: var(--ink); }
.coupon { margin: 1rem 0; }
.panel .inline + .full, .panel .muted + .full { margin-top: .9rem; }
.plain-list { padding: 0; margin: .55rem 0; list-style-type: none; }
.timeline { margin-top: 1rem; padding-left: 1.35rem; }
.timeline li { margin-bottom: .6rem; }
.timeline span { color: var(--muted); font-size: .87rem; display: block; }
.status-badge { display: inline-block; padding: .31rem .7rem; color: var(--deep-teal); background: var(--mint); font-weight: 750; border-radius: 1rem; }
details { padding: .6rem .1rem; }
details + details { border-top: 1px solid var(--border); }
details form, details .stack { padding-top: .7rem; }
summary { color: var(--ink); font-weight: 680; cursor: pointer; overflow-wrap: anywhere; }
.auth-panel { max-width: 560px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.tabs, .pagination { display: flex; flex-wrap: wrap; gap: .5rem; }
.tabs a { background: white; border: 1px solid var(--border); padding: .48rem .7rem; border-radius: 2rem; color: var(--body); text-decoration: none; font-size: .87rem; }
.tabs a.selected, .tabs a:hover { background: var(--mint); border-color: #9fbcb7; }
.pagination, .logout { margin: 1rem 0 0; }
.data-line { overflow-wrap: anywhere; }
.admin-main .purchase-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
code { overflow-wrap: anywhere; }
@media (max-width: 880px) {
    .head-main { grid-template-columns: 165px 1fr auto; gap: 1.1rem; }
    .product-grid, .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .hero-inner { min-height: 270px; }
}
@media (max-width: 610px) {
    .shell { width: calc(100% - 1.5rem); }
    .head-main { grid-template-columns: 1fr auto; gap: .25rem .9rem; padding: .5rem 0 .6rem; }
    .logo img { width: 147px; }
    .head-actions { gap: .7rem; }
    .head-link { font-size: .71rem; }
    .search { grid-column: 1/-1; grid-row: 2; }
    .nav-inner { gap: 1rem; }
    .hero-inner { min-height: 0; display: flex; flex-direction: column; align-items: stretch; }
    .hero-copy { padding: 1.7rem 0 1.2rem; }
    .hero h1 { max-width: 14ch; }
    .hero-image { position: static; width: 100%; height: auto; aspect-ratio: 2.7; mask-image: none; border-radius: 11px 11px 0 0; }
    .home-content { padding-top: 1.35rem; }
    .product-grid, .category-grid { gap: .65rem; }
    .card-content { padding: .65rem; }
    .card h3 { font-size: .94rem; }
    .card .button { padding-inline: .25rem; font-size: .8rem; }
    .product-layout, .purchase-grid, .admin-main .purchase-grid { grid-template-columns: 1fr; }
    .cart-line { gap: .55rem; grid-template-columns: 65px minmax(0,1fr); }
    .cart-line img { width: 65px; }
    .cart-line > strong { grid-column: 2; }
    .footer-inner { gap: .85rem; }
}
@media (max-width: 350px) {
    .fields { grid-template-columns: 1fr; }
    .announcement { font-size: .73rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::after, *::before { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* Storefront */
:root {
    --paper: #faf9f6;
    --ink: #162e2a;
    --body: #283b37;
    --teal: #106353;
    --deep-teal: #10493f;
    --border: #dce1d9;
    --mint: #e7f0e8;
    --radius: 16px;
}
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3 { text-wrap: pretty; overflow-wrap: anywhere; }
.header { border-top: 3px solid var(--deep-teal); }
.search { border-radius: 32px; background: var(--paper); }
.search input { padding-left: 1.1rem; border-radius: inherit; }
.nav-inner { gap: 2rem; }
.nav a { font-weight: 600; }
.nav a.offer-link { margin-left: auto; }
.hero { margin: clamp(.85rem, 2vw, 1.75rem) auto 0; width: min(calc(100% - 3rem),1230px); border-radius: 22px; background: #173d35; color: #eff4ed; }
.hero-inner { width: 100%; min-height: clamp(300px,29vw,410px); grid-template-columns: 48% 52%; }
.hero-copy { padding: clamp(1.7rem,4vw,3.65rem); }
.hero h1, .section-head h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.hero h1 { color: #fffdf4; line-height: 1.01; font-size: clamp(2.55rem,4.25vw,4rem); }
.hero p { color: #deebe1; }
.hero .button { color: #173d35; background: #f2f2dc; border-color: transparent; }
.hero .button:hover { background: #fff; }
.hero-image { position: static; width: 100%; height: 100%; min-height: 0; mask-image: none; object-position: center; }
.button { border-radius: 24px; padding-inline: 1.2rem; }
.home-content { padding-block: 2rem 4.5rem; }
.section-head h2 { font-size: clamp(1.55rem,2.65vw,2.25rem); }
.section-link, .text-link { text-underline-offset: .3em; }
.category-grid { display: flex; flex-wrap: wrap; gap: .7rem; }
.category-card { display: inline-flex; align-items: center; text-align: left; border-radius: 3rem; gap: .6rem; padding: .3rem 1rem .3rem .3rem; }
.category-card img, .category-card .photo-empty { height: 2.75rem; width: 2.75rem; border-radius: 50%; font-size: .9rem; }
.category-card > span:last-child { color: var(--teal); }
.card-media { position: relative; }
.card-media img, .card-media .photo-empty { aspect-ratio: 1.22; }
.availability { position: absolute; top: .75rem; left: .75rem; background: #fffffff5; color: #304a41; border-radius: 1rem; padding: .25rem .65rem; font-size: .74rem; font-weight: 700; }
.card-content { padding: 1rem; }
.card-category { text-transform: uppercase; font-size: .72rem; letter-spacing: .085em; }
.card h3 { line-height: 1.38; font-size: 1rem; }
.card .price { padding-top: .65rem; }
.card .button { margin-top: auto; }
.photo-empty { background: linear-gradient(135deg,#e7efe6,#d2e3d8); font-family: Georgia,serif; }
.content { padding-block: clamp(1.5rem,4vw,3rem) 4rem; }
.filter-panel { border-block: 1px solid var(--border); margin-bottom: 1.5rem; }
.filter-panel summary { padding: .5rem .15rem; }
.filter-panel .filters { background: transparent; padding: .65rem 0; border: 0; margin: 0; }
.product-details { padding: clamp(1.15rem,3vw,2rem); background: white; border: 1px solid var(--border); border-radius: var(--radius); }
.product-details h1 { font-size: clamp(1.65rem,2.7vw,2.65rem); }
.product-photos .primary-photo { object-fit: contain; aspect-ratio: 1; background: white; }
.panel, .empty { box-shadow: 0 8px 28px #173d3507; }
.empty { background: white; padding-block: 3rem; }
.auth-content { max-width: 490px; }
.auth-panel { padding: clamp(1.3rem,3vw,2rem); }
.field { gap: .45rem; }
.field :is(input,select,textarea):focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.summary-total { background: var(--mint); border-radius: 8px; }
.summary .summary-total { padding: .8rem; }
.footer { background: #eaede6; padding-block: 2rem; }

/* Management workspace */
.admin-main { background: #f4f6f3; }
.studio-header { background: white; border-block: 3px solid var(--deep-teal); border-bottom: 1px solid var(--border); }
.studio-header .shell { min-height: 70px; display: flex; align-items: center; gap: 1rem; }
.studio-header img { width: 145px; }
.studio-header span { border-left: 1px solid var(--border); padding-left: 1rem; color: var(--muted); font-size: .85rem; }
.studio-store { margin-left: auto; font-weight: 650; }
.studio { display: grid; grid-template-columns: 195px minmax(0,1fr); align-items: start; gap: clamp(1rem,2.3vw,2rem); }
.studio-sidebar { position: sticky; top: 1rem; padding: 1rem .7rem; border-radius: 14px; background: #193e36; color: white; }
.studio-sidebar h2 { color: white; font-size: 1.05rem; margin: .4rem .65rem 1rem; }
.studio .tabs { display: grid; gap: .18rem; margin: 0; }
.studio .tabs a { background: transparent; border: none; border-radius: 7px; color: #ebf1ed; padding: .65rem; }
.studio .tabs a:hover, .studio .tabs a.selected { background: #d7e9d8; color: #15392d; }
.studio-work { min-width: 0; }
.studio-work > h1 { font-size: clamp(1.7rem,2.8vw,2.5rem); }
.admin-main .purchase-grid { gap: 1rem; }
.data-line { align-items: center; padding-block: .85rem; }
.data-line a { font-weight: 650; }
.product-state { display: block; color: var(--deep-teal); margin-top: .25rem; }
.studio-work summary { padding: .35rem 0; }
@media (max-width: 900px) {
    .studio { display: block; }
    .studio-sidebar { position: static; margin-bottom: 1.25rem; }
    .studio .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; }
    .studio .tabs a { white-space: nowrap; }
}
@media (max-width: 610px) {
    .hero { width: calc(100% - 1.5rem); border-radius: 16px; }
    .hero-inner { width: 100%; min-height: 0; }
    .hero-copy { padding: 1.5rem; }
    .hero-image { height: auto; aspect-ratio: 2.5; border-radius: 0; }
    .card-content { padding: .7rem; }
    .product-grid:has(> :only-child) { grid-template-columns: minmax(0, 21rem); }
    .studio-header span { display: none; }
    .field :is(input,select,textarea) { font-size: 1rem; }
}
@media (min-width: 611px) {
    .shelf .product-grid:has(> :only-child) { display: block; }
    .shelf .card:only-child { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
    .shelf .card:only-child .card-content { justify-content: center; padding: clamp(1.5rem,4vw,3.3rem); }
    .shelf .card:only-child .card-media img, .shelf .card:only-child .photo-empty { height: 100%; max-height: 340px; }
    .shelf .card:only-child h3 { font-size: clamp(1.35rem,2vw,1.9rem); }
    .shelf .card:only-child .price { margin: .6rem 0; }
    .shelf .card:only-child .button { margin-top: .5rem; width: auto; }
}
