/* Responsive + trust polish, loaded after site.css on every public page. Additive overrides only. */

/* ---------- 1. Safety net: nothing may push the page wider than the screen ---------- */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
img,video,svg,canvas,iframe{max-width:100%}
/* Grid/flex children default to min-width:auto, so a long word or a <select> can stretch a column
   past the screen. Zero-specificity reset fixes that class of bug site-wide. */
:where(.grid)>*{min-width:0}
:where(.flex)>*{min-width:0}
select,input,textarea{max-width:100%}
h1,h2,h3,h4,p,li,a,span,label{overflow-wrap:break-word}

nav[aria-label="Pagination"]{flex-wrap:wrap;row-gap:.5rem}

/* ---------- 2. Hero banner: always show the whole artwork (all banners are 16:9) ---------- */
#hero-carousel>div:first-of-type{aspect-ratio:16/9!important;min-height:0!important;max-height:min(84vh,800px);width:100%}
#hero-carousel .hero-slide{background:#2b3623}
#hero-carousel .hero-slide:before{content:"";position:absolute;inset:-8%;background:var(--hero-bg,none) center/cover no-repeat;filter:blur(26px) saturate(1.1) brightness(.92);transform:scale(1.06)}
#hero-carousel .hero-slide>img{object-fit:contain!important}
/* bigger invisible hit areas for the slide dots and arrows */
#hero-carousel [data-slide]{position:relative}
#hero-carousel [data-slide]:after{content:"";position:absolute;inset:-14px -7px}

/* ---------- 3. Touch comfort (phones / tablets) ---------- */
@media (max-width:1023px),(pointer:coarse){
  /* footer + breadcrumb + inline text links get a finger-sized hit area without looking different */
  footer a{display:inline-block;padding-block:.5rem}
  nav[aria-label="Breadcrumb"] a{display:inline-block;padding:.55rem .2rem}
  nav[aria-label="Breadcrumb"]{row-gap:0}
  main a.border-b.border-gold{display:inline-flex;align-items:center;min-height:44px}
  main a.hover\:underline,main a.underline{padding-block:.4rem;display:inline-block}
  [data-quantity-step],[data-cart-step],[data-bill-step]{min-width:44px;min-height:44px}
  .quantity-value{min-height:44px}
  input[type=checkbox],input[type=radio]{width:1.25rem;height:1.25rem}
  label.flex.items-center{padding-block:.45rem}
  .gallery-thumb{min-height:56px;min-width:56px}
}
/* 16px inputs stop iPhones from zooming the page when a field is focused */
@media (max-width:1023px){input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px}}
/* never let text fall below a readable size */
.marquee-track{font-size:12px!important}
.eyebrow{font-size:.75rem}
@media (max-width:640px){.eyebrow{letter-spacing:.22em}}
.text-\[10px\]{font-size:11px!important}
.text-\[11px\]{font-size:12px!important}
.tab-item span{font-size:11px}
@media (max-width:767px){.btn,.btn-secondary{font-size:.8125rem}}
@media (max-width:1023px),(pointer:coarse){
  main a.flex.h-9{min-width:44px;min-height:44px;justify-content:center;align-items:center}
  main aside a.inline-block.py-1{padding-block:.65rem}
  footer li a{padding-inline:.15rem}
}
@media (max-width:1023px){footer ul.flex{gap:0!important}}
@media (max-width:639px){footer .grid>div:last-child ul{display:grid;grid-template-columns:1fr 1fr;column-gap:1rem}}
/* bottom tab bar clears the iPhone home indicator */
.tabbar-premium{padding-bottom:env(safe-area-inset-bottom)}
/* notched phones in landscape */
@supports (padding:max(0px)){body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}}

/* ---------- 4. Trust: visitor counter hidden (still counted), reassurance rows ---------- */
#visit-count{display:none}
.pz-trust{display:grid;gap:.6rem;margin:1.25rem 0 0;padding:0;list-style:none;grid-template-columns:1fr}
@media (min-width:520px){.pz-trust{grid-template-columns:repeat(3,1fr)}}
.pz-trust li{display:flex;align-items:flex-start;gap:.65rem;padding:.8rem .85rem;background:var(--surface);border:1px solid var(--border);border-radius:3px}
.pz-trust svg{flex:0 0 auto;width:1.5rem;height:1.5rem;color:var(--brand);margin-top:.1rem}
.pz-trust b{display:block;font-size:.8125rem;font-weight:600;color:var(--foreground);line-height:1.25}
.pz-trust span{display:block;margin-top:.15rem;font-size:.75rem;line-height:1.35;color:var(--muted)}
@media (max-width:519px){.pz-trust{gap:0;border:1px solid var(--border);border-radius:3px;background:var(--surface)}.pz-trust li{border:0;border-bottom:1px solid var(--border);border-radius:0;padding:.6rem .8rem;background:transparent}.pz-trust li:last-child{border-bottom:0}.pz-trust svg{width:1.35rem;height:1.35rem}}
.pz-secure{display:flex;align-items:center;justify-content:center;gap:.45rem;margin-top:.9rem;font-size:.78rem;color:var(--muted);text-align:center;line-height:1.35}
.pz-secure svg{flex:0 0 auto;width:1rem;height:1rem;color:var(--brand)}
.pz-foot-secure{margin-top:1.25rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.4rem .9rem;font-size:.75rem;color:var(--muted);text-align:center}
.pz-foot-secure span{display:inline-flex;align-items:center;gap:.35rem}
.pz-foot-secure svg{width:.95rem;height:.95rem;color:var(--accent)}

/* product cards: equal heights, "Add to cart" always lines up along the bottom of a row */
.product-card{display:flex}
.product-card>.group{flex:1 1 auto;width:100%}
.product-card .group>button:last-child{margin-top:auto}
.product-card .group>div:nth-last-child(2){margin-bottom:.75rem}

/* ---------- 5. Large screens: keep line lengths and spacing comfortable ---------- */
@media (min-width:1536px){html{font-size:106.25%}}
@media (min-width:1920px){html{font-size:112.5%}}
@media print{.tabbar-premium{display:none!important}}
