/* Talnium storefront design system — last public stylesheet.
   Older files may conflict. This file is the source of truth for layout,
   type, and breakpoints. Do not add another overlay stylesheet. */
:root{
  --space-1:8px;
  --space-2:12px;
  --space-3:16px;
  --space-4:24px;
  --space-5:32px;
  --tap:44px;
  --radius-sm:12px;
  --radius-md:16px;
  --radius-lg:22px;
  --gutter:clamp(16px,4.2vw,56px);
  --content:1240px;
  --header-h:72px;
  --shop-cols:4;
}
html,body{
  max-width:100%;
  overflow-x:clip;
  padding-bottom:env(safe-area-inset-bottom);
}
html:not([dir="rtl"]) body,
html:not([dir="rtl"]) button,
html:not([dir="rtl"]) input,
html:not([dir="rtl"]) select,
html:not([dir="rtl"]) textarea{
  font-family:"DM Sans",Inter,ui-sans-serif,system-ui,sans-serif;
}
html:not([dir="rtl"]) .hero h1,
html:not([dir="rtl"]) .section-title h2,
html:not([dir="rtl"]) .shop-layout h1,
html:not([dir="rtl"]) .simple-page h1,
html:not([dir="rtl"]) .detail-info h1,
html:not([dir="rtl"]) .cart-page-head h1,
html:not([dir="rtl"]) .bundle h2,
html:not([dir="rtl"]) .newsletter h2,
html:not([dir="rtl"]) .success h1,
html:not([dir="rtl"]) .checkout-panel h2{
  font-family:Fraunces,Georgia,"Times New Roman",serif;
  font-optical-sizing:auto;
}

/* Hard containment: grids may never grow past the viewport. */
main,.page,.shop-layout,.shop-main,.filters,.product-grid,.category-grid,
.hero,.cart-layout,.checkout-layout,.simple-page,.section{
  min-width:0;
  max-width:100%;
}
.shop-layout>*,.product-grid>*,.category-grid>*,.storefront-card,.product-card{
  min-width:0;
  max-width:100%;
}

.menu-toggle{
  display:none;
  width:42px;
  height:42px;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  background:#fff;
  color:var(--ink);
  font-size:20px;
  line-height:1;
  flex:none;
}
.site-header{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  min-height:var(--header-h);
  min-width:0;
  gap:16px;
  padding-block:10px;
  padding-left:max(16px,env(safe-area-inset-left),var(--gutter));
  padding-right:max(16px,env(safe-area-inset-right),var(--gutter));
  background:rgba(255,250,241,.94);
}
.brand{font-size:clamp(1.15rem,2vw,1.55rem);min-width:0}
.nav-lang{display:none}
.main-nav{gap:clamp(14px,2vw,28px)}
.main-nav button,.main-nav a{font-weight:700;font-size:15px}
.header-actions{
  margin-inline-start:auto;
  align-items:center;
  flex:none;
}
.header-actions .icon-button{display:grid;place-items:center;width:42px;height:42px}
a.primary,a.secondary,a.dark-button,a.text-link,a.link-button,a.hero-art{
  text-decoration:none;
  color:inherit;
}
a.primary,a.secondary,a.dark-button{display:inline-flex;align-items:center;justify-content:center}
a.link-button{display:block;padding:5px 0;color:#dbe6e3;background:none;border:0;font-weight:650}
.product-breadcrumb a,.card-title-link,.cart-product-name,.cart-thumb,.cart-page-head a{
  text-decoration:none;
  color:inherit;
}
.product-breadcrumb a:hover,.card-title-link:hover,.cart-product-name:hover,.cart-page-head a:hover{text-decoration:underline}
.card-title-link{display:block}
.cart-page-head a{display:inline-block;color:#cf654d;font-weight:800}
a.checkout-cta{text-align:center}

.hero{
  max-width:var(--content);
  gap:clamp(24px,5vw,64px);
  padding:clamp(28px,5.5vw,84px) var(--gutter) clamp(36px,5vw,72px);
}
.hero h1{max-width:min(12.5em,100%);letter-spacing:-.04em}
.hero h1 em{font-style:italic;color:#d56a50}
.hero>div:first-child p{max-width:38rem}
.hero-art{
  min-height:clamp(240px,42vw,430px);
  border-radius:clamp(24px,3vw,42px);
}
.actions{gap:10px}
.primary,.secondary,.dark-button,.quick-add,.product-add,.checkout-cta{
  min-height:48px;
  border-radius:14px;
  font-weight:800;
}

.stats{
  max-width:var(--content);
  margin:0 auto;
  padding:0 var(--gutter);
  border-radius:22px;
  overflow:hidden;
}
.benefits{gap:16px}
.benefit{
  background:#fff;
  border:1px solid rgba(32,51,58,.08);
  border-radius:22px;
  padding:22px;
}
.section{padding-block:clamp(48px,7vw,92px)}
.section-title{gap:16px;align-items:end}
.category-grid{gap:16px}
.category-card{
  min-height:168px;
  border-radius:22px;
  padding:22px;
  text-align:start;
  text-decoration:none;
  color:inherit;
  display:block;
}
.category-card small{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  line-height:1.35;
}
.bundle,.newsletter{
  max-width:var(--content);
  margin-inline:auto;
  border-radius:28px;
}

.cover,.cover.product-media,.cover.product-media.has-image,.detail-cover.product-media{
  height:auto!important;
  aspect-ratio:4/5;
}
.cover:after,
.storefront-card .cover:after,
.detail-cover:after{
  content:none!important;
  display:none!important;
}
.cover.is-placeholder,
.storefront-card .cover.is-placeholder{
  display:grid;
  place-items:center;
  background:var(--product-color,#f4e7d8);
}
.cover-glyph{
  font-size:clamp(2.6rem,12vw,4.4rem);
  line-height:1;
}
.badge:empty,[hidden].badge{display:none!important}
.field>span{
  display:block;
  font-size:12px;
  font-weight:800;
  margin-bottom:6px;
}
.checkout-panel h3{margin:22px 0 10px;font-size:15px}
.card-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:4px 0 18px}
.card-fields .full{grid-column:1/-1}
.checkout-secure-note{grid-column:1/-1;margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.checkout-fail{display:flex;gap:12px;align-items:flex-start;margin:0 0 20px;padding:14px 16px;border:1px solid #f0c7bc;background:#fff6f3;border-radius:16px;color:#7a2e22}
.checkout-fail[hidden]{display:none!important}
.checkout-fail>span{flex:none;width:28px;height:28px;border-radius:50%;background:#cf554c;color:#fff;display:grid;place-items:center;font-weight:900}
.checkout-fail strong,.checkout-fail p{display:block}
.checkout-fail p{margin:4px 0 0;color:#8a5348;font-size:13px;line-height:1.5}
.order-failed{border-color:#f0c7bc}
.fail-pill{background:#fff1eb;color:#b95338}
@media(max-width:650px){.card-fields{grid-template-columns:1fr}}

.product-grid{
  display:grid;
  grid-template-columns:repeat(var(--shop-cols),minmax(0,1fr));
  gap:clamp(14px,2vw,26px);
  width:100%;
}
.storefront-card,.product-card{
  width:100%!important;
  max-width:none!important;
  margin-inline:0!important;
}
.card-title-link,.card-name{overflow-wrap:anywhere}
.storefront-card .card-category,.card-category{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.shop-layout{
  max-width:var(--content);
  margin-inline:auto;
  padding:clamp(24px,4vw,56px) var(--gutter) 72px;
  display:grid;
  grid-template-columns:240px minmax(0,1fr);
  gap:clamp(20px,3vw,40px);
  align-items:start;
  width:100%;
  overflow-x:clip;
}
.shop-main{min-width:0}
.shop-head{min-width:0}
.shop-layout h1{
  font-size:clamp(2rem,5vw,3.4rem);
  line-height:1.05;
  max-width:14ch;
}
.shop-lead{
  color:var(--muted);
  overflow-wrap:anywhere;
  max-width:42rem;
}
.filters{
  position:sticky;
  top:calc(var(--header-h) + 12px);
  border-radius:20px;
  min-width:0;
}
.filter-reset{
  width:100%;
  margin-top:10px;
  min-height:42px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--ink);
  font-weight:800;
  font-size:13px;
}
.filter-reset.is-all{
  background:var(--ink);
  border-color:var(--ink);
  color:#fff;
}
.toolbar{
  display:flex;
  gap:12px;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:space-between;
  min-width:0;
}
.toolbar span{min-width:0}
.toolbar select{
  max-width:min(220px,48%);
  min-width:0;
  flex:none;
}

.product-detail{
  max-width:var(--content);
  margin-inline:auto;
  padding:clamp(20px,4vw,56px) var(--gutter) 72px;
  min-width:0;
}
.detail-cover.product-media{width:100%;max-width:540px}
.detail-info h1{overflow-wrap:anywhere;max-width:16ch}
.product-buy-row.digital-buy-row{grid-template-columns:minmax(0,1fr) 52px}

.cart-page-head,.cart-layout{
  max-width:var(--content);
  margin-inline:auto;
  padding-inline:var(--gutter);
}
.cart-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,360px);
  gap:24px;
  padding-bottom:72px;
}
.cart-lines{
  min-width:0;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:8px 22px;
}
.order-summary{
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  padding:22px;
}
.checkout-layout{
  max-width:var(--content);
  margin:0 auto;
  padding:32px var(--gutter) 72px;
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(280px,380px);
  gap:24px;
  align-items:start;
}
.checkout-panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:clamp(20px,3vw,32px);
}
.simple-page{padding-inline:var(--gutter)}
.empty,.cart-empty,.success{padding-inline:var(--gutter)}
.product-grid .empty,.shop-empty{grid-column:1/-1}
.coupon{display:flex;gap:8px;align-items:stretch}
.coupon input{flex:1;min-width:0;border:1px solid var(--line);border-radius:12px;padding:11px 12px}
.coupon button{border:0;border-radius:12px;background:var(--ink);color:#fff;padding:0 16px;font-weight:800}
.site-footer{padding:48px var(--gutter) 28px}
.footer-grid{gap:28px}
.drawer{width:min(420px,100vw);max-width:100%}
.modal-box{width:min(560px,calc(100vw - 24px))}

@media(max-width:1100px){
  :root{--shop-cols:3}
}

@media(max-width:960px){
  :root{
    --header-h:56px;
    --gutter:16px;
    --shop-cols:2;
  }
  .menu-toggle{display:grid;place-items:center}
  .header-lang{display:none!important}
  .main-nav{
    display:none;
    position:absolute;
    top:calc(100% + 8px);
    inset-inline:12px;
    z-index:40;
    flex:none;
    flex-direction:column;
    justify-content:stretch;
    gap:4px;
    padding:10px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    box-shadow:0 22px 50px rgba(32,51,58,.16);
  }
  .main-nav button,.main-nav a{
    width:100%;
    text-align:start;
    padding:12px 14px;
    border-radius:12px;
  }
  .main-nav button:after,.main-nav a:after{display:none}
  .main-nav button.active,.main-nav a.active{background:#fff4ef;color:#d9674d}
  .nav-lang{
    display:flex!important;
    align-items:center;
    justify-content:flex-start;
    margin-top:6px;
    border:1px solid var(--line);
    background:#fffaf1;
    font-weight:800;
  }
  body.nav-open .main-nav{display:flex!important}
  body.nav-open::before{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(20,34,36,.28);
    z-index:25;
  }
  .site-header{
    gap:8px;
    min-height:var(--header-h);
    padding-block:8px;
  }
  .hero,.product-detail,.checkout-layout,.cart-layout,.shop-layout,.admin-wrap{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .hero-art{min-height:280px}
  .product-grid,.category-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .benefits,.stats{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .header-actions{gap:4px}
  .header-actions .icon-button{width:40px;height:40px;display:grid!important}
  .menu-toggle{width:40px;height:40px}

  /* Shop: compact chrome so products appear above the fold. */
  .shop-layout{
    padding:8px var(--gutter) 56px;
    gap:10px;
  }
  .shop-head{display:none}
  .filter-reset.is-all{
    background:var(--ink);
    border-color:var(--ink);
    color:#fff;
  }
  .storefront-card .cover.product-media,
  .storefront-card .cover.is-placeholder{
    aspect-ratio:1/1!important;
  }
  .card-rating,
  .storefront-card .card-category{
    display:none;
  }
  .filters{
    position:sticky;
    top:var(--header-h);
    z-index:8;
    display:block;
    width:auto;
    max-width:none;
    margin-inline:calc(var(--gutter) * -1);
    padding:8px var(--gutter);
    border:0;
    border-radius:0;
    background:rgba(255,250,241,.94);
    backdrop-filter:blur(14px);
    box-shadow:none;
    border-bottom:1px solid rgba(32,51,58,.08);
  }
  .filter-group{
    display:flex!important;
    flex-wrap:nowrap;
    overflow-x:auto;
    gap:8px;
    border:0;
    padding:0;
    margin:0;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .filter-group::-webkit-scrollbar{display:none}
  .filter-group h3{display:none}
  .filter-group label,
  .filter-reset{
    flex:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:0;
    white-space:nowrap;
    margin:0;
    width:auto;
    min-height:38px;
    padding:8px 14px;
    border:1px solid var(--line);
    border-radius:999px;
    background:#fff;
    color:var(--ink);
    font-size:13px;
    font-weight:750;
  }
  .filter-group label:has(input:checked){
    background:var(--ink);
    border-color:var(--ink);
    color:#fff;
  }
  .filter-group input{
    position:absolute;
    opacity:0;
    width:1px;
    height:1px;
    pointer-events:none;
  }
  .toolbar{
    flex-direction:row!important;
    align-items:center!important;
    gap:8px;
    margin:0 0 14px;
  }
  .toolbar select{
    width:auto!important;
    max-width:52%;
    min-height:38px;
    font-size:13px;
  }
  .storefront-card{border-radius:16px}
  .storefront-card .card-body{padding:10px!important}
  .storefront-card .product-cover-image{padding:10px}
  .storefront-card .card-wish{
    width:32px;
    height:32px;
    top:8px;
    inset-inline-end:8px;
    font-size:16px;
  }
  .storefront-card .sale-badge{
    top:8px;
    inset-inline-start:8px;
    padding:4px 8px;
    font-size:9px;
  }
  .card-title-link{
    display:-webkit-box!important;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2!important;
    overflow:hidden;
    min-height:2.5em;
    font-size:.88rem!important;
    margin:0 0 6px;
  }
  .card-commerce{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
    padding-top:2px;
  }
  .price-stack{min-height:0}
  .price-stack strong{font-size:15px}
  .quick-add{
    width:100%;
    min-height:36px;
    padding:0 10px;
    font-size:12px;
  }
  .quick-add span{display:none}
  .quick-add .quick-add-text{display:inline}
}

@media(max-width:760px){
  .hero{padding-top:24px;padding-bottom:28px}
  .hero .actions{display:grid;grid-template-columns:1fr}
  .hero .actions>.primary,.hero .actions>.secondary{width:100%}
  .product-detail{
    grid-template-columns:minmax(0,1fr)!important;
    padding-top:18px;
  }
  .detail-cover.product-media{max-width:100%;aspect-ratio:1/1!important}
  .product-features{grid-template-columns:1fr}
  .cart-layout,.checkout-layout{
    grid-template-columns:minmax(0,1fr)!important;
    padding-bottom:28px;
  }
  .cart-lines{padding:4px 14px}
  .order-summary{
    position:sticky;
    bottom:0;
    z-index:12;
    margin-inline:calc(var(--gutter) * -1);
    padding:16px var(--gutter) calc(16px + env(safe-area-inset-bottom));
    border-radius:20px 20px 0 0;
    box-shadow:0 -16px 40px rgba(32,51,58,.12);
  }
  .checkout-layout .order-summary{position:static;margin:0;border-radius:22px;box-shadow:none}
  .section-title{flex-direction:column;align-items:flex-start}
  .bundle,.newsletter{margin-inline:var(--gutter)}
  .about-hero,.about-story,.about-values,.about-process>div{grid-template-columns:1fr}
}

@media(max-width:520px){
  .announcement{padding-inline:12px;text-align:center}
  .brand{font-size:1.12rem}
  .stats,.benefits{grid-template-columns:1fr 1fr;gap:10px}
  .footer-grid{grid-template-columns:1fr}
  .product-grid,.category-grid{gap:10px}
  .simple-page h1,.cart-page-head h1{font-size:clamp(1.6rem,7vw,2.2rem)}
  .product-buy-row.digital-buy-row{grid-template-columns:minmax(0,1fr) 48px}
  .promo-fields{grid-template-columns:1fr}
}

@media(max-width:360px){
  :root{--gutter:12px}
  .product-grid,.category-grid{gap:8px}
  .quick-add{font-size:10px;padding-inline:6px}
  .price-stack strong{font-size:14px}
}

@media(prefers-reduced-motion:reduce){
  .storefront-card,.quick-add,.product-cover-image,.hero-art img{transition:none}
}

/* Homepage: one rhythm, real product photography */
@media(min-width:901px){
  #page-home .hero{
    display:grid;
    grid-template-columns:minmax(0,1.05fr) minmax(300px,.95fr)!important;
    align-items:center;
    gap:clamp(28px,4.2vw,64px);
    max-width:var(--content);
    width:100%;
    margin-inline:auto;
  }
}
#page-home .hero{
  padding-top:clamp(28px,5vw,72px);
  padding-bottom:clamp(28px,4vw,48px);
}
#page-home .hero h1{
  max-width:8.8em;
  font-size:clamp(2.3rem,4.3vw,4.05rem);
  line-height:1.06;
  letter-spacing:-.038em;
  overflow:visible;
}
#page-home .hero-art{
  display:block;
  width:100%;
  min-height:0;
  padding:0;
  border:0;
  background:#e7f1f5;
  border-radius:28px;
  overflow:hidden;
  aspect-ratio:4/3;
  box-shadow:0 22px 50px rgba(32,51,58,.12);
  cursor:pointer;
}
#page-home .hero-art img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .45s ease;
}
#page-home .hero-art:hover img{transform:scale(1.025)}
#page-home .cloud,
#page-home .hero-book,
#page-home .hero-art .star{display:none!important}

.home-trust{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  max-width:var(--content);
  margin:0 auto clamp(8px,2vw,20px);
  padding:0 var(--gutter);
}
.home-trust article{
  padding:20px 18px 22px;
  background:#fff;
  border:1px solid var(--line);
  border-left:0;
}
.home-trust article:first-child{
  border-left:1px solid var(--line);
  border-radius:18px 0 0 18px;
}
.home-trust article:last-child{border-radius:0 18px 18px 0}
.home-trust strong{
  display:block;
  font-size:14px;
  letter-spacing:-.02em;
  margin-bottom:5px;
}
.home-trust span{
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

#page-home .section{
  max-width:var(--content);
  margin-inline:auto;
  padding-block:clamp(48px,6.5vw,84px);
}
#page-home .section-tint{
  max-width:none;
  width:100%;
  background:#f2f6f4;
  padding-block:clamp(48px,6.5vw,84px);
  margin:0;
}
#page-home .section-tint .section-title,
#page-home .section-tint .category-grid{
  max-width:var(--content);
  margin-inline:auto;
  padding-inline:var(--gutter);
}
#page-home .category-card{
  background:#fff!important;
  border:1px solid rgba(32,51,58,.08);
  box-shadow:0 8px 22px rgba(32,51,58,.045);
}
@media(min-width:1100px){
  #page-home .category-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important}
}
#page-home .category-card:hover{transform:translateY(-4px)}

#page-home .bundle{
  background:linear-gradient(145deg,#f6f0fc,#fff8ee);
  border:1px solid rgba(32,51,58,.06);
  box-shadow:none;
  align-items:center;
}
.bundle-visual{
  position:relative;
  flex:none;
  width:min(280px,100%);
  height:190px;
}
.bundle-visual img{
  position:absolute;
  left:50%;
  top:12px;
  width:112px;
  aspect-ratio:4/5;
  object-fit:cover;
  border-radius:12px;
  background:#fff;
  box-shadow:0 16px 30px rgba(32,51,58,.16);
}
.bundle-visual img:nth-child(1){transform:translateX(-118px) rotate(-11deg)}
.bundle-visual img:nth-child(2){transform:translateX(-56px);z-index:2}
.bundle-visual img:nth-child(3){transform:translateX(6px) rotate(11deg)}

#page-home .newsletter{
  max-width:var(--content);
  width:calc(100% - (var(--gutter) * 2));
  margin:0 auto clamp(56px,8vw,92px);
  padding:34px 36px;
  background:#20343a;
  color:#e7eeec;
  border-radius:28px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
}
#page-home .newsletter h2{color:#fff;margin:0}
#page-home .newsletter p{color:#b7c6c3;margin:6px 0 0}
#page-home .newsletter .eyebrow{color:#ff936d}
#page-home .subscribe-form{display:flex;gap:8px;flex:none}
#page-home .subscribe-form input{
  min-width:220px;
  min-height:48px;
  border:0;
  border-radius:12px;
  padding:0 14px;
  background:#fff;
}

@media(max-width:900px){
  .home-trust{grid-template-columns:1fr 1fr}
  .home-trust article:nth-child(odd){border-left:1px solid var(--line)}
  .home-trust article:nth-child(1){border-radius:18px 0 0 0}
  .home-trust article:nth-child(2){border-radius:0 18px 0 0;border-bottom:0}
  .home-trust article:nth-child(1){border-bottom:0}
  .home-trust article:nth-child(3){border-radius:0 0 0 18px}
  .home-trust article:nth-child(4){border-radius:0 0 18px 0}
  .bundle-visual{width:100%;height:170px;margin-inline:auto}
  #page-home .newsletter{flex-direction:column;align-items:stretch;width:auto;margin-inline:var(--gutter)}
  #page-home .subscribe-form input{min-width:0;flex:1}
}
@media(max-width:620px){
  .home-trust{grid-template-columns:1fr}
  .home-trust article{border-left:1px solid var(--line);border-radius:0!important}
  .home-trust article:first-child{border-radius:18px 18px 0 0!important;border-bottom:0}
  .home-trust article:last-child{border-radius:0 0 18px 18px!important}
  #page-home .hero-art{border-radius:22px}
}
