/* Grubbs Cattle Company — "ranch catalog" theme
   Parchment sections with torn edges, saddle-leather and dark-wood bands, rust buttons.
   Type: Merriweather (headings) + Source Serif 4 (text). */
:root {
  --parchment: #F1E4CB;   /* main sections */
  --paper: #FAF4E8;       /* cards, forms */
  --wood: #2E1C12;        /* header, footer, dark bands */
  --wood-2: #4A2C1A;
  --rust: #7C2F16;        /* buttons, eyebrows */
  --rust-dark: #5E220F;
  --gold: #C9A66B;        /* frames, rules on dark */
  --ink: #2A1A10;
  --cream: #F6EBD7;       /* text on dark */
  --line: #D8C39E;
  --muted: #6E5A47;
  --ok: #3E7B43; --hold: #A86F17; --gone: #6B6259;
  /* names kept for the admin panel */
  --grass: var(--parchment); --pine: var(--wood-2); --pine-ink: var(--ink); --saddle: var(--rust); --denim: var(--rust);
  --radius-lg: 6px; --radius-sm: 4px;
  --slab: 'Merriweather', Georgia, serif;
  --sans: 'Source Serif 4', Georgia, serif;
  --torn-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 24' preserveAspectRatio='none'%3E%3Cpath d='M0,24 L0,8.5 L8,13.1 L16,11.5 L27,4.8 L42,4.5 L54,5.0 L62,9.9 L81,5.7 L91,12.8 L112,12.1 L124,17.7 L131,16.0 L142,6.0 L150,8.3 L169,6.5 L184,12.9 L196,11.7 L203,4.8 L212,13.5 L225,8.4 L240,10.3 L251,15.1 L268,7.4 L284,11.4 L304,14.2 L314,17.7 L322,9.9 L340,6.1 L354,4.5 L371,14.7 L386,16.3 L397,13.7 L412,12.1 L426,15.8 L447,10.6 L463,4.8 L481,13.1 L502,15.5 L513,9.4 L530,4.3 L543,6.4 L551,4.8 L569,5.8 L579,9.5 L599,5.1 L612,11.7 L633,15.5 L652,7.9 L665,9.0 L685,17.4 L694,6.5 L703,7.3 L717,12.2 L727,4.1 L740,9.2 L755,17.3 L772,11.2 L788,13.5 L795,16.6 L813,16.2 L832,9.5 L844,5.4 L861,4.9 L868,6.9 L876,8.8 L883,4.0 L891,5.4 L903,4.4 L923,12.6 L932,7.5 L943,9.1 L951,15.9 L973,10.5 L987,5.2 L994,8.8 L1005,15.6 L1013,4.3 L1035,11.4 L1043,11.6 L1049,11.4 L1071,16.1 L1088,7.7 L1100,6.3 L1118,11.5 L1137,8.6 L1146,15.4 L1168,15.9 L1187,15.5 L1200,7.2 L1200,24 Z' fill='%23F1E4CB'/%3E%3C/svg%3E");
  --torn-bot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 24' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L0,12.8 L12,19.6 L18,16.1 L28,10.3 L50,13.7 L71,6.2 L92,14.9 L101,16.8 L111,17.1 L127,7.4 L146,13.3 L162,8.8 L170,10.8 L190,9.0 L208,13.3 L217,9.0 L229,8.8 L250,14.5 L262,6.7 L280,17.6 L288,17.9 L309,8.7 L317,8.4 L339,10.8 L350,12.3 L358,19.8 L380,10.9 L394,6.9 L407,7.8 L426,17.0 L436,15.9 L446,11.8 L456,14.1 L465,7.3 L476,13.6 L492,7.3 L504,7.2 L518,12.6 L533,19.7 L546,17.4 L552,8.8 L561,13.4 L578,12.2 L589,12.7 L604,9.0 L612,12.2 L622,16.1 L640,12.9 L655,9.4 L676,13.8 L692,12.9 L706,10.3 L719,12.5 L733,6.8 L750,7.7 L771,16.4 L786,6.8 L805,18.1 L813,13.8 L821,16.6 L828,10.6 L846,7.4 L855,10.0 L871,18.0 L891,6.5 L901,6.7 L913,13.2 L935,8.3 L944,14.0 L958,15.3 L967,15.5 L985,19.7 L999,13.8 L1006,15.4 L1022,12.8 L1029,6.2 L1047,6.4 L1055,16.3 L1062,9.1 L1072,18.2 L1085,7.2 L1104,16.4 L1112,7.1 L1127,10.2 L1135,19.2 L1152,14.0 L1159,6.9 L1175,8.8 L1183,8.0 L1190,7.9 L1200,15.3 L1200,0 Z' fill='%23F1E4CB'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--parchment); color: var(--ink); font: 18px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--rust); }
:focus-visible { outline: 3px solid #D9902F; outline-offset: 2px; }
h1, h2, h3 { font-family: var(--slab); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 66ch; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Eyebrow + spaced titles, as on the printed sale catalog */
.eyebrow { display: flex; align-items: center; gap: 14px; font: 700 .82rem var(--slab); letter-spacing: .16em; text-transform: uppercase; color: var(--rust); margin-bottom: 6px; }
.eyebrow::after { content: ""; height: 1px; width: 72px; background: currentColor; opacity: .6; }
.spaced { font-family: var(--slab); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.ruled { display: flex; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.ruled::before, .ruled::after { content: ""; height: 1px; flex: 0 1 140px; background: currentColor; opacity: .55; }
.sub { font-style: italic; }

/* ---------- Header ---------- */
.site-head { position: absolute; z-index: 30; inset: 0 0 auto 0; background: linear-gradient(rgba(30,18,10,.88), rgba(30,18,10,.55)); }
.site-head.solid { position: relative; background: var(--wood); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
.badge-logo { display: block; color: var(--wood-2); text-decoration: none; position: relative; z-index: 2; }
.badge-logo img { width: 210px; height: auto; display: block; margin-top: 6px; margin-bottom: -64px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.site-head.solid .badge-logo img { width: 140px; margin-bottom: -26px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--cream); text-decoration: none; font: 400 1rem var(--slab); padding: 8px 12px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--cream); }
.cart-btn { position: relative; background: none; border: 0; color: var(--cream); cursor: pointer; padding: 8px; min-width: 44px; min-height: 44px; }
.cart-btn svg { width: 28px; height: 28px; }
.cart-btn .count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; border-radius: 10px; background: var(--cream); color: var(--wood); font: 700 .75rem/20px var(--sans); text-align: center; padding: 0 5px; }
.site-nav .links { display: flex; align-items: center; gap: 2px; }
.menu-btn { display: none; background: none; border: 1px solid rgba(246,235,215,.5); color: var(--cream); border-radius: 4px; min-height: 44px; padding: 0 14px; font: 600 1rem var(--slab); cursor: pointer; }
@media (max-width: 980px) {
  .menu-btn { display: inline-block; }
  .site-nav .links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--wood); padding: 8px 16px 16px; flex-direction: column; align-items: stretch; box-shadow: 0 12px 24px rgba(0,0,0,.35); }
  .site-nav .links.open { display: flex; }
  .site-nav .links a { padding: 14px 4px; border-bottom: 1px solid rgba(246,235,215,.15); text-align: left; }
  .band .ruled { letter-spacing: .12em; gap: 12px; }
  .band .ruled::before, .band .ruled::after { flex-basis: 40px; }
  .badge-logo img { width: 130px; margin-bottom: -34px; }
  .site-head.solid .badge-logo img { width: 110px; margin-bottom: -20px; }
}

.announce { background: var(--rust); color: #fff; text-align: center; padding: 10px 16px; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--rust); background: var(--rust); color: #fff;
  font: 700 .92rem var(--slab); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.btn.framed { box-shadow: inset 0 0 0 3px var(--rust), inset 0 0 0 4px rgba(246,235,215,.55); }
.btn.ghost { background: transparent; color: var(--rust); }
.btn.ghost:hover { background: rgba(124,47,22,.08); }
.btn.on-dark { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn.on-dark:hover { background: rgba(246,235,215,.12); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn .arr { width: 18px; height: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(720px, 92vh); display: flex; align-items: center; padding: 150px 0 72px;
  background: var(--wood) 70% center/cover no-repeat; color: var(--cream); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,14,7,.86) 0%, rgba(25,14,7,.55) 38%, rgba(25,14,7,0) 70%); }
.hero .wrap { position: relative; }
@media (max-width: 700px) { .hero::before { background: linear-gradient(rgba(25,14,7,.55), rgba(25,14,7,.78)); } .hero { background-position: 60% center; } }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1.02; text-transform: uppercase; letter-spacing: .02em; max-width: 10ch; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero .tag { font-family: var(--slab); font-style: italic; text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; color: var(--cream); margin: 4px 0 16px; padding-top: 12px; border-top: 1px solid rgba(246,235,215,.5); max-width: 32ch; }
.hero p { color: #EADCC4; font-size: 1.12rem; max-width: 36ch; }
.hero .btn { margin-top: 10px; }

/* ---------- Parchment + torn edges ---------- */
.parch { position: relative; background: var(--parchment); padding: 56px 0; isolation: isolate; }
.parch::before, .parch::after { content: ""; position: absolute; left: 0; right: 0; height: 22px; background-size: 100% 100%; pointer-events: none; z-index: 1; }
.parch::before { top: -21px; background-image: var(--torn-top); }
.parch::after { bottom: -21px; background-image: var(--torn-bot); }
.parch { background-image: radial-gradient(ellipse at 15% 20%, rgba(255,255,255,.35), transparent 55%), radial-gradient(ellipse at 85% 90%, rgba(160,110,60,.10), transparent 60%); }

/* Our story */
.story { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
.story .mill { display: none; color: var(--wood); }
@media (min-width: 900px) {
  .story { grid-template-columns: 150px 1.35fr 1fr; }
  .story .mill { display: block; width: 150px; }
  .story .commit { border-left: 1px solid var(--line); padding-left: 32px; }
}
.story p { font-size: 1.02rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.checks svg { width: 22px; height: 22px; color: var(--rust); margin-top: 3px; }

/* Leadership */
.band { position: relative; color: var(--cream); padding: 72px 0; background: var(--wood) center/cover no-repeat; }
.band::before { content: ""; position: absolute; inset: 0; background: rgba(28,16,8,.72); }
.band > .wrap { position: relative; }
.band h2 { color: var(--cream); }
.band .ruled { color: var(--cream); font-size: clamp(1.3rem, 3vw, 1.9rem); margin: 0; }
.band .sub { text-align: center; color: #E7D7BA; margin: 4px auto 32px; }
.team { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); max-width: 980px; margin-inline: auto; }
.person { background: var(--gold); padding: 5px; box-shadow: 0 10px 22px rgba(0,0,0,.35); }
.person .pic { aspect-ratio: 1 / 1; background: #6B4A30; overflow: hidden; border: 1px solid rgba(0,0,0,.25); }
.person .pic img { width: 100%; height: 100%; object-fit: cover; }
.person .pic .ph { color: #C9A985; }
.person .plaque { background: var(--paper); text-align: center; padding: 8px 6px 7px; color: var(--ink); }
.person .plaque b { display: block; font-family: var(--slab); font-size: 1.05rem; }
.person .plaque i { font-size: .95rem; color: var(--muted); }

/* Cattle for sale (home) */
.forsale { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .forsale { grid-template-columns: .9fr 1.6fr; } }
.forsale h2 { font-size: clamp(1.8rem, 3.8vw, 2.5rem); }
.tiles { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.tile { position: relative; display: block; text-decoration: none; color: var(--ink); padding-bottom: 14px; }
.tile .img { aspect-ratio: 3 / 2; background: var(--wood-2); overflow: hidden; box-shadow: 0 6px 14px rgba(60,35,15,.25); border: 4px solid var(--paper); }
.tile .img img { width: 100%; height: 100%; object-fit: cover; }
.tile .label { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); background: var(--paper); border: 1px solid var(--line);
  padding: 5px 16px; font: 700 .8rem var(--slab); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 2px 6px rgba(60,35,15,.2); max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.note { text-align: center; font-style: italic; color: var(--muted); font-size: .98rem; margin: 18px auto 0; max-width: 80ch; }

/* Wood band (merch) */
.wood { position: relative; color: var(--cream); padding: 64px 0; background-color: #3B2416;
  background-image: repeating-linear-gradient(180deg, rgba(0,0,0,.18) 0 2px, transparent 2px 9px, rgba(255,255,255,.03) 9px 11px, transparent 11px 23px),
                    linear-gradient(90deg, #3A2315, #4B2D1B 40%, #3A2315); }
.wood h2 { color: #fff; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.wood .kicker { font: 700 .95rem var(--slab); letter-spacing: .12em; text-transform: uppercase; color: #E9D8B9; margin-bottom: 6px; }
.wood p { color: #EADCC4; }
.merch-row { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .merch-row { grid-template-columns: .85fr 1.6fr; } }
.merch-strip { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.merch-strip a { display: block; background: rgba(250,244,232,.06); border: 1px solid rgba(201,166,107,.35); padding: 8px; color: var(--cream); text-decoration: none; }
.merch-strip img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.merch-strip span { display: block; font-size: .9rem; margin-top: 6px; }

/* Gallery band */
.gband { position: relative; padding: 84px 0; text-align: center; background: var(--wood) center/cover no-repeat; color: #fff; }
.gband::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20,12,6,.55), rgba(20,12,6,.25)); }
.gband .wrap { position: relative; }
.gband h2 { color: #fff; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 4px; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.gband p { margin: 0 auto 20px; font-style: italic; color: #F3E6CF; text-shadow: 0 1px 6px rgba(0,0,0,.6); }

/* ---------- Footer ---------- */
.site-foot { background: var(--wood); color: #E2D2B6; padding: 36px 0; border-top: 4px solid #1F130B; }
.site-foot .wrap { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .site-foot .wrap { grid-template-columns: 220px 1.2fr 1fr auto; }
  .site-foot .col + .col { border-left: 1px solid rgba(201,166,107,.35); padding-left: 28px; } }
.site-foot img.foot-badge { width: 190px; height: auto; display: block; }
.site-foot h3 { color: var(--cream); letter-spacing: .2em; text-transform: uppercase; font-size: 1.05rem; }
.site-foot p { font-size: .98rem; margin: 0; }
.site-foot a { color: var(--cream); }
.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .98rem; }
.contact-lines li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.contact-lines svg { width: 20px; height: 20px; margin-top: 3px; color: var(--cream); }
.legal { border-top: 1px solid rgba(201,166,107,.25); margin-top: 24px; padding-top: 14px; font-size: .88rem; color: #BCA98A; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.legal a { color: #D9C7A6; }

/* ---------- Inner pages ---------- */
.page-head { background: var(--wood) center/cover no-repeat; position: relative; padding: 64px 0 40px; color: var(--cream); }
.page-head::before { content: ""; position: absolute; inset: 0; background: rgba(28,16,8,.72); }
.page-head .wrap { position: relative; }
.page-head h1 { color: #fff; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.page-head p { color: #EADCC4; margin: 0; }
.page-body { padding: 48px 0 72px; }

/* Lot cards (cattle listing) */
.lots { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.lot { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; color: inherit; text-decoration: none; box-shadow: 0 4px 12px rgba(60,35,15,.12); }
.lot:hover { border-color: var(--rust); }
.lot .photo { aspect-ratio: 3 / 2; background: var(--wood-2); position: relative; border: 5px solid var(--paper); border-bottom: 0; }
.lot .photo img { width: 100%; height: 100%; object-fit: cover; }
.lot .body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lot .lotno { font: 700 .8rem var(--slab); letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
.lot h3 { margin: 0; }
.lot .facts { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; font-size: .95rem; }
.lot .facts dt { color: var(--muted); }
.lot .facts dd { margin: 0; }
.lot .price { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.lot .price strong { font-family: var(--slab); font-size: 1.4rem; }
.lot .price span { color: var(--muted); font-size: .9rem; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 3px; font: 700 .75rem var(--slab); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--ok); }
.badge.reserved { background: var(--hold); }
.badge.sold { background: var(--gone); }
.lot .badge { position: absolute; top: 10px; left: 10px; }

.ph { width: 100%; height: 100%; display: grid; place-items: center; color: #BFA07C; text-align: center; font-size: .9rem; font-style: italic; }
.ph img { display: block; width: 56%; max-width: 170px; height: auto; margin: 0 auto 6px; opacity: .45; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 3px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 600 .95rem var(--sans); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--wood-2); color: #fff; border-color: var(--wood-2); }

/* Animal detail */
.detail { display: grid; gap: 32px; grid-template-columns: 1fr; grid-template-areas: "gallery" "panel" "desc"; padding: 28px 0 64px; }
.detail .gallery { grid-area: gallery; } .detail .side { grid-area: panel; } .detail .desc { grid-area: desc; }
@media (min-width: 900px) { .detail { grid-template-columns: 1.25fr 1fr; grid-template-areas: "gallery panel" "desc panel"; grid-template-rows: auto 1fr; align-items: start; } }
.gallery .main { aspect-ratio: 3 / 2; background: var(--wood-2); overflow: hidden; border: 6px solid var(--paper); box-shadow: 0 6px 16px rgba(60,35,15,.2); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 76px; height: 54px; padding: 0; border: 2px solid transparent; overflow: hidden; cursor: pointer; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--rust); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.pedigree { margin: 18px 0; display: grid; grid-template-columns: 18px 1fr; column-gap: 10px; }
.pedigree::before { content: ""; grid-row: 1 / 3; border: 2px solid var(--line); border-right: 0; margin: 12px 0; }
.pedigree div { padding: 4px 0; }
.pedigree small { display: block; color: var(--muted); font-size: .8rem; }
.bigprice { font-family: var(--slab); font-size: 2.1rem; font-weight: 700; }
.deposit-note { color: var(--muted); font-size: .95rem; }
.crumbs { padding-top: 22px; font-size: .95rem; padding-left: 170px; }
@media (max-width: 980px) { .crumbs { padding-left: 140px; } }

/* Shop */
.products { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.product { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: 0 4px 12px rgba(60,35,15,.12); }
.product .img { aspect-ratio: 1 / 1; background: #E9DCC2; position: relative; }
.product .img img { width: 100%; height: 100%; object-fit: cover; }
.product .body { padding: 14px 16px 16px; display: grid; gap: 10px; flex: 1; align-content: start; }
.product h3 { margin: 0; font-size: 1.1rem; }
.product .price { font: 700 1.2rem var(--slab); }
.product .desc { font-size: .95rem; color: var(--muted); margin: 0; }
.product .buy { display: flex; gap: 8px; margin-top: auto; }
.product select { flex: 1; min-width: 0; }
.product .soldout { position: absolute; top: 10px; left: 10px; }

/* Cart drawer */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--paper); z-index: 60; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,.3); }
.drawer.open { transform: none; }
.scrim { position: fixed; inset: 0; background: rgba(20,12,6,.5); z-index: 55; display: none; }
.scrim.open { display: block; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer header h2 { margin: 0; font-size: 1.3rem; }
.drawer .items { flex: 1; overflow: auto; padding: 8px 18px; }
.drawer .line { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.drawer .line img, .drawer .line .noimg { width: 60px; height: 60px; object-fit: cover; background: #E9DCC2; }
.drawer .line small { color: var(--muted); display: block; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 3px; }
.qty button { width: 34px; height: 34px; background: none; border: 0; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.qty span { min-width: 24px; text-align: center; }
.drawer footer { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer .sum { display: flex; justify-content: space-between; }
.x { background: none; border: 0; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--muted); min-width: 44px; min-height: 44px; }
.link-btn { background: none; border: 0; color: var(--rust); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; padding: 4px 0; }

/* Gallery page */
.photo-grid { columns: 3 260px; column-gap: 14px; }
.photo-grid button { display: block; width: 100%; margin: 0 0 14px; padding: 6px; background: var(--paper); border: 1px solid var(--line); cursor: zoom-in; break-inside: avoid; box-shadow: 0 4px 10px rgba(60,35,15,.12); }
.photo-grid img { width: 100%; height: auto; }
.photo-grid figcaption { font-style: italic; font-size: .9rem; color: var(--muted); padding: 6px 2px 0; text-align: left; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(15,9,4,.88); }
dialog.lightbox img { max-width: 96vw; max-height: 84vh; object-fit: contain; margin: 0 auto; }
dialog.lightbox p { color: #EADCC4; text-align: center; font-style: italic; margin: 10px auto 0; }
dialog.lightbox .x { position: fixed; top: 10px; right: 10px; color: #fff; }

/* Forms */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: .95rem; }
.form input, .form textarea, .form select, .product select { font: 400 1rem var(--sans); padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: inherit; width: 100%; }
.form textarea { min-height: 120px; resize: vertical; }
.form .row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.hp { position: absolute; left: -9999px; }
.msg { padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 600; }
.msg.ok { background: #E4EFDF; color: var(--ok); }
.msg.err { background: #F7E2DC; color: #8E2A12; }
.contact-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.3fr; } }
.contact-grid .contact-lines svg { color: var(--rust); }
.prose { padding: 40px 0 64px; }
.prose p { white-space: pre-line; }
.empty { padding: 28px; text-align: center; color: var(--muted); background: var(--paper); border: 1px dashed var(--line); font-style: italic; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .drawer { transition: none; } }

.shop-head { padding: 56px 0 40px; }
.shop-head h1 { color: #fff; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
