*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Prevents mobile Chrome/Safari's automatic "font boosting" — their text
   autosizer inflates font sizes inside narrow containers (like the header's
   pincode line) without the container growing to match, which wraps text
   into a jumbled multi-line mess and can visually overlap fixed-position
   elements below it. The layout here is already designed per breakpoint;
   the browser's own heuristic resizing only breaks it. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Browser surfaces — themed from the palette, not left as defaults */
::selection { background: var(--g2u-lime); color: var(--g2u-ink); }
input, textarea { caret-color: var(--g2u-leaf); }

:focus-visible {
  outline: 2px solid var(--g2u-leaf);
  outline-offset: 2px;
  border-radius: var(--g2u-r-sm);
}
.g2u-add:focus-visible, .g2u-chip:focus-visible, .btn:focus-visible {
  outline-offset: 1px;
}

* { scrollbar-width: thin; scrollbar-color: var(--g2u-leaf) var(--g2u-line); }
*::-webkit-scrollbar { height: 6px; width: 6px; }
*::-webkit-scrollbar-track { background: var(--g2u-line); }
*::-webkit-scrollbar-thumb { background: var(--g2u-leaf); border-radius: var(--g2u-r-pill); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--g2u-font-body);
  background: var(--g2u-cream);
  color: var(--g2u-ink);
  font-size: 14px;
  line-height: 21px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--g2u-nav-h);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; font-size: 14px; }

h1, h2, h3 { font-family: var(--g2u-font-head); margin: 0; color: var(--g2u-ink); }

.page-title { font-size: 22px; line-height: 28px; font-weight: 600; font-family: var(--g2u-font-head); }
.section-heading { font-size: 18px; line-height: 24px; font-weight: 600; font-family: var(--g2u-font-head); }
.product-name { font-size: 14px; line-height: 20px; font-weight: 500; }
.price { font-size: 16px; line-height: 20px; font-weight: 600; font-family: var(--g2u-font-head); color: var(--g2u-ink); }
.price-lg { font-size: 22px; font-weight: 600; font-family: var(--g2u-font-head); }
.mrp { font-size: 12px; line-height: 16px; color: var(--g2u-stone); text-decoration: line-through; }
.caption { font-size: 12px; line-height: 16px; color: var(--g2u-stone); }

.container {
  max-width: var(--g2u-max-w);
  margin: 0 auto;
  padding: 0 var(--g2u-gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Skeleton loaders */
.skeleton {
  background: linear-gradient(90deg, var(--g2u-line) 25%, #eef1ea 37%, var(--g2u-line) 63%);
  background-size: 400% 100%;
  animation: g2u-shimmer 1.4s ease infinite;
  border-radius: var(--g2u-r-sm);
}
@keyframes g2u-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* Toast */
.g2u-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--g2u-nav-h) + 16px);
  transform: translateX(-50%);
  background: var(--g2u-ink);
  color: var(--g2u-white);
  padding: 10px 16px;
  border-radius: var(--g2u-r-md);
  font-size: 13px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
}
.g2u-toast button { color: var(--g2u-gold); font-weight: 600; }

@media (min-width: 768px) {
  body { font-size: 15px; }
  .page-title { font-size: 26px; line-height: 32px; }
}
