/* ===== v2: content pages, responsive fixes, app-like mobile layout ===== */
.hidden{display:none!important}

/* grid children must be allowed to shrink, otherwise wide tables push the page sideways */
.co-wrap>*,.cart-wrap>*,.shop-wrap>*,.pd>*,.grid>*,.two>*{min-width:0}
@media(min-width:901px){.co-wrap.acct-wrap{grid-template-columns:minmax(0,1fr) 360px}}
.cart-wrap .tbl{min-width:520px}

/* footer */
.grid4{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:28px}
.flinks{display:flex;flex-direction:column;gap:6px}
.site-footer p{margin:0}

/* policy / content pages */
.doc{max-width:860px;margin:0 auto;background:#fff;border:1px solid var(--b);border-radius:var(--r);padding:28px 32px}
.doc h1{font-size:28px;margin-bottom:4px}
.doc .upd{color:var(--m);font-size:13px;margin-bottom:18px}
.doc h3{margin:24px 0 8px;font-size:18px;color:var(--p)}
.doc p{margin:0 0 10px}
.doc ul{margin:0 0 10px;padding-left:22px}.doc li{margin-bottom:5px}

/* icons */
.benefit span i{color:var(--p)}
.success .tick{color:#16a34a}
.opt i{color:var(--p);width:20px;text-align:center}
.flinks i{width:18px;text-align:center;opacity:.85}
.search button i,.actions i{font-size:16px}

/* checkbox row (terms agreement) */
.chk{display:flex;gap:10px;align-items:flex-start;margin:8px 0 6px;font-size:14px}
.chk input{width:auto;margin-top:4px;flex-shrink:0}
.chk a{color:var(--p);text-decoration:underline}

/* language switch visible in the header only on phones */
.lang-m{display:none}
.lang-m a{color:var(--t);opacity:.6;padding:0 3px}
.lang-m a.on{color:var(--p);opacity:1;font-weight:700}

/* bottom bar + sheets are mobile-only */
.bnav,.sheet,.sheet-bg{display:none}

@media(max-width:560px){.hide-xs{display:none}}

@media(max-width:720px){
  body.shop{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
  body.shop .topbar{display:none}
  .site-header .actions{display:none}
  .site-header .container{padding-top:10px;padding-bottom:10px;gap:8px 10px}
  .site-header .logo{font-size:19px;margin-right:auto}
  .lang-m{display:block}
  main{padding-top:12px}
  input,select,textarea{font-size:16px}
  .hero{padding:26px 20px;border-radius:16px}
  .sec-head h2{font-size:19px}
  .card-title{min-height:0}
  .doc{padding:20px 18px}
  .doc h1{font-size:23px}
  .pd{padding:14px;gap:18px}
  .site-footer{padding-top:26px}

  /* ---- app-like bottom navigation ---- */
  .bnav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:90;background:#fff;
        border-top:1px solid var(--b);box-shadow:0 -4px 18px #0000001a;padding-bottom:env(safe-area-inset-bottom)}
  .bnav a,.bnav button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:58px;
        border:0;background:none;color:var(--m);font:inherit;font-size:11px;font-weight:500;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .bnav>*>i{font-size:20px;line-height:1}
  .bnav .on{color:var(--p);font-weight:700}
  .bnav .bdg{position:absolute;top:5px;left:calc(50% + 6px);background:#dc2626;color:#fff;font-style:normal;font-size:10px;font-weight:700;
        min-width:17px;height:17px;line-height:17px;border-radius:999px;text-align:center;padding:0 4px}

  /* ---- bottom sheets ---- */
  .sheet-bg{display:block;position:fixed;inset:0;background:#0007;opacity:0;pointer-events:none;transition:opacity .2s;z-index:100}
  .sheet-bg.open{opacity:1;pointer-events:auto}
  .sheet{display:block;position:fixed;left:0;right:0;bottom:0;z-index:110;background:#fff;border-radius:20px 20px 0 0;max-height:78vh;overflow:auto;
        transform:translateY(105%);transition:transform .25s ease;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
  .sheet.open{transform:none}
  .sheet-h{display:flex;justify-content:space-between;align-items:center;padding:16px 18px 8px;position:sticky;top:0;background:#fff;font-size:17px}
  .sheet-h button{border:0;background:#f3f4f6;border-radius:50%;width:34px;height:34px;font-size:15px;cursor:pointer}
  .sheet-b{padding:2px 12px 12px}
  .sheet-b>a{display:flex;justify-content:space-between;align-items:center;padding:13px 8px;border-bottom:1px solid #f1f5f9;font-weight:500}
  .sheet-b>a::after{content:"\f054";font-family:"Font Awesome 6 Free";font-weight:900;color:#9ca3af;font-size:12px}
  .sheet-b>a.sub{padding-left:26px;color:var(--m);font-weight:400}
  .seg{display:flex;align-items:center;gap:8px;padding:8px 8px 14px;border-bottom:1px solid #f1f5f9}
  .seg span{margin-right:auto;font-weight:600}
  .seg a{padding:7px 16px;border:1px solid var(--b);border-radius:999px;font-size:14px}
  .seg a.on{background:var(--p);color:#fff;border-color:var(--p)}
}
@media(max-width:420px){.cat-grid{grid-template-columns:repeat(2,1fr)}}
