:root {
  --black: #111;
  --bg: #f5f5f5;
  --line: #e9e9e9;
  --muted: #777;
  --strip-h: 42px;
  --accent: #e10600;
  --accent-2: #b80000;
  --accent-soft: #ffe9e6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--black);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

button {
  font-family: inherit;
  color: inherit;
}

img {
  max-width: 100%;
}

/* Franja superior */
.top-strip {
  position: static;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--strip-h);
  padding: 0 12px;
  background: linear-gradient(90deg, #ff2d20 0%, #d00000 55%, #a80000 100%);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .9px;
  box-shadow: 0 2px 12px rgba(168, 0, 0, .28);
}

/* Logo */
.site-header {
  position: relative;
  background: #0d0d0d;
  border-bottom: 2px solid #e10600;
  padding: 16px 20px 14px;
  display: flex;
  justify-content: center;
}

.brand {
  display: block;
  line-height: 0;
}

.logo-wrap {
  position: relative;
  display: block;
  line-height: 0;
  transition: transform .25s ease;
}

.brand:hover .logo-wrap {
  transform: scale(1.03);
}

.brand img {
  display: block;
  height: 92px;
  width: auto;
  animation: logoGlow 5s ease-in-out infinite;
  transform-origin: center;
}

.logo-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 44%, #ff7a6e 50%, #e10600 54%, transparent 70%);
  background-size: 300% 100%;
  background-position: 130% 0;
  opacity: 0;
  -webkit-mask-image: url("assets/logo.jpeg");
  mask-image: url("assets/logo.jpeg");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: logoShine 6.5s ease-in-out infinite;
  animation-delay: .6s;
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, .14));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(255, 59, 48, .6)) drop-shadow(0 0 28px rgba(225, 6, 0, .24));
    transform: scale(1.015);
  }
}

@keyframes logoShine {
  0%, 55% {
    background-position: 130% 0;
    opacity: 0;
  }
  58% {
    opacity: .95;
  }
  78% {
    background-position: -30% 0;
    opacity: .95;
  }
  82%, 100% {
    background-position: -30% 0;
    opacity: 0;
  }
}

.header-actions {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-btn {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #fff;
  border: none;
  border-radius: 50%;
  color: #111;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  transition: transform .18s ease, box-shadow .18s ease;
}

.cart-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
}

.cart-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ff3b30, #b80000);
  border: 2px solid #0d0d0d;
  border-radius: 999px;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.cart-badge[hidden] {
  display: none;
}

.account-btn {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  background: linear-gradient(180deg, #ff3b30, #b80000);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(184, 0, 0, .35);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.account-btn:hover {
  transform: scale(1.04);
  filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(184, 0, 0, .45);
}

.account-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-btn span {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-btn.on {
  background: #fff;
  color: #111;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

/* Categorías */
.cat-nav {
  position: sticky;
  top: var(--strip-h);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #ffe0dd;
}

.cat-btn {
  border: 1.5px solid #ffc9c4;
  padding: 8px 18px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  background: #fff;
  color: #1c1c1c;
  border-radius: 24px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.cat-btn:hover {
  background: #fff2f1;
  border-color: #ffb3ad;
}

.cat-btn.active {
  background: linear-gradient(180deg, #ff3b30, #b80000);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(184, 0, 0, .28);
}

.cat-btn:active {
  transform: scale(.97);
}

.currency-wrap {
  position: relative;
  display: inline-flex;
  margin-left: 8px;
}

#currency-btn {
  background: none;
  border: none;
  border-bottom: 4px solid var(--accent);
  padding: 0 0 2px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .5px;
  line-height: 1;
  cursor: pointer;
}

#currency-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  background: #fff;
  border: 1.5px solid #ffc9c4;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(184, 0, 0, .18);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 1000;
}

#currency-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#currency-dropdown button {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-bottom: 1px solid #eee;
  background: #fff;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

#currency-dropdown button:last-child {
  border-bottom: none;
}

#currency-dropdown button:hover {
  background: var(--accent);
  color: #fff;
}

/* Banner principal */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  width: calc(100% - 40px);
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 32px 34px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 224, 138, .28), transparent 38%),
    radial-gradient(circle at 12% 92%, rgba(255, 255, 255, .14), transparent 40%),
    linear-gradient(120deg, #ff2d20 0%, #d00000 55%, #9c0000 100%);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: 250px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 590px;
}

.hero-eyebrow {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.hero h1 {
  margin: 14px 0 0;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.5px;
}

.hero h1 em {
  font-style: normal;
  color: #ffe08a;
}

.hero p {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.hero-btn {
  padding: 11px 18px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.hero-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .12);
}

.hero-btn.primary {
  background: #fff;
  border-color: #fff;
  color: #b40000;
}

.hero-btn.primary:hover {
  background: #fff2f1;
}

.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 340px;
  height: 200px;
  margin-left: auto;
}

.hero-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 152px;
  height: 152px;
  margin: -76px 0 0 -76px;
  object-fit: contain;
  padding: 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(80, 20, 0, .3);
}

.hero-img.a {
  transform: rotate(-8deg) translateX(-66px);
}

.hero-img.b {
  transform: rotate(7deg) translateX(60px) translateY(12px);
}

.hero-badge {
  position: absolute;
  top: -4px;
  right: 4px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #ffd94a;
  color: #8f0000;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .4px;
  text-align: center;
  transform: rotate(8deg);
  box-shadow: 0 8px 18px rgba(60, 20, 0, .25);
}

/* Encabezado de sección (zapatillas / accesorios) */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 20px;
  flex-wrap: wrap;
}

.section-head[hidden] {
  display: none;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.section-count {
  background: linear-gradient(180deg, #ff3b30, #b80000);
  color: #fff;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  border-radius: 4px;
}

/* Grid de productos */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 1280px;
  margin: 28px auto;
  padding: 0 20px;
}

.section-head:not([hidden]) + .grid {
  margin-top: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  padding: 12px 12px 0;
  overflow: hidden;
  animation: cardIn .4s ease both;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #ffc9c4;
  box-shadow: 0 14px 30px rgba(184, 0, 0, .12);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid #f1f1f1;
  border-radius: 10px;
  overflow: hidden;
}

.card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform .3s ease;
}

.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #eaeaea;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.fav-btn:hover {
  transform: scale(1.08);
  border-color: #ffb3ad;
}

.fav-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #111;
  stroke-width: 1.9;
  stroke-linejoin: round;
}

.fav-btn.active {
  background: linear-gradient(180deg, #ff3b30, #b80000);
  border-color: transparent;
}

.fav-btn.active svg {
  fill: #fff;
  stroke: #fff;
}

.card:hover .card-img img {
  transform: scale(1.025);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 2px 14px;
}

.card-name {
  margin: 0;
  min-height: 34px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.card-price {
  margin-top: 6px;
  margin-bottom: 12px;
  color: var(--accent-2);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.2px;
}

.btn-view {
  margin-top: auto;
  width: 100%;
  padding: 11px;
  background: linear-gradient(180deg, #ff3b30, #b80000);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 4px 12px rgba(184, 0, 0, .2);
}

.btn-view:hover {
  filter: brightness(1.07);
  box-shadow: 0 6px 16px rgba(184, 0, 0, .3);
}

.btn-view:active {
  transform: scale(.985);
}

.empty {
  max-width: 1280px;
  margin: 28px auto;
  padding: 40px 20px;
  background: #fff;
  border: 1.5px dashed #ccc;
  border-radius: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(2px);
}

.modal.active {
  display: flex;
}

body.modal-open {
  overflow: hidden;
}

.modal-box {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 880px;
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  animation: modalIn .22s ease both;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-img-area {
  background: #fafafa;
  padding: 18px;
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.slider-track {
  display: flex;
  transition: transform .35s ease;
}

.slider-track img {
  flex: 0 0 100%;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
}

.arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0 0 3px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.arrow.left {
  left: 8px;
}

.arrow.right {
  right: 8px;
}

.arrow[hidden] {
  display: none;
}

.dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 10px;
}

.dots:empty {
  display: none;
}

.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: #ddd;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s ease, width .15s ease;
}

.dot.active {
  width: 20px;
  background: var(--black);
}

.modal-info {
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.m-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.m-name {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  padding-right: 26px;
}

.m-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.m-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent-2);
  letter-spacing: -.2px;
}

.m-fav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  background: #fff;
  border: 1.5px solid #ffc9c4;
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.m-fav svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.m-fav:hover {
  background: var(--accent-soft);
  border-color: #ffb3ad;
}

.m-fav.active {
  background: linear-gradient(180deg, #ff3b30, #b80000);
  border-color: transparent;
  color: #fff;
}

.m-fav.active svg {
  fill: #fff;
  stroke: #fff;
}

.m-desc {
  margin: 12px 0 0;
  color: #555;
  font-size: 13px;
  line-height: 1.55;
}

.m-label {
  margin-top: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.size-btn {
  min-width: 44px;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid var(--black);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.size-btn:hover {
  background: #f1f1f1;
}

.size-btn.selected {
  background: linear-gradient(180deg, #ff3b30, #b80000);
  border-color: transparent;
  color: #fff;
}

.btn-cart {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #ff3b30, #b80000);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(184, 0, 0, .25);
  transition: filter .18s ease, transform .18s ease;
}

.btn-cart:hover {
  filter: brightness(1.06);
}

.btn-cart:active {
  transform: scale(.99);
}

.btn-cart svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.m-note {
  margin: 10px 0 0;
  text-align: center;
  color: #999;
  font-size: 11px;
  line-height: 1.4;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.close:hover {
  background: #f2f2f2;
}

/* Toast */
#toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  z-index: 13000;
  padding: 10px 18px;
  background: var(--black);
  color: #fff;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%) translateY(90px);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  pointer-events: none;
}

#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Sobre la tienda */
.about {
  width: min(100% - 32px, 880px);
  margin: 44px auto 0;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 18px;
}

.about h2 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.25;
}

.about p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.about p:last-child {
  margin-bottom: 0;
}

/* Footer */
.footer {
  margin-top: 40px;
  padding: 26px 20px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  text-align: center;
  color: #999;
  font-size: 11.5px;
  letter-spacing: .2px;
}

.footer-admin {
  margin-left: 6px;
  padding: 0;
  background: none;
  border: none;
  color: #b3b3b3;
  font-size: 11.5px;
  text-decoration: underline;
  cursor: pointer;
}

.footer-admin:hover {
  color: var(--black);
}

body.no-strip {
  padding-top: 0;
}

body.no-strip .cat-nav {
  top: 0;
}

body.admin-open {
  overflow: hidden;
}

/* Panel de administración */
.admin {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(2px);
}

.admin[hidden] {
  display: none;
}

.admin-box {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  animation: modalIn .22s ease both;
}

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid #eee;
}

.admin-eyebrow {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #999;
}

.admin-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.admin-close {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.admin-close:hover {
  background: #f2f2f2;
}

.admin-body {
  padding: 18px 22px 22px;
}

.admin-body[hidden],
.admin-login[hidden],
.admin-static[hidden] {
  display: none;
}

.admin-login {
  padding: 20px 22px 22px;
}

.admin-static {
  padding: 20px 22px 22px;
}

.admin-static-text {
  margin: 0 0 12px;
  color: #555;
  font-size: 12.5px;
  line-height: 1.55;
}

.admin-static .admin-btn {
  width: 100%;
  margin-top: 6px;
}

.admin-login-sub {
  margin: 0 0 14px;
  color: #777;
  font-size: 12px;
  line-height: 1.55;
}

.admin-login-form .admin-input {
  margin-bottom: 2px;
}

.admin-login-form .admin-status {
  margin-top: 12px;
}

.admin-login-btn {
  width: 100%;
  margin-top: 16px;
}

.admin-login-note {
  margin: 14px 0 0;
  color: #aaa;
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
}

.admin-logout {
  display: block;
  margin: 14px auto 0;
  padding: 0;
  background: none;
  border: none;
  color: #888;
  font-size: 11px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.admin-logout:hover {
  color: var(--black);
}

.admin-sec {
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.admin-sec:first-child {
  padding-top: 0;
}

.admin-sec h3 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.admin-label {
  display: block;
  margin: 8px 0 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #555;
}

.admin-input {
  width: 100%;
  padding: 10px 12px;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
}

.admin-input:focus {
  outline: none;
  border-color: var(--black);
}

.admin-hint {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #999;
}

.admin-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.admin-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--black);
}

.admin-meta {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.admin-status {
  display: none;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f5f5f5;
  font-size: 12px;
  line-height: 1.45;
}

.admin-status.show {
  display: block;
}

.admin-status.ok {
  background: #eefaf1;
  color: #176b34;
}

.admin-status.warn {
  background: #fff8e6;
  color: #7a5b00;
}

.admin-status.err {
  background: #fdeeee;
  color: #a11d1d;
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.admin-btn {
  padding: 12px;
  background: #fff;
  color: var(--black);
  border: 1.5px solid var(--black);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.admin-btn.primary {
  background: linear-gradient(180deg, #ff3b30, #b80000);
  border-color: transparent;
  color: #fff;
}

.admin-btn:hover {
  opacity: .88;
}

.admin-note {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #888;
}

.admin-reset {
  margin-top: 14px;
  padding: 0;
  background: none;
  border: none;
  color: #a11d1d;
  font-size: 11px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

body.acct-open {
  overflow: hidden;
}

/* Cuenta opcional */
.acct {
  position: fixed;
  inset: 0;
  z-index: 11500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(2px);
}

.acct[hidden],
.acct-view[hidden],
.acct-form[hidden] {
  display: none;
}

.acct-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  animation: modalIn .22s ease both;
}

.acct-view {
  padding: 26px 24px 24px;
}

.acct-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.acct-close:hover {
  background: #f2f2f2;
}

.acct-eyebrow {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #999;
}

.acct-view h2 {
  margin: 6px 0 0;
  padding-right: 34px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.3px;
}

.acct-sub {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: #777;
}

.acct-tabs {
  display: flex;
  gap: 5px;
  margin: 18px 0 4px;
  padding: 4px;
  background: #f4f4f4;
  border-radius: 10px;
}

.acct-tab {
  flex: 1;
  padding: 9px;
  background: transparent;
  border: none;
  border-radius: 7px;
  color: #777;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.acct-tab.active {
  background: #fff;
  color: var(--accent-2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.acct-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.acct-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #555;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

.acct-field input {
  width: 100%;
  padding: 11px 12px;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 9px;
  color: #111;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}

.acct-field input:focus {
  outline: none;
  border-color: var(--accent);
}

.acct-msg {
  display: none;
  margin: 0;
  color: #a11d1d;
  font-size: 11.5px;
  line-height: 1.45;
}

.acct-msg.show {
  display: block;
}

.acct-primary {
  margin-top: 2px;
  padding: 13px;
  background: linear-gradient(180deg, #ff3b30, #b80000);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(184, 0, 0, .22);
}

.acct-primary:hover {
  filter: brightness(1.06);
}

.acct-fine {
  margin: 12px 0 0;
  color: #aaa;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.acct-sec {
  margin-top: 20px;
}

.acct-sec h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.acct-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #f4f4f4;
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.acct-empty {
  margin: 0;
  padding: 14px;
  border: 1.5px dashed #e2e2e2;
  border-radius: 10px;
  color: #999;
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
}

.fav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
}

.fav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  cursor: pointer;
}

.fav-item:hover {
  background: #fff7f6;
  border-color: #ffc9c4;
}

.fav-item img {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 2px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 7px;
  object-fit: contain;
}

.fav-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fav-info strong {
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fav-info span {
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
}

.fav-remove {
  flex: none;
  width: 26px;
  height: 26px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 50%;
  color: #999;
  font-size: 11px;
  cursor: pointer;
}

.fav-remove:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}

.acct-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.acct-out {
  padding: 11px;
  background: #fff;
  border: 1.5px solid #111;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.acct-out:hover {
  background: #f6f6f6;
}

.acct-out.danger {
  border-color: #ffd9d9;
  color: #a11d1d;
}

.acct-out.danger:hover {
  background: #fff4f4;
}

/* Carrito */
body.cart-open {
  overflow: hidden;
}

.cart {
  position: fixed;
  inset: 0;
  z-index: 11500;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: 16px;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(2px);
}

.cart[hidden] {
  display: none;
}

.cart-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  max-height: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  animation: modalIn .22s ease both;
}

.cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid #f0f0f0;
}

.cart-eyebrow {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #999;
}

.cart-head h2 {
  margin: 5px 0 0;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.3px;
}

.cart-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.cart-close:hover {
  background: #f2f2f2;
}

.cart-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 20px;
  overflow: auto;
}

.cart-empty {
  margin: auto 0;
  padding: 30px 10px;
  color: #999;
  text-align: center;
}

.cart-empty svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: #ddd;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-empty p {
  margin: 12px 0 4px;
  color: #111;
  font-size: 14px;
  font-weight: 800;
}

.cart-empty small {
  display: block;
  font-size: 11.5px;
  line-height: 1.5;
}

.cart-shop {
  margin-top: 14px;
  padding: 10px 18px;
  background: #fff;
  border: 1.5px solid #111;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.cart-shop:hover {
  background: #f6f6f6;
}

.cart-item {
  display: flex;
  gap: 10px;
  padding: 9px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
}

.cart-item img {
  flex: none;
  width: 62px;
  height: 62px;
  padding: 3px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 9px;
  object-fit: contain;
}

.cart-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cart-info strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-info small {
  color: #999;
  font-size: 10.5px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: 4px;
  overflow: hidden;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
}

.cart-qty button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: #fff;
  border: none;
  color: #111;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.cart-qty button:hover {
  background: #f4f4f4;
}

.cart-qty span {
  min-width: 26px;
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
}

.cart-side {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.cart-remove {
  width: 24px;
  height: 24px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 50%;
  color: #999;
  font-size: 10px;
  cursor: pointer;
}

.cart-remove:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}

.cart-line {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.cart-foot {
  padding: 14px 20px 18px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.cart-total-row span {
  font-size: 12px;
  font-weight: 800;
}

.cart-total-row small {
  color: #999;
  font-size: 10.5px;
  font-weight: 600;
}

.cart-total-row strong {
  color: var(--accent-2);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.5px;
}

.cart-note {
  margin: 6px 0 0;
  color: #999;
  font-size: 10.5px;
}

.cart-pay {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  background: var(--black);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease;
}

.cart-pay:hover {
  background: #000;
}

.cart-pay:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.cart-pay.is-paypal {
  background: linear-gradient(180deg, #0070ba, #003087);
}

.cart-pay.is-paypal:hover {
  background: #005ea6;
}

.cart-pay-note {
  margin: 8px 0 0;
  font-size: 10.5px;
  color: var(--muted);
  text-align: center;
}

.cart-clear {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  background: none;
  border: none;
  color: #999;
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.cart-clear:hover {
  color: var(--accent-2);
}

.cart-clear[hidden] {
  display: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    padding: 28px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-media {
    min-width: 300px;
  }

  .hero-img {
    width: 136px;
    height: 136px;
    margin: -68px 0 0 -68px;
  }
}

@media (max-width: 760px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: calc(100% - 28px);
    margin: 16px auto 0;
    padding: 24px 22px 26px;
  }

  .hero-media {
    display: none;
  }

  .hero h1 {
    font-size: 28px;
  }
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 800px) {
  .modal-box {
    grid-template-columns: 1fr;
  }

  .modal-img-area {
    padding: 14px;
  }

  .modal-info {
    padding: 18px;
  }

  .m-name {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  :root {
    --strip-h: 38px;
  }

  .top-strip {
    padding: 0 10px;
    font-size: 11px;
    letter-spacing: .6px;
  }

  .site-header {
    padding: 12px 16px 10px;
  }

  .brand img {
    height: 62px;
  }

  .header-actions {
    right: 10px;
    gap: 6px;
  }

  .cart-btn {
    width: 32px;
    height: 32px;
  }

  .cart-btn svg {
    width: 15px;
    height: 15px;
  }

  .account-btn {
    padding: 6px 10px;
    font-size: 9.5px;
    letter-spacing: .5px;
    gap: 5px;
  }

  .account-btn svg {
    width: 12px;
    height: 12px;
  }

  .fav-btn {
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
  }

  .fav-btn svg {
    width: 14px;
    height: 14px;
  }

  .acct {
    padding: 0;
    align-items: flex-end;
  }

  .acct-box {
    max-height: 94vh;
    border-radius: 20px 20px 0 0;
  }

  .acct-view {
    padding: 24px 18px 22px;
  }

  .cart {
    padding: 0;
  }

  .cart-box {
    max-width: none;
    border-radius: 0;
  }

  .cart-head {
    padding: 16px 16px 12px;
  }

  .cart-body {
    padding: 12px 16px;
  }

  .cart-foot {
    padding: 12px 16px 16px;
  }

  .cat-nav {
    gap: 7px;
    padding: 10px;
  }

  .cat-btn {
    padding: 7px 12px;
    font-size: 12px;
    letter-spacing: .5px;
  }

  #currency-btn {
    font-size: 15px;
    border-bottom-width: 3px;
  }

  .currency-wrap {
    margin-left: 4px;
  }

  .grid {
    gap: 14px;
    margin: 20px auto;
    padding: 0 14px;
  }

  .section-head {
    margin-top: 22px;
    padding: 0 14px;
  }

  .card {
    padding: 11px 11px 0;
    border-radius: 14px;
  }

  .card-body {
    padding: 10px 1px 12px;
  }

  .card-name {
    font-size: 12.5px;
  }

  .card-img img {
    padding: 8px;
  }

  .footer {
    font-size: 10.5px;
  }

  .admin {
    padding: 0;
    align-items: flex-end;
  }

  .admin-box {
    max-height: 94vh;
    border-radius: 18px 18px 0 0;
  }

  .admin-head {
    padding: 18px 18px 12px;
  }

  .admin-body {
    padding: 16px 18px 24px;
  }

  .admin-login {
    padding: 16px 18px 24px;
  }

  .admin-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .cat-nav {
    gap: 6px;
    padding: 9px 8px;
  }

  .cat-btn {
    padding: 7px 10px;
    font-size: 11px;
  }

  #currency-btn {
    font-size: 13px;
  }

  .account-btn span {
    max-width: 56px;
  }
}

/* Buscador de productos */
.search-bar {
  max-width: 1280px;
  margin: 14px auto 0;
  padding: 0 20px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 14px;
  background: #fff;
  border: 1.5px solid #ffd9d6;
  border-radius: 999px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.search-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(225, 6, 0, .12);
}

.search-wrap svg {
  flex: none;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #999;
  stroke-width: 2;
  stroke-linecap: round;
}

.search-wrap input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  background: none;
  border: none;
  outline: none;
  color: #111;
  font: inherit;
  font-size: 13.5px;
}

.search-wrap input::placeholder {
  color: #aaa;
}

.search-wrap input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: #f1f1f1;
  border: none;
  border-radius: 50%;
  color: #666;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.search-clear:hover {
  background: var(--accent);
  color: #fff;
}

.search-clear[hidden] {
  display: none;
}

/* Botón "ver más" */
.grid-more {
  display: flex;
  justify-content: center;
  max-width: 1280px;
  margin: -6px auto 34px;
  padding: 0 20px;
}

.grid-more[hidden] {
  display: none;
}

#loadMoreBtn {
  padding: 13px 26px;
  background: #fff;
  border: 1.5px solid #111;
  border-radius: 999px;
  color: #111;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

#loadMoreBtn:hover {
  background: #111;
  color: #fff;
}

#loadMoreBtn:active {
  transform: scale(.98);
}

@media (max-width: 640px) {
  .search-bar {
    margin-top: 10px;
    padding: 0 14px;
  }

  .grid-more {
    margin-bottom: 26px;
    padding: 0 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .brand img,
  .logo-shine {
    animation: none !important;
  }

  .logo-shine {
    opacity: 0 !important;
  }
}

/* ============================================================
   Tema marketplace (Temu / AliExpress)
   ============================================================ */
:root {
  --black: #1a1a1a;
  --bg: #f2f3f5;
  --line: #ececec;
  --muted: #8a8a8a;
  --strip-h: 38px;
  --accent: #e10600;
  --accent-2: #b80000;
  --accent-soft: #ffe9e6;
  --grad: linear-gradient(90deg, #ff2d20, #d00000);
}

body {
  background: var(--bg);
  color: var(--black);
}

/* Franja superior */
.top-strip {
  height: var(--strip-h);
  background: linear-gradient(90deg, #ff2d20 0%, #d00000 60%, #b80000 100%);
  box-shadow: 0 2px 10px rgba(184, 0, 0, .25);
  font-size: 12px;
  letter-spacing: .6px;
}

/* Cabecera */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 20px;
  background: linear-gradient(90deg, #ff2d20, #d00000);
  border-bottom: none;
}

body.no-strip .site-header {
  top: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  line-height: 1;
  text-decoration: none;
}

.logo-wrap {
  display: block;
  width: 52px;
  height: 52px;
  padding: 0;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 3px 10px rgba(80, 0, 0, .35);
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  animation: none;
}

.brand:hover .logo-wrap {
  transform: none;
}

.logo-shine {
  display: none;
}

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .4px;
  line-height: 1;
}

.brand-name em {
  font-style: normal;
  color: #ffd1cc;
  font-size: 9.5px;
  letter-spacing: 2.4px;
}

/* Buscador dentro de la cabecera */
.site-header .search-bar {
  flex: 1;
  max-width: none;
  margin: 0;
  padding: 0;
}

.search-wrap {
  max-width: none;
  margin: 0;
  padding: 0 14px;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(120, 0, 0, .12);
}

.search-wrap:focus-within {
  border-color: #ffc9c4;
  box-shadow: 0 4px 14px rgba(120, 0, 0, .2);
}

.search-wrap input {
  font-size: 13.5px;
}

.header-actions {
  position: static;
  top: auto;
  right: auto;
  transform: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-btn {
  width: 38px;
  height: 38px;
  background: #fff;
  color: #b80000;
  box-shadow: 0 2px 8px rgba(120, 0, 0, .18);
}

.cart-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(120, 0, 0, .26);
}

.cart-badge {
  background: var(--grad);
  border-color: #fff;
}

.account-btn {
  padding: 9px 13px;
  background: #fff;
  color: #b80000;
  box-shadow: 0 2px 8px rgba(120, 0, 0, .18);
}

.account-btn:hover {
  filter: brightness(.97);
  box-shadow: 0 4px 12px rgba(120, 0, 0, .26);
}

.account-btn.on {
  background: var(--grad);
  color: #fff;
}

/* Categorías horizontales */
.cat-nav {
  position: static;
  top: auto;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-nav::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  flex: none;
  padding: 8px 18px;
  background: #f4f5f7;
  border: none;
  border-radius: 999px;
  color: #444;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .6px;
  white-space: nowrap;
}

.cat-btn:hover {
  background: #ffe9e6;
  border-color: transparent;
}

.cat-btn.active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 12px rgba(184, 0, 0, .3);
}

.currency-wrap {
  flex: none;
  margin-left: auto;
}

#currency-btn {
  padding: 7px 14px;
  background: #ffe9e6;
  border: none;
  border-radius: 999px;
  color: #b80000;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .3px;
}

#currency-dropdown {
  border-color: #ffc9c4;
  box-shadow: 0 10px 26px rgba(184, 0, 0, .16);
}

#currency-dropdown button:hover {
  background: var(--grad);
}

/* Banner principal */
.hero {
  width: calc(100% - 32px);
  max-width: 1280px;
  margin: 14px auto 0;
  padding: 28px 32px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 84% 14%, rgba(255, 214, 214, .35), transparent 40%),
    radial-gradient(circle at 10% 95%, rgba(255, 255, 255, .16), transparent 42%),
    linear-gradient(115deg, #ff2d20 0%, #d00000 55%, #b80000 100%);
  box-shadow: 0 10px 26px rgba(184, 0, 0, .2);
}

.hero-eyebrow {
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .4);
  font-size: 9.5px;
}

.hero h1 {
  font-size: 34px;
}

.hero h1 em {
  color: #ffd1cc;
}

.hero-btn.primary {
  background: #fff;
  border-color: #fff;
  color: #b80000;
  box-shadow: 0 6px 16px rgba(120, 0, 0, .2);
}

.hero-badge {
  background: #fff;
  color: #b80000;
}

.hero-img {
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(110, 0, 0, .32);
}

/* Categorías rápidas */
.quick-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 1280px;
  margin: 14px auto 0;
  padding: 0 16px;
}

@media (max-width: 1100px) {
  .quick-cats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cat-tile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.cat-tile:hover {
  transform: translateY(-2px);
  border-color: #ffb3ad;
  box-shadow: 0 8px 18px rgba(225, 6, 0, .12);
}

.cat-tile-ico {
  flex: none;
  display: block;
  width: 58px;
  height: 58px;
  overflow: hidden;
  background: #f4f4f4;
  border-radius: 12px;
  font-size: 21px;
}

.cat-tile-ico img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}

.cat-tile:hover .cat-tile-ico img {
  transform: scale(1.06);
}

.cat-tile-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cat-tile-txt strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #1a1a1a;
}

.cat-tile-txt small {
  color: #999;
  font-size: 10.5px;
  line-height: 1.25;
}

/* Ventajas */
.perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  max-width: 1280px;
  margin: 12px auto 0;
  padding: 10px 16px;
  background: #fff2f1;
  border: 1px solid #ffd9d6;
  border-radius: 12px;
  color: #a11d1d;
  font-size: 11.5px;
  font-weight: 700;
}

.perks span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* Encabezado de sección */
.section-head {
  max-width: 1280px;
  margin: 22px auto 0;
  padding: 0 16px;
  align-items: center;
}

.section-head h2 {
  display: flex;
  align-items: center;
  font-size: 19px;
  letter-spacing: .2px;
}

.section-head h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  margin-right: 8px;
  background: var(--grad);
  border-radius: 2px;
}

.section-count {
  padding: 3px 9px;
  background: #ffe9e6;
  border-radius: 999px;
  color: #b80000;
  font-size: 10.5px;
}

/* Cuadrícula de productos */
.grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 1280px;
  margin: 14px auto 26px;
  padding: 0 16px;
}

.section-head:not([hidden]) + .grid {
  margin-top: 12px;
}

.card {
  padding: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.card:hover {
  transform: translateY(-2px);
  border-color: #ffc9c4;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .09);
}

.card-img {
  border: none;
  border-radius: 0;
  background: #fff;
}

.card-img img {
  padding: 8px;
}

.card-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  padding: 3px 6px;
  background: rgba(225, 6, 0, .95);
  border-radius: 4px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2px;
}

.card-body {
  padding: 9px 9px 10px;
}

.card-name {
  display: -webkit-box;
  min-height: 32px;
  overflow: hidden;
  color: #333;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-price {
  margin: 5px 0 9px;
  color: #b80000;
  font-size: 18px;
  letter-spacing: -.3px;
}

.btn-view {
  padding: 8px;
  background: var(--grad);
  border-radius: 999px;
  font-size: 11.5px;
  box-shadow: none;
}

.btn-view:hover {
  box-shadow: 0 4px 12px rgba(184, 0, 0, .28);
}

.fav-btn {
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, .94);
}

.fav-btn.active {
  background: var(--grad);
}

/* Botón ver más */
#loadMoreBtn {
  padding: 12px 28px;
  background: #fff;
  border: 1.5px solid #ff2d20;
  color: #b80000;
  font-size: 12.5px;
}

#loadMoreBtn:hover {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

/* Vacío */
.empty {
  max-width: 1280px;
  margin: 14px auto 26px;
  padding: 34px 18px;
  background: #fff;
  border: 1px dashed #ddd;
  border-radius: 12px;
}

/* Modal y botones */
.btn-cart,
.acct-primary,
.admin-btn.primary {
  background: var(--grad);
}

.size-btn.selected,
.m-fav.active {
  background: var(--grad);
}

.m-price,
.cart-total-row strong,
.cart-line,
.fav-info span,
.acct-count {
  color: #b80000;
}

.m-fav {
  border-color: #ffc9c4;
  color: #b80000;
}

.m-fav:hover {
  background: #ffe9e6;
}

.close:hover,
.cart-close:hover,
.acct-close:hover,
.admin-close:hover {
  background: #ffe9e6;
}

/* Barra de navegación inferior (móvil) */
.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
}

.bottom-nav button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  background: none;
  border: none;
  color: #8a8a8a;
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
}

.bottom-nav button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav button.active {
  color: #e10600;
}

.bn-badge {
  position: absolute;
  top: 0;
  left: calc(50% + 4px);
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  background: var(--grad);
  border: 1.5px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}

.bn-badge[hidden] {
  display: none;
}

/* Footer */
.footer {
  margin-top: 30px;
  background: #fff;
  border-top: 1px solid var(--line);
}

/* Ajustes responsive del tema */
@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
  }

  .brand {
    order: 1;
  }

  .brand-name {
    display: none;
  }

  .logo-wrap {
    width: 42px;
    height: 42px;
  }

  .brand img {
    height: 100%;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
  }

  .site-header .search-bar {
    order: 3;
    flex-basis: 100%;
  }

  .account-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }

  .account-btn span {
    display: none;
  }

  .cart-btn {
    width: 36px;
    height: 36px;
  }

  .cat-nav {
    padding: 9px 12px;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    width: calc(100% - 24px);
    margin-top: 10px;
    padding: 22px 20px 24px;
  }

  .hero-media {
    display: none;
  }

  .hero h1 {
    font-size: 25px;
  }

  .quick-cats {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 12px;
  }

  .cat-tile {
    flex-direction: row;
    align-items: center;
    gap: 9px;
    padding: 11px;
  }

  .cat-tile-txt small {
    display: none;
  }

  .perks {
    margin: 10px 12px 0;
    padding: 9px 12px;
    font-size: 10.5px;
  }

  .grid {
    padding: 0 12px;
  }

  .grid-more {
    padding: 0 12px;
  }

  .bottom-nav {
    display: grid;
  }

  body {
    padding-bottom: 70px;
  }

  #toast {
    bottom: 84px;
  }
}

@media (max-width: 380px) {
  .cat-tile-ico {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .cat-tile-txt strong {
    font-size: 12px;
  }
}

/* ===== Acceso obligatorio con Google ===== */
body.gate-open {
  overflow: hidden;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  scrollbar-color: #e10600 rgba(0, 0, 0, .25);
}

.gate[hidden] {
  display: none;
}

.gate::-webkit-scrollbar {
  width: 8px;
}

.gate::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, .25);
}

.gate::-webkit-scrollbar-thumb {
  background: linear-gradient(#ff2d20, #d00000);
  border-radius: 8px;
}

.gate-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(255, 120, 90, .55), transparent 60%),
    radial-gradient(90% 70% at 10% 110%, rgba(120, 0, 0, .7), transparent 60%),
    linear-gradient(155deg, #ff2d20 0%, #d00000 42%, #7a0000 78%, #4a0000 100%);
}

.gate-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .16;
  mix-blend-mode: overlay;
}

.gate-bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(38% 30% at 30% 30%, rgba(255, 255, 255, .16), transparent 70%),
    radial-gradient(30% 26% at 72% 62%, rgba(255, 190, 120, .18), transparent 70%);
  animation: gateDrift 14s ease-in-out infinite alternate;
}

@keyframes gateDrift {
  from {
    transform: translate3d(-3%, -2%, 0) rotate(-2deg);
  }
  to {
    transform: translate3d(3%, 3%, 0) rotate(2deg);
  }
}

.gate-card {
  position: relative;
  width: min(440px, 100%);
  margin: auto;
  padding: 34px 30px 26px;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(40, 0, 0, .5);
  text-align: center;
  animation: gateIn .5s cubic-bezier(.22, .9, .3, 1) both;
  outline: none;
}

@keyframes gateIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.gate-logo {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ff2d20, #b80000);
  color: #fff;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .5px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(224, 6, 0, .35);
  transform: rotate(-4deg);
}

.gate-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #b80000;
}

.gate-title {
  margin: 10px 0 0;
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -1px;
  color: #1a0508;
}

.gate-title em {
  font-style: normal;
  color: #e10600;
}

.gate-sub {
  margin: 12px auto 0;
  max-width: 34ch;
  color: #6b6b6b;
  font-size: 13.5px;
  line-height: 1.55;
}

.gate-google {
  display: flex;
  justify-content: center;
  margin: 20px 0 4px;
  min-height: 44px;
}

.gate-error {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: #fff8e6;
  border: 1px solid #f0dca0;
  border-radius: 12px;
  color: #7a5b00;
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.gate-error[hidden] {
  display: none;
}

.gate-retry {
  margin-top: 6px;
  padding: 9px 18px;
  background: linear-gradient(90deg, #ff2d20, #d00000);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(224, 6, 0, .3);
}

.gate-retry:hover {
  filter: brightness(1.08);
}

.gate-benefits {
  list-style: none;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px dashed #eee;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.gate-benefits li {
  position: relative;
  padding-left: 26px;
  color: #444;
  font-size: 12.5px;
  font-weight: 600;
  animation: gateIn .5s ease both;
}

.gate-benefits li:nth-child(1) {
  animation-delay: .15s;
}

.gate-benefits li:nth-child(2) {
  animation-delay: .25s;
}

.gate-benefits li:nth-child(3) {
  animation-delay: .35s;
}

.gate-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  background: #ffe9e6;
  color: #e10600;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.gate-fine {
  margin: 16px 0 0;
  color: #9a9a9a;
  font-size: 10.5px;
  line-height: 1.5;
}

@media (max-width: 400px) {
  .gate-card {
    padding: 26px 20px 20px;
    border-radius: 20px;
  }
}

/* ===== Carrito como página completa ===== */
.cart {
  --cart-pad: max(16px, calc((100vw - 1020px) / 2));
  justify-content: center;
  padding: 0;
  background: #f2f3f5;
  backdrop-filter: none;
}

.cart-box {
  max-width: none;
  border-radius: 0;
  background: #f2f3f5;
  animation: cartPageIn .3s cubic-bezier(.22, .9, .3, 1) both;
}

@keyframes cartPageIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cart-head {
  background: #fff;
  padding: 16px var(--cart-pad) 12px;
  border-bottom: 1px solid #e8e8e8;
}

.cart-head h2 {
  font-size: 24px;
}

.cart-view {
  align-items: center;
}

.cart-view > .cart-minbar,
.cart-view > .cart-selectrow,
.cart-view > .cart-body,
.cart-view > .cart-reco,
.cart-view > .co-body,
.cart-view > .confirm-body {
  width: 100%;
  max-width: 1020px;
}

.cart-body {
  align-items: center;
  padding: 16px 14px;
}

.cart-body > * {
  width: 100%;
}

.cart-view > .cart-foot {
  width: 100%;
  max-width: none;
  background: #fff;
  border-top: 1px solid #e8e8e8;
  padding: 14px var(--cart-pad) 18px;
}

/* ============================================================
   Carrito Temu · Checkout · Confirmación · Cuenta
   ============================================================ */
.acct {
  z-index: 11600;
}

.cart-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.cart-view[hidden] {
  display: none;
}

.cart-minbar,
.cart-selectrow,
.cart-reco,
.cart-foot {
  flex: none;
}

.cart-pay.cart-continue {
  background: var(--grad);
  box-shadow: 0 4px 14px rgba(184, 0, 0, .25);
}

.cart-pay.cart-continue:hover {
  background: var(--grad);
  filter: brightness(1.06);
}

.cart-pay.cart-continue:disabled {
  background: #d8d8d8;
  box-shadow: none;
  filter: none;
}

/* Barra de progreso del pedido mínimo */
.cart-minbar {
  padding: 11px 20px 12px;
  background: #fff8e6;
  border-bottom: 1px solid #f6ecd2;
}

.cart-minbar.ok {
  background: #eefaf1;
  border-bottom-color: #d6efdd;
}

.cart-minbar-txt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #7a5b00;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.cart-minbar.ok .cart-minbar-txt {
  color: #176b34;
}

.cart-minbar-txt strong {
  font-weight: 900;
}

.cart-minbar-txt svg {
  flex: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #176b34;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-minbar-track {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, .09);
  border-radius: 999px;
}

.cart-minbar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff8a00, #e10600);
  border-radius: 999px;
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

.cart-minbar.ok .cart-minbar-fill {
  background: linear-gradient(90deg, #34a853, #176b34);
}

/* Selección múltiple */
.cart-selectrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid #f4f4f4;
}

.ck-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #444;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ck {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  background: #fff;
  border: 2px solid #cfcfcf;
  border-radius: 5px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background .15s ease, border-color .15s ease;
}

.ck:checked,
.ck:indeterminate {
  background: var(--grad);
  border-color: #d00000;
}

.ck:checked::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 4px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ck:indeterminate::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 3px;
  width: 8px;
  height: 2px;
  background: #fff;
}

.ck:focus-visible {
  outline: 2px solid #ff8a00;
  outline-offset: 2px;
}

.cart-removesel {
  background: none;
  border: none;
  color: #a11d1d;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.cart-removesel:disabled {
  color: #ccc;
  cursor: not-allowed;
}

.cart-ck {
  align-self: center;
}

.cart-item.off > :not(.cart-ck) {
  opacity: .5;
}

.cart-item img[data-open],
.cart-info strong[data-open] {
  cursor: pointer;
}

.cart-info strong[data-open]:hover {
  color: var(--accent-2);
}

.cart-remove {
  display: grid;
  place-items: center;
}

.cart-remove svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Recomendados */
.cart-reco {
  padding: 10px 20px 2px;
  border-top: 1px solid #f4f4f4;
}

.cart-reco[hidden] {
  display: none;
}

.reco-title {
  margin-bottom: 8px;
  color: #8a8a8a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.reco-row {
  display: flex;
  gap: 10px;
  padding-bottom: 9px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.reco-card {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 4px;
  width: 104px;
  padding: 8px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color .15s ease, transform .15s ease;
}

.reco-card:hover {
  border-color: #ffc9c4;
  transform: translateY(-2px);
}

.reco-card img {
  width: 88px;
  height: 88px;
  background: #fafafa;
  border-radius: 8px;
  object-fit: contain;
}

.reco-name {
  display: -webkit-box;
  min-height: 27px;
  overflow: hidden;
  color: #333;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.reco-price {
  color: #b80000;
  font-size: 12px;
  font-weight: 900;
}

.reco-add {
  padding: 4px 0;
  background: var(--grad);
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

/* Checkout */
.co-body {
  flex: 1;
  min-height: 0;
  padding: 14px 20px 18px;
  overflow: auto;
}

.co-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  padding: 4px 0;
  background: none;
  border: none;
  color: #b80000;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.co-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.co-sec-title {
  margin-top: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent-soft);
  color: #111;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.co-sec-title:first-child {
  margin-top: 0;
}

.co-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.acct-field select {
  width: 100%;
  padding: 11px 32px 11px 12px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border: 1.5px solid #ddd;
  border-radius: 9px;
  color: #111;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.acct-field select:focus {
  outline: none;
  border-color: var(--accent);
}

.co-paymethods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.co-pm {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid #e6e6e6;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.co-pm:hover {
  border-color: #ffc9c4;
}

.co-pm.on {
  background: #fff7f6;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.co-pm input {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  background: #fff;
  border: 2px solid #cfcfcf;
  border-radius: 50%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.co-pm input:checked {
  border-color: #d00000;
}

.co-pm input:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--grad);
  border-radius: 50%;
}

.co-pm-badge {
  display: grid;
  flex: none;
  place-items: center;
  min-width: 54px;
  height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .3px;
}

.co-pm-badge.paypal {
  background: linear-gradient(180deg, #0070ba, #003087);
  font-style: italic;
}

.co-pm-badge.bankcard {
  background: linear-gradient(135deg, #3a3f47, #14181d);
}

.co-pm-badge svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
}

.co-pm-txt {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.co-pm-txt strong {
  font-size: 12.5px;
  font-weight: 800;
}

.co-pm-txt small {
  color: #8a8a8a;
  font-size: 10.5px;
}

.co-payment-note {
  margin: 0;
  color: #666;
  font-size: 11px;
  line-height: 1.5;
}

.co-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
}

.co-sum-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.co-sum-item img {
  flex: none;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 7px;
  object-fit: contain;
}

.co-sum-item > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.co-sum-item strong {
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.co-sum-item small {
  color: #8a8a8a;
  font-size: 10px;
}

.co-sum-item > span {
  flex: none;
  color: #b80000;
  font-size: 11.5px;
  font-weight: 800;
}

.co-sum-row {
  display: flex;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px dashed #e6e6e6;
  color: #666;
  font-size: 11.5px;
}

.co-sum-row.free span:last-child {
  color: #176b34;
  font-weight: 800;
}

.co-sum-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1.5px solid #e6e6e6;
}

.co-sum-total span {
  font-size: 12px;
  font-weight: 800;
}

.co-sum-total strong {
  color: #b80000;
  font-size: 18px;
  font-weight: 900;
}

.co-location {
  padding: 12px;
  background: #fff7f6;
  border: 1.5px solid #ffc9c4;
  border-radius: 12px;
}

.co-loc-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.co-loc-head svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #b80000;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.co-loc-head strong {
  color: #b80000;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.co-loc-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.co-loc-body span {
  color: #333;
  font-size: 12px;
  line-height: 1.45;
}

.co-loc-body a {
  align-self: flex-start;
  margin-top: 5px;
  color: #0070ba;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.co-loc-body a:hover {
  text-decoration: underline;
}

.co-loc-empty {
  display: flex;
  align-items: center;
  gap: 9px;
}

.co-loc-empty svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #cc9999;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.co-loc-empty span {
  color: #8a8a8a;
  font-size: 11.5px;
  line-height: 1.45;
}

.co-foot {
  border-top: 1px solid #f0f0f0;
}

.co-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 9px 0 0;
  color: #8a8a8a;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.co-secure svg {
  flex: none;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #176b34;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Confirmación */
.confirm-body {
  flex: 1;
  min-height: 0;
  padding: 20px;
  overflow: auto;
}

.confirm-hero {
  padding: 10px 0 18px;
  text-align: center;
}

.confirm-check {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, #34a853, #176b34);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(23, 107, 52, .3);
  animation: confirmPop .45s ease both;
}

.confirm-check svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes confirmPop {
  0% { transform: scale(.6); opacity: 0; }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}

.confirm-hero h3 {
  margin: 14px 0 6px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.3px;
}

.confirm-hero p {
  max-width: 320px;
  margin: 0 auto;
  color: #777;
  font-size: 12px;
  line-height: 1.55;
}

.confirm-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
}

.confirm-meta > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.confirm-meta span {
  color: #8a8a8a;
  font-size: 11px;
  font-weight: 700;
}

.confirm-meta strong {
  font-size: 12.5px;
  font-weight: 800;
  text-align: right;
}

.confirm-status {
  color: #176b34;
}

.confirm-loc {
  margin-bottom: 14px;
}

.confirm-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
}

.confirm-fine {
  margin: 14px 0 0;
  color: #aaa;
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
}

/* Cuenta: perfil, Google, pedidos, tarjetas */
.acct-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 34px 14px 0;
}

.acct-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  background: var(--grad);
  border-radius: 50%;
}

.acct-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acct-avatar-fallback {
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.acct-who {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.acct-who strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acct-who small {
  overflow: hidden;
  color: #8a8a8a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.g-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  color: #444;
  font-size: 10.5px;
  font-weight: 800;
}

.g-chip svg {
  width: 14px;
  height: 14px;
}

.google-zone {
  margin: 18px 0 12px;
}

.google-btn-wrap {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.google-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 16px;
  background: #fafafa;
  border: 1.5px dashed #e2e2e2;
  border-radius: 14px;
  text-align: center;
}

.google-soon[hidden] {
  display: none;
}

.google-soon svg {
  width: 34px;
  height: 34px;
}

.google-soon strong {
  font-size: 13px;
  font-weight: 900;
}

.google-soon span {
  color: #8a8a8a;
  font-size: 11.5px;
  line-height: 1.5;
}

.acct-benefits {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.acct-benefits li {
  position: relative;
  padding-left: 25px;
  color: #555;
  font-size: 12px;
  line-height: 1.4;
}

.acct-benefits li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  background: var(--accent-soft);
  border-radius: 50%;
  color: #b80000;
  font-size: 10px;
  font-weight: 900;
}

.acct-pane {
  margin-top: 14px;
}

.acct-pane[hidden] {
  display: none;
}

.ord-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 340px;
  overflow: auto;
}

.ord {
  padding: 12px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
}

.ord-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.ord-id {
  color: #111;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .3px;
}

.ord-status {
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
}

.ord-status.pendiente {
  background: #fff8e6;
  color: #7a5b00;
}

.ord-status.pagado {
  background: #eefaf1;
  color: #176b34;
}

.ord-status.cancelado {
  background: #fdecec;
  color: #a11d1d;
}

.ord-date {
  margin-bottom: 8px;
  color: #8a8a8a;
  font-size: 10.5px;
}

.ord-date strong {
  color: #b80000;
}

.ord-thumbs {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.ord-thumbs img {
  width: 34px;
  height: 34px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  object-fit: contain;
}

.ord-loc {
  display: flex;
  gap: 9px;
  padding: 10px;
  background: #fff7f6;
  border: 1px solid #ffc9c4;
  border-radius: 10px;
}

.ord-loc svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  fill: none;
  stroke: #b80000;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ord-loc > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ord-loc strong {
  margin-bottom: 2px;
  color: #b80000;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.ord-loc span {
  color: #444;
  font-size: 11px;
  line-height: 1.4;
}

.ord-loc a {
  align-self: flex-start;
  margin-top: 4px;
  color: #0070ba;
  font-size: 10.5px;
  font-weight: 800;
  text-decoration: none;
}

.ord-loc a:hover {
  text-decoration: underline;
}

/* Scrollbars con el lenguaje visual de la tienda */
.cart-body,
.co-body,
.confirm-body,
.acct-box,
.fav-list,
.ord-list {
  scrollbar-width: thin;
  scrollbar-color: #e10600 #f2f3f5;
}

.cart-body::-webkit-scrollbar,
.co-body::-webkit-scrollbar,
.confirm-body::-webkit-scrollbar,
.acct-box::-webkit-scrollbar,
.fav-list::-webkit-scrollbar,
.ord-list::-webkit-scrollbar {
  width: 8px;
}

.reco-row {
  scrollbar-width: thin;
  scrollbar-color: #e10600 #f2f3f5;
}

.reco-row::-webkit-scrollbar {
  height: 7px;
}

.cart-body::-webkit-scrollbar-track,
.co-body::-webkit-scrollbar-track,
.confirm-body::-webkit-scrollbar-track,
.acct-box::-webkit-scrollbar-track,
.fav-list::-webkit-scrollbar-track,
.ord-list::-webkit-scrollbar-track,
.reco-row::-webkit-scrollbar-track {
  background: #f2f3f5;
  border-radius: 999px;
}

.cart-body::-webkit-scrollbar-thumb,
.co-body::-webkit-scrollbar-thumb,
.confirm-body::-webkit-scrollbar-thumb,
.acct-box::-webkit-scrollbar-thumb,
.fav-list::-webkit-scrollbar-thumb,
.ord-list::-webkit-scrollbar-thumb,
.reco-row::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff2d20, #b80000);
  border: 2px solid #f2f3f5;
  border-radius: 999px;
}

.reco-row::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #ff2d20, #b80000);
}

.cart-body::-webkit-scrollbar-thumb:hover,
.co-body::-webkit-scrollbar-thumb:hover,
.confirm-body::-webkit-scrollbar-thumb:hover,
.acct-box::-webkit-scrollbar-thumb:hover,
.fav-list::-webkit-scrollbar-thumb:hover,
.ord-list::-webkit-scrollbar-thumb:hover,
.reco-row::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff5a4f, #d00000);
}

@media (max-width: 400px) {
  .co-grid2 {
    grid-template-columns: 1fr;
  }

  .cart-minbar,
  .cart-selectrow,
  .cart-reco,
  .co-body,
  .confirm-body {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.modal.preview .m-label,
.modal.preview .sizes {
  display: none;
}

.btn-cart:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.cart-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1040;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: linear-gradient(145deg, #ff2d20, #b80000);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(225, 6, 0, .38), 0 3px 8px rgba(0, 0, 0, .18);
  transition: transform .18s ease, box-shadow .18s ease;
}

.cart-fab svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-fab:focus-visible {
  outline: 3px solid #1c1c1c;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .cart-fab,
  .cart-fab.bump {
    animation: none;
    transition: none;
  }
}

.cart-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 30px rgba(225, 6, 0, .46), 0 4px 10px rgba(0, 0, 0, .2);
}

.cart-fab:active {
  transform: scale(.94);
}

.cart-fab-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: #fff;
  border-radius: 999px;
  color: #d00000;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}

.cart-fab-badge[hidden] {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .cart-fab.bump {
    animation: fabBump .45s ease;
  }
}

@keyframes fabBump {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.16);
  }

  60% {
    transform: scale(.94);
  }

  100% {
    transform: scale(1);
  }
}

body.cart-open .cart-fab,
body.gate-open .cart-fab {
  display: none;
}

@media (max-width: 760px) {
  .cart-fab {
    right: 14px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
  }

  .cart-fab svg {
    width: 24px;
    height: 24px;
  }
}
