:root {
  --pu-black: #0a0a0a;
  --pu-white: #ffffff;
  --pu-bg: #f7f7f7;
  --pu-text: #111111;
  --pu-muted: #666666;
  --pu-line: #e6e6e6;
  --pu-yellow: #d9ef4a;
  --pu-yellow-dark: #c5da34;
  --pu-red: #e53935;
  --pu-green: #2e7d32;
  /* J D STORE — verde de marca (tienda, login, admin) */
  --jd-green: #d9ef4a;
  --jd-green-dark: #c5da34;
  --jd-green-muted: #a8c93a;
  --jd-green-soft: rgba(217, 239, 74, 0.18);
  --jd-green-glow: rgba(217, 239, 74, 0.42);
  --jd-black: #0a0a0a;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --header-h: 58px;
  --mobile-bar-h: 0px;
  --mobile-rail-h: 0px;
  --mobile-nav-h: 0px;
  --reels-top: var(--header-h);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--pu-text);
  background: var(--pu-white);
}

button,
input,
select {
  font: inherit;
}

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

.hidden {
  display: none !important;
}

.loading-screen,
.error-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.5rem;
}

.loader-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  background: var(--pu-black);
  color: var(--pu-white);
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
}

.logo-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  justify-self: center;
}

.logo-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  line-height: 1;
}

.logo-tagline {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(0.44rem, 1.5vw, 0.52rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  white-space: nowrap;
}

.site-header .logo-tagline {
  margin-top: 0.02rem;
}

.loader-logo .logo-tagline {
  color: rgba(217, 239, 74, 0.62);
  letter-spacing: 0.24em;
}

.logo-name {
  font-family: "Syne", "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1em;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--jd-green, #d9ef4a);
  text-transform: uppercase;
}

.loader-logo .logo-name {
  color: var(--jd-green, #d9ef4a);
  letter-spacing: 0.14em;
}

.error-screen {
  color: var(--pu-red);
  padding: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 58px;
  background: var(--pu-black);
  color: var(--pu-white);
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  padding: 0 0.75rem;
}

.logo {
  justify-self: center;
  font-size: 0.95rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.icon-btn {
  border: 0;
  background: transparent;
  color: inherit;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.cart-btn {
  border: 0;
  background: var(--jd-green, #d9ef4a);
  color: var(--jd-black, #0a0a0a);
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-count {
  background: var(--pu-black);
  color: var(--pu-white);
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.68rem;
  padding: 0 0.25rem;
}

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1rem 0;
  color: var(--pu-muted);
  font-size: 0.82rem;
  display: flex;
  gap: 0.35rem;
}

.page-hero {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.5rem 1rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.hero-main {
  min-width: 0;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pu-muted);
  font-weight: 600;
}

.page-hero h1 {
  margin: 0.15rem 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}

.hero-copy {
  margin: 0;
  color: var(--pu-muted);
  max-width: 560px;
  line-height: 1.5;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.hero-stats div {
  background: var(--pu-bg);
  border: 1px solid var(--pu-line);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  min-width: 0;
}

.hero-stats strong {
  display: block;
  font-size: 1rem;
}

.hero-stats span {
  color: var(--pu-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.live-stock-meta {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--pu-muted);
  line-height: 1.4;
  word-break: break-word;
}

.live-stock-meta.ok {
  color: var(--pu-green);
  font-weight: 600;
}

.live-stock-meta.warn {
  color: #b26a00;
  font-weight: 600;
}

.shop-layout {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  grid-template-areas: "catalog cart";
  gap: 1rem;
  align-items: start;
}

.filters-panel,
.cart-panel {
  background: var(--pu-white);
  border: 1px solid var(--pu-line);
  border-radius: var(--radius);
  padding: 0.9rem;
  overflow: auto;
  box-shadow: var(--shadow);
}

.filters-panel {
  position: fixed;
  top: 58px;
  left: 0;
  bottom: 0;
  width: min(360px, 92vw);
  z-index: 25;
  transform: translateX(-110%);
  transition: transform 0.22s ease;
  max-height: none;
}

.filters-panel.open {
  transform: translateX(0);
}

.cart-panel {
  grid-area: cart;
  position: sticky;
  top: 74px;
  max-height: calc(100vh - 90px);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.panel-head-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sheet-handle {
  display: none;
}

.filter-tab-bar {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  padding: 0.15rem;
  background: var(--pu-bg);
  border-radius: 999px;
}

.filter-tab {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.45rem 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pu-muted);
  cursor: pointer;
}

.filter-tab.active {
  background: var(--pu-black);
  color: var(--pu-white);
}

.filters-panel .filter-pane {
  display: none;
}

.filters-panel .filter-pane.active {
  display: block;
}

.catalog-chips {
  max-height: min(52vh, 420px);
  overflow: auto;
  padding-right: 0.15rem;
}

.chip-section + .chip-section {
  margin-top: 0.75rem;
}

.chip-section-title {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a9a00;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--pu-line);
  background: var(--pu-white);
  color: var(--pu-text);
  border-radius: 999px;
  padding: 0.32rem 0.55rem;
  font-size: 0.76rem;
  white-space: nowrap;
  cursor: pointer;
  flex: 0 0 auto;
}

.cat-chip.active {
  background: var(--pu-yellow);
  color: #000;
  border-color: var(--pu-yellow-dark);
  font-weight: 600;
}

.cat-chip-count {
  font-size: 0.68rem;
  color: var(--pu-muted);
}

.cat-chip.active .cat-chip-count {
  color: rgba(0, 0, 0, 0.65);
}

.type-filters-grid,
.price-filters-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-height: min(52vh, 420px);
  overflow: auto;
}

.type-filters-grid .check,
.price-filters-grid .check {
  width: auto;
  border-radius: 999px;
  margin: 0;
}

.filters-stock-toggle {
  margin-top: 0.65rem;
  margin-bottom: 0;
}

.mobile-category-rail-wrap {
  display: none;
}

.panel-head h2 {
  margin: 0;
  font-size: 1rem;
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--pu-muted);
  cursor: pointer;
  font-size: 0.82rem;
  text-decoration: underline;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.field label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pu-muted);
}

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--pu-line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: var(--pu-white);
}

.toggle-line {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.86rem;
  margin-bottom: 0.85rem;
}

.price-list {
  display: grid;
  gap: 0.35rem;
  max-height: 280px;
  overflow: auto;
}

.type-filters {
  max-height: 320px;
}

.catalog-topnav {
  display: flex;
  gap: 0.45rem;
  max-width: 1360px;
  margin: 0.55rem auto 0;
  padding: 0 1rem;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
}

.catalog-topnav::-webkit-scrollbar {
  display: none;
}

.catalog-topnav .cat-chip--rail {
  border-color: var(--pu-line);
  background: var(--pu-bg);
  color: var(--pu-text);
  font-weight: 600;
  padding: 0.4rem 0.75rem;
}

.catalog-topnav .cat-chip--rail.active {
  background: var(--pu-yellow);
  color: #000;
  border-color: var(--pu-yellow-dark);
}

.catalog-menu-field {
  margin-bottom: 0.75rem;
}

.catalog-menu {
  display: grid;
  gap: 0.55rem;
  max-height: 360px;
  overflow: auto;
  padding-right: 0.15rem;
}

.catalog-section {
  border: 1px solid var(--pu-line);
  border-radius: 12px;
  background: var(--pu-bg);
  overflow: hidden;
}

.catalog-section-title {
  cursor: pointer;
  list-style: none;
  padding: 0.45rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #8a9a00;
  background: #111;
}

.catalog-section-title::-webkit-details-marker {
  display: none;
}

.catalog-section-items {
  display: grid;
  gap: 0.3rem;
  padding: 0.45rem;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  text-align: left;
  border: 1px solid var(--pu-line);
  border-radius: 999px;
  padding: 0.32rem 0.55rem;
  font-size: 0.8rem;
  background: var(--pu-white);
  cursor: pointer;
}

.menu-link .count {
  margin-left: auto;
  color: var(--pu-muted);
  font-size: 0.72rem;
}

.menu-link.active {
  border-color: var(--pu-black);
  background: var(--pu-yellow);
  font-weight: 600;
}

.pu-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.12rem 0.35rem;
}

.pu-badge--new {
  background: var(--pu-yellow);
  color: var(--pu-black);
}

.pu-badge--sale {
  background: var(--pu-red);
  color: var(--pu-white);
}

.check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--pu-line);
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  font-size: 0.82rem;
  background: var(--pu-bg);
}

.check input {
  accent-color: var(--pu-black);
}

.check .count {
  margin-left: auto;
  color: var(--pu-muted);
  font-size: 0.72rem;
}

.catalog-main {
  min-width: 0;
  grid-area: catalog;
}

.catalog-toolbar {
  border: 1px solid var(--pu-line);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
  background: var(--pu-bg);
}

.results-meta {
  margin: 0;
  font-size: 0.86rem;
  color: var(--pu-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid var(--pu-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--pu-white);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-image-wrap {
  position: relative;
  background: #f2f2f2;
}

.card-image-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 0.75rem 0.75rem 0.85rem;
  display: grid;
  gap: 0.45rem;
}

.card-vendor {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pu-muted);
  font-weight: 600;
}

.card-category {
  margin: -0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--pu-muted);
}

.card h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-sku,
.product-sku {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pu-muted);
}

.product-sku {
  color: var(--pu-black);
}

.card-price {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.stock-hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--pu-green);
  font-weight: 600;
}

.size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.size-pill {
  min-width: 34px;
  border: 1px solid var(--pu-line);
  background: var(--pu-white);
  border-radius: 8px;
  padding: 0.2rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.size-pill.in {
  color: var(--pu-text);
}

.size-pill.in.active,
.size-pill.in:hover {
  background: var(--pu-black);
  color: var(--pu-white);
  border-color: var(--pu-black);
}

.size-pill.out {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
}

.variant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 0.35rem;
}

.variant-row select,
.variant-row input {
  border: 1px solid var(--pu-line);
  border-radius: 8px;
  padding: 0.4rem 0.45rem;
  font-size: 0.78rem;
  background: var(--pu-white);
  min-width: 0;
  width: 100%;
}

.variant-row select {
  text-overflow: ellipsis;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.btn-cart {
  width: 100%;
  background: var(--jd-green, #d9ef4a);
  color: var(--jd-black, #0a0a0a);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
}

.btn-cart:hover {
  background: var(--jd-green-dark, #c5da34);
}

.btn-whatsapp {
  background: var(--jd-green, #d9ef4a);
  color: var(--jd-black, #0a0a0a);
}

.btn-whatsapp:hover {
  background: var(--jd-green-dark, #c5da34);
}

.btn-whatsapp:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--jd-green-soft, rgba(217, 239, 74, 0.18));
  color: var(--pu-muted);
}

.btn-outline {
  width: 100%;
  background: transparent;
  border: 1px solid var(--pu-line);
}

.add-btn {
  margin-top: 0.15rem;
  width: 100%;
  background: var(--pu-yellow);
  color: var(--pu-black);
  border: 0;
  border-radius: 10px;
  padding: 0.62rem 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
}

.add-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.order-empty {
  color: var(--pu-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  border: 1px dashed var(--pu-line);
  border-radius: 12px;
  padding: 0.8rem;
  margin-bottom: 0.65rem;
}

.order-group {
  border: 1px solid var(--pu-line);
  border-left: 3px solid var(--jd-green, #d9ef4a);
  border-radius: 12px;
  padding: 0.65rem;
  margin-bottom: 0.65rem;
  background: var(--pu-bg);
}

.order-group h3 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  color: var(--jd-black, #0a0a0a);
}

.cart-panel-head h2 {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.cart-panel .order-empty {
  font-size: 0.84rem;
  color: var(--pu-muted);
  line-height: 1.45;
  padding: 0.35rem 0;
}

.order-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 0.45rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--pu-line);
}

.order-line:first-of-type {
  border-top: 0;
}

.order-line img {
  width: 44px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--pu-line);
}

.order-line .title {
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 600;
}

.order-line .meta {
  color: var(--pu-muted);
  font-size: 0.72rem;
}

.order-line-controls input {
  width: 46px;
  text-align: center;
  border: 1px solid var(--pu-line);
  border-radius: 8px;
  padding: 0.2rem;
}

.order-line-controls .btn-danger {
  border: 0;
  background: #ffecec;
  color: var(--pu-red);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
}

.totals {
  display: grid;
  gap: 0.35rem;
  font-size: 0.84rem;
  margin: 0.5rem 0;
}

.totals .grand {
  font-size: 1rem;
  font-weight: 800;
  color: var(--jd-black, #0a0a0a);
  padding: 0.45rem 0.55rem;
  margin-top: 0.15rem;
  border-radius: 10px;
  background: var(--jd-green-soft, rgba(217, 239, 74, 0.18));
  border: 1px solid rgba(217, 239, 74, 0.35);
}

.cart-panel-actions .btn-outline {
  font-weight: 600;
  color: var(--pu-text);
}

.cart-panel-actions .btn-outline:hover {
  border-color: var(--jd-green-muted, #a8c93a);
  background: var(--jd-green-soft, rgba(217, 239, 74, 0.12));
}

.order-actions {
  display: grid;
  gap: 0.45rem;
}

.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.2rem 1rem 4rem;
  border-top: 1px solid var(--pu-line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--pu-muted);
  font-size: 0.82rem;
}

.site-footer strong {
  color: var(--pu-text);
  letter-spacing: 0.05em;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 20;
}

.cart-panel.cart-flash {
  animation: cartFlash 0.7s ease;
}

@keyframes cartFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 239, 74, 0.8);
  }
  100% {
    box-shadow: var(--shadow);
  }
}

.mobile-only {
  display: grid;
}

body.no-scroll {
  overflow: hidden;
}

@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }
}

@media (min-width: 900px) {
  .page-hero {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
  }

  .mobile-category-rail-wrap {
    display: none !important;
  }

  :root {
    --mobile-rail-h: 0px;
  }
}

@media (min-width: 1360px) {
  .shop-layout {
    grid-template-columns: 292px minmax(0, 1fr) 320px;
    grid-template-areas: "filters catalog cart";
  }

  .filters-panel {
    grid-area: filters;
    position: sticky;
    top: 74px;
    width: auto;
    max-height: calc(100vh - 90px);
    transform: none;
    z-index: 1;
  }

  .filters-panel.open {
    transform: none;
  }

  .mobile-only {
    display: none;
  }
}

.ig-bottom-nav {
  display: none;
}

.mobile-panel-search {
  display: none;
}

.mobile-browse-bar {
  display: none;
}

.app-top {
  position: relative;
}

.cart-label {
  display: inline;
}

.reels-feed,
.reels-empty,
.reels-counter {
  display: none;
}

@media (max-width: 899px) {
  :root {
    --mobile-gap: clamp(0.45rem, 2vw, 0.7rem);
    --mobile-rail-h: 52px;
    --mobile-nav-h: calc(3.35rem + env(safe-area-inset-bottom, 0px));
    --mobile-nav-clear: calc(3.85rem + env(safe-area-inset-bottom, 0px));
    --mobile-glass: rgba(10, 10, 10, 0.86);
    --mobile-float-border: 1px solid rgba(255, 255, 255, 0.1);
    --mobile-float-shadow: 0 6px 28px rgba(0, 0, 0, 0.32), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    --mobile-top-chrome: 0.55rem;
    --reels-top: calc(var(--header-h) + var(--mobile-top-chrome) + var(--mobile-gap));
  }

  body.mobile-reels,
  body.mobile-browse {
    --header-h: 52px;
  }

  body.mobile-reels .app-top,
  body.mobile-browse .app-top {
    position: relative;
    flex-shrink: 0;
    z-index: 30;
    background: transparent;
    pointer-events: none;
    padding: max(var(--mobile-gap), env(safe-area-inset-top, 0px)) var(--mobile-gap) 0.35rem;
  }

  body.mobile-reels .app-top *,
  body.mobile-browse .app-top * {
    pointer-events: auto;
  }

  body.mobile-reels .site-header,
  body.mobile-browse .site-header {
    position: relative;
    height: var(--header-h);
    grid-template-columns: 1fr;
    padding: 0.25rem 0.5rem 0;
    background: var(--mobile-glass);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-radius: 14px 14px 10px 10px;
    border: var(--mobile-float-border);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
  }

  body.mobile-reels .header-menu-btn,
  body.mobile-reels .header-search-link,
  body.mobile-reels .desktop-header-actions,
  body.mobile-browse .header-menu-btn,
  body.mobile-browse .header-search-link,
  body.mobile-browse .desktop-header-actions {
    display: none;
  }

  body.mobile-reels .logo-brand,
  body.mobile-browse .logo-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    justify-self: center;
    font-size: clamp(1rem, 4vw, 1.12rem);
    letter-spacing: 0.08em;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
    padding: 0.2rem 0.35rem;
    border-radius: 0;
    background: transparent;
    border: 0;
    backdrop-filter: none;
  }

  body.mobile-reels .logo-brand .logo-tagline,
  body.mobile-browse .logo-brand .logo-tagline {
    color: rgba(255, 255, 255, 0.5);
    text-shadow: none;
    font-size: clamp(0.4rem, 1.4vw, 0.48rem);
  }

  body.mobile-reels .mobile-category-rail-wrap,
  body.mobile-browse .mobile-category-rail-wrap {
    display: block;
    margin-top: 0.28rem;
    padding: 0.28rem;
    border-radius: 10px 10px 14px 14px;
    background: var(--mobile-glass);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: var(--mobile-float-border);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--mobile-float-shadow);
  }

  .mobile-category-rail {
    display: flex;
    gap: clamp(0.28rem, 1.5vw, 0.4rem);
    overflow-x: auto;
    padding: 0.12rem 0.2rem;
    scroll-padding-inline: 0.35rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-category-rail::-webkit-scrollbar {
    display: none;
  }

  .tiktok-tab {
    border: 0;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.72rem, 2.8vw, 0.8rem);
    font-weight: 700;
    padding: 0.38rem 0.68rem;
    cursor: pointer;
    white-space: nowrap;
    scroll-snap-align: start;
    flex: 0 0 auto;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  }

  .tiktok-tab.active {
    color: #000;
    background: var(--pu-yellow);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: none;
  }

  .tiktok-tab .pu-badge {
    margin-left: 0.25rem;
    vertical-align: middle;
    padding: 0.1rem 0.32rem;
    font-size: 0.58rem;
  }

  .tiktok-tab.active .pu-badge--new {
    background: #000;
    color: var(--pu-yellow);
  }

  .tiktok-tab.active .pu-badge--sale {
    background: var(--pu-red);
    color: #fff;
  }

  .mobile-category-rail .cat-chip--rail {
    border-color: #333;
    background: #111;
    color: #fff;
    padding: 0.38rem 0.7rem;
    scroll-snap-align: start;
  }

  .mobile-category-rail .cat-chip--rail.active {
    background: var(--pu-yellow);
    color: #000;
    border-color: var(--pu-yellow);
  }

  .filters-panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: min(78dvh, 680px);
    border-radius: 18px 18px 0 0;
    transform: translateY(110%);
    transition: transform 0.28s ease;
    padding-top: 0.35rem;
  }

  .filters-panel.open {
    transform: translateY(0);
  }

  .filters-panel.sheet-open {
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
  }

  .sheet-handle {
    display: block;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #ccc;
    margin: 0.15rem auto 0.55rem;
  }

  .filters-search-field {
    display: none !important;
  }

  .catalog-chips {
    max-height: min(46dvh, 360px);
  }

  body.mobile-reels .page-hero,
  body.mobile-reels .breadcrumb,
  body.mobile-reels .catalog-topnav,
  body.mobile-reels .catalog-toolbar,
  body.mobile-reels .site-footer {
    display: none;
  }

  body.mobile-reels {
    overflow: hidden;
    height: 100dvh;
    background: #050505;
  }

  body.mobile-reels #app.site {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #050505;
  }

  body.mobile-reels .shop-layout {
    padding: 0;
    max-width: none;
    gap: 0;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  body.mobile-reels .catalog-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #050505;
  }

  .ig-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: var(--mobile-gap);
    right: var(--mobile-gap);
    bottom: max(0.45rem, env(safe-area-inset-bottom, 0px));
    width: auto;
    z-index: 35;
    padding: 0.32rem 0.28rem;
    background: var(--mobile-glass);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: var(--mobile-float-border);
    border-radius: 999px;
    box-shadow: var(--mobile-float-shadow);
  }

  .ig-nav-btn {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.58);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    font-size: clamp(0.58rem, 2.2vw, 0.62rem);
    font-weight: 600;
    padding: 0.32rem 0.2rem;
    cursor: pointer;
    position: relative;
    border-radius: 999px;
    transition: color 0.18s ease, background 0.18s ease;
  }

  .ig-nav-btn.active {
    color: #000;
    background: var(--jd-green, #d9ef4a);
    max-width: 4.1rem;
    width: 100%;
    margin-inline: auto;
  }

  .ig-nav-btn--link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.58);
  }

  .ig-nav-btn span:not(.ig-nav-badge) {
    font-size: clamp(0.52rem, 2vw, 0.58rem);
  }

  .ig-nav-btn.active svg {
    color: #000;
  }

  .ig-nav-btn.active .ig-nav-badge {
    background: #000;
    color: var(--jd-green, #d9ef4a);
  }

  .ig-nav-btn.has-filters::after {
    content: "";
    position: absolute;
    top: 0.25rem;
    right: calc(50% - 18px);
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--jd-green, #d9ef4a);
  }

  .ig-nav-badge {
    position: absolute;
    top: 0.15rem;
    right: calc(50% - 22px);
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--jd-green, #d9ef4a);
    color: #000;
    font-size: 0.58rem;
    font-weight: 800;
    display: grid;
    place-items: center;
  }

  .ig-nav-badge[hidden] {
    display: none !important;
  }

  .mobile-panel-search {
    display: block;
    margin-bottom: 0.75rem;
  }

  .mobile-panel-search-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pu-muted);
    margin-bottom: 0.35rem;
  }

  .mobile-panel-search-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    border: 1px solid var(--pu-line);
    background: var(--pu-bg);
  }

  .mobile-panel-search-row input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: 0.92rem;
  }

  .filters-panel .mobile-panel-search {
    display: block;
  }

  .reels-feed {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: auto;
    scroll-padding-top: 0;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    background: #050505;
  }

  .reels-feed[hidden] {
    display: none !important;
  }

  .reels-slide {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    background: #050505;
  }

  .reels-frame {
    position: relative;
    flex: 1 1 0;
    min-height: 160px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0.35rem var(--mobile-gap) 0.2rem;
    background: radial-gradient(ellipse at 50% 12%, #1a1a1a 0%, #0a0a0a 52%, #050505 100%);
  }

  .reels-gallery-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 140px;
    overflow: hidden;
    border-radius: 12px;
    touch-action: pan-y;
  }

  .reels-gallery-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
  }

  .reels-gallery-slide {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    min-height: inherit;
    overflow: hidden;
  }

  .reels-gallery-slide.active {
    display: flex;
  }

  .reels-gallery-nav {
    display: none !important;
  }

  .reels-gallery-photo-badge {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 8;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    pointer-events: none;
  }

  .reels-scroll-sentinel {
    height: 1px;
    width: 100%;
    flex-shrink: 0;
    pointer-events: none;
    scroll-snap-align: none;
  }

  .reels-gallery-nav:disabled {
    opacity: 0.25;
    pointer-events: none;
  }

  .reels-gallery-nav--prev {
    left: 0.45rem;
  }

  .reels-gallery-nav--next {
    right: 0.45rem;
  }

  .reels-gallery-dots {
    position: absolute;
    left: 50%;
    bottom: 0.7rem;
    transform: translateX(-50%);
    z-index: 7;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    pointer-events: auto;
    max-width: calc(100% - 2rem);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .reels-gallery-dots::-webkit-scrollbar {
    display: none;
  }

  .reels-gallery-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border: none;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
  }

  .reels-gallery-dot.active {
    width: 22px;
    background: var(--pu-yellow);
  }

  .reels-frame::before {
    content: "";
    position: absolute;
    inset: 0.28rem var(--mobile-gap) 0.15rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    pointer-events: none;
  }

  .reels-gallery-slide .reels-media {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .reels-gallery-slide .reels-media.reels-media--loading {
    opacity: 0.55;
  }

  .reels-slide--wide .reels-media {
    object-position: center 42%;
  }

  .reels-overlay {
    flex: 0 0 auto;
    z-index: 2;
    padding: 0.6rem var(--mobile-gap) calc(0.55rem + var(--mobile-nav-clear));
    color: #fff;
    background: linear-gradient(180deg, rgba(14, 14, 14, 0.98) 0%, #050505 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .reels-sku {
    margin: 0 0 0.12rem;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pu-yellow);
  }

  .reels-meta {
    margin: 0;
    font-size: 0.72rem;
    color: #d9d9d9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .reels-title {
    margin: 0.2rem 0 0.28rem;
    font-size: clamp(0.92rem, 3.8vw, 1rem);
    line-height: 1.25;
    font-weight: 700;
  }

  .reels-price {
    margin: 0 0 0.38rem;
    font-size: clamp(1.02rem, 4.2vw, 1.15rem);
    font-weight: 800;
    color: var(--pu-yellow);
  }

  .reels-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.45rem;
  }

  .reels-size {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    cursor: pointer;
  }

  .reels-size.in.active,
  .reels-size.in:active {
    background: var(--pu-yellow);
    color: #000;
    border-color: var(--pu-yellow);
  }

  .reels-size.out {
    opacity: 0.45;
  }

  .reels-actions {
    display: grid;
    grid-template-columns: 1fr minmax(48px, 56px) auto;
    gap: clamp(0.28rem, 1.5vw, 0.35rem);
    align-items: center;
  }

  .reels-select,
  .reels-qty {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border-radius: 10px;
    padding: 0.45rem 0.5rem;
    font-size: 0.78rem;
    min-width: 0;
  }

  .reels-add {
    border: 0;
    background: var(--pu-yellow);
    color: #000;
    font-weight: 800;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
  }

  .reels-add:disabled {
    opacity: 0.45;
  }

  .reels-side {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: grid;
    gap: 0.55rem;
  }

  .reels-side-btn {
    width: clamp(40px, 11vw, 44px);
    height: clamp(40px, 11vw, 44px);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    font-size: 1.05rem;
    display: grid;
    place-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    text-decoration: none;
  }

  .reels-side-btn:disabled {
    opacity: 0.4;
  }

  .reels-counter {
    display: block;
    position: fixed;
    top: calc(var(--reels-top) + 6px);
    right: 10px;
    z-index: 12;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    pointer-events: none;
  }

  .reels-counter[hidden] {
    display: none !important;
  }

  .reels-empty {
    display: block;
    text-align: center;
    padding: 2rem 1rem;
    color: var(--pu-muted);
  }

  .reels-empty.hidden {
    display: none !important;
  }

  body.mobile-reels .filters-panel,
  body.mobile-browse .filters-panel {
    max-height: min(82dvh, 720px);
    padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px));
  }

  body.mobile-browse {
    background: var(--pu-bg);
  }

  body.mobile-browse #app.site {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  body.mobile-browse .shop-layout {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  body.mobile-browse .cart-panel:not(.open) {
    visibility: hidden;
  }

  body.mobile-browse .cart-panel.open {
    visibility: visible;
  }

  body.mobile-browse .mobile-browse-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.65rem;
    margin: 0 var(--mobile-gap) 0.35rem;
    background: var(--mobile-glass);
    backdrop-filter: blur(18px) saturate(140%);
    border: var(--mobile-float-border);
    border-radius: 14px;
    box-shadow: var(--mobile-float-shadow);
    position: sticky;
    top: 0.35rem;
    z-index: 12;
  }

  body.mobile-browse .mobile-browse-search-row {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    min-width: 0;
  }

  body.mobile-browse .mobile-browse-search-row input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 0.88rem;
  }

  body.mobile-browse .mobile-browse-search-row input::placeholder {
    color: rgba(255, 255, 255, 0.45);
  }

  body.mobile-browse .mobile-browse-filters-btn {
    border: 0;
    background: var(--pu-yellow);
    color: #000;
    font-weight: 700;
    font-size: 0.76rem;
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    white-space: nowrap;
    cursor: pointer;
  }

  body.mobile-browse .catalog-toolbar {
    display: block;
    padding: 0.45rem 0.65rem;
    background: var(--pu-bg);
    border-bottom: 1px solid var(--pu-line);
  }

  body.mobile-browse .catalog-main {
    flex: 1;
    min-height: 0;
    overflow: auto;
    height: auto;
    padding-bottom: var(--mobile-nav-clear);
    background: var(--pu-bg);
  }

  body.mobile-browse .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.65rem;
  }

  body.mobile-browse .card--browse-tap {
    cursor: pointer;
    border-radius: 12px;
  }

  body.mobile-browse .card--browse-tap:active {
    transform: scale(0.98);
  }

  body.mobile-browse .card-image-wrap--square img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  body.mobile-browse .card-body--compact {
    padding: 0.55rem 0.6rem 0.65rem;
    gap: 0.25rem;
  }

  body.mobile-browse .card-body--compact h3 {
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
  }

  body.mobile-browse .card-body--compact .card-price {
    font-size: 0.92rem;
  }

  body.mobile-browse .reels-empty {
    display: block;
    padding: 2rem 1rem;
  }

  body.mobile-browse .reels-empty.hidden {
    display: none !important;
  }

  body.mobile-categories {
    background: #050505;
  }

  body.mobile-categories .mobile-category-rail-wrap {
    display: none;
  }

  body.mobile-categories .catalog-toolbar {
    display: none;
  }

  body.mobile-categories .catalog-main {
    background: #050505;
  }

  .categories-view {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.35rem var(--mobile-gap) var(--mobile-nav-clear);
  }

  .categories-view[hidden] {
    display: none !important;
  }

  .categories-view-head {
    padding: 0.35rem 0.15rem 0.65rem;
    color: #fff;
  }

  .categories-view-head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .categories-view-hint {
    margin: 0.28rem 0 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
  }

  .categories-loading {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 2rem 1rem;
  }

  .category-section {
    margin-top: 0.85rem;
  }

  .category-section-title {
    margin: 0 0 0.45rem 0.15rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--pu-yellow);
  }

  .category-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .category-tile-grid--intro {
    margin-bottom: 0.25rem;
  }

  .category-tile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  }

  .category-tile:active {
    transform: scale(0.98);
  }

  .category-tile.active,
  .category-tile:hover {
    border-color: rgba(217, 239, 74, 0.55);
    background: rgba(217, 239, 74, 0.12);
  }

  .category-tile--wide {
    grid-column: 1 / -1;
  }

  .category-tile--wide .category-tile-thumb {
    aspect-ratio: 2.2 / 1;
  }

  .category-tile-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  }

  .category-tile-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .category-tile-thumb--empty::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(217, 239, 74, 0.2), transparent 55%);
  }

  .category-tile-thumb .pu-badge {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    z-index: 2;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  }

  .category-tile-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    padding: 0.4rem 0.2rem 0.15rem;
    text-align: left;
  }

  .category-tile-label {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
  }

  .category-tile-count {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.52);
  }

  @media (min-width: 420px) {
    .category-tile-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-tile-grid--intro {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-tile--wide {
      grid-column: 1 / -1;
    }
  }

  .shop-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "catalog";
  }

  .product-grid {
    display: none;
  }

  .cart-panel {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    max-height: min(88dvh, 820px);
    z-index: 45;
    transform: translateY(105%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    border-radius: 18px 18px 0 0;
    display: flex;
    flex-direction: column;
    padding: 0 0.9rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    pointer-events: none;
  }

  .cart-panel.open {
    transform: translateY(0);
    pointer-events: auto;
  }

  .cart-panel.cart-sheet-open {
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.42);
  }

  .cart-sheet-handle {
    display: block;
    flex-shrink: 0;
  }

  .cart-panel-head {
    flex-shrink: 0;
    margin-bottom: 0.35rem;
  }

  .cart-panel-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cart-panel-actions {
    flex-shrink: 0;
    margin-top: 0.45rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--pu-line);
  }

  .backdrop {
    z-index: 40;
  }

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

@media (max-width: 520px) {
  .logo {
    font-size: 0.78rem;
  }

  .cart-btn {
    font-size: 0.72rem;
    padding: 0.4rem 0.55rem;
  }

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

  .page-hero h1 {
    font-size: 1.55rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    padding-bottom: 5rem;
  }
}

.card-title-link {
  color: inherit;
  text-decoration: none;
}

.card-title-link:hover {
  text-decoration: underline;
}

.product-page-body {
  background: var(--pu-bg);
}

.product-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--pu-line);
  background: var(--pu-white);
  position: sticky;
  top: 0;
  z-index: 5;
}

.product-back {
  font-size: 0.9rem;
  font-weight: 600;
}

.product-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .product-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.product-carousel {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  border: 1px solid var(--pu-line);
  border-radius: var(--radius);
  background: #0a0a0a;
  scrollbar-width: none;
  touch-action: pan-x;
}

.product-carousel::-webkit-scrollbar {
  display: none;
}

.product-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

.product-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.product-carousel-slide--empty {
  color: #888;
  font-size: 0.9rem;
}

.product-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.product-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: #c8c8c8;
  cursor: pointer;
}

.product-carousel-dot.active {
  width: 18px;
  background: var(--pu-black);
}

.product-carousel-hint {
  margin: 0.4rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--pu-muted);
  transition: opacity 0.35s ease;
}

.product-carousel-hint.faded {
  opacity: 0;
}

@media (max-width: 899px) {
  .product-page-body .product-layout {
    padding: 0;
    gap: 0;
  }

  .product-page-body .product-gallery {
    margin: 0;
    position: relative;
  }

  .product-page-body .product-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent);
    border: none;
    color: #fff;
  }

  .product-page-body .product-carousel {
    border-radius: 0;
    border-left: none;
    border-right: none;
    aspect-ratio: auto;
    max-height: min(72vh, 640px);
  }

  .product-page-body .product-carousel-slide {
    aspect-ratio: auto;
    height: min(72vh, 640px);
  }

  .product-page-body .product-carousel-slide img {
    object-fit: cover;
  }

  .product-page-body .product-info {
    border-radius: 16px 16px 0 0;
    margin-top: -12px;
    position: relative;
    z-index: 2;
    border-top: none;
  }

  .product-page-body .product-back {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  }

  .product-page-body .logo-brand {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  }

  .product-page-body #product-app {
    position: relative;
  }

  .product-page-body .product-carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(0.5rem + 12px);
    z-index: 3;
    margin: 0;
    pointer-events: none;
  }

  .product-page-body .product-carousel-dot {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.45);
  }

  .product-page-body .product-carousel-dot.active {
    background: #fff;
  }

  .product-page-body .product-carousel-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2.5rem;
    z-index: 3;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    pointer-events: none;
  }
}

.product-info {
  background: var(--pu-white);
  border: 1px solid var(--pu-line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.25rem;
}

.product-type {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pu-muted);
}

.product-info h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.25;
}

.product-price {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.product-stock-hint {
  margin: 0 0 0.75rem;
  color: var(--pu-muted);
  font-size: 0.88rem;
}

.product-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.product-buy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.product-add-btn {
  grid-column: 1 / -1;
}

.product-description {
  border-top: 1px solid var(--pu-line);
  padding-top: 0.85rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #333;
}

.product-description.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.product-ref {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--pu-muted);
}

.product-ref a {
  text-decoration: underline;
}

.interno-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: #0a0a0a;
  color: var(--jd-green, #d9ef4a);
  text-align: center;
}

.interno-banner a {
  color: #fff;
  text-decoration: underline;
  font-weight: 500;
}

.owner-price-block {
  display: grid;
  gap: 0.12rem;
  max-width: 100%;
  font-size: clamp(0.62rem, 2.6vw, 0.72rem);
  line-height: 1.3;
}

.owner-price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.5rem;
  color: var(--pu-muted, #6b7280);
}

.owner-price-line span {
  flex: 0 1 auto;
  min-width: 0;
  font-weight: 500;
}

.owner-price-line strong {
  flex: 0 1 auto;
  color: #111827;
  font-weight: 700;
  font-size: clamp(0.65rem, 2.8vw, 0.76rem);
  text-align: right;
  white-space: nowrap;
}

.owner-price-line--sale strong {
  font-size: clamp(0.7rem, 3vw, 0.8rem);
}

.owner-price-line--profit strong {
  color: #15803d;
  font-size: clamp(0.65rem, 2.8vw, 0.74rem);
}

.card-price .owner-price-block,
.product-price .owner-price-block {
  margin-top: 0.15rem;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.card-body--compact .owner-price-block {
  padding: 0.28rem 0.4rem;
  font-size: clamp(0.58rem, 2.4vw, 0.68rem);
}

.reels-price:has(.owner-price-block) {
  margin: 0 0 0.32rem;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.reels-price .owner-price-block {
  font-size: clamp(0.58rem, 2.5vw, 0.68rem);
  background: rgba(0, 0, 0, 0.42);
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  gap: 0.1rem;
}

.reels-price .owner-price-line {
  color: rgba(255, 255, 255, 0.82);
  gap: 0.25rem 0.4rem;
}

.reels-price .owner-price-line strong {
  color: #fff;
  font-size: clamp(0.6rem, 2.6vw, 0.7rem);
}

.reels-price .owner-price-line--sale strong {
  font-size: clamp(0.64rem, 2.8vw, 0.74rem);
}

.reels-price .owner-price-line--profit strong {
  color: var(--jd-green, #d9ef4a);
}

.owner-cart-totals {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--pu-line, #e5e7eb);
  font-size: clamp(0.75rem, 2.8vw, 0.85rem);
  line-height: 1.45;
}

@media (max-width: 380px) {
  .owner-price-line strong {
    font-size: 0.62rem;
  }

  .owner-price-line--sale strong {
    font-size: 0.66rem;
  }
}

.product-badge {
  position: absolute;
  top: 0.4rem;
  left: 0.28rem;
  right: auto;
  z-index: 3;
  font-size: clamp(0.68rem, 2.6vw, 0.78rem);
  padding: 0.22rem 0.52rem;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.reels-frame > .product-badge {
  top: 0.5rem;
  left: calc(var(--mobile-gap) + 0.2rem);
}

.promo-marquee {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0.35rem 0 0;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid rgba(217, 239, 74, 0.35);
  box-shadow: 0 0 12px rgba(217, 239, 74, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.promo-marquee--hero {
  margin: 0.5rem 0 0.65rem;
}

.promo-marquee__viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.promo-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: promo-marquee-scroll 38s linear infinite;
  will-change: transform;
}

.promo-marquee__item {
  flex-shrink: 0;
  padding: 0.42rem 0.15rem;
  font-size: clamp(0.68rem, 2.8vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--jd-green, #d9ef4a);
  text-shadow: 0 0 8px rgba(217, 239, 74, 0.45);
  white-space: nowrap;
}

.promo-marquee__sep {
  flex-shrink: 0;
  padding: 0 0.55rem;
  font-size: 0.72rem;
  line-height: 1;
  color: rgba(217, 239, 74, 0.55);
}

.promo-marquee__fade {
  flex-shrink: 0;
  width: 1.25rem;
  height: 100%;
  min-height: 2rem;
  pointer-events: none;
  z-index: 2;
}

.promo-marquee__fade--left {
  background: linear-gradient(90deg, #0a0a0a 0%, transparent 100%);
}

.promo-marquee__fade--right {
  background: linear-gradient(270deg, #0a0a0a 0%, transparent 100%);
}

@keyframes promo-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (min-width: 900px) {
  .promo-marquee--header {
    display: none;
  }

  .page-hero .promo-marquee--hero {
    display: flex;
  }
}

@media (max-width: 899px) {
  .page-hero .promo-marquee--hero {
    display: none;
  }

  body.mobile-reels .promo-marquee--header,
  body.mobile-browse .promo-marquee--header {
    margin-top: 0.25rem;
    border-radius: 6px;
    max-width: calc(100% - 0.5rem);
    margin-left: auto;
    margin-right: auto;
  }

  body.mobile-reels .promo-marquee__item {
    font-size: clamp(0.62rem, 2.6vw, 0.72rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    padding: 0.35rem 0.5rem;
  }

  .promo-marquee__sep {
    display: none;
  }
}

.app-tour {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.app-tour-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
}

.app-tour-spotlight {
  position: fixed;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.62);
  pointer-events: none;
  transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.app-tour-bubble {
  position: fixed;
  z-index: 201;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #fff;
  color: #111827;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.app-tour-text {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 600;
}

.app-tour-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.app-tour-skip {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
}

.app-tour-next {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: var(--jd-green, #d9ef4a);
  color: #0a0a0a;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

/* Tienda pública (index): sin carrito ni rail superior de categorías */
body.jdstore-public .mobile-category-rail-wrap {
  display: none !important;
}

body.jdstore-public .reels-actions {
  display: none !important;
}

.reels-feed--booting {
  visibility: hidden;
}

@media (min-width: 900px) {
  body.jdstore-public .shop-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "catalog";
  }
}
