:root {
  --red: #ff0000;
  --red-deep: #8f0707;
  --ink: #130b0b;
  --soft-ink: #382725;
  --champagne: #f8efe5;
  --cream: #fffaf3;
  --blush: #f4ddd7;
  --gold: #b78b45;
  --line: rgba(19, 11, 11, 0.12);
  --shadow: 0 24px 70px rgba(38, 16, 12, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
  --muted: rgba(19, 11, 11, 0.55);
  --bg-soft: #f4ece6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  max-width: 100vw;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  scroll-behavior: smooth;
}

body.intro-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(19, 11, 11, 0.96), rgba(85, 8, 8, 0.94));
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.intro.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-panel {
  width: min(720px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: clamp(26px, 5vw, 56px);
  color: var(--cream);
  background: rgba(255, 250, 243, 0.08);
  border: 1px solid rgba(255, 250, 243, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(19, 11, 11, 0.18);
}

.brand-mark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 28px rgba(19, 11, 11, 0.26);
}

.intro-panel h1,
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.98;
}

.intro-panel h1 {
  margin-top: 16px;
  font-size: clamp(3.4rem, 11vw, 7.5rem);
}

.intro-panel p {
  margin: 18px auto 28px;
  max-width: 620px;
  color: rgba(255, 250, 243, 0.82);
  line-height: 1.75;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 250, 243, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: rgba(19, 11, 11, 0.62);
  font-size: 0.73rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-menu a {
  padding: 10px 13px;
  border-radius: 8px;
  color: rgba(19, 11, 11, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-menu a:hover {
  color: var(--red-deep);
  background: rgba(255, 0, 0, 0.08);
}

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

.icon-btn,
.menu-toggle,
.close-cart,
.qty-btn {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 8px;
}

.icon-btn {
  position: relative;
  min-height: 42px;
  padding: 0 14px;
  font-weight: 800;
}

.icon-btn b {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: white;
  background: var(--red);
  font-size: 0.72rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-red {
  color: white;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  box-shadow: 0 16px 34px rgba(255, 0, 0, 0.23);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.btn.full {
  width: 100%;
}

.text-link {
  color: var(--red-deep);
  font-weight: 800;
  border-bottom: 2px solid rgba(255, 0, 0, 0.18);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--red-deep);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--red);
}

.hero {
  position: relative;
  min-height: calc(100dvh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: stretch;
  background: var(--ink);
  color: var(--cream);
}

.hero-media {
  min-height: 560px;
}

.hero-media img {
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.hero-copy {
  align-self: center;
  padding: clamp(38px, 7vw, 82px);
  background: linear-gradient(135deg, rgba(19, 11, 11, 0.9), rgba(92, 13, 12, 0.86));
}

.hero-copy h1 {
  max-width: 680px;
  font-size: clamp(3.2rem, 6.4vw, 6.9rem);
}

.hero-copy p {
  max-width: 560px;
  margin: 22px 0 30px;
  color: rgba(255, 250, 243, 0.8);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding: 1rem 0;
}

.section-head {
  margin-bottom: 34px;
}

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

.section-head.centered {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.section-head.centered .eyebrow {
  justify-content: center;
}

.section-head h2,
.feature-copy h2,
.editorial h2 {
  font-size: clamp(2.35rem, 4.8vw, 4.7rem);
}

.section-head p,
.feature-copy p,
.editorial p {
  color: rgba(19, 11, 11, 0.66);
  line-height: 1.8;
}

.category-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-card,
.product-card,
.process-grid article,
.filters,
.detail-copy {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 42px rgba(35, 17, 12, 0.08);
}

.category-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.category-card img {
  height: 215px;
  object-fit: cover;
}

.category-card div {
  padding: 18px;
}

.category-card h3 {
  font-size: 1.65rem;
}

.category-card p {
  margin: 8px 0 0;
  color: rgba(19, 11, 11, 0.64);
  line-height: 1.55;
}

.feature-band {
  background: var(--champagne);
}

.feature-grid,
.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
}

.feature-copy {
  max-width: 690px;
}

.feature-image,
.editorial-grid img {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

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

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.image-link {
  display: block;
  overflow: hidden;
  background: var(--champagne);
}

.product-card img {
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.product-card:hover img {
  transform: scale(1.045);
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
  min-width: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--red-deep);
  background: rgba(255, 0, 0, 0.08);
  font-size: 0.7rem;
  font-weight: 800;
}

.product-info h3 {
  font-size: 1.48rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.product-info p {
  margin: 10px 0 16px;
  color: rgba(19, 11, 11, 0.64);
  font-size: 0.9rem;
  line-height: 1.55;
}

.price {
  margin-top: auto;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 900;
}

.qty-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 7px;
  margin: 14px 0 12px;
}

.qty-btn {
  height: 42px;
  font-size: 1.1rem;
  font-weight: 900;
}

.qty-input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  font-weight: 800;
  background: var(--cream);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.card-actions .btn {
  min-height: 42px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.process {
  background: var(--ink);
  color: var(--cream);
}

.process .eyebrow {
  color: var(--blush);
}

.process-grid article {
  padding: 24px;
  color: var(--cream);
  background: rgba(255, 250, 243, 0.08);
  border-color: rgba(255, 250, 243, 0.14);
}

.process-grid span {
  color: var(--gold);
  font-weight: 900;
}

.process-grid h3 {
  margin-top: 16px;
  font-size: 1.75rem;
}

.process-grid p {
  color: rgba(255, 250, 243, 0.72);
  line-height: 1.75;
}

.editorial-grid {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
}

.editorial-grid img {
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.catalog-hero {
  min-height: 360px;
  display: grid;
  align-items: end;
  padding: 90px 0 58px;
  color: var(--cream);
  background:
    linear-gradient(90deg, rgba(19, 11, 11, 0.9), rgba(19, 11, 11, 0.38)),
    url("images/10_lounge_boutique_spa_1x1.png") center / cover;
}

.catalog-hero h1 {
  max-width: 860px;
  font-size: clamp(3rem, 7vw, 6.4rem);
}

.catalog-shell {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.filter-toggle {
  display: none;
  width: 100%;
  min-height: 48px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.filters {
  position: sticky;
  top: 98px;
  padding: 18px;
}

.search-label,
.filter-group h2 {
  display: block;
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.filters input,
.filters select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
  outline-color: var(--red);
}

.filter-group {
  margin-top: 22px;
}

#categoryFilters {
  display: grid;
  gap: 8px;
}

.filter-chip {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 800;
}

.filter-chip.active,
.filter-chip:hover {
  color: white;
  background: var(--ink);
}

.catalog-status {
  margin: 0 0 18px;
  color: rgba(19, 11, 11, 0.66);
  font-weight: 800;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.detail-gallery {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-gallery img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.detail-copy {
  padding: clamp(24px, 4vw, 42px);
}

.detail-copy h1 {
  font-size: clamp(3rem, 6vw, 5.9rem);
}

.detail-copy p {
  color: rgba(19, 11, 11, 0.66);
  line-height: 1.8;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 239, 229, 0.72);
  font-weight: 700;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-actions .qty-row {
  width: 160px;
  margin: 0;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  background: white;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  background: rgba(19, 11, 11, 0.44);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.cart-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  width: min(420px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  transform: translateX(100%);
  transition: transform 0.32s ease;
}

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

.cart-head,
.cart-footer {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-head h2 {
  font-size: 2.3rem;
}

.close-cart {
  width: 42px;
  height: 42px;
  font-size: 1.7rem;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item h3 {
  font-family: var(--sans);
  font-size: 0.94rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.cart-item p {
  margin: 6px 0 0;
  color: rgba(19, 11, 11, 0.62);
  font-size: 0.82rem;
}

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

.remove-item {
  border: 0;
  background: transparent;
  color: var(--red-deep);
  font-weight: 900;
}

.cart-footer div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 54px 0;
  color: var(--cream);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 28px;
}

.site-footer h2,
.site-footer h3 {
  margin-top: 14px;
  font-size: 2rem;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 250, 243, 0.74);
  line-height: 1.7;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.motion-ready .from-left {
  transform: translateX(-34px);
}

.motion-ready .from-right {
  transform: translateX(34px);
}

.motion-ready .zoom-in {
  transform: scale(0.96);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 78px;
    right: 16px;
    width: min(70vw, 320px);
    max-height: 50vh;
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 14px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--cream);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

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

  .hero-media,
  .hero-media img {
    min-height: 48vh;
  }

  .hero-copy {
    padding: 36px 18px 46px;
  }

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

  .feature-grid,
  .editorial-grid,
  .product-detail,
  .catalog-shell {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
    display: none;
  }

  .filters.open {
    display: block;
  }

  .filter-toggle {
    display: block;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .header-inner {
    min-height: 68px;
    gap: 8px;
  }

  .brand-logo,
  .intro-panel .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 1.45rem;
  }

  .brand small,
  .icon-btn span {
    display: none;
  }

  .icon-btn {
    width: 44px;
    padding: 0;
  }

  .nav-menu {
    top: 68px;
  }

  .intro-panel {
    padding: 24px 18px;
  }

  .intro-panel h1 {
    font-size: 3.4rem;
  }

  .intro-panel p {
    font-size: 0.9rem;
    line-height: 1.62;
  }

  .hero-copy h1,
  .catalog-hero h1 {
    font-size: clamp(3rem, 14vw, 4.2rem);
  }

  .section {
    padding: 1rem 0;
  }

  .section-head.split {
    display: block;
  }

  .section-head.split .text-link {
    display: inline-flex;
    margin-top: 18px;
  }

  .section-head h2,
  .feature-copy h2,
  .editorial h2 {
    font-size: 2.45rem;
  }

  .category-grid,
  .product-grid {
    gap: 11px;
  }

  .category-card img {
    height: 150px;
  }

  .category-card div,
  .product-info {
    padding: 12px;
  }

  .category-card h3,
  .product-info h3 {
    font-size: 1.24rem;
  }

  .category-card p,
  .product-info p {
    font-size: 0.78rem;
  }

  .price {
    font-size: 1rem;
  }

  .card-actions .btn {
    min-height: 40px;
    font-size: 0.76rem;
  }

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

  .detail-actions {
    display: grid;
  }

  .detail-actions .qty-row {
    width: 100%;
  }
}

/* ══════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════ */
.top-bar {
  position: relative;
  z-index: 40;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 9px 0;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  overflow: hidden;
}
.top-bar-inner {
  display: inline-flex;
  gap: 0;
  white-space: nowrap;
}
.top-bar-inner.is-sliding {
  animation: tbSlide 24s linear infinite;
}
@keyframes tbSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.top-bar-sep { margin: 0 18px; opacity: .4; }

/* ══════════════════════════════════════════
   NAV DROPDOWN
══════════════════════════════════════════ */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: inline-flex; align-items: center; gap: 5px; }
.dropdown-arrow { font-size: 0.6rem; transition: transform 0.2s; }
.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown:focus-within .dropdown-arrow { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 210px;
  padding: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 50;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 9px 13px;
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}
.dropdown-menu a:first-child { font-weight: 900; color: var(--red-deep); }
.dropdown-menu a:hover { background: var(--champagne); }

/* ══════════════════════════════════════════
   PRECIOS CON DESCUENTO
══════════════════════════════════════════ */
.price-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.price-original {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(19,11,11,0.4);
  text-decoration: line-through;
}
.discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--red);
  color: white;
  font-size: 0.68rem;
  font-weight: 900;
}

/* ══════════════════════════════════════════
   STOCK
══════════════════════════════════════════ */
.stock-low {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 0 6px;
  color: #92400e;
  font-size: 0.74rem;
  font-weight: 800;
}
.stock-low::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   GALERÍA MULTI-IMAGEN
══════════════════════════════════════════ */
.img-gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery-main {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--champagne);
  aspect-ratio: 4/5;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb {
  width: 68px; height: 68px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--red); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════════════════════════════
   CHECKOUT
══════════════════════════════════════════ */
.checkout-page { min-height: calc(100dvh - 78px); background: var(--champagne); }
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 400px;
  gap: 28px;
  align-items: start;
  padding: 40px 0 60px;
}
.checkout-form-block {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(20px, 3vw, 36px);
  margin-bottom: 20px;
}
.checkout-form-block h2 { font-size: 1.65rem; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.8rem; font-weight: 800; color: rgba(19,11,11,0.7); letter-spacing: 0.02em; }
input, select, textarea {
  min-height: 46px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--cream); color: var(--ink); font-size: 0.92rem; outline: none;
  transition: border-color 0.2s;
  font-family: var(--sans);
}
input:focus, select:focus, textarea:focus { border-color: var(--red); background: white; }
textarea { min-height: 80px; padding: 12px 14px; resize: vertical; }
.billing-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.9rem; font-weight: 700; }
.billing-toggle input[type="checkbox"] { min-height: unset; width: 18px; height: 18px; accent-color: var(--red); }
.billing-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.checkout-error {
  padding: 12px 16px; background: #fee2e2; border-radius: 8px;
  color: #991b1b; font-weight: 700; font-size: 0.88rem;
  margin-bottom: 16px; display: none;
}

/* Resumen */
.order-summary {
  position: sticky; top: 100px;
  background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.order-summary-head { padding: 18px 20px; background: var(--ink); color: var(--cream); }
.order-summary-head h3 { font-size: 1.4rem; }
.order-summary-items { padding: 14px 20px; max-height: 320px; overflow-y: auto; }
.order-item { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.order-item:last-child { border-bottom: none; }
.order-item img { width: 54px; height: 54px; border-radius: 6px; object-fit: cover; }
.order-item-name { font-size: 0.86rem; font-weight: 700; line-height: 1.3; }
.order-item-meta { font-size: 0.76rem; color: rgba(19,11,11,0.5); margin-top: 2px; }
.order-item-price { font-weight: 900; font-size: 0.9rem; white-space: nowrap; }
.cupon-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); }
.cupon-row input { min-height: 42px; font-size: 0.88rem; }
.cupon-row button { min-height: 42px; padding: 0 16px; background: var(--ink); color: white; border: none; border-radius: 8px; font-weight: 900; cursor: pointer; white-space: nowrap; }
.order-totals { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.total-row { display: flex; justify-content: space-between; font-size: 0.88rem; color: rgba(19,11,11,0.66); }
.total-row.final { font-weight: 900; font-size: 1.1rem; color: var(--ink); padding-top: 9px; border-top: 1px solid var(--line); }
.envio-badge { display: inline-flex; padding: 2px 9px; border-radius: 4px; font-size: 0.8rem; font-weight: 800; }
.envio-badge.gratis { background: #d1fae5; color: #065f46; }
.envio-badge.calculando { background: var(--champagne); color: rgba(19,11,11,.55); }
.order-summary-action { padding: 14px 20px; border-top: 1px solid var(--line); }
.btn-pay {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 54px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: white; border: none; border-radius: 10px;
  font-weight: 900; font-size: 1rem; cursor: pointer;
  box-shadow: 0 10px 28px rgba(255,0,0,0.24);
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: var(--sans);
}
.btn-pay:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255,0,0,0.3); }
.btn-pay:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.safe-badge { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 0 0; font-size: 0.75rem; color: rgba(19,11,11,0.44); font-weight: 700; }
.cupon-msg { font-size: 0.8rem; font-weight: 700; padding: 4px 0; }

/* ══════════════════════════════════════════
   PÁGINAS DE ESTADO
══════════════════════════════════════════ */
.state-page { min-height: calc(100dvh - 78px); display: grid; place-items: center; padding: 60px 16px; background: var(--champagne); }
.state-card { width: min(560px,100%); background: white; border: 1px solid var(--line); border-radius: 16px; padding: clamp(28px,5vw,52px); text-align: center; box-shadow: var(--shadow); }
.state-icon { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 24px; font-size: 2.2rem; }
.state-icon.success { background: #d1fae5; }
.state-icon.error   { background: #fee2e2; }
.state-icon.pending { background: #fef3c7; }
.state-card h1 { font-size: clamp(2rem,5vw,3.2rem); margin-bottom: 12px; }
.state-card > p { color: rgba(19,11,11,0.64); line-height: 1.75; margin-bottom: 8px; }
.order-number-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--champagne); border-radius: 8px; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; margin: 16px 0; }
.state-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* ══════════════════════════════════════════
   ADMIN
══════════════════════════════════════════ */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; flex-shrink: 0; background: var(--ink); color: var(--cream); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-brand { padding: 20px 18px 16px; border-bottom: 1px solid rgba(255,250,243,0.1); display: flex; align-items: center; gap: 10px; }
.sidebar-brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.sidebar-brand span { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.sidebar-nav { flex: 1; padding: 12px 0; }
.sidebar-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 18px; background: none; border: none; color: rgba(255,250,243,0.65); font-size: 0.88rem; font-weight: 700; text-align: left; cursor: pointer; transition: background 0.15s, color 0.15s; font-family: var(--sans); }
.sidebar-nav button:hover, .sidebar-nav button.active { background: rgba(255,250,243,0.1); color: var(--cream); }
.sidebar-nav button.active { border-left: 3px solid var(--red); padding-left: 15px; }
.nav-icon { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-footer { padding: 14px 18px; border-top: 1px solid rgba(255,250,243,0.1); display: flex; flex-direction: column; gap: 8px; }
.btn-back-store { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(255,250,243,0.08); border: 1px solid rgba(255,250,243,0.14); border-radius: 8px; color: rgba(255,250,243,0.8); font-size: 0.82rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: background 0.15s; font-family: var(--sans); }
.btn-back-store:hover { background: rgba(255,250,243,0.14); color: var(--cream); }
.btn-logout { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: none; border: none; color: rgba(255,250,243,0.5); font-size: 0.8rem; font-weight: 700; cursor: pointer; font-family: var(--sans); }
.btn-logout:hover { color: rgba(255,250,243,0.8); }
.admin-content { flex: 1; min-width: 0; background: #f4f4f5; padding: 28px 24px; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.admin-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.admin-section-head h2 { font-size: 1.8rem; }
.admin-card { background: white; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th { padding: 11px 14px; text-align: left; font-weight: 900; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(19,11,11,0.45); border-bottom: 2px solid #e5e7eb; white-space: nowrap; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafa; }
.tbl-img { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; }
.admin-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 6px; font-size: 0.73rem; font-weight: 900; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-red   { background: #fee2e2; color: #991b1b; }
.badge-yellow{ background: #fef3c7; color: #92400e; }
.badge-blue  { background: #dbeafe; color: #1e40af; }
.badge-gray  { background: #f3f4f6; color: #374151; }
.btn-admin { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-weight: 800; font-size: 0.84rem; cursor: pointer; border: none; transition: opacity 0.15s; font-family: var(--sans); }
.btn-admin:hover { opacity: .85; }
.btn-admin-primary { background: var(--ink); color: white; }
.btn-admin-red     { background: var(--red); color: white; }
.btn-admin-ghost   { background: #f3f4f6; color: var(--ink); }
.btn-admin-outline { background: white; color: var(--ink); border: 1px solid #d1d5db !important; }
.admin-search-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-search-bar input, .admin-search-bar select { min-height: 40px; padding: 0 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 0.88rem; outline: none; background: white; font-family: var(--sans); }
.admin-search-bar input:focus, .admin-search-bar select:focus { border-color: var(--red); }

/* Modal admin */
.admin-modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(19,11,11,0.5); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.admin-modal-overlay.open { opacity: 1; pointer-events: auto; }
.admin-modal { width: min(800px,100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: white; border-radius: 14px; box-shadow: 0 32px 80px rgba(19,11,11,0.22); transform: translateY(16px); transition: transform 0.25s; }
.admin-modal-overlay.open .admin-modal { transform: translateY(0); }
.admin-modal-head { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; background: white; border-bottom: 1px solid #e5e7eb; }
.admin-modal-head h3 { font-size: 1.5rem; }
.btn-modal-close { width: 36px; height: 36px; border: 1px solid #e5e7eb; border-radius: 8px; background: white; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; }
.admin-modal-body { padding: 22px; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.admin-form-grid .full { grid-column: 1 / -1; }
.admin-form-group { display: flex; flex-direction: column; gap: 5px; }
.admin-form-group label { font-size: 0.76rem; font-weight: 900; color: rgba(19,11,11,0.55); text-transform: uppercase; letter-spacing: 0.05em; }
.admin-form-group input, .admin-form-group select, .admin-form-group textarea { min-height: 42px; padding: 0 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 0.9rem; outline: none; background: #fafafa; font-family: var(--sans); }
.admin-form-group textarea { min-height: 80px; padding: 10px 12px; resize: vertical; }
.admin-form-group input:focus, .admin-form-group select:focus, .admin-form-group textarea:focus { border-color: var(--red); background: white; }
.admin-modal-footer { padding: 16px 22px; border-top: 1px solid #e5e7eb; display: flex; gap: 10px; justify-content: flex-end; }

/* Image upload */
.img-upload-zone { border: 2px dashed #d1d5db; border-radius: 10px; padding: 24px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.img-upload-zone:hover, .img-upload-zone.drag-over { border-color: var(--red); background: rgba(255,0,0,0.03); }
.img-upload-zone input { display: none; }
.img-upload-zone p { margin: 8px 0 0; font-size: 0.82rem; color: rgba(19,11,11,0.48); }
.img-preview-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.img-preview-item { position: relative; width: 80px; height: 80px; border-radius: 8px; overflow: hidden; border: 2px solid #e5e7eb; cursor: grab; }
.img-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.img-preview-item .remove-img { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(19,11,11,0.75); color: white; border: none; font-size: 0.7rem; cursor: pointer; display: grid; place-items: center; }
.img-preview-item.primary { border-color: var(--red); }
.img-preview-item.primary::after { content: 'Principal'; position: absolute; bottom: 0; left: 0; right: 0; padding: 2px; background: rgba(255,0,0,0.82); color: white; font-size: 0.58rem; font-weight: 900; text-align: center; }

/* Pedidos estado */
.status-select { padding: 5px 10px; border-radius: 6px; border: 1px solid #e5e7eb; font-size: 0.82rem; font-weight: 700; cursor: pointer; min-height: unset; background: white; font-family: var(--sans); }

/* Config */
.config-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 16px; }
.config-card { background: white; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px; }
.config-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.config-card-head h3 { font-size: 1.1rem; }
.cred-indicator { display: flex; align-items: center; gap: 5px; font-size: 0.76rem; font-weight: 800; }
.cred-indicator::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.cred-indicator.ok::before { background: #10b981; }
.cred-indicator.ok  { color: #065f46; }
.cred-indicator.nok::before { background: #9ca3af; }
.cred-indicator.nok { color: #6b7280; }

/* Envíos */
.province-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.province-row { display: grid; grid-template-columns: 1fr 140px 36px; gap: 8px; align-items: center; }
.province-row select, .province-row input { min-height: 38px; font-size: 0.86rem; }
.province-row button { width: 36px; height: 36px; border: 1px solid #fee2e2; border-radius: 8px; background: #fee2e2; color: #991b1b; cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; }

/* Ofertas */
.oferta-cards { display: flex; flex-direction: column; gap: 10px; }
.oferta-card { background: white; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.oferta-info { flex: 1; }
.oferta-info h4 { font-size: 0.98rem; margin-bottom: 3px; }
.oferta-info p { font-size: 0.78rem; color: rgba(19,11,11,0.54); }
.oferta-actions { display: flex; align-items: center; gap: 8px; }
.toggle-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track { position: absolute; inset: 0; border-radius: 999px; background: #d1d5db; cursor: pointer; transition: background 0.2s; }
.toggle-track::before { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: white; top: 3px; left: 3px; transition: transform 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.toggle-switch input:checked + .toggle-track { background: var(--red); }
.toggle-switch input:checked + .toggle-track::before { transform: translateX(18px); }

/* Avisos */
.aviso-row { display: grid; grid-template-columns: 1fr 36px; gap: 8px; margin-bottom: 8px; align-items: center; }
.aviso-row input { min-height: 40px; font-size: 0.88rem; }
.aviso-row button { width: 36px; height: 36px; border: 1px solid #fee2e2; border-radius: 8px; background: #fee2e2; color: #991b1b; cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; }

/* Toast */
.admin-toast { position: fixed; bottom: 24px; right: 24px; z-index: 999; padding: 12px 20px; border-radius: 10px; background: var(--ink); color: var(--cream); font-weight: 700; font-size: 0.88rem; box-shadow: 0 8px 28px rgba(19,11,11,0.25); transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform 0.3s, opacity 0.3s; }
.admin-toast.show { transform: translateY(0); opacity: 1; }
.admin-toast.error   { background: var(--red); }
.admin-toast.success { background: #065f46; }

/* Auth */
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--champagne); }
.auth-screen[hidden], .admin-shell[hidden] { display: none !important; }
.auth-card { width: min(400px,100%); background: white; border: 1px solid var(--line); border-radius: 14px; padding: 36px 32px; box-shadow: var(--shadow); text-align: center; }
.auth-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; }
.auth-card h1 { font-size: 2rem; margin-bottom: 6px; }
.auth-card > p { color: rgba(19,11,11,0.54); font-size: 0.88rem; margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.auth-error { padding: 10px 14px; background: #fee2e2; border-radius: 8px; color: #991b1b; font-size: 0.84rem; font-weight: 700; display: none; margin-bottom: 8px; }

/* Mobile admin */
.admin-mobile-toggle { display: none; position: fixed; bottom: 20px; left: 20px; z-index: 100; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: white; border: none; font-size: 1.3rem; cursor: pointer; box-shadow: 0 4px 14px rgba(19,11,11,0.3); }

@media (max-width: 860px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .admin-table thead { display: none; }
  .admin-table tr { display: block; background: white; border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(19,11,11,0.06); }
  .admin-table td { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f3f4f6; padding: 10px 14px; }
  .admin-table td:last-child { border-bottom: none; }
  .admin-table td[data-label]::before { content: attr(data-label); font-size: 0.72rem; font-weight: 900; color: rgba(19,11,11,0.42); text-transform: uppercase; letter-spacing: 0.06em; flex-shrink: 0; margin-right: 12px; }
  .admin-table td.td-img::before { display: none; }
  .admin-table td.td-img { justify-content: flex-start; }
  .status-select { width: 100%; }
  .admin-mobile-toggle { display: grid; place-items: center; }
  .admin-sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 99; transform: translateX(-100%); transition: transform 0.25s; width: 220px; }
  .admin-sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(19,11,11,0.2); }
  .admin-form-grid { grid-template-columns: 1fr; }
  .config-cards { grid-template-columns: 1fr; }
}

@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.45} }

/* ══════════════════════════════════════════
   NEW ADMIN LAYOUT (SPA structure)
══════════════════════════════════════════ */
.admin-body { margin: 0; background: #f4f4f5; }
.admin-app  { display: flex; min-height: 100vh; }

/* Sidebar nav links (a tags) */
.sidebar-nav a { display: block; padding: 11px 18px; color: rgba(255,250,243,0.65); font-size: 0.88rem; font-weight: 700; transition: background 0.15s, color 0.15s; text-decoration: none; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,250,243,0.1); color: var(--cream); }
.sidebar-nav a.active { border-left: 3px solid var(--red); padding-left: 15px; }
.sidebar-logout { display: block; width: 100%; padding: 14px 18px; background: none; border: none; border-top: 1px solid rgba(255,250,243,0.1); color: rgba(255,250,243,0.5); font-size: 0.8rem; font-weight: 700; cursor: pointer; font-family: var(--sans); text-align: left; margin-top: auto; }
.sidebar-logout:hover { color: rgba(255,250,243,0.8); }

.admin-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { display: flex; align-items: center; gap: 14px; padding: 14px 24px; background: white; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 10; }
.admin-topbar h1 { flex: 1; font-size: 1.35rem; margin: 0; }
.sidebar-toggle { display: none; background: none; border: 1px solid #e5e7eb; border-radius: 8px; width: 38px; height: 38px; font-size: 1.1rem; cursor: pointer; }
.admin-main { flex: 1; padding: 24px; }
.admin-loading { color: rgba(19,11,11,0.45); font-size: 0.9rem; padding: 40px 0; text-align: center; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 8px; }
.stat-card { background: white; border: 1px solid #e5e7eb; border-radius: 10px; padding: 18px 20px; }
.stat-label { display: block; font-size: 0.74rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(19,11,11,0.45); margin-bottom: 6px; }
.stat-value { font-size: 1.9rem; font-weight: 900; font-family: var(--serif); }

/* Table helpers */
.table-wrap { overflow-x: auto; background: white; border: 1px solid #e5e7eb; border-radius: 10px; }
.table-btn  { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 6px; background: #f3f4f6; border: 1px solid #e5e7eb; font-size: 0.78rem; font-weight: 800; cursor: pointer; font-family: var(--sans); transition: background 0.15s; margin-right: 4px; }
.table-btn:hover { background: #e5e7eb; }
.table-btn.danger { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.table-btn.danger:hover { background: #fecaca; }
.empty-row { text-align: center; color: rgba(19,11,11,0.45); padding: 32px 0 !important; }

/* Status badges */
.status-badge { display: inline-flex; padding: 3px 9px; border-radius: 6px; font-size: 0.74rem; font-weight: 900; text-transform: capitalize; }
.status-badge.status-aprobado, .status-badge.status-confirmado, .status-badge.status-entregado { background: #d1fae5; color: #065f46; }
.status-badge.status-pendiente, .status-badge.status-preparando, .status-badge.status-in_process { background: #fef3c7; color: #92400e; }
.status-badge.status-enviado { background: #dbeafe; color: #1e40af; }
.status-badge.status-fallido, .status-badge.status-rechazado, .status-badge.status-cancelado { background: #fee2e2; color: #991b1b; }

/* Modal (new shared modal) */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(19,11,11,0.5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box { width: min(860px,100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: white; border-radius: 14px; box-shadow: 0 32px 80px rgba(19,11,11,0.22); }
.modal-head { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; background: white; border-bottom: 1px solid #e5e7eb; }
.modal-head h2 { font-size: 1.4rem; margin: 0; }
.modal-body { padding: 22px; }
.modal-close { width: 36px; height: 36px; border: 1px solid #e5e7eb; border-radius: 8px; background: white; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; }

/* Toast (site-wide) */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { padding: 12px 20px; border-radius: 10px; background: var(--ink); color: var(--cream); font-weight: 700; font-size: 0.88rem; box-shadow: 0 8px 28px rgba(19,11,11,0.25); transform: translateY(20px); opacity: 0; transition: transform 0.3s, opacity 0.3s; max-width: 320px; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.toast-error   { background: #991b1b; }
.toast.toast-success { background: #065f46; }

/* Upload zone */
.upload-zone { border: 2px dashed #d1d5db; border-radius: 10px; padding: 24px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--red); background: rgba(255,0,0,0.03); }
.upload-zone p { margin: 8px 0 0; font-size: 0.84rem; color: rgba(19,11,11,0.5); }
.upload-zone button { background: none; border: none; color: var(--red-deep); font-weight: 800; cursor: pointer; font-family: var(--sans); padding: 0; }

/* Img thumb (product form) */
.img-thumb-wrap { position: relative; }
.img-remove { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: white; border: none; font-size: 0.75rem; cursor: pointer; display: grid; place-items: center; line-height: 1; padding: 0; }

/* Toggle slider (alias for toggle-track) */
.toggle-slider { position: absolute; inset: 0; border-radius: 999px; background: #d1d5db; cursor: pointer; transition: background 0.2s; }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: white; top: 3px; left: 3px; transition: transform 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.toggle-switch input:checked + .toggle-slider { background: var(--red); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

/* Form helpers */
.form-hint  { font-size: 0.78rem; color: rgba(19,11,11,0.5); margin: 4px 0 0; }
.form-error { padding: 10px 14px; background: #fee2e2; border-radius: 8px; color: #991b1b; font-size: 0.84rem; font-weight: 700; margin-bottom: 8px; }
.form-section { background: white; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.form-section h2 { font-size: 1.15rem; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid #e5e7eb; }
.form-group label { font-size: 0.8rem; font-weight: 700; color: rgba(19,11,11,0.6); }
.form-group input, .form-group select, .form-group textarea { min-height: 42px; padding: 0 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 0.9rem; outline: none; background: white; font-family: var(--sans); width: 100%; }
.form-group textarea { min-height: 80px; padding: 10px 12px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--red-deep); }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: auto; min-height: auto; margin: 0; accent-color: var(--red-deep); }

/* Gallery admin */
.gallery-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: 10px; margin-top: 12px; }

/* ── Product detail page ── */
.product-detail-page { padding: 40px 0 80px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: rgba(19,11,11,0.5); margin-bottom: 28px; flex-wrap: wrap; }
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { color: var(--red-deep); }
.breadcrumb span { color: rgba(19,11,11,0.3); }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery { position: sticky; top: 90px; }
.gallery-main { border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--bg-soft, var(--champagne)); margin-bottom: 10px; }
.gallery-single { border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--bg-soft, var(--champagne)); }
.gallery-single img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumb { border: 2px solid transparent; border-radius: 8px; overflow: hidden; width: 72px; height: 72px; flex-shrink: 0; padding: 0; background: none; cursor: pointer; transition: border-color 0.15s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { border-color: var(--red-deep); }

.product-detail-info { padding-top: 8px; }
.product-detail-info h1 { font-family: var(--serif); font-size: clamp(1.8rem,3vw,2.8rem); margin-bottom: 8px; line-height: 1.2; }
.product-desc { color: rgba(19,11,11,0.65); line-height: 1.75; margin: 12px 0 16px; font-size: 0.96rem; }
.price-row { margin: 20px 0 16px; }
.price-final { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--red-deep); }
.add-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.btn.full { width: 100%; text-align: center; justify-content: center; }
.related-section { padding: 60px 0; background: var(--champagne); }
.product-details-list { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.9rem; line-height: 1.8; color: rgba(19,11,11,0.7); }

/* ── Checkout page ── */
.checkout-body { background: var(--champagne); }
.checkout-main { padding: 40px 0 80px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 420px; gap: 32px; align-items: start; }
.checkout-form-col { }
.checkout-summary-col { position: sticky; top: 90px; }
.order-summary { background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.order-summary h2 { font-size: 1.3rem; padding: 18px 20px; border-bottom: 1px solid var(--line); margin: 0; }
.summary-rows { padding: 12px 20px 0; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.summary-row:last-child { border-bottom: none; padding-top: 14px; margin-top: 4px; }
.summary-row.total { font-size: 1.05rem; font-weight: 900; }
.mp-badge { display: flex; align-items: center; gap: 8px; padding: 12px 20px; font-size: 0.78rem; color: rgba(19,11,11,0.5); border-top: 1px solid var(--line); }
.state-order { display: flex; flex-direction: column; gap: 4px; background: var(--champagne); border-radius: 8px; padding: 12px 20px; margin: 16px 0; }
.state-order span { font-size: 0.8rem; color: rgba(19,11,11,0.55); }
.state-order strong { font-family: var(--serif); font-size: 1.6rem; }

/* Responsive new additions */
@media (max-width: 900px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-gallery { position: static; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary-col { position: static; }
  .sidebar-toggle { display: grid; place-items: center; }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-main { padding: 16px; }
  .modal-box { border-radius: 10px; }
}
