/* Rattan Dominicano — design tokens & shared styles */

:root {
  --cream-50: #fdfbf6;
  --cream-100: #faf5ea;
  --cream-200: #f3ead6;

  --ink-900: #3a322a;
  --ink-700: #574c3f;
  --ink-500: #7a6c5a;

  /* "terracotta" = brand tan/camel (from the real Rattan Dominicano logo) */
  --terracotta-50: #faf3e8;
  --terracotta-100: #f0e1c4;
  --terracotta-300: #d9bc8a;
  --terracotta-500: #bb9a6a;
  --terracotta-600: #9c7e50;
  --terracotta-700: #7d6440;

  /* "sage" = brand deep olive (from the real Rattan Dominicano logo) */
  --sage-50: #eef0e6;
  --sage-100: #dde2cb;
  --sage-300: #a7b389;
  --sage-500: #5a6a39;
  --sage-600: #414f25;
  --sage-700: #33401d;

  --blush-100: #f3ebdd;
  --blush-300: #e3cfa9;
  --blush-500: #cdab77;

  --mustard-100: #f5e9cc;
  --mustard-300: #dfbe7d;
  --mustard-500: #c89a4e;

  --sky-100: #eceee4;
  --sky-300: #c7cbab;
  --sky-500: #93996c;

  --sale-red: #c0392b;

  --font-heading: "Fredoka", sans-serif;
  --font-body: "Nunito", sans-serif;

  --radius-lg: 1.5rem;
  --radius-xl: 2.5rem;
  --shadow-sm: 0 1px 3px rgba(58, 50, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(58, 50, 42, 0.12);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--cream-50);
  color: var(--ink-900);
  font-family: var(--font-body);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0;
}

p { margin: 0; }

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

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

button, input, textarea, select { font-family: inherit; font-size: inherit; }

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-sm { max-width: 48rem; }
.container-md { max-width: 56rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 0.75rem 1.75rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-4px) scale(1.04); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(-1px) scale(0.96); transition-duration: 0.08s; }

.btn-primary {
  background: var(--terracotta-500);
  color: var(--cream-50);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--terracotta-600); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--sage-500);
  color: var(--sage-600);
}
.btn-outline:hover { background: var(--sage-500); color: var(--cream-50); }

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 246, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--terracotta-100);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand img.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
}

.brand-mark-wrap {
  display: inline-flex;
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark-wrap {
  transform: scale(1.14) rotate(-8deg);
}

svg.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
  animation: brand-float 3.2s ease-in-out infinite;
}

.brand-star {
  transform-box: fill-box;
  transform-origin: center;
  animation: brand-star-twinkle 2.6s ease-in-out infinite;
}

.brand-star-a { animation-delay: 0s; }
.brand-star-b { animation-delay: 0.45s; }
.brand-star-c { animation-delay: 0.9s; }

@keyframes brand-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(3deg); }
}

@keyframes brand-star-twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.brand span {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--terracotta-600);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-desktop .nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-desktop a.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--ink-700);
}
.nav-desktop a.nav-link:hover,
.nav-desktop a.nav-link.active { color: var(--terracotta-600); }

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

.cart-button {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--terracotta-100);
  background: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-button:hover { background: var(--terracotta-50); }
.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--terracotta-500);
  color: var(--cream-50);
  font-size: 0.65rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink-900);
  margin: 0 auto;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1.25rem 1rem;
  border-top: 1px solid var(--terracotta-100);
  background: var(--cream-50);
}
.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: var(--font-heading);
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  color: var(--ink-700);
}
.nav-mobile a:hover { background: var(--terracotta-50); color: var(--terracotta-600); }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--sage-600);
  color: var(--cream-50);
  border-top: 1px solid var(--sage-100);
}

.site-footer .container { padding-top: 3.5rem; padding-bottom: 2rem; }

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand img.brand-mark { width: 32px; height: 32px; object-fit: contain; animation: brand-float 3.2s ease-in-out infinite; }
.footer-brand span { font-family: var(--font-heading); font-size: 1.25rem; }

.footer-grid p.about {
  margin-top: 1rem;
  max-width: 24rem;
  font-size: 0.9rem;
  color: rgba(253, 251, 246, 0.9);
  line-height: 1.6;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mustard-300);
}
.footer-col ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; color: rgba(253, 251, 246, 0.9); }
.footer-col a:hover { color: var(--mustard-300); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(253, 251, 246, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(253, 251, 246, 0.7);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }

/* ---------- decorative ---------- */

.decor-star {
  position: absolute;
  color: var(--mustard-300);
  opacity: 0.5;
}

.decor-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
  z-index: 0;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream-100);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero .container { grid-template-columns: 1fr 1fr; padding-top: 6rem; padding-bottom: 6rem; }
}

.eyebrow {
  display: inline-block;
  background: var(--terracotta-100);
  color: var(--terracotta-600);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-top: 1.2rem;
  color: var(--ink-900);
}
.hero h1 .accent { color: var(--terracotta-500); }

@media (min-width: 640px) { .hero h1 { font-size: 2.9rem; } }

.hero p.lead {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 32rem;
}

.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-visual {
  position: relative;
  margin: 0 auto;
  width: 20rem;
  height: 20rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-visual:hover {
  transform: translateY(-10px) scale(1.05);
}
.hero-visual .card-bg {
  position: absolute;
  inset: 0;
  background: #f7f7f7;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.35s ease;
}
.hero-visual:hover .card-bg {
  box-shadow: 0 16px 36px rgba(58, 50, 42, 0.2);
}
.hero-visual img { position: relative; width: 15rem; height: 15rem; object-fit: contain; padding: 2rem; }
.hero-visual .dot {
  position: absolute;
  border-radius: 999px;
}

/* ---------- sections ---------- */

.section { padding: 4.5rem 0; }
.section-alt { background: var(--sage-50); }

.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; }
.section-head .eyebrow-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta-600);
}
.section-head h2 { font-size: 1.9rem; margin-top: 0.5rem; color: var(--ink-900); }
.section-head p { margin-top: 0.75rem; color: var(--ink-700); }

/* value cards */

.value-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }

.value-card {
  background: #fff;
  border: 1px solid var(--terracotta-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}
.value-card:hover { transform: translateY(-4px); }
.value-card .icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: var(--terracotta-50);
  color: var(--terracotta-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.value-card h3 { font-size: 1.1rem; color: var(--ink-900); }
.value-card p { margin-top: 0.5rem; font-size: 0.9rem; color: var(--ink-700); line-height: 1.5; }

/* product grid & card */

.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--terracotta-100);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.product-card .image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--terracotta-50), var(--cream-100), var(--sage-50));
}
.product-card .image-wrap img { width: 100%; height: 100%; object-fit: cover; }

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--terracotta-300);
}
.image-placeholder .star { font-size: 1.6rem; }
.image-placeholder span { font-family: var(--font-heading); font-size: 0.75rem; color: var(--ink-500); }

.category-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(253, 251, 246, 0.95);
  color: var(--terracotta-600);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.sale-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--sale-red);
  color: var(--cream-50);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.sale-badge.detail-sale-badge { position: static; display: inline-flex; margin-left: 0.4rem; vertical-align: middle; }

.product-card .body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.product-card h3 { font-size: 1.05rem; color: var(--ink-900); }
.product-card .ref { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-500); }
.product-card .dims { margin-top: 0.4rem; font-size: 0.9rem; color: var(--ink-700); }
.product-card .see-more { margin-top: 0.75rem; font-family: var(--font-heading); font-size: 0.85rem; color: var(--terracotta-600); }
.product-card-link { display: block; }
.product-line { font-size: 0.8rem; color: var(--ink-500); margin-top: 0.1rem; }

.price-tag { font-family: var(--font-heading); font-size: 1.05rem; color: var(--terracotta-600); }
.price-tag.detail-price { font-size: 1.4rem; margin-top: 0.75rem; }
.price-regular { font-size: 0.85em; color: var(--ink-500); text-decoration: line-through; font-weight: normal; }
.price-sale { color: var(--sale-red); }

.product-card-actions { padding: 0 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.product-card-actions.detail-actions { padding: 0; margin-top: 1.25rem; }

.qty-add-row { display: flex; gap: 0.5rem; }
.qty-input {
  width: 4rem;
  flex-shrink: 0;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--terracotta-100);
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
}
.btn-add-quote {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  background: var(--sage-600);
  color: var(--cream-50);
  border: none;
  border-radius: 0.75rem;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
}
.btn-add-quote:hover { background: var(--sage-700); }
.btn-add-quote:disabled { opacity: 0.7; cursor: default; }

/* filter chips */

.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-chip {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-700);
  border: 1px solid var(--terracotta-100);
  cursor: pointer;
}
.filter-chip:hover { background: var(--terracotta-50); }
.filter-chip.active { background: var(--terracotta-500); color: var(--cream-50); border-color: var(--terracotta-500); }

/* view mode switch (por tipo / por línea / en oferta) */

.view-mode-switch {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.view-mode-btn {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--sage-50);
  color: var(--sage-700);
  border: 1px solid var(--sage-100);
  cursor: pointer;
}
.view-mode-btn:hover { background: var(--sage-100); }
.view-mode-btn.active { background: var(--sage-600); color: var(--cream-50); border-color: var(--sage-600); }

/* faq accordion */

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: #fff;
  border: 1px solid var(--terracotta-100);
  border-radius: 1rem;
  overflow: hidden;
}
.faq-item button.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.1rem 1.5rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--ink-900);
}
.faq-item .chevron { transition: transform 0.2s ease; color: var(--terracotta-500); flex-shrink: 0; }
.faq-item.open .chevron { transform: rotate(180deg); }
.faq-item .faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-700);
  line-height: 1.6;
}
.faq-item.open .faq-answer { display: block; }

/* pillars (nosotros page) */

.pillar-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 3rem; }
@media (min-width: 640px) { .pillar-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pillar-grid { grid-template-columns: repeat(4, 1fr); } }
.pillar-card { background: var(--sage-50); border: 1px solid var(--sage-100); border-radius: 1.5rem; padding: 1.5rem; }
.pillar-card h3 { font-size: 1.05rem; color: var(--sage-700); }
.pillar-card p { margin-top: 0.5rem; font-size: 0.9rem; color: var(--ink-700); line-height: 1.5; }

/* designer bio photo */

.designer-photo {
  width: 9rem;
  height: 9rem;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--terracotta-100);
  background: linear-gradient(135deg, var(--terracotta-50), var(--cream-100), var(--sage-50));
  display: flex;
  align-items: center;
  justify-content: center;
}
.designer-photo img { width: 100%; height: 100%; object-fit: cover; }
.designer-photo.no-photo::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--terracotta-300);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 51 48"><path d="M25.5 0 L31 17.5 L49 17.5 L34.5 28 L40 46 L25.5 35 L11 46 L16.5 28 L2 17.5 L20 17.5 Z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 51 48"><path d="M25.5 0 L31 17.5 L49 17.5 L34.5 28 L40 46 L25.5 35 L11 46 L16.5 28 L2 17.5 L20 17.5 Z"/></svg>') center / contain no-repeat;
}

/* empty state */

.empty-state {
  border: 1px dashed var(--sage-300);
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem;
  text-align: center;
  color: var(--ink-700);
}

/* forms */

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--ink-900);
  margin-bottom: 0.4rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field input[type="number"],
.field input[type="url"],
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--terracotta-100);
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--ink-900);
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--terracotta-300); }
.field-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) { .field-row.cols-4 { grid-template-columns: 2fr 1fr 1fr; } }

.form-message {
  border-radius: 0.75rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.form-message.error { background: var(--blush-100); color: var(--terracotta-700); }
.form-message.success { background: var(--sage-50); color: var(--sage-700); border: 1px solid var(--sage-300); text-align: center; padding: 2rem; }

/* utility */

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none !important; }

/* quote cart modal */

body.cart-open { overflow: hidden; }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 50, 42, 0.45);
  display: flex;
  justify-content: flex-end;
  z-index: 100;
}

.cart-panel {
  width: 100%;
  max-width: 28rem;
  height: 100%;
  background: var(--cream-50);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(58, 50, 42, 0.15);
}

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--terracotta-100);
}
.cart-panel-header h2 { font-size: 1.2rem; color: var(--ink-900); }
.cart-close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: none;
  background: var(--terracotta-50);
  color: var(--terracotta-600);
  font-size: 1.1rem;
  cursor: pointer;
}
.cart-close:hover { background: var(--terracotta-100); }

.cart-panel-body { padding: 1.5rem; overflow-y: auto; flex: 1; }

.cart-item-row {
  display: grid;
  grid-template-columns: 3rem 1fr 3.5rem auto auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--terracotta-100);
}
.cart-item-thumb {
  width: 3rem;
  height: 3rem;
  border-radius: 0.6rem;
  background: var(--cream-100);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta-300);
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { display: flex; flex-direction: column; min-width: 0; }
.cart-item-info strong { font-size: 0.9rem; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-info .meta { font-size: 0.75rem; color: var(--ink-500); }
.cart-item-qty {
  width: 3.5rem;
  padding: 0.35rem 0.4rem;
  border: 1px solid var(--terracotta-100);
  border-radius: 0.5rem;
  font-size: 0.85rem;
}
.cart-item-subtotal { font-size: 0.85rem; font-family: var(--font-heading); color: var(--ink-900); white-space: nowrap; }
.cart-item-remove {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: none;
  background: var(--blush-100);
  color: var(--terracotta-600);
  cursor: pointer;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--ink-900);
  padding: 1.25rem 0;
}

#cart-form-wrap { margin-top: 0.5rem; }

/* ---------- click star burst ---------- */

.star-burst-particle {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 1;
  transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  animation: star-pop 0.7s ease-out forwards;
  will-change: transform, opacity;
}

.star-burst-particle svg { width: 100%; height: 100%; display: block; }

@keyframes star-pop {
  0% { transform: translate(-50%, -50%) scale(0.2) rotate(0deg); opacity: 1; }
  55% { opacity: 1; }
  100% {
    transform: translate(calc(-50% + var(--star-dx)), calc(-50% + var(--star-dy))) scale(1) rotate(var(--star-rot));
    opacity: 0;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  svg.brand-mark,
  .footer-brand img.brand-mark,
  .brand-star {
    animation: none !important;
  }
  .brand:hover .brand-mark-wrap { transform: none; }
  .btn:hover, .btn:active { transform: none; }
  .hero-visual, .hero-visual .card-bg { transition: none; }
  .hero-visual:hover { transform: none; }
  .hero-visual:hover .card-bg { box-shadow: var(--shadow-md); }
  .star-burst-particle { display: none; }
}
