:root {
  color-scheme: light;
  --haode-orange: #ff5a0a;
  --haode-orange-dark: #e74800;
  --haode-green: #0f8f57;
  --haode-green-dark: #087443;
  --haode-black: #111111;
  --haode-text: #202124;
  --haode-muted: #6f7278;
  --haode-bg: #f4f6f3;
  --haode-surface: #ffffff;
  --haode-border: #e8eaed;
  --haode-success: #16a05d;
  --haode-danger: #d92d20;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 24px 70px rgba(25, 38, 30, 0.12);
  --shadow-card: 0 14px 34px rgba(25, 38, 30, 0.08);
  --bottom-nav-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(15, 143, 87, 0.1), transparent 28rem),
    radial-gradient(circle at 100% 12%, rgba(255, 90, 10, 0.12), transparent 30rem),
    linear-gradient(180deg, #fbfcfa 0%, var(--haode-bg) 46%, #eef3ef 100%);
  color: var(--haode-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}

body.is-webview {
  --bottom-nav-height: 74px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
a.disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid rgba(255, 90, 10, 0.34);
  outline-offset: 3px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-left)) 10px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(15, 143, 87, 0.1);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.is-webview .app-header {
  min-height: 58px;
  padding-top: calc(6px + env(safe-area-inset-top));
  padding-bottom: 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 90, 10, 0.16);
  background: #fff;
  object-fit: cover;
}

.is-webview .brand img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.brand span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.brand strong {
  color: var(--haode-black);
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
}

.brand small {
  color: var(--haode-muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-action {
  position: relative;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--haode-border);
  border-radius: 14px;
  background: var(--haode-surface);
  color: var(--haode-black);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.icon-action:hover {
  border-color: rgba(255, 90, 10, 0.28);
  box-shadow: 0 10px 26px rgba(25, 38, 30, 0.08);
  transform: translateY(-1px);
}

.icon-action:active,
.primary-button:active,
.secondary-button:active,
.text-button:active,
.outline-button:active,
.add-button:active,
.whatsapp-button:active,
.category-card:active,
.product-card:active,
.promo-card:active {
  transform: translateY(1px) scale(0.99);
}

.icon-action svg,
.bottom-nav svg,
.category-card svg,
.benefit-card svg,
.detail-mini-action svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.cart-action span,
.bottom-nav strong {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--haode-orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.app-shell {
  width: min(100% - 28px, 1180px);
  margin: 0 auto;
}

.install-banner,
.network-state,
.loading-state,
.empty-state {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid var(--haode-border);
  border-radius: var(--radius-lg);
  background: var(--haode-surface);
  color: var(--haode-muted);
}

.install-banner[hidden],
.network-state[hidden],
[hidden] {
  display: none !important;
}

.install-banner strong,
.network-state strong,
.empty-state strong {
  color: var(--haode-black);
}

.install-button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--haode-black);
  color: #fff;
  padding: 0 18px;
  font-weight: 850;
}

.install-banner.ios {
  display: none;
}

.page-stack {
  display: grid;
  gap: 28px;
  padding: 16px 0 calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 28px);
}

.hero-banner {
  position: relative;
  display: grid;
  gap: 18px;
  overflow: hidden;
  min-height: 424px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 14%, rgba(255, 90, 10, 0.34), transparent 26%),
    radial-gradient(circle at 18% 84%, rgba(15, 143, 87, 0.3), transparent 28%),
    linear-gradient(145deg, #101312 0%, #18231c 50%, #070907 100%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.hero-banner::before {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius-xl) - 8px);
  content: "";
  pointer-events: none;
}

.hero-banner::after {
  position: absolute;
  right: -96px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 90, 10, 0.18);
  content: "";
  filter: blur(10px);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 14px;
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  padding: 0 12px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy h1 {
  margin: 0;
  max-width: 9.5em;
  font-size: clamp(2.5rem, 9vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 470px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.48;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.hero-proof span {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.78);
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 32px;
}

.hero-actions,
.section-actions,
.detail-actions,
.offer-actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.primary-button,
.secondary-button,
.text-button,
.outline-button,
.add-button,
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), background 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-button,
.add-button {
  border: 0;
  background: linear-gradient(135deg, var(--haode-orange) 0%, #ff742d 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 90, 10, 0.22);
}

.primary-button:hover,
.add-button:hover {
  box-shadow: 0 16px 32px rgba(255, 90, 10, 0.28);
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.secondary-button:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.text-button,
.outline-button {
  border: 1px solid var(--haode-border);
  background: #fff;
  color: var(--haode-black);
}

.outline-button {
  border-color: rgba(255, 90, 10, 0.34);
  color: var(--haode-orange-dark);
}

.text-button:hover,
.outline-button:hover {
  border-color: rgba(15, 143, 87, 0.24);
  box-shadow: 0 12px 26px rgba(25, 38, 30, 0.07);
  transform: translateY(-1px);
}

.hero-media {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 210px;
  place-items: center;
}

.hero-media::before {
  position: absolute;
  inset: auto 5% 0;
  height: 66%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  content: "";
  filter: blur(10px);
}

.hero-product-frame {
  position: relative;
  display: grid;
  width: min(92%, 430px);
  min-height: 250px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 245, 0.86)),
    radial-gradient(circle at 28% 18%, rgba(15, 143, 87, 0.18), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 28px 60px rgba(0, 0, 0, 0.34);
}

.hero-media img {
  position: relative;
  width: 86%;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.28));
}

.section-block {
  display: grid;
  gap: 14px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2,
.detail-copy h1,
.list-title h1 {
  margin: 0;
  color: var(--haode-black);
  line-height: 1.08;
}

.section-head h2 {
  font-size: clamp(1.35rem, 4vw, 2rem);
}

.section-head p,
.list-title p,
.detail-copy p,
.cart-head span {
  margin: 6px 0 0;
  color: var(--haode-muted);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.45;
}

.category-rail {
  display: grid;
  grid-auto-columns: minmax(132px, 1fr);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x mandatory;
}

.category-rail::-webkit-scrollbar,
.product-rail::-webkit-scrollbar,
.thumb-strip::-webkit-scrollbar {
  display: none;
}

.category-card {
  display: grid;
  min-height: 138px;
  align-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--haode-border);
  border-radius: var(--radius-lg);
  background: var(--haode-surface);
  color: var(--haode-black);
  box-shadow: var(--shadow-card);
  scroll-snap-align: start;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover {
  border-color: rgba(15, 143, 87, 0.22);
  box-shadow: 0 18px 42px rgba(25, 38, 30, 0.11);
  transform: translateY(-2px);
}

.category-card.is-active {
  border-color: rgba(255, 90, 10, 0.52);
  box-shadow: inset 0 -4px 0 var(--haode-orange), var(--shadow-card);
}

.category-card svg {
  width: 28px;
  height: 28px;
  color: var(--haode-green);
}

.category-card strong,
.category-card span {
  display: block;
}

.category-card strong {
  font-size: 1rem;
  line-height: 1.14;
}

.category-card span {
  margin-top: 5px;
  color: var(--haode-muted);
  font-size: 0.78rem;
  font-weight: 720;
}

.promo-panel,
.app-order-panel {
  display: grid;
  gap: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 143, 87, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
}

.promo-panel {
  padding: 18px;
}

.promo-grid {
  display: grid;
  grid-auto-columns: minmax(210px, 78%);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
}

.promo-grid::-webkit-scrollbar,
.app-order-steps::-webkit-scrollbar {
  display: none;
}

.promo-card {
  position: relative;
  display: grid;
  min-height: 270px;
  align-content: end;
  overflow: hidden;
  gap: 8px;
  border: 1px solid rgba(255, 90, 10, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 247, 241, 0.96) 100%);
  color: var(--haode-black);
  padding: 14px;
  scroll-snap-align: start;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 240ms cubic-bezier(0.16, 1, 0.3, 1), border-color 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-card:hover {
  border-color: rgba(255, 90, 10, 0.32);
  box-shadow: 0 18px 42px rgba(255, 90, 10, 0.14);
  transform: translateY(-2px);
}

.promo-card::before {
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 0%, rgba(15, 143, 87, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent);
  content: "";
  pointer-events: none;
}

.promo-card img {
  position: absolute;
  top: 48px;
  right: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: 122px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(25, 38, 30, 0.16));
}

.promo-label,
.promo-card strong,
.promo-price {
  position: relative;
  z-index: 1;
}

.promo-label {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: var(--haode-orange);
  color: #fff;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 900;
}

.promo-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.promo-price {
  color: var(--haode-orange-dark);
  font-size: 1rem;
  font-weight: 950;
}

.app-order-panel {
  grid-template-columns: 1fr;
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 143, 87, 0.12), transparent 22rem),
    linear-gradient(135deg, #ffffff 0%, #f1f7f3 100%);
}

.app-order-copy {
  display: grid;
  gap: 8px;
}

.app-order-copy span {
  width: fit-content;
  min-height: 28px;
  border-radius: 999px;
  background: #e8f6ee;
  color: var(--haode-green-dark);
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 28px;
}

.app-order-copy h2 {
  margin: 0;
  color: var(--haode-black);
  font-size: clamp(1.45rem, 5vw, 2.4rem);
  line-height: 1.04;
  text-wrap: balance;
}

.app-order-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--haode-muted);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.45;
}

.app-order-steps {
  display: grid;
  grid-auto-columns: minmax(210px, 78%);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.app-order-steps article {
  display: grid;
  min-height: 164px;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(15, 143, 87, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  padding: 14px;
  scroll-snap-align: start;
}

.app-order-steps svg {
  width: 25px;
  height: 25px;
  color: var(--haode-green);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-order-steps strong {
  color: var(--haode-black);
  font-size: 0.98rem;
  line-height: 1.2;
}

.app-order-steps span {
  color: var(--haode-muted);
  font-size: 0.83rem;
  font-weight: 680;
  line-height: 1.34;
}

.premium-showcase {
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 90, 10, 0.12);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 90, 10, 0.16), transparent 28%),
    linear-gradient(145deg, #141414 0%, #202124 60%, #0f0f10 100%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.premium-showcase-copy {
  display: grid;
  gap: 8px;
}

.premium-showcase-copy h2,
.app-explore-section h2 {
  margin: 0;
  line-height: 1.08;
}

.premium-showcase-copy h2 {
  font-size: clamp(1.45rem, 5vw, 2.25rem);
}

.premium-showcase-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.42;
}

.premium-showcase-grid {
  display: grid;
  grid-auto-columns: minmax(206px, 74%);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x mandatory;
}

.premium-showcase-grid::-webkit-scrollbar,
.premium-chip-rail::-webkit-scrollbar,
.trust-bar::-webkit-scrollbar {
  display: none;
}

.premium-tile {
  position: relative;
  display: grid;
  min-height: 220px;
  overflow: hidden;
  align-content: end;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  scroll-snap-align: start;
}

.premium-tile::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 20%, rgba(0, 0, 0, 0.74) 100%);
  content: "";
  z-index: 1;
}

.premium-tile img {
  position: absolute;
  inset: 12px 12px auto;
  width: calc(100% - 24px);
  height: 118px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  object-fit: contain;
  z-index: 0;
}

.premium-tile span,
.premium-tile strong {
  position: relative;
  z-index: 2;
}

.premium-tile span {
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 90, 10, 0.94);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 26px;
}

.premium-tile strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.trust-bar {
  display: grid;
  grid-auto-columns: max-content;
  grid-auto-flow: column;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x mandatory;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--haode-black);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.05);
  scroll-snap-align: start;
}

.trust-pill svg {
  width: 18px;
  height: 18px;
  color: var(--haode-orange);
}

.trust-pill strong {
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.toolbar {
  display: grid;
  gap: 12px;
}

.search-box {
  display: grid;
  gap: 6px;
}

.search-box span {
  color: var(--haode-muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.search-box input,
.select-box {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--haode-border);
  border-radius: var(--radius-md);
  background: var(--haode-surface);
  color: var(--haode-black);
  padding: 0 14px;
  font-weight: 760;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.product-rail {
  display: grid;
  grid-auto-columns: minmax(224px, 76%);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 143, 87, 0.1);
  border-radius: var(--radius-lg);
  background: var(--haode-surface);
  box-shadow: var(--shadow-card);
  scroll-snap-align: start;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 240ms cubic-bezier(0.16, 1, 0.3, 1), border-color 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  border-color: rgba(15, 143, 87, 0.24);
  box-shadow: 0 20px 44px rgba(25, 38, 30, 0.11);
  transform: translateY(-2px);
}

.product-media {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 0.9;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 16%, rgba(255, 90, 10, 0.1), transparent 36%),
    linear-gradient(180deg, #fbfcfa 0%, #eef3ef 100%);
}

.product-media img {
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.product-body {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.product-kicker,
.stock-badge,
.product-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
}

.product-kicker {
  background: #e8f6ee;
  color: var(--haode-green-dark);
}

.product-badge,
.stock-disponible {
  background: #e8f6ee;
  color: #087443;
}

.stock-bajo-pedido {
  background: #fff2ea;
  color: var(--haode-orange-dark);
}

.stock-agotado {
  background: #f1f3f4;
  color: var(--haode-muted);
}

.product-body h3 {
  display: -webkit-box;
  min-height: 2.46em;
  margin: 0;
  overflow: hidden;
  color: var(--haode-black);
  font-size: 0.96rem;
  line-height: 1.23;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.model,
.quality-spec,
.price-note {
  margin: 0;
  color: var(--haode-muted);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
}

.price-lines {
  display: grid;
  gap: 4px;
  color: var(--haode-muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.price-lines strong {
  color: var(--haode-black);
  font-size: 0.9rem;
}

.price-lines .promo-app-price strong,
.price-lines .promo-app-price {
  color: var(--haode-orange-dark);
}

.product-actions {
  margin-top: 2px;
}

.product-actions .add-button,
.product-actions .text-button {
  min-height: 42px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.product-actions .add-button {
  flex: 1 1 auto;
}

.list-title {
  display: grid;
  gap: 12px;
  padding: 18px 0 4px;
}

.back-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 44px;
  color: var(--haode-orange-dark);
  font-weight: 850;
}

.detail-layout {
  display: grid;
  gap: 18px;
}

.gallery-shell,
.detail-panel,
.cart-page-card,
.contact-card {
  border: 1px solid var(--haode-border);
  border-radius: var(--radius-xl);
  background: var(--haode-surface);
  box-shadow: var(--shadow-card);
}

.gallery-shell {
  overflow: hidden;
}

.gallery-stage,
.viewer-stage {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 0.92;
  place-items: center;
  background: linear-gradient(180deg, #f8f9fa 0%, #eef1f4 100%);
}

.detail-layout.is-flagship .gallery-stage,
.detail-layout.is-flagship .viewer-stage {
  background:
    radial-gradient(circle at 74% 24%, rgba(255, 90, 10, 0.12), transparent 28%),
    linear-gradient(145deg, #151515 0%, #242426 100%);
}

.gallery-stage img,
.viewer-stage img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.viewer-stage {
  cursor: grab;
  touch-action: pan-y;
}

.viewer-stage:active {
  cursor: grabbing;
}

.viewer-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--haode-black);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 30px;
}

.gallery-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.82);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 30px;
  z-index: 2;
}

.viewer-help {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--haode-black);
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 30px;
}

.viewer-controls {
  position: absolute;
  inset: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.viewer-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.68);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  pointer-events: auto;
}

.thumb-strip {
  display: grid;
  grid-auto-columns: 72px;
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  padding: 12px;
}

.thumb-strip button {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--haode-border);
  border-radius: var(--radius-sm);
  background: #f7f8fa;
}

.thumb-strip button.is-active {
  border-color: var(--haode-orange);
  box-shadow: inset 0 0 0 2px rgba(255, 90, 10, 0.2);
}

.thumb-strip img {
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.detail-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.detail-copy h1 {
  font-size: clamp(1.7rem, 7vw, 3.2rem);
}

.price-stack {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: #f8f9fa;
}

.price-stack span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--haode-muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.price-stack strong {
  color: var(--haode-black);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.spec-grid article {
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--haode-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.spec-grid span,
.spec-grid strong {
  display: block;
}

.spec-grid span {
  color: var(--haode-muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.spec-grid strong {
  margin-top: 5px;
  color: var(--haode-black);
  font-size: 0.93rem;
  line-height: 1.2;
}

.sticky-actions {
  position: sticky;
  bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 10px);
  z-index: 12;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--haode-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.sticky-actions .add-button,
.sticky-actions .whatsapp-outline {
  width: 100%;
  min-height: 50px;
}

.whatsapp-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(22, 160, 93, 0.42);
  border-radius: 999px;
  background: #fff;
  color: var(--haode-success);
  padding: 0 14px;
  font-weight: 850;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  background: rgba(17, 17, 17, 0.42);
}

.cart-drawer.open {
  display: block;
}

.cart-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  max-height: min(90vh, 760px);
  flex-direction: column;
  border-radius: 24px 24px 0 0;
  background: #fff;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--haode-border);
}

.cart-head h2 {
  margin: 0;
  font-size: 1.45rem;
}

.cart-items {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding: 12px 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--haode-border);
  border-radius: var(--radius-lg);
  background: #fff;
}

.cart-item img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  background: #f2f4f7;
  object-fit: contain;
}

.cart-item h3 {
  margin: 0;
  color: var(--haode-black);
  font-size: 0.96rem;
  line-height: 1.22;
}

.cart-item p {
  margin: 4px 0 0;
  color: var(--haode-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--haode-border);
  border-radius: 999px;
}

.qty-control button {
  width: 44px;
  height: 44px;
  border: 0;
  background: #f8f9fa;
  color: var(--haode-black);
  font-weight: 900;
}

.qty-control span {
  display: inline-grid;
  min-width: 40px;
  height: 44px;
  place-items: center;
  font-weight: 850;
}

.remove-button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--haode-danger);
  font-weight: 850;
}

.checkout-form {
  display: grid;
  gap: 10px;
  padding: 0 18px 12px;
  border-top: 1px solid var(--haode-border);
}

.checkout-form label {
  display: grid;
  gap: 6px;
  color: var(--haode-muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--haode-border);
  border-radius: var(--radius-md);
  background: #f8f9fa;
  color: var(--haode-black);
  padding: 10px 12px;
}

.checkout-form textarea {
  min-height: 58px;
  resize: vertical;
}

.cart-footer {
  padding: 14px 18px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--haode-border);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-total span,
.cart-footer p {
  color: var(--haode-muted);
  font-weight: 700;
}

.cart-total strong {
  color: var(--haode-black);
  font-size: 1.35rem;
}

.cart-footer p {
  margin: 8px 0 12px;
  font-size: 0.82rem;
  line-height: 1.35;
}

.whatsapp-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  background: var(--haode-success);
  color: #fff;
}

.whatsapp-button.disabled {
  pointer-events: none;
  background: #cbd5cf;
  color: #fff;
}

.cart-page-card,
.contact-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.cart-items-page {
  display: grid;
  gap: 10px;
}

.bottom-nav {
  position: fixed;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  min-height: 66px;
  padding: 8px;
  border: 1px solid rgba(232, 234, 237, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.12);
  backdrop-filter: blur(18px);
}

.bottom-nav a,
.bottom-nav button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 50px;
  place-items: center;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--haode-muted);
  font-size: 0.72rem;
  font-weight: 800;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), background 200ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-nav a.is-active,
.bottom-nav button.is-active {
  background: linear-gradient(180deg, #fff2ea 0%, #e8f6ee 100%);
  color: var(--haode-orange-dark);
}

.bottom-nav a:active,
.bottom-nav button:active {
  transform: scale(0.98);
}

.bottom-nav svg {
  width: 21px;
  height: 21px;
}

.bottom-nav span {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav strong {
  top: 1px;
  right: calc(50% - 28px);
  min-width: 18px;
  height: 18px;
  font-size: 0.64rem;
}

.app-explore-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(15, 143, 87, 0.1);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-card);
}

.app-explore-section h2 {
  color: var(--haode-black);
  font-size: clamp(1.25rem, 4vw, 1.8rem);
}

.app-explore-section p {
  max-width: 560px;
  margin: 6px 0 0;
  color: var(--haode-muted);
  font-size: 0.98rem;
  font-weight: 720;
  line-height: 1.38;
}

.premium-chip-rail {
  display: grid;
  grid-auto-columns: max-content;
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
}

.premium-chip {
  display: inline-grid;
  grid-template-columns: 32px max-content;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px 0 10px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
  color: var(--haode-black);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.05);
  scroll-snap-align: start;
}

.premium-chip span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: #f1f3f4;
  color: var(--haode-muted);
  font-size: 0.68rem;
  font-weight: 950;
}

.premium-chip strong {
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.premium-chip.is-featured {
  border-color: rgba(255, 90, 10, 0.34);
  background: #fff2ea;
}

.premium-chip.is-featured span {
  background: var(--haode-orange);
  color: #fff;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.skeleton-card {
  min-height: 248px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #eef1f4 0%, #fff 45%, #eef1f4 100%);
  background-size: 220% 100%;
  animation: skeleton 1.4s ease infinite;
}

@keyframes skeleton {
  to {
    background-position: -220% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 370px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero-banner {
    padding: 20px;
  }

  .hero-copy h1 {
    font-size: clamp(2.18rem, 12vw, 2.65rem);
  }

  .product-grid,
  .related-grid,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .sticky-actions {
    grid-template-columns: 1fr;
  }

  .product-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (min-width: 640px) {
  .benefit-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-row {
    grid-template-columns: 1fr 220px;
    align-items: end;
  }

  .product-grid,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-rail {
    grid-auto-columns: minmax(238px, 32%);
  }

  .promo-grid {
    grid-auto-columns: minmax(230px, 42%);
  }

  .app-order-steps {
    grid-auto-columns: minmax(220px, 34%);
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 28px;
  }

  .app-header {
    padding-right: max(24px, calc((100vw - 1180px) / 2));
    padding-left: max(24px, calc((100vw - 1180px) / 2));
  }

  .page-stack {
    gap: 32px;
    padding-top: 24px;
    padding-bottom: 36px;
  }

  .hero-banner {
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
    align-items: center;
    min-height: 470px;
    padding: 42px;
  }

  .promo-panel,
  .app-order-panel,
  .app-explore-section {
    padding: 24px;
  }

  .promo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    overflow: visible;
    padding-bottom: 0;
  }

  .app-order-panel {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
  }

  .app-order-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    overflow: visible;
    padding-bottom: 0;
  }

  .category-rail {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    overflow: visible;
  }

  .benefit-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
    align-items: start;
  }

  .sticky-actions {
    bottom: 18px;
  }

  .cart-panel {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(460px, 100vw);
    max-height: none;
    border-radius: 24px 0 0 24px;
  }

  .bottom-nav {
    display: none;
  }
}

@media (min-width: 1040px) {
  .product-grid,
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-copy h1 {
    font-size: 4.6rem;
  }

  .page-stack {
    gap: 36px;
  }

  .hero-banner {
    min-height: 500px;
  }
}
