/* Cutlab Shop — tokens (Design, 30.11.2026).
   Source: Cutlab design system v3 (artifact 7PRfyVMzU1MCSFCeWJcSbq) + header v3.2 of cutlab.ee.
   Light theme only, like cutlab.ee. Fonts: Google Fonts
   <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Inter+Tight:wght@600;700&family=IBM+Plex+Mono:wght@500&display=swap" rel="stylesheet"> */
:root {
  /* colour: 5 brand colours + neutrals */
  --cream: #FAF9F5;        /* page background, image ground */
  --white: #FFFFFF;        /* cards, gallery frame */
  --night: #080402;        /* text, header logo, dark blocks */
  --walnut: #3B342D;       /* secondary text on cream (11:1), "Kit" tag */
  --amber: #F6B463;        /* attention: one word, one number, focus of a photo note. Never text on cream */
  --blue: #0F29D6;         /* action: Buy button, links, selected option. White text on it 9:1 */
  --line: #E3E0D8;         /* rules, card borders */
  --ink-muted: #6B635A;    /* captions, VAT note (5.6:1 on cream) */
  --error: #C4321F;        /* payment error only (5.6:1 on white) */
  --success: #2E7D4F;      /* paid / download ready (5.1:1 on white) */

  /* type */
  --font-display: "Inter Tight", Inter, Arial, sans-serif;
  --font-body: Inter, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;   /* tags, SKU, file names only */
  --fs-h1: clamp(32px, 4.2vw, 56px);
  --fs-h2: clamp(24px, 2.6vw, 36px);
  --fs-h3: 20px;
  --fs-price: 32px;
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-tag: 12px;
  --lh-tight: 1.08;
  --lh-body: 1.55;

  /* space: Tilda step 15 px, as on cutlab.ee */
  --s-1: 8px; --s-2: 15px; --s-3: 30px; --s-4: 45px; --s-5: 60px; --s-6: 90px;
  --gutter: 40px;          /* desktop side gutter; 20px under 640px */
  --max: 1280px;

  /* shape: buttons and fields 5px, everything else square like a cut sheet */
  --r-ctl: 5px;
  --r-none: 0;
  --bar-h: 80px;           /* header height, 64px under 640px */
}
@media (max-width: 640px) { :root { --gutter: 20px; --bar-h: 64px; --fs-body: 16px; --fs-price: 28px; } }

/* ===== Cutlab Shop components (Design 30.11.2026). Class prefix .sh- ; copy as is into the Worker templates. ===== */
*{box-sizing:border-box}
body{margin:0;background:var(--cream);color:var(--night);font:400 var(--fs-body)/var(--lh-body) var(--font-body);-webkit-font-smoothing:antialiased}
a{color:var(--blue)}
img{max-width:100%;display:block}
.sh-wrap{max-width:var(--max);margin:0 auto;padding-left:var(--gutter);padding-right:var(--gutter)}
h1,h2,h3{font-family:var(--font-display);font-weight:700;letter-spacing:-.01em;line-height:var(--lh-tight);margin:0;text-wrap:balance}
.sh-num{font-variant-numeric:tabular-nums}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* header: same bar as cutlab.ee v3.2 (80px, cream, line, wordmark, nav, blue button) */
.sh-bar{position:sticky;top:0;z-index:20;height:var(--bar-h);background:var(--cream);border-bottom:1px solid var(--line)}
.sh-bar .sh-wrap{height:100%;display:flex;align-items:center;gap:32px}
.sh-logo{display:flex;align-items:baseline;gap:10px;text-decoration:none;flex:none}
.sh-logo img{height:28px;width:auto}
.sh-logo span{font:500 11px var(--font-mono);letter-spacing:.12em;color:var(--ink-muted)}
.sh-nav{display:flex;gap:28px;margin-left:auto}
.sh-nav a{font:500 15px var(--font-display);color:var(--night);text-decoration:none;padding:6px 0;white-space:nowrap}
.sh-nav a:hover{color:var(--blue)}
.sh-nav a[aria-current]{background:linear-gradient(var(--amber),var(--amber)) no-repeat 0 100%/100% 2px}
.sh-burger{display:none;margin-left:auto;width:44px;height:44px;border:0;background:none;position:relative;cursor:pointer}
.sh-burger::before,.sh-burger::after,.sh-burger span{content:"";position:absolute;left:9px;right:9px;height:2px;background:var(--night)}
.sh-burger::before{top:13px}.sh-burger span{top:21px}.sh-burger::after{top:29px}
@media (max-width:1099px){.sh-nav{display:none}.sh-burger{display:block}}
@media (max-width:640px){.sh-logo img{height:22px}}
/* mobile menu = cutlab.ee v9: night sheet, 26px items, amber plus */
.sh-mob{background:var(--night);color:var(--cream);padding:12px 20px 40px}
.sh-mob a{display:flex;justify-content:space-between;font:600 26px var(--font-display);color:var(--cream);text-decoration:none;padding:18px 0;border-bottom:1px solid #2A241E}
.sh-mob a[aria-current]{color:var(--amber)}

/* buttons */
.sh-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:52px;padding:0 28px;border-radius:var(--r-ctl);border:1px solid transparent;font:600 17px var(--font-display);text-decoration:none;cursor:pointer;white-space:nowrap}
.sh-btn--buy{background:var(--blue);color:#fff;min-width:220px}
.sh-btn--buy:hover{background:var(--night)}
.sh-btn--ghost{background:none;border-color:var(--night);color:var(--night)}
.sh-btn--ghost:hover{border-color:var(--blue);color:var(--blue)}
.sh-btn[disabled]{background:var(--line);border-color:var(--line);color:var(--ink-muted);cursor:default}

/* type tags: the one place for mono caps */
.sh-tag{display:inline-flex;align-items:center;gap:6px;font:500 var(--fs-tag)/1 var(--font-mono);letter-spacing:.08em;text-transform:uppercase;padding:6px 9px;border-radius:0;white-space:nowrap}
.sh-tag--kit{background:var(--walnut);color:var(--cream)}
.sh-tag--files{background:var(--white);color:var(--blue);border:1px solid var(--blue)}
.sh-tag svg{width:12px;height:12px;flex:none}

/* filter */
.sh-filter{display:flex;gap:0;border:1px solid var(--night);border-radius:var(--r-ctl);overflow:hidden;width:max-content;max-width:100%}
.sh-filter button{appearance:none;border:0;border-left:1px solid var(--night);background:none;font:500 15px var(--font-display);padding:0 18px;height:44px;cursor:pointer;color:var(--night)}
.sh-filter button:first-child{border-left:0}
.sh-filter button[aria-pressed="true"]{background:var(--night);color:var(--cream)}
.sh-filter .n{font-family:var(--font-body);font-weight:400;opacity:.7;margin-left:6px}

/* catalog grid + tile */
.sh-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s-3)}
@media (max-width:1099px){.sh-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.sh-grid{grid-template-columns:1fr;gap:var(--s-4)}}
.sh-tile{display:flex;flex-direction:column;text-decoration:none;color:inherit;background:var(--white);border:1px solid var(--line)}
.sh-tile:hover{border-color:var(--night)}
.sh-tile__img{position:relative;aspect-ratio:4/5;background:var(--cream);overflow:hidden}
.sh-tile__img img{width:100%;height:100%;object-fit:cover}
.sh-tile__img .sh-tag{position:absolute;left:12px;top:12px}
.sh-tile__img--dark,.sh-gallery__main--dark{background:#2E353F}   /* = Fusion canvas (46,53,63); white Files tag 12:1 on it */
.sh-tile__body{padding:16px 18px 20px;display:grid;gap:6px}
.sh-tile__title{font:600 19px/1.25 var(--font-display)}
.sh-tile__meta{font-size:var(--fs-small);color:var(--ink-muted)}
.sh-tile__price{font:700 20px var(--font-display);margin-top:4px}
.sh-tile__price small{font:400 13px var(--font-body);color:var(--ink-muted);margin-left:6px}


/* two sections */
.sh-doors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s-3)}
@media (max-width:760px){.sh-doors{grid-template-columns:1fr}}
.sh-door{position:relative;display:block;aspect-ratio:4/5;overflow:hidden;color:#fff;text-decoration:none;background:var(--night)}
.sh-door img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.72}
.sh-door--files{background:#2E353F}
.sh-door__t{position:absolute;left:0;right:0;bottom:0;padding:var(--s-3);display:grid;gap:10px;justify-items:start;background:linear-gradient(transparent,rgba(8,4,2,.82))}
.sh-door h2{font-size:var(--fs-h2)}
.sh-door p{margin:0;font-size:15px;color:#E4E0D8}
.sh-door:hover h2{color:var(--amber)}
.sh-sechead{display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin-bottom:var(--s-3)}
.sh-sechead h2{font-size:var(--fs-h1)}
.sh-switch{font:600 15px var(--font-display);text-decoration:none}
.sh-files-zone{background:#2E353F;color:#F2F4F7;margin-left:calc(-1*var(--gutter));margin-right:calc(-1*var(--gutter));padding:var(--s-5) var(--gutter)}
.sh-files-zone .sh-switch{color:#AEB8FF}
.sh-files-zone .sh-tile--files{background:#252B33;border-color:#3C4450}
.sh-files-zone .sh-tile--files:hover{border-color:#AEB8FF}
.sh-files-zone .sh-tile__meta,.sh-files-zone .sh-tile__price small{color:#AEB6C2}

/* product page */
.sh-product{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:var(--s-5);align-items:start}
@media (max-width:1099px){.sh-product{grid-template-columns:1fr;gap:var(--s-3)}}
.sh-gallery{display:grid;gap:10px}
.sh-gallery__main{aspect-ratio:4/5;background:var(--cream);border:1px solid var(--line);overflow:hidden}
.sh-gallery__main img{width:100%;height:100%;object-fit:cover}
.sh-thumbs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.sh-thumbs button{padding:0;border:1px solid var(--line);background:var(--cream);aspect-ratio:1;cursor:pointer;overflow:hidden}
.sh-thumbs button[aria-current="true"]{border:2px solid var(--blue)}
.sh-thumbs img{width:100%;height:100%;object-fit:cover}
@media (max-width:640px){.sh-thumbs{grid-template-columns:repeat(5,64px);overflow-x:auto}}
.sh-info{display:grid;gap:var(--s-3);position:sticky;top:calc(var(--bar-h) + 30px)}
@media (max-width:1099px){.sh-info{position:static}}
.sh-info h1{font-size:var(--fs-h1)}
.sh-lead{margin:0;color:var(--walnut);max-width:52ch}
.sh-price{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.sh-price b{font:700 var(--fs-price) var(--font-display)}
.sh-price span{font-size:var(--fs-small);color:var(--ink-muted)}
.sh-opt{display:grid;gap:10px}
.sh-opt__label{font:600 15px var(--font-display)}
.sh-opt__row{display:flex;flex-wrap:wrap;gap:8px}
.sh-chip{appearance:none;border:1px solid var(--line);background:var(--white);border-radius:var(--r-ctl);height:44px;padding:0 14px;font:500 15px var(--font-body);color:var(--night);cursor:pointer;display:inline-flex;align-items:center;gap:8px}
.sh-chip:hover{border-color:var(--night)}
.sh-chip[aria-pressed="true"]{border:2px solid var(--blue);padding:0 13px}
.sh-chip small{color:var(--ink-muted)}
.sh-sw{width:18px;height:18px;border:1px solid rgba(0,0,0,.25);flex:none}
.sh-buy{display:grid;gap:10px}
.sh-buy__note{font-size:var(--fs-small);color:var(--ink-muted);margin:0}
.sh-facts{border-top:1px solid var(--line)}
.sh-facts details{border-bottom:1px solid var(--line)}
.sh-facts summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:18px 0;font:600 17px var(--font-display)}
.sh-facts summary::-webkit-details-marker{display:none}
.sh-facts summary::after{content:"+";font:400 24px var(--font-body);color:var(--blue)}
.sh-facts details[open] summary::after{content:"−"}
.sh-facts .b{padding:0 0 18px;font-size:15px}
.sh-facts ul{margin:0;padding-left:18px}
.sh-facts li{margin:4px 0}
.sh-dims{width:100%;border-collapse:collapse;font-size:15px}
.sh-dims td,.sh-dims th{padding:8px 0;border-bottom:1px solid var(--line);text-align:left}
.sh-dims th{font:500 var(--fs-tag) var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-muted)}
.sh-dims td.r,.sh-dims th.r{text-align:right}
.sh-file{font:500 13px var(--font-mono);color:var(--walnut)}

/* states: success / cancel / empty / error */
.sh-state{background:var(--white);border:1px solid var(--line);padding:var(--s-5) var(--s-4);display:grid;gap:var(--s-2);justify-items:start;max-width:720px}
.sh-state h2{font-size:var(--fs-h2)}
.sh-state p{margin:0;color:var(--walnut);max-width:56ch}
.sh-state__mark{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;color:#fff;font:700 22px var(--font-display)}
.sh-state--ok .sh-state__mark{background:var(--success)}
.sh-state--cancel .sh-state__mark{background:var(--walnut)}
.sh-state--err .sh-state__mark{background:var(--error)}
.sh-state--empty .sh-state__mark{background:var(--line);color:var(--walnut)}
.sh-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.sh-dl{display:flex;justify-content:space-between;gap:16px;align-items:center;width:100%;border-top:1px solid var(--line);padding:12px 0;font-size:15px}
.sh-alert{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--error);background:var(--white);padding:14px 16px;color:var(--night);font-size:15px}
.sh-alert b{color:var(--error)}

/* footer: walnut, as cutlab.ee */
.sh-foot{background:var(--walnut);color:#C9C1B6;margin-top:var(--s-6)}
.sh-foot .sh-wrap{padding-top:var(--s-5);padding-bottom:var(--s-3);display:grid;gap:var(--s-3)}
.sh-foot__top{display:flex;justify-content:space-between;gap:var(--s-3);flex-wrap:wrap}
.sh-foot__cols{display:flex;gap:var(--s-5);flex-wrap:wrap}
.sh-foot h4{margin:0 0 10px;font:600 15px var(--font-display);color:var(--cream)}
.sh-foot a{display:block;color:var(--cream);text-decoration:none;font-size:15px;padding:3px 0}
.sh-foot a:hover{color:var(--amber)}
.sh-foot__legal{border-top:1px solid #4A4239;padding-top:var(--s-2);font:400 12px/1.6 var(--font-mono);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}


/* shop runtime additions (Cutlab.ee): open mobile menu, page frame, files section on the Fusion ground */
.sh-mob[hidden]{display:none}
.sh-mob{position:fixed;inset:var(--bar-h) 0 0 0;z-index:40;overflow:auto}
.sh-page{padding-block:var(--s-5);min-height:60vh}
.sh-draft{font:500 12px var(--font-mono);color:var(--error);margin:0 0 var(--s-2)}
body.sh-files{background:#2E353F}
body.sh-files .sh-page{color:#F2F4F7}
body.sh-files .sh-draft{color:#FFB4A8}
body.sh-files .sh-tile--files{background:#252B33;border-color:#3C4450;color:#F2F4F7}
body.sh-files .sh-tile--files:hover{border-color:#AEB8FF}
body.sh-files .sh-tile__meta,body.sh-files .sh-tile__price small,body.sh-files .sh-price span,body.sh-files .sh-buy__note,body.sh-files .sh-lead{color:#AEB6C2}
body.sh-files .sh-facts details,body.sh-files .sh-facts,body.sh-files .sh-dl{border-color:#3C4450}
body.sh-files .sh-facts summary,body.sh-files .sh-info h1{color:#F2F4F7}
body.sh-files .sh-facts .b{color:#D5DAE2}
body.sh-files .sh-file{color:#F2F4F7}
body.sh-files .sh-state{background:#252B33;border-color:#3C4450;color:#F2F4F7}
body.sh-files .sh-state p{color:#AEB6C2}
body.sh-files .sh-foot{margin-top:0}
body.sh-files .sh-gallery__main,body.sh-files .sh-thumbs button{background:#252B33;border-color:#3C4450}
