@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@400;500;600;700;800&display=swap');

:root { color-scheme: light; --ink:#252521; --muted:#5e5d54; --paper:#fbfaf7; --olive:#50553f; --line:#d7d3c9; }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:"Noto Sans Georgian",system-ui,sans-serif; }
a { color:inherit; text-decoration:none; }
button,select,textarea { font:inherit; color:inherit; }
button,select { cursor:pointer; }
a:focus-visible,button:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #877094; outline-offset:3px; }
.notice { background:#292a23; color:#fff; text-align:center; padding:10px 16px; font-size:12px; }
header,footer { max-width:1400px; margin:auto; padding:18px clamp(20px,5vw,76px); display:flex; align-items:center; justify-content:space-between; gap:18px; }
.brand { font-weight:800; font-size:32px; letter-spacing:-2px; }
.brand span { color:#858b6a; }
nav { display:flex; gap:30px; font-size:14px; }
.outline { background:transparent; border:1px solid var(--line); padding:9px 13px; border-radius:4px; }
#count { margin-left:4px; font-weight:700; }
main { max-width:1400px; margin:auto; padding:0 clamp(20px,5vw,76px); }
.hero { display:grid; grid-template-columns:1fr 1fr; min-height:490px; background:#eae5d9; }
.hero-copy { padding:clamp(32px,5vw,80px); align-self:center; }
.hero img { width:100%; height:100%; max-height:560px; object-fit:cover; display:block; background:#d7c8b3; }
.eyebrow { font-weight:700; color:var(--olive); font-size:13px; }
h1 { font-size:clamp(35px,5.15vw,76px); line-height:1.15; letter-spacing:-.055em; margin:16px 0; }
h2 { font-size:clamp(27px,3vw,44px); letter-spacing:-.045em; margin:0; }
p { line-height:1.65; }
.hero-copy > p:not(.eyebrow) { max-width:32ch; color:var(--muted); }
.primary { display:inline-flex; align-items:center; justify-content:center; gap:22px; background:var(--olive); color:white; padding:13px 17px; border:1px solid var(--olive); border-radius:4px; font-weight:600; font-size:14px; }
.primary:hover { background:#393e2e; }
.hero .primary { margin-top:14px; }
.catalog { padding:60px 0; }
.section-top { display:flex; align-items:end; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom:22px; }
.products { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.product img { display:block; width:100%; height:auto; aspect-ratio:1 / 1.08; object-fit:cover; background:#eae5d9; }
.product-info { display:flex; justify-content:space-between; align-items:baseline; gap:8px; margin:12px 0; }
.product h3 { font-size:16px; margin:0; }
.price { white-space:nowrap; }
.product form { display:flex; gap:8px; }
.product select { background:transparent; border:1px solid var(--line); border-radius:4px; padding:7px; min-width:0; }
.product form button { flex:1; }
.ordering { border-top:1px solid var(--line); padding:32px 0; }
.ordering p { max-width:68ch; color:var(--muted); }
footer { border-top:1px solid var(--line); font-size:14px; }
dialog { width:min(480px,calc(100% - 24px)); max-height:90dvh; border:1px solid var(--line); background:var(--paper); padding:22px; }
dialog::backdrop { background:#2228; }
.cart-head,.cart-row { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.cart-row { border-bottom:1px solid var(--line); padding:12px 0; }
.cart-row small { display:block; color:var(--muted); }
textarea { display:block; width:100%; padding:8px; margin:6px 0 10px; resize:vertical; }
[hidden] { display:none !important; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@media(max-width:760px) { nav { gap:12px; } .hero { min-height:0; } .hero-copy { padding:28px; } .products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; } }
@media(max-width:520px) { header { flex-wrap:wrap; } nav { order:3; width:100%; } .hero { grid-template-columns:1fr; } .hero img { aspect-ratio:1.25; } .catalog { padding:36px 0; } .product-info { flex-wrap:wrap; } .product form { flex-wrap:wrap; } .product form button { width:100%; } }
.featured { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:22px; }
.feature { background:#eae5d9; display:flex; flex-direction:column; justify-content:end; overflow:hidden; }
.feature img { width:100%; aspect-ratio:2 / 1; object-fit:cover; }
.feature span { padding:13px; font-size:14px; font-weight:700; }
#collections { padding-bottom:0; }
.catalog-controls { display:grid; grid-template-columns:minmax(0,180px) minmax(0,130px) minmax(0,250px); gap:10px; }
.catalog-controls label { min-width:0; }
.catalog-controls input,.catalog-controls select { width:100%; min-height:40px; }
#filters { appearance:none; padding-inline-end:32px; background:no-repeat right 12px center / 10px 8px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='m1 2 4 4 4-4' fill='none' stroke='%233c1823' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") #fff; }
@media (max-width:640px) {
  #catalog .section-top { gap:10px; margin-bottom:14px; }
  .catalog-controls { width:100%; grid-template-columns:minmax(0,1fr) minmax(0,.65fr); }
  .catalog-category { grid-column:1 / -1; }
}
.product-meta { margin:9px 0 0; color:var(--muted); font-size:12px; }
.image-placeholder { aspect-ratio:1 / 1.08; background:#eae5d9; }
label { display:grid; gap:5px; font-size:13px; }
input, textarea, select { border:1px solid var(--line); border-radius:4px; background:#fff; padding:9px; color:var(--ink); font:inherit; min-width:0; }
#checkout,.admin-form { display:grid; gap:12px; }
#checkout .primary { justify-self:start; }
.ordering li { line-height:1.8; }
.payment { white-space:pre-wrap; }
button:disabled { opacity:.6; cursor:wait; }
.admin-main { padding-bottom:60px; }
.admin-main section { border-top:1px solid var(--line); margin-top:22px; padding-top:18px; }
.admin-main h1 { font-size:clamp(32px,5vw,58px); }
.admin-main h2 { font-size:26px; }
#admin-nav { flex-wrap:wrap; gap:8px; }
#admin-nav a { display:inline-flex; align-items:center; min-height:44px; padding:8px 12px; border:1px solid var(--line); border-radius:5px; }
#admin-nav a[aria-current] { color:white; background:var(--olive); border-color:var(--olive); }
#add-product { scroll-margin-top:12px; }
.admin-form { grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:16px; }
.admin-form .wide { grid-column:1 / -1; }
.admin-form button { justify-self:start; }
.check { display:flex; gap:6px; align-items:center; }
.admin-row { display:flex; align-items:center; justify-content:space-between; gap:10px; border-bottom:1px solid var(--line); padding:8px 0; }
.order-card { border:1px solid var(--line); padding:15px; margin:12px 0; }
.order-card form { display:flex; align-items:end; gap:8px; flex-wrap:wrap; }
.order-card h3 { margin-top:0; }
.order-disclosure > summary { min-height:44px; cursor:pointer; font-weight:600; }
.order-disclosure > summary:focus-visible { outline:3px solid #877094; outline-offset:3px; }
.order-disclosure[open] > summary { margin-bottom:12px; }
.admin-metrics { display:flex; gap:18px; flex-wrap:wrap; }
.admin-metrics p { padding:12px; background:#eae5d9; }
@media(max-width:640px) { .featured,.admin-form { grid-template-columns:repeat(2,minmax(0,1fr)); } }
:root { --ink:#3c1823; --muted:#6b5058; --paper:#fff9f8; --olive:#741c3b; --line:#e3c5cc; }
.notice { background:#54152b; }
.brand { font-family:Georgia,serif; letter-spacing:-.035em; color:#62142f; }
.brand span { color:#ad496b; }
.hero,.feature,.image-placeholder { background:#f3dedf; }
.primary:hover { background:#54152b; }
.departments { position:relative; display:flex; align-items:center; flex-wrap:wrap; gap:10px 20px; padding:12px 0; border-top:1px solid var(--line); font-size:13px; font-weight:600; }
.departments details { position:relative; }
.departments summary { cursor:pointer; }
.departments details div { position:absolute; z-index:2; top:1.8em; left:0; width:min(580px, calc(100vw - 44px)); background:var(--paper); border:1px solid var(--line); box-shadow:0 10px 30px #34132325; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:18px; }
.departments details:last-child div { width:190px; grid-template-columns:1fr; }
.departments a:hover { text-decoration:underline; }
.cart-group { border:1px solid var(--line); padding:12px; margin:12px 0; }
.cart-group h3 { margin:0; }
.cart-group button[aria-pressed=true] { background:var(--olive); color:white; }
#submitted a { text-decoration:underline; }
header .brand { display:flex; align-items:center; gap:10px; }
header .brand span { margin-left:-10px; }
header .brand img { width:64px; height:64px; object-fit:contain; border-radius:5px; }
@media(max-width:520px) { header .brand img { width:45px; height:45px; } header .brand { font-size:26px; } }
.sale-cost { display:flex; flex-wrap:wrap; align-items:end; gap:10px 14px; padding:10px 0; border-bottom:1px solid var(--line); }
.sale-cost p { flex-basis:100%; margin:0; }
.inventory-actions { display:flex; flex-wrap:wrap; gap:6px; justify-content:flex-end; }
#sales-month { width:max-content; max-width:100%; }
.inventory-source { display:block; color:var(--muted); }
.inventory-source a { text-decoration:underline; }
#supplier-filter { width:max-content; max-width:100%; }
.product form { flex-wrap:wrap; }
.product-feedback { flex-basis:100%; margin:0; font-size:.875rem; color:var(--olive); }
.product-feedback:empty { display:none; }
.product select[aria-invalid=true] { border-color:var(--olive); }
.product-gallery { position:relative; }
.gallery-controls { position:absolute; inset:auto 8px 8px; display:flex; justify-content:space-between; align-items:center; gap:8px; pointer-events:none; }
.gallery-controls button,.gallery-controls span { background:var(--paper); border-radius:5px; }
.gallery-controls button { pointer-events:auto; min-width:40px; min-height:40px; padding:2px 10px; font-size:1.3rem; }
.gallery-controls span { padding:4px 8px; font-size:.8rem; }
.products .gallery-controls { inset:auto 2px 2px; gap:2px; }
.products .gallery-controls button {
  position:relative;
  isolation:isolate;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  border:0;
  background:transparent;
  font-size:1.125rem;
  line-height:1;
}
.products .gallery-controls button::before {
  content:"";
  position:absolute;
  inset:9px;
  z-index:-1;
  border:1px solid var(--line);
  border-radius:50%;
  background:color-mix(in srgb, var(--paper) 92%, transparent);
}
.products .gallery-controls span {
  padding:2px 5px;
  background:color-mix(in srgb, var(--paper) 92%, transparent);
  font-size:.6875rem;
  line-height:1.3;
  white-space:nowrap;
}
.kids-filter { display:grid; width:max-content; max-width:100%; margin:0 0 18px; gap:6px; }
.kids-filter[hidden] { display:none; }
.promo-price { display:inline-block; margin-top:8px; padding:3px 9px; border-radius:999px; background:#f3dedf; color:var(--ink); font-size:.8rem; font-weight:700; }
.product-description { margin:0 0 12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.catalog-description {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  font-size:0.875rem;
}
.product-image-link { display:block; }
.product-info a:hover,.product-back:hover,.contact-links a:hover { text-decoration:underline; }
#product-detail { padding:24px 0 36px; }
.product-back { display:inline-block; margin-bottom:20px; }
.product-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:clamp(20px,5vw,64px); align-items:start; }
.product-detail-grid h1 { font-size:clamp(1.7rem,3.5vw,3rem); margin:8px 0; }
.product-detail-grid img { max-height:72vh; object-fit:contain; background:var(--paper); }
.detail-price { font-size:1.4rem; margin:8px 0 14px; }
.contact-links { display:flex; flex-wrap:wrap; gap:8px 16px; font-size:.9rem; }
.contact-links[hidden] { display:none; }
.contact-links a { text-decoration:underline; }
.checkout-note { margin:4px 0; font-size:.9rem; color:var(--muted); }
@media(max-width:680px) { .product-detail-grid { grid-template-columns:1fr; } footer { flex-wrap:wrap; } }

@media (max-width: 520px) {
  .products { gap: 12px; }
  .products .product { display: flex; flex-direction: column; min-width: 0; }
  .products .product-meta { margin: 6px 0 0; font-size: .75rem; line-height: 1.35; }
  .products .product-info { display: grid; gap: 4px; margin: 6px 0 8px; }
  .products h3 { font-size: .875rem; line-height: 1.35; }
  .products h3 a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .products .catalog-description { display: none; }
}
