:root {
  --red: #E02020;
  --red-dark: #B00000;
  --white: #FFFFFF;
  --cream: #FFF8F0;
  --amber: #F0B060;
  --gray-100: #F5F5F5;
  --gray-200: #E0E0E0;
  --gray-600: #666666;
  --gray-900: #1A1A1A;
  --shadow: 0 2px 12px rgba(0,0,0,0.12);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--gray-100);
  color: var(--gray-900);
  padding-bottom: 90px;
}

/* Age gate */
.age-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  padding: 1rem;
}
.age-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.age-logo { width: 100px; height: 100px; object-fit: cover; border-radius: 50%; }
.age-card h1 { color: var(--red); margin: 0.5rem 0; }
.age-warning { color: var(--gray-600); font-weight: 600; }
.age-buttons { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }

/* Store header */
.store-header {
  background: var(--red);
  color: var(--white);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
  transition: box-shadow .25s ease;
}
.store-header.is-scrolled { box-shadow: 0 12px 30px rgba(120, 0, 0, 0.28); }
.store-header-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.store-logo { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; border: 2px solid var(--white); }
.store-title { margin: 0; font-size: 1.4rem; }
.store-meta { margin: 0.25rem 0 0; font-size: 0.75rem; opacity: 0.95; }

.closed-banner {
  background: var(--amber);
  color: var(--gray-900);
  text-align: center;
  padding: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.store-main { max-width: 800px; margin: 0 auto; padding: 1rem; }

/* Search */
.search-bar {
  position: relative;
  display: flex;
  margin-bottom: 1rem;
}
.search-bar input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.4rem;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  font-size: 1rem;
  box-shadow: var(--shadow);
  background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.search-bar input:focus { outline: 2px solid var(--red); border-color: var(--red); }
.search-bar input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.search-icon { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--red); font-size: 1.3rem; line-height: 1; pointer-events: none; }

/* Categories */
.categories {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.category-pill {
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: none;
  background: var(--white);
  color: var(--gray-900);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.category-pill.active { background: var(--red); color: var(--white); }

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-image {
  height: 140px;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.no-image { font-size: 3rem; }
.product-info { padding: 0.75rem; flex: 1; display: flex; flex-direction: column; }
.product-name { margin: 0; font-size: 0.95rem; }
.product-category { margin: 0.25rem 0; font-size: 0.75rem; color: var(--gray-600); }
.product-price { margin: 0.25rem 0 0.75rem; font-size: 1.1rem; font-weight: 700; color: var(--red); }
.btn-add { margin-top: auto; }

/* Buttons */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active:not(:disabled) { transform: scale(0.96); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--red-dark); }
.btn-primary:disabled { background: var(--gray-200); color: var(--gray-600); cursor: not-allowed; }
.btn-secondary { background: var(--white); color: var(--gray-900); border: 1px solid var(--gray-200); }
.btn-block { width: 100%; }

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple .6s linear;
  background: rgba(255,255,255,0.35);
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* Cart FAB */
.cart-fab {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  left: auto;
  transform: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(143, 13, 19, 0.96);
  color: var(--white);
  border: none;
  padding: 0;
  box-shadow: 0 8px 28px rgba(100,0,0,0.35);
  cursor: pointer;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cart-fab:active { transform: scale(0.92); }
.cart-fab-icon { width: 24px; height: 24px; }
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold);
  color: var(--red-deep);
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.cart-count.pop { animation: badge-pop .35s ease; }
@keyframes badge-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Toast notification */
.toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(-150%);
  z-index: 500;
  padding: 0.75rem 1.2rem 0.75rem 0.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 14px 36px rgba(36,0,0,0.28);
  opacity: 0;
  transition: transform .4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity .35s ease;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  overflow: hidden;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--red-deep);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 900;
  flex: 0 0 22px;
}
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  width: 100%;
  transform-origin: left;
}
.toast.show .toast-progress { animation: toast-progress 2.4s linear forwards; }
@keyframes toast-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* Cart drawer */
.cart-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  transform: translateY(110%);
  transition: transform .35s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 300;
  height: min(70vh, 620px);
  max-height: calc(100vh - 1rem);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateY(0); }
.cart-header {
  flex: 0 0 auto;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h2 { margin: 0; font-size: 1.1rem; }
.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background .2s ease;
}
.cart-close:hover { background: var(--gray-100); }
.cart-items {
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
  flex: 1 1 auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-200) transparent;
}
.cart-items::-webkit-scrollbar { width: 6px; }
.cart-items::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 10px; }
.cart-items::-webkit-scrollbar-track { background: transparent; }
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
  gap: 0.75rem;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; }
.cart-item-price { font-size: 0.85rem; color: var(--gray-600); }
.cart-item-actions { display: flex; align-items: center; gap: 0.5rem; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  font-weight: 700;
  transition: background .15s ease, transform .1s ease;
}
.qty-btn:active { transform: scale(0.9); }
.cart-item-remove {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 8px;
  opacity: 0.6;
  transition: opacity .2s ease, background .2s ease, transform .1s ease;
}
.cart-item-remove:hover { opacity: 1; background: var(--gray-100); }
.cart-item-remove:active { transform: scale(0.9); }
.cart-empty {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-600);
}
.cart-empty span { font-size: 3rem; margin-bottom: 0.5rem; }
.cart-empty h3 { margin: 0 0 0.25rem; color: var(--gray-900); }
.cart-empty p { margin: 0; font-size: 0.9rem; }
.cart-footer {
  flex: 0 0 auto;
  padding: 1rem;
  border-top: 1px solid var(--gray-200);
}
.cart-total { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }

/* Checkout modal */
.checkout-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 400;
  padding: 1rem;
  transition: background .25s ease;
}
.checkout-modal.active { display: flex; background: rgba(0,0,0,0.5); }
.checkout-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 100%;
  max-width: 420px;
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  transition: transform .3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity .25s ease;
}
.checkout-modal.active .checkout-card { transform: scale(1) translateY(0); opacity: 1; }
.checkout-card h2 { margin-top: 0; }
.checkout-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.checkout-error {
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  min-height: 1.2em;
}

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.9rem; }
.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(224,32,32,0.12); }
.form-control:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.form-control.is-invalid { border-color: var(--red); background: #fff5f5; }
.field-error {
  display: none;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.3rem;
}

/* Alerts */
.alert { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert-error { background: #fee2e2; color: #991b1b; }

@media (min-width: 600px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* Bebidas Yes! promotional storefront */
:root {
  --ink: #241313;
  --muted: #765c5c;
  --red-deep: #8f0d13;
  --red-bright: #ee2028;
  --gold: #ffc928;
  --gold-soft: #fff1bd;
  --paper: #fffaf4;
  --line: rgba(107, 23, 23, 0.12);
  --glow: 0 18px 50px rgba(137, 12, 18, 0.18);
}

body {
  background: var(--paper);
  color: var(--ink);
}

.store-header {
  background: linear-gradient(110deg, #9d0b12 0%, #e02020 52%, #b50d12 100%);
  padding: 0.85rem 1.25rem;
  box-shadow: 0 8px 24px rgba(120, 0, 0, 0.18);
}
.store-header-content {
  max-width: 1120px;
  min-height: 68px;
  justify-content: space-between;
}

.store-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  transition: opacity .2s ease;
}
.store-brand:hover { opacity: 0.92; }
.store-logo {
  width: 62px;
  height: 62px;
  border-radius: 15px;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 5px 18px rgba(0,0,0,0.2);
}

.store-kicker, .hero-eyebrow, .section-eyebrow, .drawer-eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.store-kicker { opacity: 0.78; }
.store-title { font-size: 1.5rem; letter-spacing: -0.04em; }
.store-meta { opacity: 0.86; }

.header-cta {
  color: var(--red-deep);
  background: var(--gold);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 900;
  font-size: 0.82rem;
  text-decoration: none;
  box-shadow: 0 5px 0 rgba(118, 61, 0, 0.2);
  transition: transform .15s ease, box-shadow .15s ease;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(118, 61, 0, 0.2); }
.header-cta:active { transform: translateY(1px); box-shadow: 0 3px 0 rgba(118, 61, 0, 0.2); }
.header-cta span { font-size: 1.1rem; margin-left: 0.25rem; }

.closed-banner {
  background: #241313;
  color: #fff3d1;
  font-size: 0.82rem;
}

.store-main { max-width: 1120px; padding: 1.25rem; }

.promo-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 350px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  align-items: stretch;
  border-radius: 28px;
  background: radial-gradient(circle at 83% 30%, rgba(255, 201, 40, 0.25), transparent 23%), linear-gradient(125deg, #861016, #d81720 62%, #9c0a11);
  color: var(--white);
  box-shadow: var(--glow);
}

.promo-hero::before, .promo-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
}

.promo-hero::before { width: 420px; height: 420px; right: 16%; top: -210px; }
.promo-hero::after { width: 260px; height: 260px; left: -120px; bottom: -170px; }

.hero-copy { padding: 2.25rem 1.5rem 2rem 2.25rem; align-self: center; }
.hero-eyebrow { color: var(--gold); display: inline-flex; align-items: center; gap: 0.45rem; }
.live-dot { width: 8px; height: 8px; display: inline-block; background: #72ff8f; border-radius: 50%; box-shadow: 0 0 0 5px rgba(114,255,143,0.15); animation: live-pulse 2s infinite; }
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15); }
}
.hero-copy h2 { max-width: 530px; margin: 0.65rem 0 0.75rem; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 0.92; letter-spacing: -0.075em; }
.hero-copy h2 em { color: var(--gold); font-style: normal; }
.hero-copy > p { max-width: 450px; margin: 0; color: rgba(255,255,255,0.82); font-size: 1.05rem; line-height: 1.5; }
.hero-offer { display: grid; gap: 0.2rem; width: fit-content; max-width: 100%; margin: 1rem 0 0.9rem; padding: 0.7rem 0.85rem; border-left: 4px solid var(--gold); border-radius: 0 11px 11px 0; background: rgba(36,19,19,0.28); }
.hero-offer span { color: var(--gold); font-size: 0.62rem; font-weight: 900; letter-spacing: 0.11em; }
.hero-offer strong { font-size: 1rem; }
.hero-offer b { color: var(--gold); font-size: 1.5rem; line-height: 1.05; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.35rem; }
.hero-button { display: inline-flex; align-items: center; gap: 0.65rem; padding: 0.85rem 1.1rem; border-radius: 11px; color: var(--red-deep); background: var(--gold); text-decoration: none; font-weight: 900; box-shadow: 0 5px 0 rgba(118,61,0,0.25); transition: transform .15s ease, box-shadow .15s ease; }
.hero-button:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(118,61,0,0.25); }
.hero-button:active { transform: translateY(1px); box-shadow: 0 3px 0 rgba(118,61,0,0.25); }
.hero-button span { font-size: 1.25rem; }
.free-shipping { color: #fff5cf; font-weight: 800; font-size: 0.85rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.45rem; color: rgba(255,255,255,0.68); font-size: 0.72rem; }
.hero-proof strong { color: var(--white); }

.hero-art { position: relative; min-height: 350px; padding: 1.1rem; display: flex; align-items: center; justify-content: center; }
.hero-art::before { content: ''; position: absolute; width: 280px; height: 280px; background: var(--gold); opacity: 0.18; border-radius: 50%; filter: blur(2px); animation: hero-glow 6s ease-in-out infinite alternate; }
@keyframes hero-glow {
  from { transform: scale(1); opacity: 0.15; }
  to { transform: scale(1.08); opacity: 0.22; }
}
.hero-art img { position: relative; width: min(100%, 390px); height: 350px; object-fit: contain; object-position: center; padding: 0; background: transparent; border: 0; border-radius: 18px; transform: none; box-shadow: 0 18px 34px rgba(45,0,3,0.3); }
.hero-art-label { position: absolute; left: 50%; bottom: 1.15rem; transform: translateX(-50%); display: flex; align-items: center; gap: 0.65rem; width: max-content; max-width: calc(100% - 2rem); padding: 0.55rem 0.75rem; border: 1px solid rgba(255,201,40,0.8); border-radius: 10px; background: rgba(36,19,19,0.9); color: #fff9e5; box-shadow: 0 6px 16px rgba(36,0,0,0.28); }
.hero-art-label span { color: var(--gold); font-size: 0.62rem; font-weight: 900; letter-spacing: 0.08em; white-space: nowrap; }
.hero-art-label strong { color: var(--white); font-size: 1rem; white-space: nowrap; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1.1rem 0 2.5rem; padding: 0.8rem; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,0.75); box-shadow: 0 8px 28px rgba(100, 28, 20, 0.06); }
.trust-item { display: flex; align-items: center; gap: 0.65rem; padding: 0.45rem 0.8rem; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: var(--gold-soft); font-size: 1.1rem; }
.trust-item strong, .trust-item small { display: block; }
.trust-item strong { font-size: 0.84rem; }
.trust-item small { margin-top: 0.15rem; color: var(--muted); font-size: 0.7rem; }

.promo-section { scroll-margin-top: 90px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.1rem; }
.section-eyebrow { color: var(--red-bright); }
.section-heading h2 { margin: 0.2rem 0 0.2rem; font-size: clamp(1.7rem, 4vw, 2.45rem); letter-spacing: -0.06em; }
.section-heading p:not(.section-eyebrow) { margin: 0; color: var(--muted); font-size: 0.92rem; }
.flash-counter { flex: 0 1 315px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'label label' 'name timer'; gap: 0.25rem 0.75rem; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--white); box-shadow: 0 6px 18px rgba(100,28,20,0.08); }
.flash-counter > span { grid-area: label; overflow: hidden; color: var(--red-bright); font-size: 0.6rem; font-weight: 900; letter-spacing: 0.08em; text-overflow: ellipsis; white-space: nowrap; }
.flash-counter > strong { grid-area: timer; align-self: end; margin: 0; color: var(--red-deep); font-size: 0.7rem; letter-spacing: 0.08em; text-align: right; white-space: nowrap; }
.flash-counter > strong b { display: inline-block; margin-left: 0.2rem; color: var(--ink); font-size: 1.35rem; letter-spacing: 0.06em; }
.flash-counter small { grid-area: name; align-self: end; min-width: 0; margin: 0; overflow: hidden; color: var(--muted); font-size: 0.66rem; text-overflow: ellipsis; white-space: nowrap; }

.search-bar { position: relative; margin: 0 0 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 8px 22px rgba(100,28,20,0.06); }
.search-icon { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-52%); color: var(--red-bright); font-size: 1.45rem; line-height: 1; pointer-events: none; }
.search-bar input { width: 100%; padding: 0.8rem 0.8rem 0.8rem 2.35rem; border: none; border-radius: 12px; box-shadow: none; background: transparent; transition: background .2s ease; }
.search-bar input:focus { outline: none; background: rgba(255,255,255,0.6); }

.promo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.product-card { position: relative; border: 1px solid rgba(107,23,23,0.08); border-radius: 18px; box-shadow: 0 7px 22px rgba(90, 21, 17, 0.08); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.product-card:hover { transform: translateY(-6px); border-color: rgba(224,32,32,0.32); box-shadow: 0 18px 36px rgba(122, 17, 17, 0.16); }
.product-card.flash-card { border: 2px solid var(--red-bright); box-shadow: 0 9px 30px rgba(224,32,32,0.2); }
.product-card.flash-card::before { content: '⚡'; position: absolute; top: -11px; right: 13px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--red-deep); box-shadow: 0 3px 0 rgba(118,61,0,0.2); animation: flash-badge-pulse 2s infinite; }
@keyframes flash-badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.product-image { position: relative; height: 210px; background: #fff; overflow: hidden; }
.product-image img { object-fit: contain; padding: 0.7rem; transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.product-card:hover .product-image img { transform: scale(1.08); }
.product-badge { position: absolute; top: 0.7rem; left: 0.7rem; padding: 0.35rem 0.52rem; border-radius: 7px; background: var(--red-bright); color: var(--white); font-size: 0.61rem; font-weight: 900; letter-spacing: 0.07em; box-shadow: 0 3px 0 rgba(117,0,0,0.22); }
.flash-card .product-badge { background: var(--gold); color: var(--red-deep); }
.stock-pill { position: absolute; right: 0.65rem; bottom: 0.65rem; padding: 0.27rem 0.42rem; border-radius: 6px; background: rgba(36,19,19,0.82); color: var(--white); font-size: 0.6rem; font-weight: 800; }
.stock-pill.sold-out { background: #5f5f5f; }
.product-info { padding: 0.9rem; }
.product-kicker { margin: 0 0 0.25rem; color: var(--red-bright); font-size: 0.64rem; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase; }
.product-name { min-height: 2.55rem; font-size: 1.03rem; line-height: 1.2; letter-spacing: -0.025em; }
.product-description { min-height: 2.35rem; margin: 0.35rem 0 0.85rem; color: var(--muted); font-size: 0.74rem; line-height: 1.35; }
.product-buy { display: flex; align-items: end; justify-content: space-between; gap: 0.5rem; }
.product-price { margin: 0; font-size: 1.3rem; line-height: 1; color: var(--red-deep); }
.product-price small { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.6rem; font-weight: 700; }
.btn-add { margin-top: 0; padding: 0.66rem 0.7rem; border-radius: 9px; font-size: 0.78rem; white-space: nowrap; }
.empty-promos { grid-column: 1 / -1; padding: 4rem 1rem; text-align: center; }
.empty-promos span { font-size: 3rem; }
.empty-promos h3 { margin-bottom: 0.25rem; }
.empty-promos p { color: var(--muted); }

.empty-search {
  grid-column: 1 / -1;
  display: none;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
  background: var(--white);
  border-radius: 18px;
  border: 1px dashed var(--line);
}
.empty-search.is-visible { display: grid; }
.empty-search span { font-size: 3rem; margin-bottom: 0.5rem; }
.empty-search h3 { margin: 0 0 0.25rem; color: var(--ink); }
.empty-search p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.cart-fab { bottom: 1rem; right: 1rem; left: auto; transform: none; width: 56px; height: 56px; border-radius: 50%; background: rgba(143, 13, 19, 0.96); border: none; padding: 0; box-shadow: 0 8px 28px rgba(100,0,0,0.35); }
.cart-count { top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; font-size: 0.7rem; }
.cart-drawer { max-width: 620px; left: 50%; right: auto; width: min(100%, 620px); transform: translate(-50%, 110%); }
.cart-drawer.open { transform: translate(-50%, 0); }
.drawer-eyebrow { color: var(--red-bright); }
.cart-header h2 { margin-top: 0.2rem; font-size: 1.35rem; }
.cart-shipping-note { margin-bottom: 0.7rem; color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.cart-closed-notice {
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--red-deep);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.checkout-card { border: 1px solid var(--line); box-shadow: 0 18px 60px rgba(47,0,0,0.25); }
.checkout-card h2 { margin: 0.25rem 0 0.35rem; letter-spacing: -0.04em; }
.checkout-intro { margin: 0 0 1.25rem; color: var(--muted); font-size: 0.85rem; }
.checkout-actions .btn { flex: 1; }

.store-footer { max-width: 1120px; margin: 2rem auto 0; padding: 1.25rem; display: flex; align-items: center; gap: 0.7rem; border-top: 1px solid var(--line); color: var(--muted); }
.store-footer img { width: 40px; height: 40px; border-radius: 10px; }
.store-footer div { flex: 1; }
.store-footer strong, .store-footer span { display: block; }
.store-footer strong { color: var(--ink); }
.store-footer span { font-size: 0.72rem; }
.store-footer a { color: var(--red-bright); font-size: 0.8rem; font-weight: 900; text-decoration: none; transition: color .2s ease; }
.store-footer a:hover { color: var(--red-deep); }

/* PWA install banner */
.pwa-install-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 600;
  background: var(--white);
  color: var(--ink);
  padding: 0.75rem 1rem;
  box-shadow: 0 8px 30px rgba(36,0,0,0.15);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: banner-slide .35s ease;
}
.pwa-install-banner.is-visible { display: flex; }
@keyframes banner-slide {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.pwa-install-content { display: flex; align-items: center; gap: 0.75rem; }
.pwa-install-icon { width: 44px; height: 44px; border-radius: 10px; }
.pwa-install-content strong { display: block; font-size: 0.95rem; }
.pwa-install-content small { display: block; color: var(--muted); font-size: 0.78rem; }
.pwa-install-actions { display: flex; align-items: center; gap: 0.5rem; }
.pwa-install-btn {
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform .1s ease;
}
.pwa-install-btn:active { transform: scale(0.95); }
.pwa-install-btn:not(.pwa-install-btn-text) { background: var(--red); color: var(--white); }
.pwa-install-btn-text { background: transparent; color: var(--muted); }

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.hero-art img, .hero-copy > * {
  opacity: 0;
  animation: hero-in .8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.1s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.2s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.3s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.4s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.5s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.6s; }
.hero-art img { animation-delay: 0.25s; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 920px) {
  .promo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .pwa-install-banner { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 0.75rem; }
  .pwa-install-actions { width: 100%; }
  .pwa-install-actions .pwa-install-btn { flex: 1; }
  .promo-hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-art { order: -1; min-height: 0; padding: 0.6rem 1rem 0; }
  .hero-art::before { display: none; }
  .hero-art img { width: min(72vw, 280px); height: auto; aspect-ratio: 1; object-position: center; }
  .hero-art-label { display: none; }
  .hero-copy { padding: 0.75rem 1rem 1rem; }
  .hero-eyebrow { font-size: 0.58rem; }
  .hero-copy h2 { margin: 0.35rem 0 0.5rem; font-size: clamp(1.75rem, 8vw, 2.4rem); line-height: 0.95; }
  .hero-copy > p { font-size: 0.85rem; line-height: 1.3; }
  .hero-offer { margin: 0.7rem 0 0.7rem; padding: 0.55rem 0.7rem; }
  .hero-offer strong { font-size: 0.9rem; }
  .hero-offer b { font-size: 1.25rem; }
  .hero-actions { margin-top: 0.75rem; }
  .hero-proof { margin-top: 0.75rem; }
  .hero-button { padding: 0.7rem 0.9rem; font-size: 0.85rem; }
  .free-shipping { font-size: 0.78rem; }
  .trust-strip { grid-template-columns: 1fr; gap: 0.25rem; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 0.65rem; }
  .trust-item:last-child { border-bottom: 0; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .flash-counter { flex: none; width: 100%; grid-template-areas: 'label timer' 'name timer'; align-items: center; padding: 0.6rem 0.75rem; gap: 0.15rem 0.5rem; }
  .flash-counter > strong { align-self: center; font-size: 0.6rem; }
  .flash-counter > strong b { font-size: 1.08rem; }
  .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .product-image { height: 160px; }
  .product-info { padding: 0.7rem; }
  .product-name { min-height: 0; font-size: 0.9rem; }
  .product-description { min-height: 0; font-size: 0.69rem; }
  .product-buy { align-items: stretch; flex-direction: column; }
  .product-price { font-size: 1.15rem; }
  .btn-add { width: 100%; }
  .store-main { padding-bottom: 5.5rem; }
  .store-footer { margin-bottom: 4rem; }
  .cart-drawer { height: min(65dvh, 560px); max-height: calc(100dvh - 1rem); }
  .cart-fab { width: 50px; height: 50px; }
  .cart-fab-icon { width: 22px; height: 22px; }
}

@media (max-width: 400px) {
  .store-header { padding-inline: 0.75rem; }
  .store-main { padding-inline: 0.75rem; }
  .store-title { font-size: 1.25rem; }
  .store-meta { font-size: 0.68rem; }
  .header-cta { padding: 0.55rem 0.7rem; font-size: 0.72rem; }
  .product-image { height: 145px; }
  .product-badge { left: 0.45rem; top: 0.45rem; font-size: 0.52rem; }
}
