/* Phone-first polish, loaded LAST so it wins over the page styles (most customers shop on a phone).
   Sizes follow the 44px touch-target rule. Every rule needs a touch screen or a narrow window: the desktop look is untouched. */

/* no double-tap-zoom wait on controls, so + / - and "add" answer at once */
a, button, input, select, textarea, label, summary { touch-action: manipulation; }

@media (pointer: coarse) {
  .icon-btn { width: 2.75rem; height: 2.75rem; }
  .cartlink { height: 2.75rem; }
  .btn-sm { min-height: 2.6rem; }
  .pcard__heart { width: 2.6rem; height: 2.6rem; }
  .qty__btn { width: 2.4rem; height: 2.4rem; }
  .qty__input { width: 2.1rem; }
  .chip { padding: .4rem .85rem; font-size: .85rem; }
  .pager__btn { min-width: 2.75rem; height: 2.75rem; }
  .social__link { width: 2.75rem; height: 2.75rem; }
  .site-footer__list a { padding-block: .5rem; }
  .drawer__sub { padding-block: .7rem; }
  .crumbs__item a { display: inline-block; padding-block: .35rem; }
}
@media (pointer: coarse) and (max-width: 991.98px) { .cartlink { width: 2.75rem; } }

/* the smallest labels are hard to read in Bengali on a phone */
@media (max-width: 575.98px) {
  .pcard__cat, .pcard__unit { font-size: .8rem; }
  .stock, .tag { font-size: .78rem; }
  .pcard__off { font-size: .82rem; }
  .bottom-nav__item { font-size: .78rem; }
}

/* two product cards side by side on a phone (a card up to 13rem wide): smaller type and tighter controls so the card is not so tall.
   Size chips and button text scale with the card (cqi) so three sizes fit on one line and "Add to cart" / "Buy now" share a row at the same width.
   Targets stay 24px+ (the WCAG 2.2 minimum). */
@container (max-width: 13rem) {
  .pcard__body { padding: .5rem .55rem .6rem; gap: .2rem; }
  .pcard__cat, .pcard__unit { font-size: .72rem; }
  .pcard__name { font-size: .88rem; line-height: 1.25; }
  .pcard__tagline { font-size: .74rem; line-height: 1.35; -webkit-line-clamp: 1; }
  .pcard__rating { font-size: .74rem; }
  .price { font-size: 1.05rem; }
  .price-old { font-size: .74rem; }
  .tag, .stock { font-size: .68rem; }
  .tag { padding: .1rem .45rem; }
  .stock { padding: .1rem .4rem; }
  .pcard__off { font-size: .72rem; }
  .pcard__heart { width: 2rem; height: 2rem; }
  .chips { gap: .2rem; }
  .chip { padding: .3rem .35em; border-width: 1px; font-size: clamp(.6rem, 6cqi, .76rem); }
  .chip[data-badge]::after { padding-inline: .3rem; font-size: .55rem; }
  .pcard__buy { gap: .25rem; }
  .qty__btn { width: 1.75rem; height: 1.75rem; }
  .qty__btn .ico { width: .8rem; height: .8rem; }
  .qty__input { width: 1.4rem; font-size: .85rem; }
  .pcard__cta { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .3rem; padding-top: .3rem; }
  .pcard__cta .btn { min-height: 2.1rem; padding: .3rem; font-size: clamp(.62rem, 6.4cqi, .82rem); }
  .pcard__cta [data-add] .ico { display: none; }
}
