/* ============================================================
   RAÍZ & AROMA — Main Stylesheet
   Brand: earth tones, organic, handcrafted
   ============================================================ */

/* --- Tokens ------------------------------------------------- */
:root {
  --corteza:   #514335;
  --raiz:      #78683f;
  --arena:     #c99e75;
  --crema:     #faf7f2;
  --crema-2:   #f0ebe1;
  --hoja:      #7a8c4a;
  --amber:     #f4a620;
  --amber-dim: #d4891a;
  --white:     #ffffff;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', system-ui, sans-serif;

  --nav-h: 60px;
  --ease-organic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--crema);
  color: var(--corteza);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Hide default cursor globally */
* { cursor: none !important; }

/* ============================================================
   FLAME CURSOR
   ============================================================ */
#flame-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 48px;
  pointer-events: none;
  z-index: 9999;
  will-change: left, top;
  filter: drop-shadow(0 0 8px rgba(244, 166, 32, 0.75)) drop-shadow(0 0 3px rgba(200, 100, 0, 0.4));
  transition: filter 0.2s ease, transform 0.2s ease, opacity 0.3s ease;
}

#flame-cursor svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flame-outer {
  fill: var(--amber);
  animation: flame-flicker 1.8s ease-in-out infinite alternate;
  transform-origin: 12px 30px;
}

.flame-inner {
  fill: #f9c84a;
  animation: flame-flicker 1.4s ease-in-out infinite alternate-reverse;
  transform-origin: 12px 28px;
}

.flame-core {
  fill: #fff9e8;
  animation: flame-flicker 1.1s ease-in-out infinite alternate;
  transform-origin: 12px 26px;
}

@keyframes flame-flicker {
  0%   { transform: scaleX(1)    scaleY(1)    rotate(-1deg); }
  25%  { transform: scaleX(0.94) scaleY(1.04) rotate(1.5deg); }
  50%  { transform: scaleX(1.05) scaleY(0.97) rotate(-2deg); }
  75%  { transform: scaleX(0.96) scaleY(1.05) rotate(1deg); }
  100% { transform: scaleX(1.02) scaleY(0.98) rotate(-0.5deg); }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  background: linear-gradient(to bottom, rgba(250,247,242,0.95) 0%, rgba(250,247,242,0) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 2rem;
}

/* Invisible spacer on homepage to push nav-links right */
.nav-spacer { flex: 1; }

/* Logo on left for inner pages — breaks out below the nav bar */
.nav-logo-link {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  margin-right: auto;
  /* shift down so the logo overflows below the nav bar */
  margin-top: 40px;
  opacity: 0.92;
  transition: opacity 0.3s ease, transform 0.35s var(--ease-organic);
  /* ensure it paints above the page content below */
  position: relative;
  z-index: 101;
}
.nav-logo-link:hover { opacity: 1; transform: scale(1.05); }
.nav-logo {
  height: 90px;
  width:  90px;
  object-fit: contain;
  display: block;
  /* soft drop shadow so it reads against any background */
  filter: drop-shadow(0 4px 16px rgba(81,67,53,0.13));
}

/* Make sure the nav itself doesn't clip the overflowing logo */
.site-nav { overflow: visible; }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--raiz);
  text-decoration: none;
  position: relative;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--arena);
  transition: width 0.35s var(--ease-organic);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; }

.lang-switch {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--corteza);
  text-decoration: none;
  opacity: 0.5;
  border: 1px solid var(--arena);
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  transition: opacity 0.3s, background 0.3s;
}
.lang-switch:hover {
  opacity: 1;
  background: var(--crema-2);
}

/* ============================================================
   HERO / HOMEPAGE
   ============================================================ */
.page-home main { overflow: hidden; }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #fff 0%, var(--crema) 55%, var(--crema-2) 100%);
}

.hero-tagline {
  position: absolute;
  bottom: clamp(1.5rem, 5vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  white-space: nowrap;
}
.hero-tagline span {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  font-style: italic;
  color: var(--raiz);
  opacity: 0.6;
  letter-spacing: 0.06em;
}

/* ============================================================
   LOGO STAGE
   ============================================================ */
.logo-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
}

.logo-wrap {
  position: relative;
  width: min(80vh, 90vw);
  aspect-ratio: 655.84 / 660.12;
  user-select: none;
}

.logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Gentle breathing animation */
  animation: logo-breathe 5s ease-in-out infinite;
  will-change: transform;
  transform-origin: center center;
}

@keyframes logo-breathe {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 8px 32px rgba(120,104,63,0.10)); }
  50%       { transform: scale(1.05); filter: drop-shadow(0 16px 48px rgba(120,104,63,0.20)); }
}

/* ============================================================
   HOTSPOT OVERLAY SVG
   ============================================================ */
.logo-hotspots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Invisible clickable rect */
.hotspot {
  fill: transparent;
  stroke: none;
  transition: fill 0.4s ease, stroke 0.4s ease;
}

/* ── Glow halos (hidden until hover) ────────────────────── */
.glow-halo {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.glow-amber { fill: var(--amber);  filter: blur(14px); }
.glow-vase  { fill: #a8b86a;       filter: blur(16px); }
.glow-soap  { fill: var(--arena);  filter: blur(16px); }

/* ── Zone label pill ─────────────────────────────────────── */
.zone-label {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  fill: var(--corteza);
  opacity: 0;
  transition: opacity 0.35s ease;
  letter-spacing: 1.5px;
}

.label-bg {
  fill: rgba(250, 247, 242, 0.88);
  opacity: 0;
  transition: opacity 0.35s ease;
  /* subtle shadow effect via stroke */
  stroke: var(--arena);
  stroke-width: 1;
}

/* Show label + bg together on hover */
.hotspot-link:hover .zone-label,
.hotspot-link:hover .label-bg {
  opacity: 1;
}

/* ── Hover: candle ───────────────────────────────────────── */
.hotspot-link[data-zone="candles"]:hover .hotspot {
  fill: rgba(244, 166, 32, 0.07);
  animation: candle-zone-pulse 2.2s ease-in-out infinite;
}
.hotspot-link[data-zone="candles"]:hover .glow-amber {
  opacity: 0.6;
  animation: candle-glow-pulse 2.2s ease-in-out infinite;
}

@keyframes candle-zone-pulse {
  0%, 100% { fill: rgba(244, 166, 32, 0.05); }
  50%       { fill: rgba(244, 166, 32, 0.13); }
}
@keyframes candle-glow-pulse {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 0.70; }
}

/* ── Hover: vase / velas comestibles ─────────────────────── */
.hotspot-link[data-zone="edibles"]:hover .hotspot {
  fill: rgba(168, 184, 106, 0.08);
  animation: vase-breathe 3s ease-in-out infinite;
}
.hotspot-link[data-zone="edibles"]:hover .glow-vase {
  opacity: 0.45;
  animation: vase-breathe-glow 3s ease-in-out infinite;
}

@keyframes vase-breathe {
  0%, 100% { fill: rgba(168, 184, 106, 0.05); }
  50%       { fill: rgba(168, 184, 106, 0.13); }
}
@keyframes vase-breathe-glow {
  0%, 100% { opacity: 0.30; }
  50%       { opacity: 0.55; }
}

/* ── Hover: package / soaps ──────────────────────────────── */
.hotspot-link[data-zone="soaps"]:hover .hotspot {
  fill: rgba(201, 158, 117, 0.10);
  animation: soap-shimmer 2.8s ease-in-out infinite;
}
.hotspot-link[data-zone="soaps"]:hover .glow-soap {
  opacity: 0.40;
  animation: soap-shimmer-glow 2.8s ease-in-out infinite;
}

@keyframes soap-shimmer {
  0%, 100% { fill: rgba(201, 158, 117, 0.07); }
  50%       { fill: rgba(201, 158, 117, 0.15); }
}
@keyframes soap-shimmer-glow {
  0%, 100% { opacity: 0.28; }
  50%       { opacity: 0.50; }
}

/* ============================================================
   PETALS CANVAS — fixed, full viewport, all pages
   ============================================================ */
#petals-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
}

/* ============================================================
   INNER PAGES — shell
   ============================================================ */
.page-inner main {
  padding-top: calc(var(--nav-h) + 2.5rem);
  min-height: 100vh;
  max-width: 1080px;
  margin: 0 auto;
  padding-left:  clamp(1rem, 5vw, 3rem);
  padding-right: clamp(1rem, 5vw, 3rem);
  padding-bottom: 5rem;
}

/* ── Back link ──────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--raiz);
  text-decoration: none;
  opacity: 0.6;
  margin-bottom: 2rem;
  transition: opacity 0.25s;
}
.back-link:hover { opacity: 1; }

/* ============================================================
   STORE — list page
   ============================================================ */
.store-header {
  margin-bottom: 2.5rem;
}
.store-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--corteza);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.store-desc {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--raiz);
  opacity: 0.65;
}

/* ── Product grid ────────────────────────────────────────── */
.product-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.product-card-link {
  display: block;
  text-decoration: none;
  border: 1px solid var(--crema-2);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.35s ease, transform 0.35s var(--ease-organic);
}
.product-card-link:hover {
  box-shadow: 0 12px 40px rgba(120,104,63,0.12);
  transform: translateY(-4px);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--crema);
  overflow: hidden;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.product-card-link:hover .product-img { transform: scale(1.04); }

.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--crema) 0%, var(--crema-2) 100%);
}
.product-img-placeholder svg { width: 70px; height: auto; }

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--corteza);
  color: var(--crema);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}
.product-badge + .product-badge { left: auto; right: 0.75rem; }
.product-badge--premium { background: var(--amber); color: var(--corteza); }

.product-info {
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.product-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--corteza);
  letter-spacing: 0.01em;
}
.product-scent {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--arena);
}
.product-excerpt {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--raiz);
  opacity: 0.65;
  margin-top: 0.15rem;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.6rem;
}
.product-price {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--corteza);
}
.product-price small {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  opacity: 0.55;
}
.product-cta {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--raiz);
  opacity: 0.5;
  transition: opacity 0.2s;
}
.product-card-link:hover .product-cta { opacity: 1; }

.empty-section {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--arena);
  opacity: 0.7;
  margin-top: 2rem;
}

/* ============================================================
   STORE — single product page
   ============================================================ */
.product-single-wrap {
  max-width: 1000px;
}

.product-single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Gallery */
.ps-gallery {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.ps-main-img {
  width: 100%;
  border-radius: 6px;
  display: block;
  box-shadow: 0 8px 40px rgba(120,104,63,0.10);
}
.ps-img-placeholder {
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--crema) 0%, var(--crema-2) 100%);
  border-radius: 6px;
}
.ps-img-placeholder svg { width: 100px; }

/* Info column */
.ps-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--corteza);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
.ps-badges {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.ps-badges .product-badge { position: static; }
.ps-price {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--raiz);
  margin-bottom: 1.5rem;
}
.ps-price span {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  opacity: 0.5;
}

/* Meta pills */
.ps-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.8rem;
  padding: 1rem 1.2rem;
  background: var(--crema-2);
  border-radius: 4px;
  border-left: 2px solid var(--arena);
}
.ps-meta li {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--raiz);
}
.meta-label {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  color: var(--corteza);
  margin-right: 0.5rem;
  opacity: 0.6;
}

/* Body text */
.ps-body {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--corteza);
  opacity: 0.75;
  margin-bottom: 1.5rem;
}
.ps-body p + p { margin-top: 0.8rem; }

/* Ingredients accordion */
.ps-ingredients {
  margin-bottom: 2rem;
  border-top: 1px solid var(--crema-2);
  padding-top: 1rem;
}
.ps-ingredients summary {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--raiz);
  opacity: 0.6;
  cursor: none;
  user-select: none;
  transition: opacity 0.2s;
}
.ps-ingredients summary:hover { opacity: 1; }
.ps-ingredients ul {
  list-style: none;
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ps-ingredients li {
  font-family: var(--font-sans);
  font-size: 0.73rem;
  background: var(--crema-2);
  border: 1px solid var(--crema-2);
  color: var(--raiz);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
}

/* Buy section */
.ps-buy {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.buy-soon {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--arena);
  opacity: 0.7;
}
.paypal-wrap {
  max-width: 340px;
}
.btn-ml {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffe600;
  color: #333;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 4px;
  width: fit-content;
  transition: filter 0.2s;
}
.btn-ml:hover { filter: brightness(0.92); }

/* ============================================================
   THANK-YOU PAGE
   ============================================================ */
.thankyou-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}
.thankyou-box {
  text-align: center;
  max-width: 480px;
  padding: 2rem;
}
.ty-flame {
  margin-bottom: 1.5rem;
  animation: logo-breathe 3s ease-in-out infinite;
}
.thankyou-box h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 300;
  color: var(--corteza);
  margin-bottom: 1rem;
}
.thankyou-box p {
  font-family: var(--font-sans);
  font-size: .92rem;
  line-height: 1.7;
  color: var(--raiz);
  opacity: .7;
  margin-bottom: 1.5rem;
}
#ref-box {
  background: var(--crema-2);
  border-radius: 4px;
  padding: .6rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  justify-content: center;
}
.ty-ref-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; opacity: .5; }
#ref-code { font-family: monospace; font-size: .8rem; word-break: break-all; }
.ty-btn {
  display: inline-block;
  background: var(--corteza);
  color: var(--crema);
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .75rem 2rem;
  border-radius: 4px;
  transition: filter .2s;
}
.ty-btn:hover { filter: brightness(1.15); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-wrap { max-width: 560px; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.cf-field { display: flex; flex-direction: column; gap: .4rem; }
.cf-field label {
  font-family: var(--font-sans);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--raiz);
  opacity: .6;
}
.cf-field input,
.cf-field textarea {
  padding: .65rem .85rem;
  border: 1px solid var(--crema-2);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--corteza);
  background: var(--white);
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.cf-field input:focus,
.cf-field textarea:focus { border-color: var(--arena); }
.cf-submit {
  align-self: flex-start;
  background: var(--corteza);
  color: var(--crema);
  border: none;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .75rem 2rem;
  transition: filter .2s;
}
.cf-submit:hover:not(:disabled) { filter: brightness(1.15); }
.cf-submit:disabled { opacity: .5; }

/* Mobile: stack columns */
@media (max-width: 680px) {
  .product-single {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .ps-gallery { position: static; }
}

/* ============================================================
   INTRO FADE-IN
   ============================================================ */
.hero,
.site-nav {
  animation: page-enter 1.2s ease forwards;
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   MEDIA QUERIES
   ============================================================ */
@media (max-width: 680px) {
  .nav-links { display: none; }
  .logo-wrap { width: min(95vw, 85vh); }
}

/* ============================================================
   INNER PAGE STYLES
   ============================================================ */
.section-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--crema-2);
  padding-bottom: 1.5rem;
}

.section-desc {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--raiz);
  opacity: 0.7;
  margin-top: 0.75rem;
}

.empty-section {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--arena);
  opacity: 0.7;
}

/* Product grid */
.product-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

.product-card-link {
  text-decoration: none;
  display: block;
  border: 1px solid var(--crema-2);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s var(--ease-organic);
}
.product-card-link:hover {
  box-shadow: 0 8px 32px rgba(120,104,63,0.10);
  transform: translateY(-3px);
}

.product-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: 1rem;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--corteza);
  margin-bottom: 0.35rem;
}

.product-price {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--raiz);
  letter-spacing: 0.04em;
}

.product-excerpt {
  font-size: 0.82rem;
  color: var(--raiz);
  opacity: 0.65;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* Single product */
.product-single { max-width: 720px; }

.product-single-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.product-price-large {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--raiz);
}

.product-single-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.product-single-body {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--corteza);
  opacity: 0.85;
  margin-bottom: 2.5rem;
}

.product-buy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 320px;
}

.btn-ml {
  display: inline-block;
  background: #ffe600;
  color: #333;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 3px;
  text-align: center;
  transition: filter 0.2s ease;
}
.btn-ml:hover { filter: brightness(0.92); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 1rem;
}

.about-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.about-logo-link {
  display: inline-flex;
  transition: transform 0.35s var(--ease-organic), opacity 0.3s ease;
  opacity: 0.9;
}
.about-logo-link:hover {
  transform: scale(1.06);
  opacity: 1;
}

.about-logo {
  width: clamp(120px, 22vw, 180px);
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 24px rgba(120,104,63,0.13));
}

.about-content {
  text-align: center;
}

.about-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--corteza);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.about-subtitle {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--raiz);
  opacity: 0.65;
  margin-bottom: 2.5rem;
}

.about-body {
  text-align: left;
  border-top: 1px solid var(--crema-2);
  padding-top: 2.5rem;
}

.about-body h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--corteza);
  letter-spacing: 0.03em;
  margin: 2rem 0 0.75rem;
}
.about-body h2:first-child {
  margin-top: 0;
}

.about-body p {
  font-family: var(--font-sans);
  font-size: 0.93rem;
  line-height: 1.9;
  color: var(--corteza);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.about-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.5rem 0 1.2rem;
  padding: 1rem 1.3rem;
  background: var(--crema-2);
  border-radius: 6px;
  border-left: 2px solid var(--arena);
}

.about-body ul li {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--raiz);
}

.about-body ul li strong {
  color: var(--corteza);
  font-weight: 600;
}

/* ============================================================
   LOGO INTRO — flame grows up from trunk base, then logo reveals
   ============================================================ */

/* Logo hiding + reveal are driven entirely by JS (Web Animations API).
   The inline script sets clip-path/animation via element.style so there
   is no CSS-class flash when the reveal begins.                          */

/* ── Intro flame ────────────────────────────────────────── */

/* Positioning wrapper — aligned to the logo's visual center */
.logo-flame-pos {
  position: absolute;
  left: calc(47% + 20px);
  top: 43%;
  transform: translate(-50%, -50%);
  width: 10%;
  aspect-ratio: 32 / 48;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

/* Grow wrapper — scaleY 0→1 from the base upward, done at 0.7 s */
.logo-flame-grow {
  width: 100%;
  height: 100%;
  transform-origin: 50% 100%;
  animation: lf-rise 0.7s cubic-bezier(0.34, 1.1, 0.64, 1) 0s both;
}
@keyframes lf-rise {
  from { transform: scaleY(0); opacity: 0; }
  25%  { opacity: 1; }
  to   { transform: scaleY(1); opacity: 1; }
}

/* Flicker wrapper — starts as soon as rise ends (0.7 s) */
.logo-flame-flicker {
  width: 100%;
  height: 100%;
  transform-origin: 50% 100%;
  animation: lf-flicker-wrap 1.1s ease-in-out 0.7s infinite alternate;
}
@keyframes lf-flicker-wrap {
  0%   { transform: scaleX(1)    scaleY(1)    rotate(-0.8deg); }
  30%  { transform: scaleX(0.90) scaleY(1.08) rotate(1.3deg);  }
  60%  { transform: scaleX(1.08) scaleY(0.93) rotate(-0.7deg); }
  100% { transform: scaleX(0.95) scaleY(1.05) rotate(0.6deg);  }
}

/* The SVG flame itself */
.logo-flame-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(244, 166, 32, 0.95))
          drop-shadow(0 0 32px rgba(244, 166, 32, 0.60))
          drop-shadow(0 0 70px rgba(244, 166, 32, 0.30));
}

.lf-outer { fill: var(--amber);  transform-origin: 16px 30px; animation: lf-layer 1.8s ease-in-out infinite alternate; }
.lf-inner { fill: #f9c84a;       transform-origin: 16px 28px; animation: lf-layer 1.4s ease-in-out infinite alternate-reverse; }
.lf-core  { fill: #fff9e8;       transform-origin: 16px 26px; animation: lf-layer 1.1s ease-in-out infinite alternate; }

@keyframes lf-layer {
  0%   { transform: scaleX(1)    scaleY(1)    rotate(-1deg);   }
  50%  { transform: scaleX(0.90) scaleY(1.06) rotate(1deg);    }
  100% { transform: scaleX(1.06) scaleY(0.95) rotate(-0.5deg); }
}

/* Main flame bursts then fades as particles take over */
@keyframes seed-fade-out {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1);   }
  20%  { opacity: 1; transform: translate(-50%, -50%) scale(1.35); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.6);  }
}
.seed-leaving { animation: seed-fade-out 1s cubic-bezier(0.4, 0, 1, 1) forwards; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .flame-outer, .flame-inner, .flame-core { animation: none; }
  .logo-img { animation: none; }
  /* intro handled by JS — nothing extra needed here */
  * { transition-duration: 0.01ms !important; }
}

/* ============================================================
   AUTH — Login / Register pages
   ============================================================ */
.auth-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-box {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 32px rgba(81,67,53,.08);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
}
.auth-box--wide { max-width: 640px; }
.auth-flame { text-align: center; margin-bottom: 1rem; }
.auth-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2rem);
  text-align: center;
  color: var(--corteza);
  margin-bottom: 0.3rem;
}
.auth-sub {
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.6;
  margin-bottom: 1.8rem;
}
.auth-switch { color: var(--raiz); text-decoration: none; font-weight: 500; }
.auth-switch:hover { text-decoration: underline; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.auth-field { display: flex; flex-direction: column; gap: 0.3rem; }
.auth-field label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
}
.auth-field input,
.auth-field select {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--crema-2);
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  background: var(--crema);
  color: var(--corteza);
  outline: none;
  transition: border-color 0.2s;
}
.auth-field input:focus,
.auth-field select:focus { border-color: var(--arena); background: var(--white); }
.auth-btn {
  width: 100%;
  padding: 0.8rem;
  background: var(--corteza);
  color: var(--crema);
  border: none;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: none;
  transition: background 0.2s;
  margin-top: 0.3rem;
}
.auth-btn:hover { background: var(--raiz); }
.auth-btn:disabled { opacity: 0.6; }
.auth-error {
  color: #721c24;
  background: #f8d7da;
  padding: 0.6rem 0.9rem;
  border-radius: 4px;
  font-size: 0.82rem;
  margin: 0;
}

/* ── Nav auth slot ───────────────────────────────────────── */
.nav-user-slot { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.4rem; }
.nav-username  { font-size: 0.72rem; opacity: 0.6; font-family: var(--font-sans); }
.nav-signout   { font-size: 0.72rem; }
.nav-signin    { font-size: 0.78rem; }

/* ============================================================
   CHECKOUT — Auth gate + Shipping cards
   ============================================================ */
.auth-gate {
  border: 1px dashed var(--arena);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}
.auth-gate-msg {
  font-size: 0.88rem;
  color: var(--corteza);
  opacity: 0.75;
  margin-bottom: 1rem;
}
.auth-gate-btns { display: flex; flex-direction: column; gap: 0.6rem; }
.btn-gate-login {
  display: block;
  padding: 0.7rem 1rem;
  background: var(--corteza);
  color: var(--crema);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.2s;
}
.btn-gate-login:hover { background: var(--raiz); }
.btn-gate-register {
  display: block;
  padding: 0.65rem 1rem;
  border: 1px solid var(--arena);
  color: var(--raiz);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.8rem;
  text-align: center;
  transition: background 0.2s;
}
.btn-gate-register:hover { background: var(--crema-2); }

.checkout-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.5rem 0 1rem;
  border-bottom: 1px solid var(--crema-2);
  margin-bottom: 1.2rem;
}
.checkout-hi strong { color: var(--corteza); }
.checkout-signout { font-size: 0.75rem; color: var(--arena); text-decoration: none; }
.checkout-signout:hover { color: var(--raiz); }

.ship-section { margin-bottom: 1rem; }
.ship-heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.5;
  margin-bottom: 0.6rem;
}
.ship-options { display: flex; flex-direction: column; gap: 0.5rem; }
.ship-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--crema-2);
  border-radius: 6px;
  cursor: none;
  transition: border-color 0.2s, background 0.2s;
}
.ship-card input[type=radio] { accent-color: var(--corteza); flex-shrink: 0; }
.ship-card--active {
  border-color: var(--arena);
  background: var(--crema);
}
.ship-card-body { flex: 1; }
.ship-card-label { display: block; font-size: 0.84rem; font-weight: 500; color: var(--corteza); }
.ship-card-note  { display: block; font-size: 0.73rem; opacity: 0.55; margin-top: 0.15rem; }
.ship-card-fee   { font-size: 0.84rem; font-weight: 600; color: var(--raiz); white-space: nowrap; }

/* ── Pay on delivery sub-methods ─────────────────────── */
.cod-methods {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.6rem 0 1rem;
}
.cod-method-btn {
  cursor: pointer;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1.5px solid var(--crema2);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--raiz);
  background: var(--white);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}
.cod-method-btn--active {
  border-color: var(--corteza);
  background: var(--corteza);
  color: var(--crema);
}
.cod-submit-btn {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  border: none;
  background: var(--corteza);
  color: var(--crema);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-bottom: 0.5rem;
}
.cod-submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.cod-submit-btn:hover:not(:disabled) { opacity: 0.88; }
.cod-note {
  font-size: 0.73rem;
  opacity: 0.5;
  text-align: center;
  margin: 0;
}

.order-summary {
  background: var(--crema);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.84rem;
}
.os-row {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0;
  color: var(--corteza);
  opacity: 0.75;
}
.os-total {
  border-top: 1px solid var(--crema-2);
  margin-top: 0.4rem;
  padding-top: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 1;
}

@media (max-width: 480px) {
  .auth-row { grid-template-columns: 1fr; }
  .auth-box { padding: 2rem 1.2rem; }
}

/* ============================================================
   CART ICON IN NAV
   ============================================================ */
.nav-actions { gap: .75rem; }

.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--raiz);
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-organic);
  padding: 2px;
}
.nav-cart:hover { opacity: 1; transform: scale(1.12); }
.nav-cart svg   { display: block; }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--amber);
  color: var(--corteza);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

/* ============================================================
   ESSENCE SELECTOR (candle product page)
   ============================================================ */
.essence-selector {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: .2rem;
}
.essence-label {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--raiz);
  opacity: .75;
}
.essence-select {
  appearance: none;
  background: var(--crema) 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' stroke='%2378683f' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .9rem center;
  border: 1.5px solid var(--arena);
  border-radius: 4px;
  padding: .6rem 2.2rem .6rem .85rem;
  font-family: var(--font-sans);
  font-size: .84rem;
  color: var(--corteza);
  cursor: pointer;
  transition: border-color .2s;
  width: 100%;
}
.essence-select:focus {
  outline: none;
  border-color: var(--raiz);
}
.essence-stock-warn {
  font-size: .75rem;
  color: #9b4d0f;
  background: #fff3e0;
  border: 1px solid #f4a620;
  border-radius: 4px;
  padding: .35rem .7rem;
  margin: 0;
}
.cart-product-essence {
  display: block;
  font-size: .72rem;
  color: var(--raiz);
  font-family: var(--font-sans);
  font-style: italic;
  margin-top: .15rem;
}

/* ============================================================
   ADD-TO-CART BUTTON (single page)
   ============================================================ */
.btn-add-to-cart {
  display: inline-flex;
  align-items: center;
  background: var(--crema-2);
  color: var(--corteza);
  border: 1.5px solid var(--arena);
  border-radius: 4px;
  padding: .7rem 1.4rem;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
  margin-bottom: 1rem;
  width: 100%;
  justify-content: center;
}
.btn-add-to-cart:hover {
  background: var(--corteza);
  color: var(--crema);
  border-color: var(--corteza);
}

.add-cart-confirm {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1rem;
  background: #d4edda;
  color: #155724;
  border-radius: 4px;
  font-size: .83rem;
  margin-bottom: 1rem;
}
.add-cart-confirm a {
  color: var(--corteza);
  font-weight: 600;
  text-decoration: underline;
}

/* ============================================================
   EMAIL VERIFICATION WARNING BANNER
   ============================================================ */
.verify-warn {
  background: #fff8e6;
  border: 1px solid var(--amber);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  font-size: .84rem;
  color: var(--corteza);
}
.verify-warn p { margin: 0 0 .6rem; }
.verify-warn-btn {
  background: var(--corteza);
  color: var(--crema);
  border: none;
  border-radius: 4px;
  padding: .5rem 1.1rem;
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s ease;
}
.verify-warn-btn:hover { background: var(--raiz); }

/* ============================================================
   VERIFY PAGE
   ============================================================ */
.verify-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
}

.verify-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(81,67,53,.08);
  padding: 3rem 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.verify-state { /* each state div */ }

.verify-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--crema-2);
}
.verify-icon--success { background: rgba(81,67,53,.07); }
.verify-icon--error   { background: rgba(192,57,43,.06); }
.verify-icon--loading { background: transparent; }

.verify-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.7rem;
  color: var(--corteza);
  margin: 0 0 .6rem;
}
.verify-sub {
  color: var(--raiz);
  font-size: .9rem;
  opacity: .75;
  margin: 0 0 1.6rem;
  line-height: 1.55;
}

.verify-btn {
  display: inline-block;
  background: var(--corteza);
  color: var(--crema);
  padding: .75rem 1.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s ease;
  border: none;
}
.verify-btn:hover { background: var(--raiz); }

.verify-btn--outline {
  background: transparent;
  border: 1.5px solid var(--corteza);
  color: var(--corteza);
  margin-right: .6rem;
}
.verify-btn--outline:hover { background: var(--crema-2); }

.verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-wrap {
  min-height: calc(100vh - var(--nav-h));
  padding: calc(var(--nav-h) + 2.5rem) clamp(1.2rem, 5vw, 4rem) 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.cart-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--corteza);
  margin: 0 0 2rem;
}

.cart-main {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .cart-main { grid-template-columns: 1fr; }
}

/* Cart table */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.cart-table thead tr {
  border-bottom: 1.5px solid var(--crema-2);
}
.cart-table thead th {
  padding: .5rem .8rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--corteza);
  opacity: .5;
  font-weight: 500;
}
.cart-table tbody tr {
  border-bottom: 1px solid var(--crema-2);
  transition: background .15s ease;
}
.cart-table tbody tr:hover { background: rgba(250,247,242,.7); }
.cart-table td { padding: .85rem .8rem; vertical-align: middle; }

.cart-td-product { min-width: 180px; }
.cart-td-price   { white-space: nowrap; color: var(--raiz); }
.cart-td-qty     { text-align: center; }
.cart-td-total   { text-align: right; font-weight: 600; color: var(--corteza); white-space: nowrap; }
.cart-td-remove  { text-align: center; }

/* Product cell */
.cart-td-product > div { display: flex; align-items: center; gap: .9rem; }
.cart-product-info { display: flex; flex-direction: column; gap: .15rem; }
.cart-product-title {
  font-size: .88rem;
  font-weight: 500;
  color: var(--corteza);
  text-decoration: none;
}
.cart-product-title:hover { color: var(--raiz); }
.cart-product-section { font-size: .73rem; opacity: .45; }

.cart-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.cart-thumb-placeholder {
  width: 56px;
  height: 56px;
  background: var(--crema-2);
  border-radius: 4px;
  flex-shrink: 0;
}

/* Qty controls */
.qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--crema-2);
  border-radius: 4px;
  overflow: hidden;
}
.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--crema);
  border: none;
  color: var(--corteza);
  font-size: 1rem;
  line-height: 1;
  transition: background .15s ease;
}
.qty-btn:hover { background: var(--crema-2); }
.qty-val {
  min-width: 28px;
  text-align: center;
  font-size: .84rem;
  font-weight: 500;
  color: var(--corteza);
  padding: 0 4px;
}

/* Remove button */
.cart-remove-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--corteza);
  font-size: 1.1rem;
  opacity: .35;
  transition: opacity .2s ease, border-color .2s ease, background .2s ease;
}
.cart-remove-btn:hover {
  opacity: 1;
  border-color: #c0392b;
  color: #c0392b;
  background: rgba(192,57,43,.06);
}

/* Cart footer (subtotal row) */
.cart-footer {
  display: flex;
  justify-content: flex-end;
  padding: .9rem .8rem;
  border-top: 1.5px solid var(--crema-2);
  margin-top: .5rem;
}
.cart-subtotal-label {
  font-size: .88rem;
  color: var(--corteza);
}
.cart-subtotal-label strong { font-weight: 700; }

/* Right column */
.cart-right {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 20px rgba(81,67,53,.07);
  padding: 1.6rem 1.4rem;
}

/* Empty cart */
.cart-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--corteza);
  opacity: .55;
}
.cart-empty p { margin-bottom: 1.5rem; font-size: 1.05rem; }

@media (max-width: 480px) {
  .cart-table thead { display: none; }
  .cart-table td    { display: block; padding: .4rem .5rem; }
  .cart-td-product  { padding-top: .85rem; }
  .cart-td-total    { text-align: left; }
  .cart-td-remove   { text-align: left; padding-bottom: .85rem; }
}
