/* Keramika Hviezda — Memphis 80s design system */
:root{
  --midnight:#101936;
  --midnight-2:#1b2a52;
  --silver:#b9c3d6;
  --ice:#eef3f7;
  --paper:#f7f5f0;
  --coral:#ff7a6b;
  --sun:#ffc24b;
  --mint:#6fd3c0;
  --ink:#121623;
  --radius:1.1rem;
  --radius-lg:2rem;
  --max:76rem;
  --gap:1.5rem;
  --shadow:0 1.2rem 2.4rem -1rem rgba(16,25,54,.35);
  font-size:16px;
}
*{box-sizing:border-box}
html,body{overflow-x:clip}
body{
  margin:0;
  font-family:"Avenir Next","Segoe UI",system-ui,sans-serif;
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:Georgia,"Iowan Old Style","Palatino Linotype",serif;
  margin:0 0 .5em;
  line-height:1.08;
  color:var(--midnight);
}
p{line-height:1.6;margin:0 0 1em}
a{color:var(--midnight);text-decoration:none}
img{max-width:100%;display:block}
.wrap{max-width:var(--max);margin:0 auto;padding:0 1.25rem}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation-duration:.01ms !important;transition-duration:.01ms !important}}

/* grain overlay */
.grain{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:1;opacity:.05;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */
.site-header{position:sticky;top:0;z-index:50;background:var(--midnight);color:var(--ice);box-shadow:var(--shadow)}
.site-header__bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 1.25rem}
.logo{display:flex;align-items:center;gap:.6rem;color:var(--ice)}
.logo__word{font-family:Georgia,serif;font-size:1.25rem;letter-spacing:.02em}
.logo__word em{color:var(--coral);font-style:normal}
.site-nav{display:flex;align-items:center;gap:1.6rem}
.site-nav a{color:var(--ice);opacity:.85;font-weight:600;position:relative;padding:.2rem 0}
.site-nav a::after{content:"";position:absolute;left:0;bottom:-4px;height:2px;width:0;background:var(--sun);transition:width .25s}
.site-nav a:hover,.site-nav a.is-active{opacity:1}
.site-nav a:hover::after,.site-nav a.is-active::after{width:100%}
.nav-cart{display:flex;align-items:center;gap:.4rem}
.cart-count{background:var(--coral);color:var(--midnight);border-radius:999px;min-width:1.4rem;height:1.4rem;display:inline-flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:800;transition:transform .25s}
.cart-count.bump{transform:scale(1.35)}
.nav-toggle,.nav-close{display:none;background:none;border:0;color:var(--ice);cursor:pointer;padding:.4rem;min-width:44px;min-height:44px}

@media (max-width:860px){
  .nav-toggle{display:inline-flex;align-items:center;justify-content:center}
  .site-nav{
    position:fixed;top:0;right:0;height:100vh;width:min(80vw,20rem);
    background:var(--midnight-2);flex-direction:column;align-items:flex-start;
    padding:5rem 1.5rem 2rem;gap:1.4rem;
    transform:translateX(100%);visibility:hidden;transition:transform .3s ease;
    box-shadow:-1rem 0 2rem rgba(0,0,0,.3);
  }
  .site-nav.is-open{transform:translateX(0);visibility:visible}
  .nav-close{display:inline-flex;position:absolute;top:1rem;right:1rem;align-items:center;justify-content:center}
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  min-height:44px;padding:.75rem 1.5rem;border-radius:999px;border:2px solid var(--midnight);
  font-weight:700;cursor:pointer;background:var(--midnight);color:var(--ice);
  position:relative;overflow:hidden;isolation:isolate;transition:color .3s,border-color .3s;
}
.btn--sweep::before{content:"";position:absolute;inset:0;left:-100%;width:100%;background:var(--coral);z-index:-1;transition:left .35s ease}
.btn--sweep:hover::before{left:0}
.btn--sweep:hover{color:var(--midnight)}
.btn--ghost{background:transparent;color:var(--ice);border-color:var(--ice)}
.btn--ghost:hover{background:var(--ice);color:var(--midnight)}
.btn--outline{background:transparent;color:var(--midnight);border-color:var(--midnight)}
.btn--outline:hover{background:var(--midnight);color:var(--ice)}
.btn--block{width:100%}
.btn--sm{padding:.45rem 1rem;min-height:36px;font-size:.85rem}

/* ---------- hero shapes / decorative svg ---------- */
.shape-field{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.float-shape{position:absolute;transition:transform .2s ease-out}

/* ---------- reveal ---------- */
.reveal{opacity:0;transform:translateY(1.4rem);transition:opacity .6s ease,transform .6s ease,clip-path .6s ease}
.reveal.in-view{opacity:1;transform:none}
.js-ready .reveal{}
body:not(.js-ready) .reveal{opacity:1;transform:none}

/* ---------- page hero (inner pages) ---------- */
.page-hero{background:var(--midnight);color:var(--ice);padding:5.5rem 0 4rem;position:relative;overflow:hidden}
.page-hero h1{color:var(--ice);font-size:clamp(2.2rem,5vw,3.4rem)}
.page-hero p{color:var(--silver);max-width:40rem}
.breadcrumbs{display:flex;gap:.4rem;flex-wrap:wrap;font-size:.85rem;color:var(--silver);margin-bottom:1rem}
.breadcrumbs a{color:var(--silver)}
.breadcrumbs a:hover{color:var(--ice)}

/* ---------- prose (legal pages) ---------- */
.prose{max-width:42rem;margin:0 auto;padding:3rem 0}
.prose h2{margin-top:2em;font-size:1.5rem}
.prose h3{margin-top:1.5em;font-size:1.15rem}
.prose ul,.prose ol{padding-left:1.4em}
.prose li{margin-bottom:.4em}
.legal-toc{background:var(--ice);border-radius:var(--radius);padding:1.5rem;margin:2rem 0;list-style:none}
.legal-toc li{margin-bottom:.4em}
.legal-toc a{font-weight:600}

/* ---------- notices ---------- */
.notice{border-radius:var(--radius);padding:1rem 1.25rem;background:var(--ice);border-left:4px solid var(--mint);margin:1.5rem 0}
.notice--warn{border-left-color:var(--sun);background:#fff6e4}
.notice--error{border-left-color:var(--coral);background:#ffe9e5}

/* ---------- forms ---------- */
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}
.form-grid .field--full{grid-column:1/-1}
@media (max-width:620px){.form-grid{grid-template-columns:1fr}}
.field{display:flex;flex-direction:column;gap:.35rem;margin-bottom:1rem}
.field label{font-weight:700;font-size:.9rem}
.field input,.field textarea,.field select{
  min-height:44px;border:2px solid var(--silver);border-radius:.7rem;padding:.6rem .8rem;
  font:inherit;background:#fff;accent-color:var(--coral);
}
.field input:focus,.field textarea:focus,.field select:focus{outline:3px solid var(--mint);outline-offset:1px;border-color:var(--midnight)}
.field textarea{min-height:120px;resize:vertical}
.field-error{color:#b3261e;font-size:.82rem}
.field.has-error input,.field.has-error textarea{border-color:#b3261e}
.hp{position:absolute !important;left:-9999px;width:1px;height:1px;opacity:0}

/* ---------- faq ---------- */
.faq{max-width:42rem;margin:0 auto}
.faq-item{border-bottom:1px solid var(--silver);padding:.6rem 0}
.faq-item summary{cursor:pointer;font-weight:700;padding:.6rem 0;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(--coral)}
.faq-item[open] summary::after{content:"\2212"}
.faq-item p{color:var(--midnight-2);padding-bottom:.6rem}

/* ---------- product grid / detail ---------- */
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:var(--gap)}
.product-card{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .3s ease}
.product-card:hover{transform:translateY(-6px)}
.product-card__media{aspect-ratio:4/3;overflow:hidden}
.product-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.product-card:hover .product-card__media img{transform:scale(1.08)}
.product-card__body{padding:1rem 1.1rem 1.3rem}
.product-card__tag{display:inline-block;background:var(--sun);color:var(--midnight);font-size:.7rem;font-weight:800;padding:.2rem .6rem;border-radius:999px;margin-bottom:.5rem}
.product-card__price{font-weight:800;color:var(--coral)}
.product-strip{display:grid;grid-auto-flow:column;grid-auto-columns:14rem;gap:1rem;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:.5rem}
.product-strip .product-card{scroll-snap-align:start}
.product-detail{display:grid;grid-template-columns:1.1fr 1fr;gap:2.5rem}
@media (max-width:760px){.product-detail{grid-template-columns:1fr}}
.product-detail__media img{border-radius:var(--radius-lg);aspect-ratio:1/1;object-fit:cover}
.product-detail__price{font-size:1.6rem;font-weight:800;color:var(--coral);margin:.6rem 0}

/* ---------- cart / checkout ---------- */
.cart-table{width:100%;border-collapse:collapse;margin-bottom:2rem}
.cart-table th,.cart-table td{padding:.8rem .5rem;border-bottom:1px solid var(--silver);text-align:left}
.cart-table img{width:60px;height:60px;object-fit:cover;border-radius:.6rem}
.cart-summary{background:var(--ice);border-radius:var(--radius);padding:1.5rem;max-width:24rem}
.cart-summary__row{display:flex;justify-content:space-between;margin-bottom:.5rem}
.cart-summary__total{font-weight:800;font-size:1.2rem;border-top:1px solid var(--silver);padding-top:.6rem}

/* ---------- contact ---------- */
.contact-layout{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem}
@media (max-width:760px){.contact-layout{grid-template-columns:1fr}}
.contact-info li{display:flex;gap:.6rem;align-items:flex-start;margin-bottom:1rem}
.contact-info svg{flex-shrink:0;color:var(--coral)}

/* ---------- utilities ---------- */
.section{padding:4rem 0}
.section--tight{padding:2.5rem 0}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap)}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap)}
@media (max-width:760px){.grid-2,.grid-3{grid-template-columns:1fr}}
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.center{text-align:center}

/* ---------- toast / cookie ---------- */
.toast{position:fixed;bottom:1.5rem;left:50%;transform:translate(-50%,1rem);background:var(--midnight);color:#fff;padding:.8rem 1.4rem;border-radius:999px;opacity:0;transition:opacity .3s,transform .3s;z-index:200}
.toast.is-visible{opacity:1;transform:translate(-50%,0)}
.cookie-banner{position:fixed;bottom:0;left:0;right:0;z-index:150;background:var(--midnight);color:var(--ice);display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;align-items:center;padding:1rem 1.25rem;box-shadow:0 -0.5rem 1.5rem rgba(0,0,0,.25)}
.cookie-banner p{margin:0;max-width:40rem;color:var(--ice)}
.cookie-banner a{text-decoration:underline;color:var(--ice)}
.cookie-banner__actions{display:flex;gap:.7rem;flex-shrink:0}

/* ---------- footer ---------- */
.site-footer{background:var(--midnight);color:var(--silver);padding:3.5rem 0 1.5rem;margin-top:4rem}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.3fr;gap:2rem}
@media (max-width:860px){.footer-grid{grid-template-columns:1fr 1fr}}
@media (max-width:500px){.footer-grid{grid-template-columns:1fr}}
.footer-brand{display:flex;gap:.6rem;align-items:flex-start}
.footer-links h3,.footer-news h3{color:var(--ice);font-size:1rem;margin-bottom:.8rem}
.footer-links{display:flex;flex-direction:column;gap:.5rem}
.footer-links a{color:var(--silver)}
.footer-links a:hover{color:var(--ice)}
.newsletter-form{display:flex;gap:.5rem;margin-bottom:1rem}
.newsletter-form input[type=email]{min-height:44px;border-radius:.6rem;border:0;padding:0 .8rem;flex:1;min-width:0}
.footer-mail{display:flex;align-items:center;gap:.4rem;color:var(--silver)}
.footer-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem;border-top:1px solid var(--midnight-2);margin-top:2.5rem;padding-top:1.5rem;font-size:.85rem}
.footer-bottom a{color:var(--silver)}

/* ---------- home page specific ---------- */
.home-layout{display:grid;grid-template-columns:1fr 1.3fr}
@media (max-width:900px){.home-layout{grid-template-columns:1fr}}
.home-narrative{position:relative}
@media (min-width:901px){
  .home-narrative{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;justify-content:center;padding:2rem 2.5rem}
}
.home-narrative{background:var(--midnight);color:var(--ice);padding:3.5rem 1.5rem}
.home-narrative h1{color:var(--ice);font-size:clamp(2.6rem,6vw,4.2rem)}
.home-narrative p{color:var(--silver);max-width:28rem}
.home-scroll{background:var(--paper)}
.badge-row{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1.4rem}
.badge{display:inline-flex;align-items:center;gap:.4rem;background:var(--midnight-2);color:var(--ice);padding:.35rem .8rem;border-radius:999px;font-size:.8rem}
.divider{display:block;width:100%;height:auto}

.glaze-studio{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:center;background:#fff;border-radius:var(--radius-lg);box-shadow:var(--shadow);padding:2.5rem}
@media (max-width:760px){.glaze-studio{grid-template-columns:1fr}}
.glaze-swatches{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1rem}
.glaze-swatch{width:44px;height:44px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 2px var(--silver);cursor:pointer;padding:0}
.glaze-swatch.is-active{box-shadow:0 0 0 3px var(--midnight)}

/* COMPONENTS: .wrap - centered max-width container
COMPONENTS: .btn - base pill button
COMPONENTS: .btn--sweep - button with colour fill-sweep hover
COMPONENTS: .btn--ghost - transparent button for dark backgrounds
COMPONENTS: .btn--outline - transparent button for light backgrounds
COMPONENTS: .btn--block - full width button
COMPONENTS: .btn--sm - smaller button
COMPONENTS: .page-hero - dark hero band used on every inner page
COMPONENTS: .breadcrumbs - small trail of links under page-hero
COMPONENTS: .prose - readable long-form legal/text column
COMPONENTS: .legal-toc - boxed table of contents list for legal pages
COMPONENTS: .notice - highlighted info box (+ --warn, --error variants)
COMPONENTS: .form-grid - 2-col responsive form layout
COMPONENTS: .field - label+input wrapper, use .field--full to span grid
COMPONENTS: .field-error - inline validation message
COMPONENTS: .has-error - error state modifier on .field
COMPONENTS: .hp - visually hidden honeypot input
COMPONENTS: .faq / .faq-item - details/summary accordion list
COMPONENTS: .product-grid - responsive catalog grid
COMPONENTS: .product-card - single product card (+ __media, __body, __tag, __price)
COMPONENTS: .product-strip - horizontal scroll-snap product row (mobile)
COMPONENTS: .product-detail - two-column product page layout (+ __media, __price)
COMPONENTS: .cart-table - cart line items table
COMPONENTS: .cart-summary - boxed order totals panel
COMPONENTS: .contact-layout - two-column contact page grid
COMPONENTS: .contact-info - icon+text list of contact details
COMPONENTS: .section / .section--tight - vertical page rhythm
COMPONENTS: .grid-2 / .grid-3 - simple responsive grids
COMPONENTS: .center - text-align center utility
COMPONENTS: .toast - transient bottom message
COMPONENTS: .cookie-banner - fixed bottom cookie consent bar
COMPONENTS: .site-footer / .footer-grid / .footer-links / .footer-news / .footer-bottom - footer layout
COMPONENTS: .home-layout / .home-narrative / .home-scroll - sticky-left/scroll-right home composition
COMPONENTS: .badge-row / .badge - small pill labels
COMPONENTS: .glaze-studio / .glaze-swatches / .glaze-swatch - signature feature widget
COMPONENTS: .reveal - scroll-reveal animation hook (JS adds .in-view)
COMPONENTS: .float-shape / .shape-field - floating parallax hero shapes
COMPONENTS: .divider - full-width decorative SVG divider image
*/

/* ---------- product detail page ---------- */
.product-detail__body{padding:.5rem 0}
.product-detail__body h1{margin-bottom:1rem}
.product-detail__body > form{margin-top:2rem}

/* ---------- contact form ---------- */
.contact-info{display:flex;flex-direction:column;gap:1.5rem}
.contact-info > div:first-child{border-bottom:1px solid var(--silver);padding-bottom:1.5rem}

/* ---------- logo mark ---------- */
.logo__mark{width:1.8rem;height:1.8rem;stroke:var(--coral);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---------- cart inputs ---------- */
.qty-input{min-height:36px;border:2px solid var(--silver);border-radius:.6rem;padding:.4rem .6rem;font:inherit;background:#fff;width:4rem;text-align:center;accent-color:var(--coral)}
.qty-input:focus{outline:3px solid var(--mint);outline-offset:1px;border-color:var(--midnight)}

/* ---------- cart remove button ---------- */
.rm-btn{display:inline-flex;align-items:center;justify-content:center;min-height:32px;min-width:32px;padding:0;border:0;border-radius:.5rem;background:transparent;color:var(--coral);cursor:pointer;font-size:1.4rem;line-height:1;transition:background .2s,color .2s}
.rm-btn:hover{background:rgba(255,122,107,.08)}
