/* AYURVITAL - responsive overrides (loaded last, after shop-fx.css) */

/* ---------- safety nets (all sizes) ---------- */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
img,video,svg,iframe{max-width:100%}
img,video{height:auto}
.pcard-media img,.gal-main img,.gal-thumb img,.cart-thumb,.hero-img,.offer-visual img{height:100%}
.cart-thumb{height:auto}
.container{padding-left:16px;padding-right:16px}
.tbl-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.tbl-wrap table{min-width:520px}
.rich table,.pdp-details table{display:block;max-width:100%;overflow-x:auto}
.rich,.pdp-title,.pcard-title,.cart-line-title{overflow-wrap:anywhere}
.drop-grid{min-width:0;width:min(460px,92vw)}
.header-search.open{z-index:60}

/* ---------- tablets and below (<= 991px) ---------- */
@media(max-width:991px){
  .section{padding:56px 0}
  .pdp{gap:22px}
  .pdp-title{font-size:clamp(1.6rem,5vw,2.2rem)}
  .checkout-summary{position:static}
  .acct-nav nav a{white-space:nowrap}
  body.page-product{padding-bottom:76px}      /* room for sticky buy bar */
}

/* ---------- phones (<= 767px) ---------- */
@media(max-width:767px){
  .section{padding:44px 0}
  .section-head{gap:6px}
  .section-title{font-size:clamp(1.5rem,6vw,1.9rem)}
  .section-sub{font-size:.9rem}
  .acc summary{font-size:1.2rem;padding:16px 2px}
  .hero-title{font-size:clamp(1.7rem,8vw,2.4rem)}
  .hero-sub{font-size:.92rem;margin-bottom:16px}
  .hero-copy-in{max-width:100%}
  .specs>div{flex-direction:column;gap:2px}
  .specs dt{flex:none}
  .foot-text{max-width:none}
  .nl-box{padding:28px 20px}
  .qv-body{padding:16px}
  .offer-card.has-art h2{font-size:1.5rem}
  .offer-body{padding:46px 18px 20px}
}

/* ---------- small phones (<= 575px): smaller buttons & fonts ---------- */
@media(max-width:575px){
  body{font-size:15px}
  h1.display,.display{font-size:clamp(1.6rem,7vw,2rem)}

  /* every button gets a smaller font and tighter padding */
  .btn{font-size:.8rem;padding:9px 18px;gap:6px;letter-spacing:.01em}
  .btn-lg{font-size:.85rem;padding:11px 20px}
  .btn-sm{font-size:.74rem;padding:7px 13px}
  .btn i,.btn svg{font-size:.85em}
  .pcard-btn{font-size:.76rem;padding:8px 6px;letter-spacing:0}
  .pcard-btn i{font-size:.8em}
  .qv-btn{width:30px;height:30px;font-size:.8rem}
  .hx-cta .btn,.offer-actions .btn,.nl-box .btn{font-size:.8rem}
  .offer-actions .btn{flex:1 1 100%}
  .btn-light,.btn-outline-success,.btn-outline-secondary,.btn-outline-dark{font-size:.78rem}
  .checkout-panel .btn,.cart-line .btn,.empty-state .btn,.acct .btn{font-size:.8rem}
  .pdp-sticky .btn{font-size:.78rem;padding:9px 16px}
  .ps-info strong{font-size:.8rem}
  .ps-info span{font-size:.85rem}
  .nl-box button,.nl-box input{font-size:.85rem}

  /* product page: quantity + buttons on tidy rows */
  .pdp-cta{gap:8px}
  .pdp-cta .qty{width:100%;justify-content:space-between}
  .pdp-cta .qty button{height:42px;flex:0 0 52px;font-size:1.05rem}
  .pdp-cta .qty input{flex:1;font-size:.9rem}
  .pdp-cta .btn{flex:1 1 calc(50% - 4px);min-width:0;white-space:nowrap}
  .pdp-price .now{font-size:1.5rem}.pdp-price .mrp{font-size:.95rem}
  .pdp-short{font-size:.92rem}
  .vpill span{padding:8px 14px;font-size:.8rem}
  .gal-thumb{flex-basis:60px;height:60px}
  .trust{font-size:.8rem;gap:6px 14px}

  /* cards & grids */
  .pgrid{gap:10px}
  .pcard-body{padding:10px 10px 12px;gap:6px}
  .pcard-title{font-size:.84rem}
  .now{font-size:.98rem}.mrp{font-size:.76rem}
  .pcard-price .from{font-size:.68rem}
  .badge-pill{font-size:.6rem;padding:4px 8px}
  .pcard-badges{top:6px;left:6px}

  /* header / topbar / footer */
  .topbar{font-size:.7rem}
  .icon-btn{width:38px;height:38px;font-size:.95rem}
  .drawer-nav>a,.drawer-nav summary{font-size:.84rem}
  .foot-h{font-size:.72rem;margin-bottom:12px}
  .site-footer{padding:40px 0 22px;font-size:.88rem}
  .foot-social a{width:36px;height:36px}

  /* forms: 16px keeps iOS from zooming on focus */
  input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{font-size:16px}
  .checkout-panel{padding:1rem}
  .checkout-panel h2{font-size:1.2rem}
  .summary-row{font-size:.9rem}
  .cart-line-controls{gap:.6rem}
  .cart-line-controls input{width:64px!important}

  /* toasts / popups */
  .fx-toast{font-size:.82rem}
  .offer-card{max-height:92vh;overflow-y:auto}
}

/* ---------- very small phones (<= 380px) ---------- */
@media(max-width:380px){
  .btn{font-size:.76rem;padding:8px 14px}
  .pdp-cta .btn{flex:1 1 100%}
  .brand-logo{width:135px}
  .pcard-btn{font-size:.72rem}
  .pcard-title{font-size:.8rem}
}

/* ---------- touch devices: comfortable tap targets ---------- */
@media(hover:none){
  .pcard:hover{transform:none;box-shadow:none}
  .pcard:hover .pcard-media img{transform:none}
}
