/* ============================================================================
   shop.css — shared styles for the re-skinned gift catalog / shop
   (catalog, product detail, cart, checkout). Plain CSS — loaded via a <link>
   in each shop view's head section, on top of site.css.
   ============================================================================ */

.page-top{ padding-top:78px; }

/* ---------- catalog header ---------- */
.gh-head{ background:var(--paper); }
.gh-inner{ padding-block:var(--head-pad); }
.gh-inner h1{ max-width:none; }
.gh-inner p{ max-width:65ch; margin-top:20px; }
.gh-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:24px; flex-wrap:wrap; }

/* ---------- grid + cards ---------- */
.gift-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.gcard{ background:var(--ivory); border:1px solid var(--line); border-radius:16px; overflow:hidden; display:flex; flex-direction:column; transition:transform .3s, box-shadow .3s; position:relative; }
.gcard:hover{ transform:translateY(-5px); box-shadow:0 28px 54px -34px rgba(33,28,21,.5); }
.gcard .ph{ aspect-ratio:1/1; }
.gph{ display:block; position:relative; }
.gc-sale{ position:absolute; top:12px; left:12px; z-index:2; font-size:11px; font-weight:800; letter-spacing:.03em; padding:5px 10px; border-radius:999px; background:var(--clay); color:#fdf6ee; }
.gc-body{ padding:22px 24px 24px; display:flex; flex-direction:column; flex:1; }
.gcard h3{ font-size:20px; margin-bottom:18px; line-height:1.16; }
.gcard h3 a{ color:inherit; text-decoration:none; }
.gcard:hover h3 a{ color:var(--clay-deep); }
.gcard .impact{ font-size:14px; color:var(--brown); margin-bottom:18px; }
.gc-foot{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.gc-price{ font-family:var(--serif); font-size:26px; font-weight:600; color:var(--ink); flex:none; }
.gc-price .was{ font-family:var(--sans); font-size:15px; font-weight:600; color:var(--taupe); text-decoration:line-through; margin-right:8px; }
.gc-control{ flex:none; text-align:right; }
.gc-control .add-btn{ font-size:14px; padding:12px 20px; }
.gc-max{ display:block; margin-top:6px; font-size:11.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--taupe); }
.gc-sold{ display:inline-block; font-size:12.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--taupe); padding:10px 0; }
.bk-max{ font-size:11px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; color:var(--taupe); }

/* ---------- stepper ---------- */
.stepper{ display:inline-flex; align-items:center; gap:4px; border:1px solid var(--clay); border-radius:999px; padding:4px; background:rgba(171,93,58,.06); }
.stepper .st-btn{ width:30px; height:30px; border-radius:50%; border:0; background:var(--clay); color:#fdf6ee; font-size:17px; font-weight:700; cursor:pointer; display:grid; place-items:center; transition:background .15s; }
.stepper .st-btn:hover{ background:var(--clay-deep); }
.stepper .st-btn:disabled{ opacity:.5; cursor:default; }
.stepper .st-n{ font-size:12.5px; font-weight:700; color:var(--clay-deep); padding:0 8px; white-space:nowrap; }
.stepper.sm{ padding:3px; } .stepper.sm .st-btn{ width:26px; height:26px; font-size:15px; } .stepper.sm .st-n{ padding:0 6px; }

/* ---------- trust band ---------- */
.trust-band{ background:var(--paper-2); color:var(--ink-soft); }
.trust-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:12px; overflow:hidden; margin-top:clamp(36px,5vh,52px); }
.trust-cell{ background:var(--ivory); padding:34px 32px; }
.trust-cell .ti{ font-family:var(--serif); font-size:15px; color:var(--clay); font-weight:600; display:inline; margin-right:11px; }
.trust-cell h3{ color:var(--ink); font-size:21px; display:inline; margin:0; }
.trust-cell p{ font-size:14px; color:var(--brown); margin:14px 0 0; line-height:1.55; }

/* closing CTA image crop */
.cta-photo .ph img{ object-position:center 42%; }

/* ---------- basket toggle (header) ---------- */
.basket-toggle{ display:inline-flex; align-items:center; gap:9px; font-family:var(--sans); font-weight:700; font-size:13.5px; padding:10px 17px; border-radius:999px; border:1px solid var(--clay); color:var(--clay-deep); background:rgba(171,93,58,.06); cursor:pointer; transition:all .18s; }
.basket-toggle:hover{ background:var(--clay); color:#fdf6ee; }
.basket-toggle .bdot{ min-width:20px; height:20px; padding:0 5px; border-radius:999px; background:var(--clay); color:#fff; font-size:11px; font-weight:800; display:grid; place-items:center; }
.basket-toggle:hover .bdot{ background:#fff; color:var(--clay-deep); }

/* ---------- floating basket bar ---------- */
.basket-bar{ position:fixed; left:50%; bottom:26px; transform:translate(-50%,140%); z-index:60;
  display:flex; align-items:center; gap:18px; padding:12px 14px 12px 24px;
  background:var(--ink); color:#fdf8ef; border-radius:999px; box-shadow:0 24px 50px -16px rgba(0,0,0,.5);
  transition:transform .4s cubic-bezier(.2,.8,.3,1); }
.basket-bar.show{ transform:translate(-50%,0); }
.basket-bar .bb-text b{ font-family:var(--serif); font-size:18px; font-weight:600; }
.basket-bar .bb-text span{ font-size:13px; color:#cfc4b0; margin-left:10px; }
.basket-bar .bb-go{ font-family:var(--sans); font-weight:700; font-size:14px; padding:12px 22px; border-radius:999px; background:var(--clay); color:#fdf6ee; border:0; cursor:pointer; transition:background .2s; white-space:nowrap; }
.basket-bar .bb-go:hover{ background:var(--clay-deep); }

/* ---------- basket drawer ---------- */
.basket-scrim{ position:fixed; inset:0; background:rgba(18,13,8,.5); opacity:0; pointer-events:none; transition:opacity .35s; z-index:70; }
.basket-scrim.show{ opacity:1; pointer-events:auto; }
.basket-drawer{ position:fixed; top:0; right:0; height:100%; width:min(440px,92vw); background:var(--paper); z-index:80;
  transform:translateX(100%); transition:transform .4s cubic-bezier(.2,.8,.3,1); display:flex; flex-direction:column; }
.basket-drawer.open{ transform:none; box-shadow:-30px 0 60px -30px rgba(0,0,0,.5); }
.bk-head{ display:flex; align-items:center; justify-content:space-between; padding:24px 26px; border-bottom:1px solid var(--line); }
.bk-head h2{ font-size:24px; }
.bk-close{ width:38px; height:38px; border-radius:50%; border:1px solid var(--line); background:var(--ivory); font-size:20px; cursor:pointer; color:var(--brown); display:grid; place-items:center; transition:all .18s; }
.bk-close:hover{ border-color:var(--clay); color:var(--ink); }
.bk-dynamic{ flex:1; display:flex; flex-direction:column; min-height:0; }
#bkData{ display:none; }
.bk-body{ flex:1; overflow-y:auto; padding:8px 26px; }
.bk-empty{ text-align:center; color:var(--taupe); padding:70px 20px; }
.bk-empty .em{ font-size:34px; margin-bottom:14px; }
.bk-empty .em svg{ width:42px; height:42px; }
.bk-item{ display:flex; gap:14px; align-items:center; padding:18px 0; border-bottom:1px solid var(--line); }
.bk-ph{ width:52px; height:52px; border-radius:10px; flex:none; background:repeating-linear-gradient(135deg,#e6dbc6 0 8px,#e0d4bd 8px 16px); background-size:cover; background-position:center; }
.bk-info{ flex:1; min-width:0; } .bk-info b{ font-family:var(--serif); font-weight:600; font-size:15.5px; display:block; line-height:1.2; } .bk-info span{ font-size:12.5px; color:var(--taupe); }
.bk-info b a{ color:inherit; text-decoration:none; transition:color .15s; line-height: 1.25; } .bk-info b a:hover{ color:var(--clay-deep); }
a.bk-ph{ display:block; cursor:pointer; }
.bk-right{ display:flex; flex-direction:column; align-items:flex-end; gap:6px; flex:none; }
.bk-line{ font-family:var(--serif); font-weight:600; font-size:15px; }
.bk-foot{ border-top:1px solid var(--line); padding:22px 26px calc(22px + env(safe-area-inset-bottom)); background:var(--ivory); }
.bk-total{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:6px; }
.bk-total .tl{ font-size:13px; letter-spacing:.04em; text-transform:uppercase; color:var(--taupe); font-weight:700; }
.bk-total .tv{ font-family:var(--serif); font-size:30px; font-weight:600; }
.bk-foot .give{ width:100%; margin-top:14px; }
.bk-foot .note{ font-size:12px; color:var(--taupe); text-align:center; margin-top:12px; line-height:1.5; }
.bk-busy{ opacity:.55; pointer-events:none; }

.is-hidden{ display:none !important; }

@media (max-width:980px){ .gift-grid{ grid-template-columns:1fr 1fr; } .trust-grid{ grid-template-columns:1fr; } }
@media (max-width:620px){ .gift-grid{ grid-template-columns:1fr; } .basket-bar{ left:16px; right:16px; transform:translateY(160%); width:auto; } .basket-bar.show{ transform:none; } }

/* ============================================================================
   Full cart page (/shop/cart)
   ============================================================================ */
.ct-top{ padding-block:clamp(28px,4vh,44px) clamp(8px,2vh,16px); }
.ct-crumbs{ display:flex; gap:8px; align-items:center; font-size:13px; color:var(--taupe); flex-wrap:wrap; }
.ct-crumbs a{ color:var(--taupe); } .ct-crumbs a:hover{ color:var(--clay); }
.ct-crumbs .sep{ opacity:.45; }
.ct-crumbs .here{ color:var(--ink); font-weight:600; }
.ct-title{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-top:18px; flex-wrap:wrap; }
.ct-title h1{ font-size:clamp(30px,3.4vw,44px); letter-spacing:-.01em; }
.ct-title .ct-continue{ font-size:14px; font-weight:700; letter-spacing:.02em; color:var(--clay-deep); display:inline-flex; align-items:center; gap:8px; }
.ct-title .ct-continue .arr{ transition:transform .22s; }
.ct-title .ct-continue:hover .arr{ transform:translateX(-4px); }

.ct-notice{ margin:0 0 22px; padding:13px 18px; background:rgba(81,97,63,.09); border:1px solid rgba(81,97,63,.25); border-radius:12px; font-size:14px; color:var(--ink-soft); }

.ct-layout{ display:grid; grid-template-columns:1fr 370px; gap:clamp(28px,3.5vw,56px); align-items:start; padding-bottom:clamp(56px,9vh,104px); }

.ct-list{ background:var(--ivory); border:1px solid var(--line); border-radius:18px; overflow:hidden; }
.ct-list-h{ display:flex; align-items:baseline; justify-content:space-between; padding:20px 26px; border-bottom:1px solid var(--line); background:var(--paper-2); }
.ct-list-h h2{ font-size:20px; }
.ct-list-h .cnt{ font-size:13px; color:var(--taupe); }
.ct-line{ display:grid; grid-template-columns:96px 1fr auto; gap:22px; padding:24px 26px; border-bottom:1px solid var(--line); align-items:start; }
.ct-line:last-child{ border-bottom:0; }
.ct-thumb{ width:96px; height:96px; border-radius:12px; flex:none; overflow:hidden; background:repeating-linear-gradient(135deg,#e6dbc6 0 8px,#e0d4bd 8px 16px); display:block; }
.ct-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.ct-info{ min-width:0; }
.ct-info .ci-title{ font-family:var(--serif); font-weight:600; font-size:19px; line-height:1.2; color:var(--ink); text-decoration:none; display:inline-block; transition:color .15s; }
.ct-info .ci-title:hover{ color:var(--clay-deep); }
.ct-info .ci-impact{ font-size:13.5px; color:var(--brown); margin:8px 0 0; line-height:1.5; max-width:44ch; }
.ct-tag{ display:inline-block; font-size:10.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:3px 8px; border-radius:5px; margin-top:12px; }
.ct-tag.don{ background:rgba(171,93,58,.12); color:var(--clay-deep); }
.ct-tag.art{ background:rgba(81,97,63,.16); color:var(--green-deep); }
.ct-controls{ display:flex; flex-direction:column; align-items:flex-end; gap:6px; flex:none; }
.ct-line-total{ font-family:var(--serif); font-size:22px; font-weight:600; color:var(--ink); }
.ct-each{ font-size:12px; color:var(--taupe); }
.ct-step-row{ display:flex; align-items:center; gap:10px; margin:0; margin-top:6px; }
.ct-step{ display:inline-flex; align-items:center; gap:2px; border:1px solid var(--clay); border-radius:999px; padding:4px; background:rgba(171,93,58,.06); }
.ct-step .sb{ width:30px; height:30px; border-radius:50%; border:0; background:var(--clay); color:#fdf6ee; font-size:17px; font-weight:700; cursor:pointer; display:grid; place-items:center; line-height:1; transition:background .15s; }
.ct-step .sb:hover{ background:var(--clay-deep); }
.ct-step .sb:disabled{ opacity:.5; cursor:default; }
.ct-step .sn{ font-size:13px; font-weight:700; color:var(--clay-deep); padding:0 10px; min-width:20px; text-align:center; }
.ct-rm{ width:34px; height:34px; flex:none; border-radius:50%; border:1px solid var(--line); background:var(--paper); color:var(--taupe); cursor:pointer; display:grid; place-items:center; transition:all .15s; }
.ct-rm svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.ct-rm:hover{ border-color:var(--clay); color:var(--clay-deep); background:rgba(171,93,58,.06); }
.ct-max{ font-size:11px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; color:var(--taupe); margin-top:2px; }

.ct-side{ position:sticky; top:98px; }
.ct-summary{ background:var(--ivory); border:1px solid var(--line); border-radius:18px; overflow:hidden; }
.ct-sum-h{ padding:20px 24px; border-bottom:1px solid var(--line); background:var(--paper-2); }
.ct-sum-h h2{ font-size:19px; }
.ct-totals{ padding:20px 24px; }
.ct-trow{ display:flex; justify-content:space-between; align-items:baseline; font-size:14.5px; color:var(--brown); margin-bottom:13px; }
.ct-trow .v{ color:var(--ink); font-weight:600; }
.ct-trow .free{ color:var(--green-deep); font-weight:700; }
.ct-grand{ display:flex; justify-content:space-between; align-items:baseline; padding-top:16px; border-top:1px solid var(--line); margin-top:4px; }
.ct-grand .gl{ font-size:13px; letter-spacing:.04em; text-transform:uppercase; color:var(--taupe); font-weight:700; }
.ct-grand .gv{ font-family:var(--serif); font-size:32px; font-weight:600; }
.ct-checkout{ width:100%; margin-top:20px; }
.ct-securenote{ display:flex; align-items:center; justify-content:center; gap:7px; margin-top:14px; font-size:12.5px; color:var(--taupe); }
.ct-securenote .ic{ display:grid; place-items:center; color:var(--green-deep); }
.ct-securenote .ic svg{ width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.9; }
.ct-give-alt{ text-align:center; margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }
.ct-give-alt p{ font-size:13px; color:var(--brown); margin:0 0 4px; }
.ct-give-alt a{ font-size:13.5px; font-weight:700; color:var(--clay-deep); }

.ct-empty{ text-align:center; padding:clamp(60px,12vh,120px) 20px; max-width:460px; margin-inline:auto; }
.ct-empty .em{ display:flex; justify-content:center; color:var(--clay); }
.ct-empty .em svg{ width:58px; height:58px; }
.ct-empty h2{ font-size:28px; margin:18px 0 10px; }
.ct-empty p{ color:var(--brown); margin-bottom:26px; }

@media (max-width:920px){ .ct-layout{ grid-template-columns:1fr; } .ct-side{ position:static; } }
@media (max-width:560px){
  .ct-line{ grid-template-columns:72px 1fr; gap:16px; }
  .ct-thumb{ width:72px; height:72px; }
  .ct-controls{ grid-column:1 / -1; flex-direction:row; align-items:center; justify-content:space-between; border-top:1px solid var(--line); padding-top:16px; flex-wrap:wrap; }
}

/* ============================================================================
   Product / gift detail (/shop/product/{id})
   ============================================================================ */
.gd-backrow{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top:clamp(18px,3vh,30px); flex-wrap:wrap; }
.gd-back{ display:inline-flex; align-items:center; gap:9px; font-size:14px; font-weight:700; color:var(--clay-deep); }
.gd-back svg{ width:18px; height:18px; transition:transform .2s; }
.gd-back:hover svg{ transform:translateX(-4px); }
.basket-toggle .bt-ic{ width:20px; height:20px; margin-right:-2px; }

/* prominent buy button on the detail buy box */
.gd-buy .gc-control .add-btn{ font-size:15px; padding:14px 26px; }
.gd-buy .gd-was{ font-family:var(--sans); font-size:16px; font-weight:600; color:var(--taupe); text-decoration:line-through; margin-left:10px; }

/* gift media gallery */
.gd-gallery{ display:flex; flex-direction:column; gap:12px; }
.gd-stage{ position:relative; cursor:zoom-in; border-radius:18px; }
.gd-stage .ph{ border-radius:18px; }
.gd-gal-arrow{ position:absolute; top:50%; transform:translateY(-50%); width:42px; height:42px; border-radius:50%; border:0; background:rgba(255,255,255,.86); color:var(--ink); font-size:22px; line-height:1; cursor:pointer; display:grid; place-items:center; opacity:0; transition:opacity .2s, background .2s; box-shadow:0 8px 20px -10px rgba(33,28,21,.6); z-index:2; }
.gd-stage:hover .gd-gal-arrow, .gd-stage:focus-within .gd-gal-arrow{ opacity:1; }
.gd-gal-arrow:hover{ background:#fff; }
.gd-gal-prev{ left:12px; }
.gd-gal-next{ right:12px; }
.gd-zoom{ position:absolute; right:12px; bottom:12px; width:36px; height:36px; border-radius:50%; background:rgba(20,16,8,.55); color:#fff; display:grid; place-items:center; opacity:0; transition:opacity .2s; z-index:2; pointer-events:none; }
.gd-zoom svg{ width:17px; height:17px; }
.gd-stage:hover .gd-zoom{ opacity:1; }
.gd-thumbs{ display:flex; gap:10px; overflow-x:auto; scroll-behavior:smooth; scrollbar-width:none; -ms-overflow-style:none; scroll-snap-type:x proximity; max-width:515px; }
.gd-thumbs::-webkit-scrollbar{ display:none; }
.gd-thumb{ width:95px; height:95px; flex:none; padding:0; border:0; background:none; cursor:pointer; border-radius:10px; overflow:hidden; position:relative; scroll-snap-align:center; }
.gd-thumb .ph{ width:100%; height:100%; aspect-ratio:auto; border-radius:10px; }
.gd-thumb::after{ content:""; position:absolute; inset:0; border-radius:10px; box-shadow:inset 0 0 0 1px rgba(33,28,21,.12); transition:box-shadow .15s; }
.gd-thumb.on::after{ box-shadow:inset 0 0 0 2px var(--clay); }
.gd-thumb:focus-visible{ outline:2px solid var(--clay); outline-offset:2px; }

/* gift image lightbox */
.gd-lb{ position:fixed; inset:0; z-index:200; display:none; align-items:center; justify-content:center; background:rgba(20,18,9,.92); padding:clamp(20px,5vw,64px); }
.gd-lb.open{ display:flex; }
.gd-lb-stage{ width:min(860px,90vw); display:flex; justify-content:center; }
.gd-lb-stage .ph{ width:min(860px,90vw); aspect-ratio:1/1; max-height:82vh; border-radius:14px; }
.gd-lb-stage img{ max-width:min(860px,90vw); max-height:82vh; width:auto; height:auto; object-fit:contain; border-radius:14px; display:block; }
.gd-lb-btn{ position:absolute; top:50%; transform:translateY(-50%); width:52px; height:52px; border-radius:50%; border:1px solid rgba(255,255,255,.25); background:rgba(0,0,0,.3); color:#fff; font-size:22px; cursor:pointer; display:grid; place-items:center; transition:background .18s,border-color .18s; }
.gd-lb-btn:hover{ background:rgba(0,0,0,.55); border-color:rgba(255,255,255,.5); }
.gd-lb-prev{ left:clamp(12px,3vw,32px); }
.gd-lb-next{ right:clamp(12px,3vw,32px); }
.gd-lb-close{ position:absolute; top:clamp(16px,3vw,28px); right:clamp(16px,3vw,28px); width:44px; height:44px; border-radius:50%; border:1px solid rgba(255,255,255,.25); background:rgba(0,0,0,.3); color:#fff; font-size:20px; cursor:pointer; display:grid; place-items:center; }
.gd-lb-close:hover{ background:rgba(0,0,0,.55); }
@media (max-width:640px){ .gd-lb-btn{ width:42px; height:42px; font-size:18px; } }

/* mobile shows the title above the image (desktop unchanged) */
.gd-mtitle{ display:none; }
.gd-mtitle h1{ font-size:clamp(30px,6vw,40px); margin-top:14px; max-width:18ch; }
.gd-buy > .gd-tagline{ margin-top:28px; margin-bottom:0; }
.gd-main{ padding-top:24px; }
@media (max-width:880px){
  .gd-mtitle{ display:block; }
  .gd-buy > h1{ display:none; }
  .gd-mtitle .gd-tagline{ display:none; }
  .gd-main{ padding-top:20px; gap:16px; }
  .gd-mtitle h1{ margin-top:0; }
  .gd-thumb{ width:68px; height:68px; }
}

/* ============================================================================
   Checkout (/shop/checkout)
   ============================================================================ */
.co-top{ padding-block:clamp(28px,4vh,44px) clamp(8px,2vh,16px); }
.co-crumbs{ display:flex; gap:8px; align-items:center; font-size:13px; color:var(--taupe); flex-wrap:wrap; }
.co-crumbs a{ color:var(--taupe); } .co-crumbs a:hover{ color:var(--clay); }
.co-crumbs .sep{ opacity:.45; }
.co-crumbs .here{ color:var(--ink); font-weight:600; }
.co-title{ display:flex; align-items:baseline; gap:10px; margin-top:18px; }
.co-title .lk{ transform:translateY(3px); flex:none; display:grid; place-items:center; color:var(--green-deep); }
.co-title .lk svg{ width:32px; height:32px; fill:currentColor; }
.co-title h1{ font-size:clamp(30px,3.4vw,44px); letter-spacing:-.01em; }

.co-layout{ display:grid; grid-template-columns:1fr 380px; gap:clamp(28px,3.5vw,56px); align-items:start; padding-bottom:clamp(56px,9vh,104px); }
.co-forms{ display:flex; flex-direction:column; gap:20px; }

.co-card{ background:var(--ivory); border:1px solid var(--line); border-radius:18px; overflow:hidden; }
.co-card.hide{ display:none; }
.co-card-h{ display:flex; align-items:center; justify-content:space-between; gap:14px; padding:20px 26px; border-bottom:1px solid var(--line); background:var(--paper-2); }
.co-card-h h2{ font-size:20px; }
.co-card-h .step{ font-family:var(--serif); font-size:14px; color:var(--clay); font-weight:600; }
.co-card-b{ padding:clamp(22px,2.6vw,30px); }

.co-field{ margin-bottom:18px; }
.co-field:last-child{ margin-bottom:0; }
.co-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:18px; }
.co-row:last-child{ margin-bottom:0; }
.co-row .co-field{ margin-bottom:0; }
.co-label{ display:block; font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--taupe); margin-bottom:9px; }
.co-input{ width:100%; padding:14px 16px; border:1px solid var(--line); border-radius:11px; background:var(--paper); font-family:var(--sans); font-size:15.5px; color:var(--ink); transition:border-color .18s, box-shadow .18s; }
.co-input::placeholder{ color:#a99a82; }
.co-input:focus{ outline:none; border-color:var(--clay); box-shadow:inset 0 0 0 1px var(--clay); }
.co-input.input-validation-error{ border-color:#c0392b; box-shadow:inset 0 0 0 1px #c0392b; }
.co-forms .field-validation-error{ display:block; color:#c0392b; font-size:12.5px; margin-top:6px; }

.co-sameas{ display:flex; align-items:center; gap:12px; font-size:14.5px; color:var(--ink); font-weight:600; cursor:pointer; line-height: 1; }
.co-sameas input{ position:absolute; opacity:0; width:0; height:0; }
.co-sameas .bx{ width:22px; height:22px; border-radius:6px; border:2px solid var(--line); flex:none; display:grid; place-items:center; transition:all .15s; background:var(--paper); }
.co-sameas .bx svg{ width:13px; height:13px; fill:none; stroke:#fff; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; opacity:0; transition:opacity .15s; }
.co-sameas input:checked + .bx{ background:var(--clay); border-color:var(--clay); }
.co-sameas input:checked + .bx svg{ opacity:1; }
.co-ship-note{ font-size:13.5px; color:var(--brown); margin:0 0 20px; line-height:1.55; padding:12px 15px; background:rgba(81,97,63,.08); border-radius:10px; }
.co-shipfields.hide{ display:none; }
.co-shiponly.hide{ display:none; }
.co-shipfields{ margin-top:20px; }

.co-dedintro{ font-size:13.5px; color:var(--brown); margin:0 0 10px; line-height:1; }
.co-dedfields.hide{ display:none; }
.co-dedfields{ margin-top:20px; display:flex; flex-direction:column; gap:18px; }
.co-select{ width:100%; padding:13px 42px 13px 15px; border:1px solid var(--line); border-radius:10px; background:var(--paper); font-family:var(--sans); font-size:15px; color:var(--ink); cursor:pointer; appearance:none; -webkit-appearance:none; -moz-appearance:none; box-sizing:border-box;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238a7c68' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat:no-repeat; background-position:right 13px center; }
.co-select:focus{ outline:none; border-color:var(--clay); box-shadow:inset 0 0 0 1px var(--clay); }
.co-textarea{ width:100%; padding:13px 15px; border:1px solid var(--line); border-radius:10px; background:var(--paper); font-family:var(--sans); font-size:15px; color:var(--ink); line-height:1.55; resize:vertical; min-height:84px; box-sizing:border-box; }
.co-textarea:focus{ outline:none; border-color:var(--clay); box-shadow:inset 0 0 0 1px var(--clay); }

/* payment card — wraps the real Stripe Elements mount (#payment-element) */
.stripe-wrap .co-label{ margin-bottom:12px; }
#payment-element{ min-height:44px; }
.stripe-foot{ display:flex; align-items:center; gap:7px; margin-top:14px; font-size:12.5px; color:var(--taupe); }
.stripe-foot b{ color:var(--brown); font-weight:700; }
.stripe-foot .se-ic{ flex:none; display:grid; place-items:center; }
.co-alert{ padding:13px 16px; border-radius:11px; background:rgba(192,57,43,.08); border:1px solid rgba(192,57,43,.3); color:#a4322a; font-size:16px; font-weight:600; }
/* Stale-cart overlay. A page showing the wrong total cannot be paid from, so it is covered
   outright rather than advised from the top. Note the [hidden] rule: the overlay is toggled
   with the hidden attribute, and the author display:flex above would otherwise outrank the
   UA [hidden]{display:none} and pin it permanently open. */
.cart-stale{ position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; padding:24px; background:rgba(31,24,20,.62); }
.cart-stale[hidden]{ display:none; }
.cs-card{ background:var(--ivory); border:1px solid var(--line); border-radius:18px; padding:34px 30px; max-width:460px; width:100%; text-align:center; box-shadow:0 24px 60px rgba(31,24,20,.3); }
.cs-ic{ display:grid; place-items:center; width:54px; height:54px; margin:0 auto 16px; border-radius:50%; background:rgba(192,57,43,.12); color:#a4322a; }
.cs-ic svg{ width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.cs-card h2{ font-size:25px; margin-bottom:10px; }
.cs-msg{ font-size:16px; font-weight:700; color:var(--ink); margin-bottom:10px; }
.cs-note{ font-size:14px; color:var(--brown); margin-bottom:24px; }
.cs-actions{ display:flex; flex-direction:column; gap:10px; }
.cs-actions .btn{ width:100%; }

.co-side{ position:sticky; top:98px; }
.co-summary{ background:var(--ivory); border:1px solid var(--line); border-radius:18px; overflow:hidden; }
.co-sum-h{ display:flex; align-items:baseline; justify-content:space-between; padding:20px 24px; border-bottom:1px solid var(--line); background:var(--paper-2); }
.co-sum-h h2{ font-size:19px; }
.co-sum-h .cnt{ font-size:13px; color:var(--taupe); }
.co-sum-h .cnt a{ color:var(--clay-deep); font-weight:700; }
.co-items{ list-style:none; margin:0; padding:6px 24px; max-height:320px; overflow-y:auto; }
.co-item{ display:flex; gap:13px; align-items:flex-start; padding:15px 0; border-bottom:1px solid var(--line); }
.co-item:last-child{ border-bottom:0; }
.co-item .ci-ph{ width:48px; height:48px; border-radius:9px; flex:none; background:repeating-linear-gradient(135deg,#e6dbc6 0 8px,#e0d4bd 8px 16px) center/cover; position:relative; }
.co-item .ci-q{ position:absolute; top:-7px; right:-7px; min-width:20px; height:20px; padding:0 5px; border-radius:999px; background:var(--ink); color:var(--paper); font-size:11px; font-weight:800; display:grid; place-items:center; }
.co-item .ci-info{ flex:1; min-width:0; }
.co-item .ci-info b{ font-family:var(--serif); font-weight:600; font-size:15px; display:block; line-height:1.2; }
.co-item .ci-info .ci-title{ display:block; line-height:1.25; }
.co-item .ci-info span{ font-size:10px; color:var(--taupe); }
.co-item .ci-line{ font-family:var(--serif); font-weight:600; font-size:15px; flex:none; }
.co-tag{ display:inline-block; font-size:10.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:2px 7px; border-radius:5px; margin-top:4px; }
.co-tag.don{ background:rgba(171,93,58,.12); color:var(--clay-deep); }
.co-tag.art{ background:rgba(81,97,63,.16); color:var(--green-deep); }
.co-totals{ padding:18px 24px; border-top:1px solid var(--line); }
.co-trow{ display:flex; justify-content:space-between; align-items:baseline; font-size:14.5px; color:var(--brown); margin-bottom:11px; }
.co-trow .v{ color:var(--ink); font-weight:600; }
.co-trow .free{ color:var(--green-deep); font-weight:700; }
.co-grand{ display:flex; justify-content:space-between; align-items:baseline; padding-top:15px; border-top:1px solid var(--line); margin-top:4px; }
.co-grand .gl{ font-size:13px; letter-spacing:.04em; text-transform:uppercase; color:var(--taupe); font-weight:700; }
.co-grand .gv{ font-family:var(--serif); font-size:30px; font-weight:600; }
.co-place{ width:100%; margin-top:18px; }
.co-place[disabled]{ opacity:.75; cursor:default; }
.co-place-m{ display:none; width:100%; margin-top:4px; }
/* Which of the two Place Order buttons shows is decided by the media query below.
   Selecting a PayPal or Venmo tab hides whichever one is current without taking that
   decision over, so the checkout toggles this class rather than jQuery .show()/.hide() -
   those write an inline display that outranks the media query and reveal both at once. */
.co-place-btn.pay-hidden{ display:none !important; }
.co-trust{ display:flex; flex-direction:column; gap:11px; padding:16px 8px 0; }
.co-trust .tr{ display:flex; align-items:center; gap:11px; font-size:12.5px; color:var(--brown); }
.co-trust .tr .ic{ width:30px; height:30px; border-radius:8px; flex:none; display:grid; place-items:center; background:rgba(81,97,63,.12); color:var(--green-deep); }
.co-trust .tr .ic svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.co-trust .tr b{ color:var(--ink); font-weight:700; }

@media (max-width:920px){
  .co-layout{ grid-template-columns:1fr; }
  .co-side{ position:static; order:-1; }
  .co-side .co-trust{ display:none; }
  #placeOrder{ display:none; }
  .co-place-m{ display:block; }
}
@media (max-width:520px){ .co-row{ grid-template-columns:1fr; gap:18px; } }
