@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,500&family=Sora:wght@300;400;600&display=swap');

:root {
  --bg: #0b0e13;
  --bg-sec: #10151c;
  --card: #141a23;
  --text: #eef1f5;
  --text-muted: #8d97a6;
  --gold: #e2c27d;
  --gold-hover: #f0d596;
  --border: rgba(255, 255, 255, 0.09);
  --whatsapp: #25d366;
  --whatsapp-hover: #20ba59;
  --font-title: 'Fraunces', Georgia, serif;
  --font-body: 'Sora', system-ui, sans-serif;
  --radius-card: 18px;
  --radius-btn: 999px;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.25);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5f7;
    --bg-sec: #e9ecf0;
    --card: #ffffff;
    --text: #161b22;
    --text-muted: #647082;
    --gold: #8a6a1f;
    --gold-hover: #a17c24;
    --border: rgba(0, 0, 0, 0.08);
    --shadow-card: 0 12px 28px rgba(0, 0, 0, 0.06);
  }
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--text);
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Subtle background grid with radial fade mask */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 120px 120px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, black 20%, transparent 80%);
  mask-image: radial-gradient(circle at 50% 45%, black 20%, transparent 80%);
  opacity: 0.7;
}

/* Accessible focus outlines */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition-fast);
}

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

/* Fixed Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, env(safe-area-inset-left)) 0 max(24px, env(safe-area-inset-right));
  background: rgba(11, 14, 19, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background var(--transition-fast);
}

@media (prefers-color-scheme: light) {
  .navbar {
    background: rgba(244, 245, 247, 0.85);
  }
}

.nav-brand {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  padding: 8px 14px;
  border-radius: var(--radius-btn);
}

.nav-link:hover {
  color: var(--gold);
}

.nav-admin-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.nav-admin-link:hover {
  opacity: 1;
  color: var(--gold);
}

/* Hero Top Section */
.hero {
  position: relative;
  min-height: 90vh;
  min-height: 90svh;
  display: flex;
  align-items: center;
  padding: 100px max(24px, env(safe-area-inset-right)) 60px max(24px, env(safe-area-inset-left));
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-text-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(226, 194, 125, 0.12);
  border: 1px solid rgba(226, 194, 125, 0.25);
  border-radius: var(--radius-btn);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
}

.hero-title {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: #0b0e13;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: var(--radius-btn);
  box-shadow: 0 4px 20px rgba(226, 194, 125, 0.35);
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(226, 194, 125, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 400;
  font-size: 0.95rem;
}

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

/* Indicador Discreto de Rolagem no Hero */
.hero-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-decoration: none;
  margin-top: 4px;
  opacity: 0.85;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.hero-scroll-hint:hover {
  opacity: 1;
  transform: translateY(2px);
}

.scroll-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scrollBounce 2s infinite ease-in-out;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

/* Vídeo em loop no topo (substitui a taça parada) */
.hero .hc,
.hero .hero-content {
  position: relative;
  z-index: 2;
}

.hero .hv {
  position: absolute;
  right: 2vw;
  top: 50%;
  height: min(118svh, 1100px);
  aspect-ratio: 9/16;
  margin-top: calc(min(118svh, 1100px) / -2);
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
  background: transparent;
  filter: brightness(0.9);
  -webkit-mask: radial-gradient(ellipse 50% 54% at 50% 50%, #000 52%, transparent 100%);
  mask: radial-gradient(ellipse 50% 54% at 50% 50%, #000 52%, transparent 100%);
  will-change: transform;
}

/* Responsividade do Hero para Celular / Tablet (Sem tampar o vídeo do fundo) */
@media (max-width: 860px) {
  .navbar {
    height: 48px;
    padding: 0 14px;
  }

  .nav-brand {
    font-size: 1.05rem;
    white-space: nowrap;
    gap: 6px;
  }

  .nav-brand-dot {
    width: 6px;
    height: 6px;
  }

  .nav-links {
    gap: 6px;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .hero {
    min-height: 100svh;
    padding: 54px 16px 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: calc(100svh - 68px);
    gap: 0;
    text-align: center;
  }

  .hero-content,
  .hero .hc {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100svh - 68px);
    align-items: center;
    gap: 0;
  }

  .hero-text-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 4px;
    z-index: 2;
  }

  .hero-tag {
    font-size: 0.68rem;
    padding: 3px 10px;
    letter-spacing: 0.04em;
  }

  .hero-title {
    font-size: 1.7rem;
    line-height: 1.12;
    margin: 0;
  }

  .hero-desc {
    color: #ffffff !important;
    font-size: 0.82rem;
    line-height: 1.32;
    margin: 0 auto;
    max-width: 295px;
    opacity: 0.95;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    width: 100%;
    max-width: 300px;
    margin-top: auto;
    padding-bottom: 6px;
    z-index: 2;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.88rem;
    border-radius: 12px;
  }

  .hero-scroll-hint {
    margin-top: 2px;
    font-size: 0.72rem;
  }
}

@media (max-width: 760px) {
  .hero .hv {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    top: 54%;
    height: 54svh;
    max-height: 430px;
    opacity: 0.95;
    margin-top: calc(54svh / -2);
    -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 65%, transparent 100%);
    mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 65%, transparent 100%);
  }
}

/* =========================================
   6. VITRINE 360° SECTION (#reel)
   Always strictly dark theme!
   ========================================= */
#reel {
  --bg: #0b0e13;
  --bg-sec: #10151c;
  --card: #141a23;
  --text: #eef1f5;
  --text-muted: #8d97a6;
  --gold: #e2c27d;
  --gold-hover: #f0d596;
  --border: rgba(255, 255, 255, 0.09);

  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  background: #0b0e13 !important;
  color: #eef1f5 !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Canvas 576x1024 with radial mask to fade video borders */
#cv {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 140vh;
  height: 140svh;
  width: auto;
  aspect-ratio: 9 / 16;
  pointer-events: none;
  z-index: 1;

  -webkit-mask-image: radial-gradient(ellipse 50% 56% at 50% 48%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 56% at 50% 48%, #000 58%, transparent 100%);
}

@media (max-width: 760px) {
  #cv {
    height: 105vh;
    height: 105svh;
    top: 38%;
  }
}

/* Content overlay inside #reel */
.reel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(40px, env(safe-area-inset-right)) 0 max(40px, env(safe-area-inset-left));
  pointer-events: none;
  z-index: 5;
}

.reel-left {
  max-width: 440px;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.38s ease, transform 0.38s ease;
}

.reel-left.fade-out {
  opacity: 0;
  transform: translateY(14px);
}

.reel-counter {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}

.reel-title {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.15;
  color: #eef1f5;
}

.reel-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #8d97a6;
}

.reel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: #0b0e13;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius-btn);
  width: fit-content;
  box-shadow: 0 4px 18px rgba(226, 194, 125, 0.3);
  transition: all var(--transition-fast);
}

.reel-btn:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
}

.reel-btn.added {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3);
}

/* Dots on right (11 vertical indicators) */
.reel-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.reel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.reel-dot.active {
  height: 26px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(226, 194, 125, 0.6);
}

/* Hint at the bottom */
.reel-hint {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: #8d97a6;
  pointer-events: none;
  z-index: 6;
  text-transform: uppercase;
}

.reel-hint svg {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(5px); }
  60% { transform: translateY(2px); }
}

@media (max-width: 760px) {
  .reel-overlay {
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 16px max(20px, env(safe-area-inset-bottom)) 16px;
    background: linear-gradient(to top, rgba(11, 14, 19, 0.92) 0%, rgba(11, 14, 19, 0.45) 20%, transparent 42%);
    pointer-events: none;
  }

  .reel-left {
    max-width: calc(100% - 74px);
    margin-bottom: 0;
    gap: 6px;
    pointer-events: auto;
  }

  .reel-counter {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
  }

  .reel-title {
    font-size: 1.25rem;
    line-height: 1.2;
    color: #eef1f5;
  }

  .reel-desc {
    font-size: 0.82rem;
    line-height: 1.35;
    color: #8d97a6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .reel-btn {
    font-size: 0.85rem;
    padding: 9px 18px;
    margin-top: 4px;
    box-shadow: 0 4px 14px rgba(226, 194, 125, 0.25);
  }

  .reel-dots {
    display: none;
  }

  .reel-hint {
    display: inline-flex;
    top: 76px;
    bottom: auto;
    font-size: 0.72rem;
    padding: 5px 12px;
    background: rgba(11, 14, 19, 0.78);
    border: 1px solid rgba(226, 194, 125, 0.28);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--gold);
    letter-spacing: 0.04em;
    text-transform: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  }

  .btn-floating-cart {
    width: 52px;
    height: 52px;
    bottom: max(16px, env(safe-area-inset-bottom));
    right: 14px;
    padding: 0;
  }

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

/* =========================================
   4. CATÁLOGO SECTION
   ========================================= */
.catalog-section {
  position: relative;
  padding: 100px max(24px, env(safe-area-inset-right)) 100px max(24px, env(safe-area-inset-left));
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-tag {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.02em;
}

/* Filter pills */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  background: var(--bg-sec);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text);
  border-color: rgba(226, 194, 125, 0.4);
}

.filter-btn.active {
  background: var(--gold);
  color: #0b0e13;
  border-color: var(--gold);
  font-weight: 600;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* Product Card */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: light) {
  .product-card:hover {
    box-shadow: 0 16px 36px rgba(138, 106, 31, 0.15);
  }
}

.product-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #0b0e13;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.product-glow {
  position: absolute;
  width: 75%;
  height: 75%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 194, 125, 0.18) 0%, transparent 70%);
  filter: blur(14px);
  pointer-events: none;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

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

.product-cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 6px;
}

.product-name {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1.22rem;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text);
}

.product-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Quantity and Add to Cart */
.product-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  background: var(--bg-sec);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 4px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  transition: background var(--transition-fast);
}

.qty-btn:hover {
  background: rgba(226, 194, 125, 0.2);
  color: var(--gold);
}

.qty-input {
  width: 44px;
  text-align: center;
  border: none;
  background: none;
  font-size: 0.95rem;
  font-weight: 600;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-add {
  flex-grow: 1;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  background: var(--gold);
  color: #0b0e13;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(226, 194, 125, 0.25);
  transition: all var(--transition-fast);
}

.btn-add:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
}

.btn-add.added {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

/* =========================================
   5. RODAPÉ
   ========================================= */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 40px max(24px, env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background: var(--bg-sec);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--text);
}

/* =========================================
   6. BOTÃO FLUTUANTE & GAVETA DE PEDIDO
   ========================================= */
.btn-floating-cart {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  right: max(20px, env(safe-area-inset-right));
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: #0b0e13;
  padding: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(226, 194, 125, 0.35);
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-floating-cart:hover {
  transform: translateY(-3px) scale(1.06);
  background: var(--gold-hover);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 22px rgba(226, 194, 125, 0.45);
}

.btn-floating-cart svg {
  width: 24px;
  height: 24px;
}

.cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  background: #0b0e13;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Drawer overlay */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

/* Drawer panel */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border-left: 1px solid var(--border);
  z-index: 160;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) 24px;
}

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

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 500;
}

.btn-close-drawer {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-sec);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.btn-close-drawer:hover {
  color: var(--text);
  border-color: var(--gold);
}

.drawer-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-empty {
  text-align: center;
  color: var(--text-muted);
  margin: auto 0;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--bg-sec);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.cart-item-img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  background: #0b0e13;
}

.cart-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.25;
}

.cart-item-code {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.cart-item-qty button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-qty span {
  font-size: 0.88rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.btn-remove-item {
  color: var(--text-muted);
  padding: 6px;
  font-size: 1.1rem;
}

.btn-remove-item:hover {
  color: #ff5555;
}

.drawer-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  padding: 15px;
  border-radius: var(--radius-btn);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  transition: all var(--transition-fast);
}

.btn-whatsapp:hover:not(:disabled) {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-continue {
  padding: 12px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: var(--radius-btn);
}

.btn-continue:hover {
  color: var(--text);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
