/* ══════════════════════════════════════════
   Jacaúna Móveis — Estilos Globais
   ══════════════════════════════════════════ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #f8f6f3;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-secondary: #6b6b6b;
  --color-accent: #8b6914;
  --color-accent-light: #c9a84c;
  --color-border: #e8e4de;
  --color-overlay: rgba(0, 0, 0, 0.55);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

html.snap-landing {
  scroll-snap-type: y proximity;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: transparent;
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    border-color 0.4s ease;
}

.nav.scrolled {
  background: rgba(248, 246, 243, 0.95);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--color-border);
}

.nav-logo {
  cursor: pointer;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 2rem;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.4s ease;
}
.nav.scrolled .nav-logo-img {
  filter: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition);
}

.nav.scrolled .nav-links a {
  color: var(--color-text);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-light);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--color-accent-light);
}
.nav.scrolled .nav-links a:hover {
  color: var(--color-accent);
}

.nav-links a:hover::after {
  width: 100%;
}

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

.store-gear {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.2rem;
  display: flex;
  align-items: center;
  transition:
    color var(--transition),
    transform var(--transition);
}
.nav.scrolled .store-gear {
  color: var(--color-text-secondary);
}

.store-gear:hover {
  color: var(--color-accent-light);
  transform: rotate(45deg);
}

.store-gear svg {
  width: 18px;
  height: 18px;
}

.nav-store-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent-light);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 0.5rem;
  line-height: 1.2;
}

.nav.scrolled .nav-store-label {
  color: var(--color-accent);
  border-left-color: var(--color-border);
}

/* ── MOBILE NAV ── */
.nav-mobile-store {
  display: none;
  align-items: center;
  gap: 0.4rem;
}

.nav-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  transition:
    border-color var(--transition),
    background var(--transition),
    transform var(--transition),
    color var(--transition);
}

.nav.scrolled .nav-cart-btn {
  border-color: var(--color-border);
  background: #fff;
  color: var(--color-text);
}

.nav-cart-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 168, 76, 0.5);
  color: var(--color-accent-light);
}

.nav.scrolled .nav-cart-btn:hover {
  color: var(--color-accent);
}

.nav-cart-btn svg {
  width: 16px;
  height: 16px;
}

.nav-cart-count {
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-cart-btn-mobile {
  display: none;
}

.nav-mobile-store .nav-store-label {
  max-width: 100px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 0.3rem;
  transition: color 0.4s ease;
}

.nav.scrolled .hamburger {
  color: var(--color-text);
}

.hamburger svg {
  width: 28px;
  height: 28px;
}

/* ── STORE PICKER DROPDOWN ── */
.store-picker {
  position: fixed;
  top: 56px;
  right: 1rem;
  z-index: 110;
  width: 340px;
  max-height: 70vh;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(-10px);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.store-picker.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.store-picker-header {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.store-picker-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.store-picker-header p {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
}

.store-picker-list {
  overflow-y: auto;
  flex: 1;
  padding: 0.5rem 0;
}

.store-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  transition: background var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}

.store-picker-item:hover {
  background: var(--color-bg);
}

.store-picker-item.selected {
  background: rgba(139, 105, 20, 0.06);
}

.store-picker-item .sp-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.store-picker-item .sp-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-picker-item .sp-location {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.store-picker-item .sp-dist {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent);
  white-space: nowrap;
  margin-left: 0.75rem;
}

.store-picker-item .sp-check {
  width: 16px;
  height: 16px;
  margin-left: 0.5rem;
  color: var(--color-accent);
  flex-shrink: 0;
  display: none;
}

.store-picker-item.selected .sp-check {
  display: block;
}

.store-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 109;
  display: none;
}

.store-picker-backdrop.active {
  display: block;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb .sep {
  opacity: 0.4;
}

.breadcrumb .current {
  color: var(--color-text);
  font-weight: 500;
}

/* ══════════════════════════════════════════
   LANDING PAGE — Full-Screen Sections
   ══════════════════════════════════════════ */

.landing-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  scroll-snap-align: start;
}

.landing-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 8s ease;
}

.landing-section:hover .landing-bg {
  transform: scale(1.03);
}

.landing-overlay {
  position: absolute;
  inset: 0;
}

/* Per-Section overlays */
.section-fabrica .landing-overlay {
  background: linear-gradient(
    135deg,
    rgba(26, 20, 8, 0.72) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.section-corporativo .landing-overlay {
  background: linear-gradient(
    135deg,
    rgba(10, 15, 30, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.section-sustentavel .landing-overlay {
  background: linear-gradient(
    135deg,
    rgba(5, 30, 15, 0.68) 0%,
    rgba(0, 0, 0, 0.32) 100%
  );
}

.section-catalogo .landing-overlay {
  background: linear-gradient(
    135deg,
    rgba(40, 25, 5, 0.7) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.landing-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 2rem;
  color: #fff;
}

.landing-content .landing-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent-light);
  border: 1px solid rgba(201, 168, 76, 0.4);
  padding: 0.35rem 1rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
}

.landing-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.landing-content p {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 600px;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-landing {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--transition),
    transform var(--transition),
    color var(--transition);
}

.btn-landing svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 105, 20, 0.35);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* WhatsApp green variant */
.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1ebe5c;
  transform: translateY(-2px);
}

/* ── SECTION INDICATORS (dots) ── */
.section-dots {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.section-dot.active {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  transform: scale(1.2);
}

.section-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* ══════════════════════════════════════════
   CATALOGO PAGE
   ══════════════════════════════════════════ */

.catalog-page {
  display: none;
}

.catalog-page.active {
  display: block;
}

.landing-wrapper {
  display: block;
}

.landing-wrapper.hidden {
  display: none;
}

/* ── SECTIONS (Catalog) ── */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ── CATEGORY GRID ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 3/2;
  box-shadow: var(--shadow);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f7f4ee;
  transition: transform 0.6s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.category-card .card-overlay h3 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
}

.category-card .card-overlay span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* ── PRODUCT GRID ── */
.products-section {
  display: none;
}

.products-section.active {
  display: block;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  margin-bottom: 2rem;
  transition: color var(--transition);
}

.back-btn:hover {
  color: var(--color-accent);
}

.back-btn svg {
  width: 20px;
  height: 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  display: block;
  object-fit: contain;
  background: #f7f4ee;
  transition: transform 0.5s ease;
}

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

.product-card-img-wrapper {
  overflow: hidden;
  position: relative;
}

.release-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  z-index: 1;
}

.product-card-body {
  padding: 1.25rem 1.5rem;
}

.product-card-body h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.product-card-body p {
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  padding: 0.75rem 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card-dims {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.product-card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  background: rgba(139, 105, 20, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
}

/* ── PRODUCT DETAIL ── */
.product-detail {
  display: none;
}

.product-detail.active {
  display: block;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.image-zoom-container {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  background: #f7f4ee;
}

.detail-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.15s ease-out;
  pointer-events: none;
}

.detail-thumbs {
  display: flex;
  gap: 0.75rem;
}

.detail-thumb {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: #f7f4ee;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    border-color var(--transition),
    opacity var(--transition);
  opacity: 0.7;
}

.detail-thumb:hover,
.detail-thumb.active {
  border-color: var(--color-accent);
  opacity: 1;
}

.detail-info {
  padding-top: 1rem;
}

.detail-info .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  background: rgba(139, 105, 20, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.detail-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.detail-info .description {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.specs-table tr {
  border-bottom: 1px solid var(--color-border);
}

.specs-table td {
  padding: 0.85rem 0;
  font-size: 0.9rem;
}

.specs-table td:first-child {
  font-weight: 500;
  color: var(--color-text);
  width: 40%;
}

.specs-table td:last-child {
  color: var(--color-text-secondary);
}

.btn-3d {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color var(--transition),
    color var(--transition),
    background var(--transition),
    transform var(--transition);
}

.btn-3d:hover {
  background: #fff;
  border-color: rgba(139, 105, 20, 0.25);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-3d svg {
  width: 22px;
  height: 22px;
}

.btn-ar {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.btn-ar:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ar svg {
  width: 22px;
  height: 22px;
}

.btn-ar.visible {
  display: inline-flex;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-contact-seller,
.btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 1.4rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.btn-contact-seller svg,
.btn-add-cart svg {
  width: 20px;
  height: 20px;
}

.btn-contact-seller {
  background: #25d366;
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.22);
}

.btn-contact-seller:hover {
  background: #1ebe5c;
  transform: translateY(-2px);
}

.btn-add-cart {
  background: var(--color-accent);
  color: #fff;
  border: none;
  box-shadow: 0 8px 22px rgba(139, 105, 20, 0.24);
}

.btn-add-cart:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
}

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 159;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 160;
  width: min(420px, 92vw);
  height: 100vh;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

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

.cart-drawer-header,
.cart-drawer-footer {
  padding: 1.4rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.cart-drawer-footer {
  border-bottom: none;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.cart-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cart-drawer-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.cart-drawer-header p {
  color: var(--color-text-secondary);
  font-size: 0.88rem;
}

.cart-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.cart-drawer-body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cart-empty {
  padding: 1.2rem;
  background: linear-gradient(180deg, #fbfaf7, #f3eee6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.cart-empty h4 {
  font-family: var(--font-display);
  margin-bottom: 0.35rem;
}

.cart-empty p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cart-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.95rem;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #f7f4ee;
  border-radius: 12px;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.cart-item-title {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.2;
}

.cart-item-meta {
  color: var(--color-text-secondary);
  font-size: 0.82rem;
  margin: 0.25rem 0 0.7rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cart-qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-qty-controls button,
.cart-remove-btn,
.cart-secondary-btn,
.cart-primary-btn {
  border-radius: 999px;
  font-family: var(--font-body);
  cursor: pointer;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.cart-qty-controls button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
}

.cart-qty-controls button:hover,
.cart-remove-btn:hover,
.cart-secondary-btn:hover,
.cart-primary-btn:hover {
  transform: translateY(-1px);
}

.cart-qty-value {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.cart-remove-btn {
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-secondary);
  padding: 0.45rem 0.8rem;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.cart-summary-store {
  color: var(--color-text-secondary);
  font-size: 0.86rem;
  margin-bottom: 1rem;
}

.cart-footer-actions {
  display: grid;
  gap: 0.7rem;
}

.cart-secondary-btn,
.cart-primary-btn {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 0.94rem;
  font-weight: 600;
}

.cart-secondary-btn {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.cart-primary-btn {
  background: #25d366;
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.22);
}

/* ── 3D MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  position: relative;
  width: 90vw;
  max-width: 900px;
  height: 75vh;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.6);
}

.modal-content model-viewer {
  width: 100%;
  height: 100%;
}

/* ── FOOTER ── */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  background: var(--color-bg);
}

.footer .brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

/* ── LOCATION MODAL ── */
.loc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.loc-modal-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.loc-modal {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 480px;
  width: 90vw;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.loc-modal-overlay.active .loc-modal {
  transform: translateY(0);
}

.loc-modal h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.loc-modal p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.loc-modal .loc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background var(--transition),
    transform var(--transition);
  margin-bottom: 0.75rem;
}

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

.loc-btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.loc-btn-primary:hover {
  background: var(--color-accent-light);
}

.loc-btn-secondary {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border) !important;
}

.loc-btn-secondary:hover {
  background: var(--color-border);
}

.loc-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

.loc-divider::before,
.loc-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.loc-cep-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.loc-cep-group input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}

.loc-cep-group button {
  flex-shrink: 0;
}

.loc-cep-group input:focus {
  border-color: var(--color-accent);
}

.loc-cep-group button {
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 50px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}

.loc-cep-group button:hover {
  background: var(--color-accent-light);
}

.loc-error {
  color: #c0392b;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  display: none;
}

.loc-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin: 1rem 0;
}

.loc-loading.active {
  display: flex;
}

.loc-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loc-result {
  display: none;
  text-align: center;
}

.loc-result.active {
  display: block;
}

.loc-result .store-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.loc-result .store-address {
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.loc-result .store-distance {
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--transition),
    transform var(--transition);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  margin-bottom: 0.75rem;
}

.whatsapp-btn:hover {
  background: #1ebe5c;
  transform: translateY(-2px);
}

.whatsapp-btn svg {
  width: 20px;
  height: 20px;
}

.loc-skip {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 0.5rem;
  font-family: var(--font-body);
}

.loc-skip:hover {
  color: var(--color-text);
}

/* ── FLOATING WHATSAPP FAB ── */
.wa-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 150;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  text-decoration: none;
}

.wa-fab.active {
  display: flex;
}

.wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.wa-fab svg {
  width: 30px;
  height: 30px;
}

/* ── ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 0.1s;
}
.stagger-2 {
  transition-delay: 0.2s;
}
.stagger-3 {
  transition-delay: 0.3s;
}
.stagger-4 {
  transition-delay: 0.35s;
}

/* ── Landing content animations ── */
.landing-content .landing-tag,
.landing-content h1,
.landing-content p,
.landing-content .landing-actions {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.landing-section.in-view .landing-content .landing-tag {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.landing-section.in-view .landing-content h1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

.landing-section.in-view .landing-content p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.landing-section.in-view .landing-content .landing-actions {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.55s;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 768px) {
  .nav {
    padding: 0.8rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-mobile-store {
    display: flex;
  }

  .nav-cart-btn-mobile {
    display: inline-flex;
  }

  .nav-cart-btn:not(.nav-cart-btn-mobile) {
    display: none;
  }

  .section {
    padding: 3rem 1.25rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .categories-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

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

  .modal-content {
    width: 95vw;
    height: 60vh;
  }

  .breadcrumb {
    min-width: 0;
    overflow: hidden;
    flex: 1;
    font-size: 0.75rem;
    gap: 0.3rem;
  }

  .breadcrumb .current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
    display: inline-block;
  }

  .breadcrumb a {
    white-space: nowrap;
  }

  .nav-logo {
    flex-shrink: 0;
  }
  .nav-logo-img {
    height: 1.5rem;
  }

  .nav-mobile-store {
    flex-shrink: 0;
  }

  .store-picker {
    width: calc(100vw - 2rem);
    right: 1rem;
    left: 1rem;
    max-height: 60vh;
  }

  .wa-fab {
    bottom: 1rem;
    right: 1rem;
    width: 54px;
    height: 54px;
  }

  .wa-fab svg {
    width: 26px;
    height: 26px;
  }

  /* Landing sections mobile */
  .landing-content {
    padding: 1.5rem;
    text-align: center;
  }

  .landing-content p {
    font-size: 1rem;
  }

  .landing-actions {
    justify-content: center;
  }

  .detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-contact-seller,
  .btn-add-cart,
  .btn-3d,
  .btn-ar {
    width: 100%;
    justify-content: center;
  }

  .section-dots {
    right: 1rem;
    gap: 0.75rem;
  }

  .section-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .landing-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-landing {
    justify-content: center;
  }

  .cart-drawer {
    width: 100vw;
  }
}
