/* Ruční Práce Dárky — maker workshop style */

:root{
  --tomato:#c6472b;
  --tomato-dark:#9c3620;
  --navy:#1f2a3c;
  --navy-light:#2d3d57;
  --cream:#f4ecdd;
  --cream-dark:#e8dcc4;
  --paper:#fbf6ec;
  --ink:#241c14;
  --wood:#8a5a36;
  --line:#cbb994;
  --radius:14px;
  --maxw:1180px;
  --shadow-paper:0 1px 0 rgba(36,28,20,.08), 0 10px 24px -14px rgba(36,28,20,.35);
  --ff-display: "Iowan Old Style","Palatino Linotype",Palatino,"URW Palladio L",serif;
  --ff-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ff-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion:reduce){ html{scroll-behavior:auto;} }

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--ff-body);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{max-width:100%;display:block;}
a{color:inherit;}
h1,h2,h3,h4{font-family:var(--ff-display);margin:0 0 .4em;line-height:1.1;}
p{margin:0 0 1em;}
ul{margin:0;padding:0;}
button{font-family:inherit;}

:focus-visible{outline:3px solid var(--tomato);outline-offset:3px;border-radius:4px;}

.wrap{max-width:var(--maxw);margin-inline:auto;padding-inline:clamp(1rem,4vw,2.5rem);}
.visually-hidden{position:absolute !important;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;}

/* grain overlay */
.grain{position:fixed;inset:0;pointer-events:none;z-index:999;opacity:.045;mix-blend-mode:multiply;}

/* pegboard texture */
.pegboard{
  background-image:radial-gradient(circle,rgba(36,28,20,.16) 1.4px,transparent 1.6px);
  background-size:26px 26px;
}

.wood-strip{
  background:repeating-linear-gradient(100deg,var(--wood) 0 6px,#7a4c2c 6px 7px,#95633c 7px 13px);
  height:10px;
}

/* ===== Header ===== */
.site-header{
  position:sticky;top:0;z-index:100;
  background:var(--cream);
  border-bottom:3px solid var(--ink);
}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:72px;}
.logo{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--ink);}
.logo-mark{width:40px;height:40px;flex:none;color:var(--tomato);}
.logo-word{font-family:var(--ff-display);font-size:1.18rem;font-weight:700;letter-spacing:.01em;}
.logo-word small{display:block;font-family:var(--ff-mono);font-size:.56rem;letter-spacing:.14em;text-transform:uppercase;color:var(--navy);font-weight:600;}

.main-nav{display:flex;align-items:center;gap:1.6rem;}
.main-nav ul{display:flex;gap:1.4rem;list-style:none;}
.main-nav a{
  position:relative;text-decoration:none;font-weight:600;font-size:.96rem;padding:.3rem 0;
}
.main-nav a::after{
  content:"";position:absolute;left:0;bottom:-2px;width:100%;height:3px;
  background:var(--tomato);transform:scaleX(0);transform-origin:left;transition:transform .25s ease;
}
.main-nav a:hover::after,.main-nav a[aria-current="page"]::after{transform:scaleX(1);}

.header-actions{display:flex;align-items:center;gap:.8rem;}
.cart-link{
  display:flex;align-items:center;gap:.4rem;text-decoration:none;color:var(--ink);
  border:2px solid var(--ink);border-radius:999px;padding:.45rem .9rem;font-weight:700;font-size:.9rem;
  background:var(--paper);
}
.cart-link svg{width:20px;height:20px;}
.cart-count{
  display:inline-flex;align-items:center;justify-content:center;min-width:1.4em;height:1.4em;padding:0 .3em;
  background:var(--tomato);color:#fff;border-radius:999px;font-size:.78rem;font-weight:800;
}
.cart-count.bump{animation:bump .4s ease;}
@keyframes bump{0%{transform:scale(1);}35%{transform:scale(1.5) rotate(-6deg);}100%{transform:scale(1);}}
@media (prefers-reduced-motion:reduce){.cart-count.bump{animation:none;}}

.nav-toggle{
  display:none;background:none;border:2px solid var(--ink);border-radius:8px;width:44px;height:44px;
  align-items:center;justify-content:center;
}
.nav-toggle svg{width:22px;height:22px;}

@media (max-width:860px){
  .main-nav{
    position:fixed;inset:72px 0 0 0;background:var(--cream);border-top:3px solid var(--ink);
    flex-direction:column;align-items:stretch;padding:1.2rem;transform:translateY(-110%);
    transition:transform .3s ease;z-index:90;overflow-y:auto;
  }
  .main-nav.open{transform:translateY(0);}
  .main-nav ul{flex-direction:column;gap:0;}
  .main-nav li{border-bottom:1px solid var(--line);}
  .main-nav a{display:block;padding:.9rem .2rem;}
  .nav-toggle{display:flex;}
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  border:2px solid var(--ink);border-radius:999px;padding:.78rem 1.5rem;font-weight:700;font-size:.96rem;
  text-decoration:none;cursor:pointer;position:relative;overflow:hidden;background:var(--paper);color:var(--ink);
  min-height:44px;
}
.btn span{position:relative;z-index:1;}
.btn svg{position:relative;z-index:1;width:18px;height:18px;}
.btn::before{
  content:"";position:absolute;inset:0;background:var(--ink);transform:translateX(-101%);transition:transform .28s ease;
}
.btn:hover::before,.btn:focus-visible::before{transform:translateX(0);}
.btn:hover,.btn:focus-visible{color:#fff;}
.btn-primary{background:var(--tomato);border-color:var(--tomato-dark);color:#fff;}
.btn-primary::before{background:var(--navy);}
.btn-primary:hover{color:#fff;}
.btn-dark{background:var(--navy);border-color:var(--navy);color:var(--cream);}
.btn-dark::before{background:var(--tomato);}
.btn-dark:hover{color:#fff;}
.btn-ghost{background:transparent;}
.btn[disabled]{opacity:.5;cursor:not-allowed;}
.btn-block{width:100%;}

/* ===== Hero ===== */
.hero{
  position:relative;padding:clamp(2.2rem,6vw,4.5rem) 0 clamp(2.5rem,7vw,5rem);
  overflow:hidden;background:var(--cream);
}
.hero .wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:2.5rem;align-items:center;}
.hero h1{
  font-size:clamp(2.4rem,6.4vw,4.4rem);letter-spacing:-.01em;
}
.sweep{position:relative;white-space:nowrap;}
.sweep svg{
  position:absolute;left:0;bottom:-.08em;width:100%;height:.4em;overflow:visible;
}
.sweep path{
  fill:none;stroke:var(--tomato);stroke-width:7;stroke-linecap:round;
  stroke-dasharray:420;stroke-dashoffset:420;transition:stroke-dashoffset 1s ease .3s;
}
.sweep.in-view path{stroke-dashoffset:0;}
@media (prefers-reduced-motion:reduce){.sweep path{transition:none;stroke-dashoffset:0;}}

.hero-lede{font-size:1.14rem;max-width:34ch;color:var(--navy);}
.hero-actions{display:flex;gap:.9rem;flex-wrap:wrap;margin-top:1.6rem;}
.hero-figure{position:relative;}
.hero-figure .photo-frame{
  border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-paper);
  aspect-ratio:4/5;position:relative;
}
.hero-figure .photo-frame img{width:100%;height:100%;object-fit:cover;filter:saturate(1.05) contrast(1.03);}
.hero-illustration{
  position:absolute;right:-18%;top:-14%;width:60%;max-width:280px;color:var(--navy);z-index:2;
}
.hero-tape{position:absolute;left:-10%;bottom:-6%;width:46%;max-width:210px;color:var(--tomato);z-index:3;}

/* numbered section grid (home composition) */
.numbered{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:0;
  border-top:3px solid var(--ink);
}
.numbered > *{
  border-bottom:3px solid var(--ink);border-right:3px solid var(--ink);padding:2.2rem 1.6rem;position:relative;
  background:var(--paper);
}
.numbered > *:last-child{border-right:3px solid var(--ink);}
.num-big{
  font-family:var(--ff-display);font-size:clamp(3.2rem,8vw,5.5rem);line-height:1;color:var(--cream-dark);
  -webkit-text-stroke:2px var(--ink);color:transparent;display:block;margin-bottom:.3rem;
}
.numbered h3{font-size:1.25rem;}
.numbered p{color:var(--navy-light);margin-bottom:0;}

/* reveal */
.reveal{opacity:1;}
.js .reveal{opacity:0;transform:translateY(26px);clip-path:inset(0 0 12% 0);transition:opacity .6s ease, transform .6s ease, clip-path .6s ease;}
.js .reveal.is-visible{opacity:1;transform:translateY(0);clip-path:inset(0 0 0 0);}
@media (prefers-reduced-motion:reduce){ .js .reveal{opacity:1;transform:none;clip-path:none;transition:none;} }

/* section titles */
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.6rem;}
.section-head h2{font-size:clamp(1.8rem,4vw,2.6rem);}
.kicker{
  display:inline-block;font-family:var(--ff-mono);font-size:.76rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--tomato-dark);margin-bottom:.5rem;font-weight:700;
}

section{padding:clamp(2.6rem,6vw,4.5rem) 0;}
.band-navy{background:var(--navy);color:var(--cream);}
.band-navy .kicker{color:#f0a98c;}
.band-navy a{color:var(--cream);}
.band-tomato{background:var(--tomato);color:#fff;}

/* divider */
.divider{display:block;width:100%;height:28px;color:var(--ink);}

/* ===== Cards & grids ===== */
.card{
  background:var(--paper);border:2px solid var(--ink);border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow-paper);transition:transform .25s ease, box-shadow .25s ease;
}
.card:hover{transform:translateY(-6px);}

.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1.4rem;}
.product-card{display:flex;flex-direction:column;}
.product-card .thumb{aspect-ratio:1/1;overflow:hidden;position:relative;border-bottom:2px solid var(--ink);}
.product-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease;}
.product-card:hover .thumb img{transform:scale(1.07);}
.product-card .body{padding:1.1rem 1.1rem 1.3rem;display:flex;flex-direction:column;gap:.5rem;flex:1;}
.product-card .cat{font-family:var(--ff-mono);font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;color:var(--tomato-dark);font-weight:700;}
.product-card h3{font-size:1.1rem;margin-bottom:0;}
.product-card .price{font-weight:800;font-size:1.2rem;margin-top:auto;}
.product-card .card-foot{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-top:.4rem;}
.product-card a.title-link{text-decoration:none;color:var(--ink);}
.product-card a.title-link:hover{text-decoration:underline;}

.strip{
  display:flex;gap:1.2rem;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:.5rem;
  -webkit-overflow-scrolling:touch;
}
.strip .product-card{min-width:230px;scroll-snap-align:start;flex:0 0 auto;width:72vw;max-width:260px;}
@media (min-width:860px){
  .strip{display:grid;grid-template-columns:repeat(4,1fr);overflow:visible;}
  .strip .product-card{width:auto;}
}

.filters{display:flex;gap:.6rem;flex-wrap:wrap;margin-bottom:1.6rem;}
.filters button{
  border:2px solid var(--ink);background:var(--paper);border-radius:999px;padding:.5rem 1rem;font-weight:700;
  font-size:.85rem;cursor:pointer;min-height:44px;
}
.filters button[aria-pressed="true"]{background:var(--ink);color:var(--cream);}

/* badges / seals */
.seal{width:120px;height:120px;color:var(--tomato);}

/* ===== Forms ===== */
.field{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1.1rem;}
.field label{font-weight:700;font-size:.92rem;}
.field input,.field textarea,.field select{
  border:2px solid var(--ink);border-radius:8px;padding:.7rem .8rem;font:inherit;background:var(--paper);
  accent-color:var(--tomato);color:var(--ink);
}
.field input:invalid:not(:placeholder-shown),.field textarea:invalid:not(:placeholder-shown){border-color:var(--tomato-dark);}
.field .error{color:var(--tomato-dark);font-size:.84rem;font-weight:700;min-height:1.1em;}
.field-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;}
.checkline{display:flex;align-items:flex-start;gap:.6rem;font-size:.92rem;}
.checkline input{margin-top:.2rem;accent-color:var(--tomato);width:20px;height:20px;}
.form-msg{padding:.9rem 1rem;border-radius:8px;border:2px solid var(--ink);margin-top:1rem;display:none;}
.form-msg.show{display:block;}
.form-msg.ok{background:#e4efd9;border-color:#4b6d34;}
.form-msg.err{background:#f6dcd3;border-color:var(--tomato-dark);}
.hp{position:absolute !important;left:-9999px;width:1px;height:1px;overflow:hidden;}

/* ===== Footer ===== */
.site-footer{background:var(--navy);color:var(--cream);padding:clamp(2.5rem,6vw,4rem) 0 2rem;}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:2rem;margin-bottom:2rem;}
.footer-grid h4{font-family:var(--ff-mono);font-size:.78rem;text-transform:uppercase;letter-spacing:.12em;color:#f0a98c;margin-bottom:1rem;}
.footer-grid ul{list-style:none;display:flex;flex-direction:column;gap:.55rem;}
.footer-grid a{text-decoration:none;color:var(--cream);opacity:.9;}
.footer-grid a:hover{text-decoration:underline;opacity:1;}
.newsletter-form{display:flex;gap:.5rem;flex-wrap:wrap;}
.newsletter-form input{flex:1;min-width:160px;border-radius:8px;border:2px solid var(--cream);padding:.65rem .8rem;background:var(--navy-light);color:var(--cream);}
.newsletter-form input::placeholder{color:#c6d0e0;}
.footer-bottom{border-top:1px solid rgba(244,236,221,.25);padding-top:1.4rem;display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;align-items:center;font-size:.85rem;opacity:.85;}

/* ===== misc content ===== */
.legal h2{margin-top:2rem;font-size:1.3rem;}
.legal{max-width:68ch;}
.breadcrumb{font-size:.85rem;color:var(--navy-light);margin-bottom:1rem;}
.lead{font-size:1.15rem;color:var(--navy);max-width:60ch;}
.two-col{display:grid;grid-template-columns:1.1fr .9fr;gap:2.5rem;align-items:center;}
@media (max-width:760px){.two-col,.hero .wrap{grid-template-columns:1fr;}
  .hero-illustration,.hero-tape{display:none;}
}
.photo-frame img{width:100%;}
.ratio-4-3{aspect-ratio:4/3;overflow:hidden;border-radius:var(--radius);box-shadow:var(--shadow-paper);}
.ratio-4-3 img{width:100%;height:100%;object-fit:cover;}

.icon-list{list-style:none;display:grid;gap:1.3rem;}
.icon-list li{display:flex;gap:1rem;align-items:flex-start;}
.icon-list svg{width:28px;height:28px;flex:none;color:var(--tomato);margin-top:.1rem;}
.icon-list h3{font-size:1.05rem;margin-bottom:.2rem;}
.icon-list p{margin-bottom:0;color:var(--navy-light);}

.faq-item{border-bottom:2px solid var(--ink);padding:1.1rem 0;}
.faq-item summary{cursor:pointer;font-weight:700;font-size:1.05rem;list-style:none;display:flex;justify-content:space-between;gap:1rem;}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:"+";font-size:1.4rem;color:var(--tomato);}
.faq-item[open] summary::after{content:"–";}
.faq-item p{margin-top:.8rem;color:var(--navy-light);}

.badge-strip{display:flex;gap:1.6rem;flex-wrap:wrap;align-items:center;}

/* cart page */
.cart-table{width:100%;border-collapse:collapse;}
.cart-table th,.cart-table td{text-align:left;padding:.8rem .5rem;border-bottom:2px solid var(--ink);}
.cart-table img{width:60px;height:60px;object-fit:cover;border-radius:8px;border:2px solid var(--ink);}
.qty-input{width:60px;}
.cart-row-remove{background:none;border:none;color:var(--tomato-dark);font-weight:700;cursor:pointer;text-decoration:underline;}
.cart-summary{display:flex;justify-content:flex-end;}
.cart-summary table{min-width:260px;}
.cart-summary td{padding:.4rem .6rem;}
.cart-empty{padding:3rem 0;text-align:center;color:var(--navy-light);}

/* gift tag feature */
.tagmaker{display:grid;grid-template-columns:1fr 1fr;gap:2.4rem;align-items:start;}
@media (max-width:760px){.tagmaker{grid-template-columns:1fr;}}
.tagmaker-preview{display:flex;flex-direction:column;align-items:center;gap:1rem;position:sticky;top:100px;}
.swatches{display:flex;gap:.6rem;}
.swatch{
  width:40px;height:40px;border-radius:999px;border:3px solid var(--ink);cursor:pointer;min-height:auto;
}
.swatch[aria-pressed="true"]{outline:3px solid var(--navy);outline-offset:2px;}
.stamp-options{display:flex;gap:.6rem;flex-wrap:wrap;}
.stamp-options button{
  border:2px solid var(--ink);background:var(--paper);border-radius:10px;width:48px;height:48px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.stamp-options button svg{width:22px;height:22px;}
.stamp-options button[aria-pressed="true"]{background:var(--ink);color:var(--cream);}
.char-count{font-size:.8rem;color:var(--navy-light);text-align:right;}
.tag-actions{display:flex;gap:.8rem;flex-wrap:wrap;}

/* cookie banner */
.cookie-banner{
  position:fixed;left:1rem;right:1rem;bottom:1rem;z-index:200;max-width:620px;margin-inline:auto;
  background:var(--ink);color:var(--cream);border-radius:var(--radius);padding:1.2rem 1.4rem;
  box-shadow:0 20px 40px -10px rgba(0,0,0,.4);display:none;gap:1rem;flex-wrap:wrap;align-items:center;justify-content:space-between;
}
.cookie-banner.show{display:flex;}
.cookie-banner p{margin:0;font-size:.9rem;flex:1 1 260px;}
.cookie-banner a{text-decoration:underline;}
.cookie-actions{display:flex;gap:.6rem;flex-wrap:wrap;}

/* continuous subtle element: measuring tape marquee */
.tape-marquee{overflow:hidden;background:var(--ink);color:var(--cream);padding:.6rem 0;}
.tape-marquee .track{display:flex;gap:2.4rem;white-space:nowrap;width:max-content;animation:tape-scroll 32s linear infinite;}
.tape-marquee span{font-family:var(--ff-mono);font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;}
@keyframes tape-scroll{from{transform:translateX(0);}to{transform:translateX(-50%);}}
@media (prefers-reduced-motion:reduce){.tape-marquee .track{animation:none;}}

/* 404 */
.notfound{text-align:center;padding:5rem 0;}
.notfound .num-big{font-size:clamp(5rem,20vw,10rem);display:block;}

/* qa fixes */
.grain{width:100vw;height:100vh;}
.cookie-banner .btn-ghost{color:var(--cream);border-color:rgba(255,255,255,.7);}
.cookie-banner .btn-ghost:hover{background:rgba(255,255,255,.12);}
.product-card{color:var(--ink);}
.product-card .price{color:var(--ink);}
