/* Keramika Maslina — Heritage label design system */
:root{
  --aubergine:#3d1f3a;
  --aubergine-deep:#2a1428;
  --lime:#a6c84a;
  --lime-deep:#7c9a33;
  --ivory:#f4ecd8;
  --red:#8a2e2e;
  --ink:#2a1a1f;
  --paper:#fbf6ea;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius:4px;
  --measure:38rem;
  --shadow-paper: 0 10px 30px -12px rgba(42,20,24,.35);
}
*{box-sizing:border-box}
html,body{overflow-x:clip}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--font-body);color:var(--ink);background:var(--paper);line-height:1.55;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:var(--aubergine);text-decoration:none}
h1,h2,h3,h4{font-family:var(--font-display);margin:0 0 .5em;line-height:1.1;color:var(--aubergine)}
p{margin:0 0 1em}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid var(--lime);outline-offset:2px}
@media (prefers-reduced-motion: reduce){*{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;scroll-behavior:auto !important}}

/* ===== layout utilities ===== */
.wrap{max-width:1180px;margin:0 auto;padding:0 1.25rem}
.grid{display:grid;gap:1.5rem}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.stack{display:flex;flex-direction:column}
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:2rem}.mt-4{margin-top:3.5rem}
.mb-0{margin-bottom:0}
.section{padding:4.5rem 0}
@media (max-width:640px){.section{padding:3rem 0}}

/* ===== reveal ===== */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease, transform .7s ease}
.reveal.in-view{opacity:1;transform:none}
.reveal[data-delay="1"]{transition-delay:.08s}
.reveal[data-delay="2"]{transition-delay:.16s}
.reveal[data-delay="3"]{transition-delay:.24s}
.reveal[data-delay="4"]{transition-delay:.32s}

/* ===== buttons ===== */
.btn{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font-family:var(--font-body);font-weight:600;font-size:.95rem;letter-spacing:.02em;
  padding:.85rem 1.6rem;min-height:44px;border-radius:var(--radius);border:2px solid var(--aubergine);
  background:var(--aubergine);color:var(--ivory);cursor:pointer;transition:color .3s ease,border-color .3s ease}
.btn span,.btn svg{position:relative;z-index:1}
.btn::before{content:"";position:absolute;inset:0;left:-100%;width:100%;background:var(--lime);transition:left .35s ease;z-index:0}
.btn:hover::before{left:0}
.btn:hover{color:var(--aubergine-deep)}
.btn--light{background:var(--ivory);color:var(--aubergine);border-color:var(--ivory)}
.btn--light::before{background:var(--aubergine)}
.btn--light:hover{color:var(--ivory)}
.btn--ghost{background:transparent;color:var(--ivory);border-color:var(--ivory)}
.btn--ghost::before{background:var(--ivory)}
.btn--ghost:hover{color:var(--aubergine-deep)}
.btn--small{padding:.6rem 1.1rem;font-size:.85rem}
.btn--block{width:100%}
.btn[disabled]{opacity:.6;cursor:not-allowed}

/* ===== header ===== */
.site-header{position:sticky;top:0;z-index:40;background:var(--paper);border-bottom:2px solid var(--aubergine)}
.site-header__bar{max-width:1180px;margin:0 auto;padding:.75rem 1.25rem;display:flex;align-items:center;gap:1.5rem}
.logo{display:flex;align-items:center;gap:.6rem;margin-right:auto}
.logo__mark{width:40px;height:40px;flex:none}
.logo__word{font-family:var(--font-display);font-size:1.15rem;color:var(--aubergine);white-space:nowrap}
.logo__word em{display:block;font-style:normal;font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;color:var(--red)}
.nav-toggle{display:none;background:none;border:none;color:var(--aubergine);cursor:pointer;padding:.4rem;min-width:44px;min-height:44px}
.site-nav{display:flex;align-items:center;gap:1.4rem}
.site-nav a{font-weight:600;font-size:.95rem;color:var(--ink);position:relative;padding:.3rem 0}
.site-nav a::after{content:"";position:absolute;left:0;right:100%;bottom:-2px;height:2px;background:var(--red);transition:right .25s ease}
.site-nav a:hover::after,.site-nav a.is-active::after{right:0}
.site-nav a.is-active{color:var(--red)}
.nav-cart{display:flex;align-items:center;gap:.3rem;color:var(--aubergine)}
.cart-count{background:var(--red);color:var(--ivory);border-radius:50%;min-width:20px;height:20px;font-size:.72rem;display:flex;align-items:center;justify-content:center;font-weight:700}
.cart-count.bump{animation:bump .4s ease}
@keyframes bump{0%{transform:scale(1)}40%{transform:scale(1.4)}100%{transform:scale(1)}}
@media (max-width:860px){
  .nav-toggle{display:flex;align-items:center;justify-content:center}
  .site-nav{position:fixed;top:0;right:0;height:100vh;width:min(78vw,320px);background:var(--aubergine);flex-direction:column;align-items:flex-start;padding:5.5rem 1.5rem 2rem;gap:1.2rem;
    transform:translateX(100%);visibility:hidden;transition:transform .35s ease,visibility .35s ease}
  .site-nav.is-open{transform:translateX(0);visibility:visible}
  .site-nav a{color:var(--ivory)}
  .nav-cart{color:var(--ivory)}
}

/* ===== hero marquee ===== */
.marquee{overflow:hidden;background:var(--aubergine);border-top:2px solid var(--lime);border-bottom:2px solid var(--lime);padding:.6rem 0}
.marquee__track{display:flex;white-space:nowrap;animation:marquee 26s linear infinite}
.marquee__track span{color:var(--ivory);font-family:var(--font-display);font-size:1.1rem;letter-spacing:.05em;padding:0 1.5rem;display:flex;align-items:center;gap:.6rem}
.marquee__track span::after{content:"\2022";color:var(--lime)}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ===== diagonal hero ===== */
.hero{position:relative;background:var(--aubergine);color:var(--ivory);padding:4.5rem 0 7rem;overflow:hidden;
  clip-path:polygon(0 0,100% 0,100% 92%,0 100%)}
.hero__grid{display:grid;grid-template-columns:1.1fr 1fr;gap:2.5rem;align-items:center}
.hero h1{color:var(--ivory);font-size:clamp(2.4rem,5.5vw,4.2rem);margin-bottom:.6rem}
.hero__lede{max-width:34ch;font-size:1.1rem;opacity:.92}
.hero__art{position:relative}
.hero__art svg{width:100%;height:auto}
.hero__actions{display:flex;gap:1rem;flex-wrap:wrap;margin-top:1.6rem}
@media (max-width:860px){.hero{clip-path:polygon(0 0,100% 0,100% 96%,0 100%);padding:3rem 0 5rem}.hero__grid{grid-template-columns:1fr}}

/* grain overlay */
.grain{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;opacity:.05;z-index:1;mix-blend-mode:overlay}

/* diagonal section wrapper used on home for alternating bands */
.band{position:relative;padding:5rem 0}
.band--ivory{background:var(--ivory)}
.band--lime{background:var(--lime);color:var(--aubergine-deep)}
.band--red{background:var(--red);color:var(--ivory)}
.band--cut-top{clip-path:polygon(0 4%,100% 0,100% 100%,0 100%)}
.band--cut-bottom{clip-path:polygon(0 0,100% 0,100% 96%,0 100%)}
.band--cut-both{clip-path:polygon(0 4%,100% 0,100% 96%,0 100%)}

/* ===== seal / ribbon ===== */
.seal{display:inline-flex;align-items:center;justify-content:center;width:120px;height:120px}
.seal svg{width:100%;height:100%}
.ribbon{position:relative;display:inline-block;background:var(--red);color:var(--ivory);padding:.4rem 1.4rem;font-weight:700;letter-spacing:.06em;font-size:.8rem;text-transform:uppercase}
.ribbon::before,.ribbon::after{content:"";position:absolute;top:0;bottom:0;width:10px;background:var(--red);filter:brightness(.8)}
.ribbon::before{left:-10px;clip-path:polygon(100% 0,100% 100%,0 50%)}
.ribbon::after{right:-10px;clip-path:polygon(0 0,0 100%,100% 50%)}

/* ===== eyebrow / section head ===== */
.eyebrow{display:inline-flex;align-items:center;gap:.5rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;font-size:.78rem;color:var(--red)}
.section-head{max-width:40rem;margin-bottom:2.5rem}

/* ===== product cards ===== */
.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.8rem}
.product-card{background:var(--paper);border:2px solid var(--aubergine);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-paper);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 .5s ease}
.product-card:hover .product-card__media img{transform:scale(1.08)}
.product-card__body{padding:1.1rem 1.2rem 1.4rem}
.product-card__body h3{font-size:1.15rem;margin-bottom:.2rem}
.product-card__price{font-weight:700;color:var(--red);font-family:var(--font-display);font-size:1.1rem}
.product-card__foot{display:flex;align-items:center;justify-content:space-between;margin-top:.8rem;gap:.6rem}

/* horizontal scroll-snap strip for mobile */
.strip{display:flex;gap:1.2rem;overflow-x:auto;padding-bottom:.5rem;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.strip .product-card{flex:0 0 240px;scroll-snap-align:start}
.strip::-webkit-scrollbar{height:6px}
.strip::-webkit-scrollbar-thumb{background:var(--aubergine);border-radius:3px}

/* ===== glaze picker feature ===== */
.glaze-picker{background:var(--ivory);border:2px solid var(--aubergine);border-radius:var(--radius);padding:2rem;display:grid;grid-template-columns:1fr 1.2fr;gap:2rem;align-items:center}
.glaze-picker__mug{display:flex;justify-content:center}
.glaze-picker__mug svg{width:200px;height:220px}
.glaze-swatches{display:flex;gap:.8rem;flex-wrap:wrap;margin:1rem 0}
.glaze-swatch{width:44px;height:44px;border-radius:50%;border:3px solid var(--aubergine);cursor:pointer;padding:0}
.glaze-swatch[aria-pressed="true"]{outline:3px solid var(--red);outline-offset:2px}
.glaze-code{display:flex;align-items:center;gap:.6rem;margin-top:1rem;flex-wrap:wrap}
.glaze-code code{background:var(--aubergine);color:var(--ivory);padding:.5rem .8rem;border-radius:var(--radius);font-size:.9rem}
@media (max-width:760px){.glaze-picker{grid-template-columns:1fr}}

/* ===== toast ===== */
.km-toast{position:fixed;left:50%;bottom:1.5rem;transform:translate(-50%,20px);background:var(--aubergine);color:var(--ivory);padding:.8rem 1.4rem;border-radius:var(--radius);box-shadow:var(--shadow-paper);opacity:0;transition:opacity .3s ease,transform .3s ease;z-index:80}
.km-toast.is-visible{opacity:1;transform:translate(-50%,0)}

/* ===== footer ===== */
.site-footer{position:relative;background:var(--aubergine);color:var(--ivory);padding-top:2rem}
.footer-wave{width:100%;height:40px;display:block;margin-top:-1px}
.footer-inner{max-width:1180px;margin:0 auto;padding:1rem 1.25rem 2rem;display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:2rem}
.footer-col h3{color:var(--ivory);font-size:.95rem;text-transform:uppercase;letter-spacing:.08em;margin-bottom:.8rem}
.footer-logo{color:var(--ivory)}
.footer-logo em{color:var(--lime)}
.footer-links{display:flex;flex-direction:column;gap:.5rem}
.footer-links a{color:var(--ivory);opacity:.85}
.footer-links a:hover{opacity:1;text-decoration:underline}
.footer-email a{color:var(--lime)}
.newsletter-form{display:flex;flex-direction:column;gap:.6rem}
.newsletter-form input[type=email]{padding:.7rem .9rem;border-radius:var(--radius);border:2px solid var(--ivory);background:transparent;color:var(--ivory);min-height:44px}
.newsletter-form input::placeholder{color:rgba(244,236,216,.6)}
.footer-bottom{border-top:1px solid rgba(244,236,216,.25);text-align:center;padding:1rem;font-size:.85rem;opacity:.85}
@media (max-width:860px){.footer-inner{grid-template-columns:1fr 1fr}}
@media (max-width:480px){.footer-inner{grid-template-columns:1fr}}

/* ===== cookie banner ===== */
.cookie-banner{position:fixed;left:1rem;right:1rem;bottom:1rem;max-width:620px;margin:0 auto;background:var(--aubergine-deep);color:var(--ivory);border:2px solid var(--lime);border-radius:var(--radius);padding:1.2rem 1.4rem;display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between;z-index:90;box-shadow:var(--shadow-paper)}
.cookie-banner p{margin:0;flex:1 1 240px;font-size:.9rem}
.cookie-banner a{color:var(--lime)}
.cookie-banner__actions{display:flex;gap:.6rem;flex-wrap:wrap}

/* hidden field for honeypot */
.hp-field{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}

/* =========================================================
   REUSABLE COMPONENTS FOR INNER PAGES (written by 2nd writer)
   ========================================================= */
.page-hero{background:var(--aubergine);color:var(--ivory);padding:3.5rem 0 4.5rem;clip-path:polygon(0 0,100% 0,100% 90%,0 100%)}
.page-hero h1{color:var(--ivory);font-size:clamp(2rem,4.5vw,3rem)}
.page-hero p{max-width:40rem;opacity:.92}

.breadcrumbs{list-style:none;display:flex;gap:.4rem;padding:0;margin:0 0 1rem;font-size:.85rem;color:var(--ink)}
.breadcrumbs li::after{content:"/";margin-left:.4rem;opacity:.5}
.breadcrumbs li:last-child::after{content:""}
.breadcrumbs a{color:var(--aubergine);text-decoration:underline}

.prose{max-width:var(--measure);margin:0 auto}
.prose h2{margin-top:2rem}
.prose ul,.prose ol{padding-left:1.4rem}
.prose a{text-decoration:underline}

.notice{border:2px solid var(--aubergine);border-left:6px solid var(--red);background:var(--ivory);padding:1rem 1.2rem;border-radius:var(--radius);margin:1.5rem 0}
.notice--success{border-color:var(--lime-deep);border-left-color:var(--lime-deep)}
.notice--error{border-color:var(--red);border-left-color:var(--red)}

.form-grid{display:grid;gap:1.1rem;max-width:40rem}
.field{display:flex;flex-direction:column;gap:.4rem}
.field label{font-weight:600;font-size:.9rem}
.field input,.field select,.field textarea{padding:.75rem .9rem;border:2px solid var(--aubergine);border-radius:var(--radius);background:var(--paper);color:var(--ink);font:inherit;min-height:44px;accent-color:var(--red)}
.field textarea{min-height:120px}
.field input:focus,.field textarea:focus,.field select:focus{outline:3px solid var(--lime);outline-offset:1px}
.field-error{color:var(--red);font-size:.82rem;min-height:1.1em}
.field:has(.field-error:not(:empty)) input,.field:has(.field-error:not(:empty)) textarea{border-color:var(--red)}
.form-msg{min-height:1.4em;font-size:.9rem;font-weight:600}
.form-msg--ok{color:var(--lime-deep)}
.form-msg--error{color:var(--red)}

.faq{max-width:var(--measure);margin:0 auto;display:flex;flex-direction:column;gap:.9rem}
.faq-item{border:2px solid var(--aubergine);border-radius:var(--radius);background:var(--paper);padding:.2rem 1.2rem}
.faq-item summary{cursor:pointer;font-weight:700;padding:1rem 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.3rem;color:var(--red)}
.faq-item[open] summary::after{content:"\2212"}
.faq-item p{padding-bottom:1rem;opacity:.9}

.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;align-items:start}
.product-detail__media{aspect-ratio:4/3;overflow:hidden;border-radius:var(--radius);border:2px solid var(--aubergine)}
.product-detail__media img{width:100%;height:100%;object-fit:cover}
.product-detail__price{font-family:var(--font-display);font-size:1.6rem;color:var(--red)}
.qty-stepper{display:inline-flex;align-items:center;border:2px solid var(--aubergine);border-radius:var(--radius)}
.qty-stepper button{min-width:40px;min-height:40px;border:none;background:none;font-size:1.2rem;cursor:pointer;color:var(--aubergine)}
.qty-stepper input{width:3rem;text-align:center;border:none;background:none;font:inherit;min-height:40px}
@media (max-width:760px){.product-detail{grid-template-columns:1fr}}

.cart-table{width:100%;border-collapse:collapse}
.cart-table th,.cart-table td{padding:.8rem;border-bottom:1px solid rgba(61,31,58,.2);text-align:left;vertical-align:middle}
.cart-table img{width:64px;height:64px;object-fit:cover;border-radius:var(--radius)}
.cart-summary{border:2px solid var(--aubergine);border-radius:var(--radius);padding:1.4rem;max-width:26rem;margin-left:auto;background:var(--ivory)}
.cart-summary__row{display:flex;justify-content:space-between;margin-bottom:.6rem}
.cart-summary__total{font-weight:700;font-size:1.2rem;border-top:1px solid rgba(61,31,58,.3);padding-top:.6rem}
.cart-empty{text-align:center;padding:3rem 1rem}

.contact-layout{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem}
.contact-info{display:flex;flex-direction:column;gap:1rem}
.contact-info__item{display:flex;gap:.7rem;align-items:flex-start}
.contact-info__item svg{flex:none;color:var(--red)}
@media (max-width:760px){.contact-layout{grid-template-columns:1fr}}

.legal-toc{border:2px solid var(--aubergine);border-radius:var(--radius);padding:1.2rem 1.5rem;max-width:var(--measure);margin:0 auto 2rem;background:var(--ivory)}
.legal-toc h2{font-size:1rem;margin-bottom:.6rem}
.legal-toc ol{margin:0;padding-left:1.3rem}

.error-404{text-align:center;padding:5rem 1rem}
.error-404 .seal{width:160px;height:160px;margin:0 auto 1.5rem}

/* COMPONENTS: .wrap - centered max-width content container */
/* COMPONENTS: .grid / .grid-2 / .grid-3 - responsive grid helpers */
/* COMPONENTS: .section - vertical section padding */
/* COMPONENTS: .reveal - scroll-reveal animation hook (add .in-view via JS) */
/* COMPONENTS: .btn / .btn--light / .btn--ghost / .btn--small / .btn--block - button variants with fill-sweep hover */
/* COMPONENTS: .site-header / .site-nav / .nav-toggle / .nav-cart / .cart-count - header and nav */
/* COMPONENTS: .marquee / .marquee__track - looping hero word strip */
/* COMPONENTS: .hero / .hero__grid / .hero__art / .hero__actions - home diagonal hero */
/* COMPONENTS: .band / .band--ivory / .band--lime / .band--red / .band--cut-top / .band--cut-bottom / .band--cut-both - diagonal alternating sections */
/* COMPONENTS: .seal - circular badge/seal svg wrapper */
/* COMPONENTS: .ribbon - banner-style label */
/* COMPONENTS: .eyebrow / .section-head - small label above section headings */
/* COMPONENTS: .card-grid / .product-card - product/service card grid */
/* COMPONENTS: .strip - horizontal scroll-snap card strip for mobile */
/* COMPONENTS: .glaze-picker / .glaze-swatches / .glaze-swatch / .glaze-code - signature Birač glazure feature */
/* COMPONENTS: .km-toast - transient toast notice */
/* COMPONENTS: .site-footer / .footer-inner / .footer-links / .newsletter-form - footer */
/* COMPONENTS: .cookie-banner - GDPR cookie consent banner */
/* COMPONENTS: .hp-field - visually hidden honeypot field */
/* COMPONENTS: .page-hero - inner page header band */
/* COMPONENTS: .breadcrumbs - breadcrumb trail list */
/* COMPONENTS: .prose - readable long-form legal/article text measure */
/* COMPONENTS: .notice / .notice--success / .notice--error - callout boxes */
/* COMPONENTS: .form-grid / .field / .field-error / .form-msg - form layout and validation states */
/* COMPONENTS: .faq / .faq-item - details/summary accordion */
/* COMPONENTS: .product-detail / .product-detail__media / .qty-stepper - single product page layout */
/* COMPONENTS: .cart-table / .cart-summary / .cart-empty - cart and checkout layout */
/* COMPONENTS: .contact-layout / .contact-info - contact page layout */
/* COMPONENTS: .legal-toc - table of contents box for legal pages */
/* COMPONENTS: .error-404 - 404 page layout */

/* product card variations for catalog page */
.product-card__image{aspect-ratio:1;overflow:hidden;margin-bottom:0.5rem}
.product-card__image img{width:100%;height:100%;object-fit:cover}
.product-card h3{font-size:1rem;margin-bottom:0.25rem;color:var(--aubergine)}
.product-card__desc{font-size:0.85rem;color:rgba(42,26,31,0.8);margin:0.5rem 0;line-height:1.4}
.product-card__price{font-size:1.1rem;color:var(--lime-deep);font-weight:700;font-family:var(--font-display);margin:0}

/* product detail page */
.product-info{display:flex;flex-direction:column;gap:0.5rem}
.product-info__short{margin:1.5rem 0 !important}
.product-glazes{background:var(--ivory);padding:1.5rem;border-radius:4px;border:1px solid #e0d5c7}
.product-actions{gap:1.5rem}
.product-price{margin-top:1rem;padding-top:1rem;border-top:1px solid #e0d5c7}

/* form elements */
.form-group{display:flex;flex-direction:column;gap:0.4rem}
.form-group label{font-weight:600;font-size:0.9rem}
.form-group input,.form-group select,.form-group textarea{padding:0.6rem;border:1px solid var(--ink);border-radius:3px;font-size:1rem;font-family:var(--font-body)}
.form-group textarea{resize:vertical}

/* cart page */
.cart-items{display:flex;flex-direction:column}
.cart-item{background:var(--ivory);padding:1rem;margin-bottom:1rem;border-radius:4px;border:1px solid #e0d5c7}
.qty-input{border:1px solid var(--ink) !important;border-radius:3px !important}
.remove-btn:hover{background:var(--red);color:var(--ivory)}

/* checkout form */
.order-form{background:var(--ivory);padding:2rem;border-radius:4px;border:1px solid #e0d5c7}
.order-summary{background:var(--paper) !important}

/* glaze swatch active state */
.glaze-swatch[data-active],.glaze-swatch[aria-pressed="true"]{outline:3px solid var(--red);outline-offset:2px;box-shadow:0 0 0 1px var(--aubergine)}

/* wg-contrast-autofix */
section.hero div.wrap.hero__grid div p.eyebrow { color: #ffffff !important; }
