:root {
  --cream: #FBF3EF;
  --cream-alt: #F5E6EC;
  --ink: #2A1B22;
  --ink-soft: #6E5A63;
  --plum: #5C2A72;
  --plum-dark: #3E1B4D;
  --rose: #C6487B;
  --rose-soft: #F0C9DA;
  --champagne: #D9B98A;
  --gold: #C79A5E;
  --white: #FFFFFF;

  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-soft: 0 20px 45px -25px rgba(61, 25, 56, 0.45);
  --shadow-card: 0 12px 30px -18px rgba(61, 25, 56, 0.35);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  animation: page-fade-in .4s ease;
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.page-leaving {
  opacity: 0;
  transition: opacity .18s ease;
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  body.page-leaving { opacity: 1; transition: none; }
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--plum-dark);
  margin: 0 0 .5em;
  line-height: 1.15;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--plum);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--rose);
  margin: 0 0 .6em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--plum);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--plum-dark); }

.btn-outline {
  background: transparent;
  border-color: rgba(92, 42, 114, .35);
  color: var(--plum-dark);
}
.btn-outline:hover { background: rgba(92, 42, 114, .08); }

.btn-on-dark { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-on-dark:hover { background: rgba(255,255,255,.12); }

.btn-small { padding: 10px 18px; font-size: .85rem; }
.btn[hidden] { display: none; }

.btn-social {
  background: var(--white);
  border-color: var(--cream-alt);
  color: var(--ink);
  width: 100%;
  justify-content: center;
}
.btn-social:hover { background: var(--cream-alt); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: .82rem;
  margin: 20px 0;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--cream-alt);
}
.auth-social { display: flex; flex-direction: column; gap: 10px; }

.announce-bar {
  background: var(--plum-dark);
  color: var(--cream-alt);
}
.announce-bar p {
  margin: 0;
  text-align: center;
  font-size: .8rem;
  letter-spacing: .02em;
  padding: 8px 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 243, 239, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(92, 42, 114, .08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--plum-dark);
  letter-spacing: .01em;
}
.logo span { color: var(--rose); font-style: italic; }
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 2px;
}
.main-nav a:hover { color: var(--plum); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--rose);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.nav-account-link { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--plum-dark);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  padding: 72px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 85% 8%, rgba(198,72,123,.16), transparent 65%),
    radial-gradient(50% 45% at 5% 95%, rgba(92,42,114,.14), transparent 65%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  margin-bottom: .4em;
}
.hero h1 em { color: var(--rose); font-style: italic; }
.hero-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 34px;
}
.hero-actions.center { justify-content: center; }

.hero-stats {
  display: flex;
  gap: 34px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--plum-dark); }
.hero-stats span { font-size: .78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-media-glow {
  position: absolute;
  inset: 6% 10%;
  background: linear-gradient(160deg, var(--rose-soft), var(--champagne) 70%);
  border-radius: 50% 45% 55% 50% / 55% 50% 50% 45%;
  filter: blur(2px);
  opacity: .8;
  z-index: 0;
}
.hero-img-main {
  position: relative;
  z-index: 1;
  width: min(380px, 80%);
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 6px solid var(--cream);
}
.hero-img-float {
  position: absolute;
  z-index: 2;
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  right: 4%;
  bottom: 4%;
  border: 5px solid var(--cream);
  box-shadow: var(--shadow-card);
}

section { padding: 88px 0; }
.section-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-lead { color: var(--ink-soft); }

.benefits { background: var(--white); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.benefit-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.benefit-icon { font-size: 1.8rem; display: block; margin-bottom: 14px; }
.benefit-card h3 { font-size: 1.08rem; margin-bottom: .35em; }
.benefit-card p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

.products.alt { background: var(--cream-alt); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.scrunchie-grid { grid-template-columns: repeat(4, 1fr); }

.product-card {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease;
}
.product-card:hover { transform: translateY(-6px); }
.product-img { aspect-ratio: 1/1; overflow: hidden; background: var(--cream-alt); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-img img { transform: scale(1.06); }

.product-card figcaption { padding: 16px 18px 20px; }
.product-card h3 { font-size: 1.02rem; margin-bottom: .2em; }

.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--plum);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 1.08rem; }
.step-card p { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.steps-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.about { background: var(--white); }
.about-inner {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-copy h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.about-copy p { color: var(--ink-soft); }
.about-copy strong { color: var(--plum-dark); }

.cta-final {
  background: linear-gradient(135deg, var(--plum-dark), var(--plum) 60%, var(--rose));
  color: var(--white);
}
.cta-final-inner { text-align: center; max-width: 620px; }
.cta-final .eyebrow { color: var(--rose-soft); }
.cta-final h2 { color: var(--white); }
.cta-final p { color: rgba(255,255,255,.85); }
.cta-final .btn-primary { background: var(--white); color: var(--plum-dark); }
.cta-final .btn-primary:hover { background: var(--cream); }

.site-footer { background: var(--plum-dark); color: rgba(255,255,255,.82); padding-top: 64px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .logo { color: var(--white); }
.footer-brand .logo span { color: var(--rose-soft); }
.footer-brand p { color: rgba(255,255,255,.7); max-width: 34ch; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.footer-col a:hover { color: var(--rose-soft); }
.footer-static { color: rgba(255,255,255,.65); }
.footer-bottom { padding: 22px 24px; text-align: center; font-size: .82rem; color: rgba(255,255,255,.55); }

.contact-menu-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--plum-dark);
  text-align: center;
  margin: 0 0 14px;
}
.contact-menu-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.contact-menu-close:hover { background: var(--cream-alt); color: var(--ink); }

.out-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--plum-dark);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: 999px;
}
.price-tbd { color: var(--ink-soft); font-weight: 500; }

.stock-line { font-size: .8rem; margin: 0 0 12px; }
.stock-in { color: #1a7f4b; }
.stock-out { color: #B3261E; font-weight: 600; }

.product-card.out-of-stock .product-img img { opacity: .5; filter: grayscale(.4); }
.product-card.out-of-stock .price { text-decoration: line-through; opacity: .6; }

.cart-add-btn.is-disabled {
  background: var(--cream-alt);
  color: var(--ink-soft);
  cursor: not-allowed;
  text-decoration: line-through;
}
.cart-add-btn.is-disabled:hover { background: var(--cream-alt); }

.card-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fav-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream-alt);
  color: var(--plum);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s ease, color .15s ease, background .15s ease;
}
.fav-btn:hover { transform: scale(1.06); }
.fav-btn.is-fav { color: var(--rose); }

.cart-add-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--plum);
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}
.cart-add-btn:hover { background: var(--plum-dark); }
.cart-add-btn.just-added { background: #1a7f4b; }

.alert-btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--cream-alt);
  color: var(--plum-dark);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.alert-btn:hover { color: var(--rose); }
.alert-btn:disabled { color: var(--ink-soft); cursor: default; }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--plum-dark);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--rose); font-size: 1.2rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 12px 0 0; color: var(--ink-soft); }

.testimonials { background: var(--cream-alt); }
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  margin: 0;
}
.testimonial-card p { font-style: italic; color: var(--ink); }
.testimonial-card cite { font-style: normal; color: var(--rose); font-weight: 600; font-size: .88rem; }

.auth-section { padding: 72px 0; }
.auth-wrap { display: flex; justify-content: center; }
.auth-card {
  width: min(420px, 100%);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 32px 28px;
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.auth-tab {
  flex: 1;
  padding: 10px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
}
.auth-tab.is-active { background: var(--plum); color: var(--white); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form[hidden] { display: none; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--ink-soft); font-weight: 500; }
.auth-form input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--cream-alt);
  background: var(--cream);
  font: inherit;
  color: var(--ink);
}
.auth-form input:focus { outline: 2px solid var(--plum); outline-offset: 1px; }
.auth-error { color: #B3261E; font-size: .88rem; margin: 0; }
.auth-success { color: #1a7f4b; font-size: .88rem; margin: 0; }
.auth-hint { color: var(--ink-soft); font-size: .85rem; margin: 0; }
.auth-forgot {
  align-self: center;
  color: var(--plum);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
}
.auth-forgot:hover { color: var(--rose); text-decoration: underline; }

.account-section, .admin-section { padding: 64px 0; }
.account-head {
  text-align: left;
  max-width: none;
  margin: 0 0 32px;
}
.account-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.account-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 200px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 90px;
}
.account-nav-item {
  padding: 12px 14px;
  border-radius: 10px;
  text-align: left;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
}
.account-nav-item:hover { background: var(--cream-alt); color: var(--ink); }
.account-nav-item.is-active { background: var(--plum); color: var(--white); }
.account-nav-admin { color: var(--plum-dark); font-weight: 600; }
.account-nav-logout {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--cream-alt);
  color: #B3261E;
}
.account-nav-logout:hover { background: rgba(179,38,30,.08); color: #B3261E; }
.account-panels {
  flex: 1;
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.account-panel { display: none; }
.account-panel.is-active { display: block; }
.account-panel h2 { font-size: 1.1rem; margin-bottom: 16px; }
.account-panel .auth-form { max-width: 380px; }
.account-divider { border: none; border-top: 1px solid var(--cream-alt); margin: 28px 0; }
.account-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.account-panel-head h2 { margin-bottom: 0; }
.account-empty { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.account-list { display: flex; flex-direction: column; gap: 12px; }
.account-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.order-row { border-bottom: 1px solid var(--cream-alt); padding-bottom: 12px; }
.order-row:last-child { border-bottom: none; padding-bottom: 0; }
.order-row-main { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.order-status {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cream-alt);
  color: var(--plum-dark);
}
.status-pendiente { background: #FDF0C4; color: #8A6D1D; }
.status-confirmado { background: #DCE8FB; color: #1D4ED8; }
.status-entregado { background: #E1EFE6; color: #1A7F4B; }
.status-cancelado { background: #F5DCD9; color: #B3261E; }
.order-date { font-size: .8rem; color: var(--ink-soft); }
.order-items { margin: 0 0 4px; font-size: .92rem; }
.order-total { margin: 0; font-weight: 600; color: var(--plum-dark); }
.mini-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  max-width: 160px;
  margin: 0 auto;
}
.mini-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; }
.mini-card span { font-size: .82rem; font-weight: 500; }
.mini-card .mini-card-note { font-size: .74rem; color: var(--ink-soft); margin: -4px 0 0; }
.mini-card .btn { width: 100%; justify-content: center; margin-top: auto; }

.product-card.highlight {
  outline: 3px solid var(--rose);
  outline-offset: 6px;
  border-radius: var(--radius-md);
  transition: outline-color .3s ease;
}

.admin-block {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.admin-block h2 { font-size: 1.1rem; margin-bottom: 16px; }
.admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  align-items: end;
}
.admin-form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--ink-soft); font-weight: 500; }
.admin-form input, .admin-form select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--cream-alt);
  background: var(--cream);
  font: inherit;
}
.admin-photo-preview { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; align-self: end; }
.admin-photo-preview[hidden] { display: none; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--cream-alt); white-space: nowrap; }
.admin-input { width: 80px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--cream-alt); font: inherit; }
.admin-product-cell { display: flex; align-items: center; gap: 10px; white-space: normal; }
.admin-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.admin-table select.admin-input { width: auto; }

.orders-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.orders-filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--cream-alt);
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.orders-filter-btn:hover { background: rgba(92, 42, 114, .14); }
.orders-filter-btn.is-active { background: var(--plum); color: var(--white); }
.orders-filter-btn .count { opacity: .75; margin-left: 3px; }

.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.order-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.order-card-top-left { display: flex; align-items: center; gap: 10px; }
.order-card-date { font-size: .8rem; color: var(--ink-soft); }
.order-card-total { font-family: var(--font-display); font-size: 1.1rem; color: var(--plum-dark); font-weight: 600; }
.order-card-client { font-size: .95rem; margin: 0; }
.order-card-client strong { color: var(--plum-dark); }
.order-guest-tag {
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--ink-soft);
  background: var(--white);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}
.order-card-contact { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.order-card-items { font-size: .88rem; margin: 0; }
.order-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  margin-top: 2px;
  border-top: 1px solid rgba(92, 42, 114, .1);
}
.order-card-payment { font-size: .82rem; color: var(--ink-soft); }
.order-card-payment strong { color: var(--plum-dark); }
.order-status-select {
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  cursor: pointer;
  font-family: inherit;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.stat-card .stat-label { font-size: .8rem; color: var(--ink-soft); margin: 0 0 6px; }
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--plum-dark);
  font-variant-numeric: tabular-nums;
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.chart-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.chart-card h3 { font-size: .98rem; margin: 0 0 16px; color: var(--plum-dark); }
.chart-empty { color: var(--ink-soft); font-size: .88rem; }
.bar-list { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 88px 1fr 56px; align-items: center; gap: 10px; }
.bar-row-label {
  font-size: .8rem;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-track {
  background: var(--cream-alt);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--plum);
  min-width: 4px;
}
.bar-row-value { font-size: .82rem; font-weight: 600; color: var(--plum-dark); text-align: right; font-variant-numeric: tabular-nums; }

.cart-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plum-dark);
  cursor: pointer;
  transition: background .15s ease;
}
.cart-toggle:hover { background: rgba(92,42,114,.08); }
.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--rose);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 27, 34, .5);
  backdrop-filter: blur(2px);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.cart-backdrop.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  width: min(380px, 100vw);
  background: var(--cream);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .25s ease;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--cream-alt);
}
.cart-drawer-head h2 { margin: 0; font-size: 1.2rem; }
.cart-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  cursor: pointer;
}
.cart-close:hover { background: var(--cream-alt); color: var(--ink); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: flex; gap: 12px; align-items: center; }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { margin: 0 0 2px; font-size: .9rem; font-weight: 500; }
.cart-item-price { margin: 0 0 6px; font-size: .85rem; color: var(--ink-soft); }
.cart-item-qty { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--cream-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.qty-btn:hover { background: var(--cream-alt); }
.cart-remove { color: var(--ink-soft); cursor: pointer; align-self: flex-start; }
.cart-remove:hover { color: #B3261E; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--cream-alt); }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 14px; }
.cart-footer .btn { width: 100%; justify-content: center; }
.cart-footer .btn-prex { margin-top: 10px; }

.prex-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 27, 34, .5);
  backdrop-filter: blur(2px);
  z-index: 210;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.prex-backdrop.open { opacity: 1; pointer-events: auto; }

.prex-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 220;
  width: min(400px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 30px 24px 24px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.95);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.prex-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.prex-info {
  background: var(--cream);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
  text-align: center;
}
.prex-info p { margin: 0 0 4px; font-size: .88rem; color: var(--ink-soft); }
.prex-info-line { font-size: 1rem !important; color: var(--plum-dark) !important; }
.prex-info-total { margin-top: 8px !important; font-weight: 600; color: var(--rose) !important; }

.success-modal { text-align: center; }
.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--cream-alt);
  color: var(--plum);
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-text { color: var(--ink-soft); font-size: .92rem; margin-bottom: 20px; }
.success-modal .btn { width: 100%; justify-content: center; }

.confirm-modal { text-align: center; }
.confirm-modal .success-text { margin-bottom: 22px; }
.confirm-modal-actions { display: flex; gap: 10px; }
.confirm-modal-actions .btn { flex: 1; justify-content: center; }
.confirm-modal-actions .btn-danger { background: #B3261E; color: var(--white); box-shadow: none; }
.confirm-modal-actions .btn-danger:hover { background: #932019; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; margin-bottom: 12px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .payment-grid { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .product-grid, .scrunchie-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-media { order: -1; max-width: 360px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .testimonials-track { grid-template-columns: repeat(2, 1fr); }
  .account-layout { flex-direction: column; }
  .account-nav {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    position: static;
  }
  .account-nav-logout { margin-top: 0; padding-top: 12px; border-top: none; border-left: 1px solid var(--cream-alt); }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    border-bottom: 1px solid rgba(92,42,114,.08);
  }
  .main-nav.open { max-height: 520px; }
  .main-nav a { padding: 14px 0; width: 100%; text-align: center; }
  .nav-account-link {
    display: block;
    color: var(--plum);
    font-weight: 600;
  }
  .nav-toggle { display: flex; }
  .header-inner { gap: 10px; }
  .header-actions { display: none; }
  .product-grid, .scrunchie-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .payment-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-col { align-items: center; }
  .testimonials-track { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .product-grid, .scrunchie-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-img-float { width: 96px; height: 96px; }
}
