@charset "UTF-8";

/* ==========================================================================
   Katielle Viana | Alta Confeitaria Artesanal
   Triple AAA Luxury Design System & Responsive Stylesheet - v3.0
   ========================================================================== */

/* --- Custom Properties / Design Tokens --- */
:root {
  /* Color Palette */
  --kv-rose: #B84D6B;
  --kv-rose-light: #D46784;
  --kv-rose-dark: #8C2943;
  --kv-rose-pastel: #FDF5F7;
  --kv-rose-soft: #FCE8ED;
  --kv-rose-glow: rgba(184, 77, 107, 0.18);

  --kv-plum: #241419;
  --kv-plum-light: #4A333B;
  --kv-plum-muted: #755B64;
  --kv-plum-soft: #9E858E;

  --kv-gold: #C5A059;
  --kv-gold-light: #DFCA9B;
  --kv-gold-soft: #FAF4E8;

  --kv-bg: #FFFFFF;
  --kv-bg-warm: #FAF8F6;
  --kv-border: #EED7DE;
  --kv-border-subtle: #F7ECF0;
  --kv-white: #FFFFFF;

  --kv-green-wa: #25D366;
  --kv-green-wa-dark: #1EBE5D;

  /* Typography */
  --font-serif: 'Playfair Display', 'Cormorant Garamond', 'Didot', 'Georgia', serif;
  --font-serif-display: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Plus Jakarta Sans', 'Acumin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(36, 20, 25, 0.04);
  --shadow-sm: 0 4px 14px rgba(36, 20, 25, 0.06);
  --shadow-md: 0 10px 30px rgba(36, 20, 25, 0.08);
  --shadow-lg: 0 20px 50px rgba(36, 20, 25, 0.12);
  --shadow-rose: 0 8px 24px rgba(184, 77, 107, 0.28);
  --shadow-card-hover: 0 16px 36px rgba(184, 77, 107, 0.16);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Global Reset & Base Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--kv-bg) !important;
  color: var(--kv-plum) !important;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* --- Trava anti-scroll-horizontal (global) ---
   'clip' nao cria contexto de rolagem, entao nao quebra position:sticky
   nem o scroll-snap das paginas de cardapio. 'hidden' e o fallback antigo.
   Rede de seguranca: as causas reais sao corrigidas na origem. */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

img, svg, video, canvas, iframe, embed, object {
  max-width: 100%;
}

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

/* Palavras e URLs longas quebram em vez de empurrar o layout */
h1, h2, h3, h4, p, li, span, a, button, td, th, dd, dt, figcaption {
  overflow-wrap: break-word;
  word-break: break-word;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

/* --- Container Wrap Utility --- */
.wrap {
  width: min(1440px, 100%);
  margin-inline: auto;
  padding-inline: clamp(16px, 3.5vw, 48px);
}

/* --- Editorial Typography (Clean Ligature Free) --- */
.font-serif {
  font-family: var(--font-serif) !important;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0 !important;
  font-variant-ligatures: none !important;
}

.ampersand {
  font-family: var(--font-serif-display);
  font-style: italic;
  font-weight: 400;
  color: var(--kv-rose);
  padding: 0 2px;
}

/* --- Dynamic Viewport & Header Dimensions --- */
:root {
  --header-h: 88px;
}

@media (max-width: 1023px) {
  :root {
    --header-h: 78px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
  }
}

/* --- Site Header (Fixed & Transparent on Hero, Solid White on Scroll) --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 0.35s ease,
              -webkit-backdrop-filter 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

.site-header.scrolled,
.site-header.is-compact {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--kv-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  padding: 0 16px;
  max-width: 1400px;
  margin: 0 auto;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}

@media (min-width: 768px) {
  .header-inner {
    height: 78px;
    padding: 0 28px;
  }
}

@media (min-width: 1024px) {
  .header-inner {
    height: 88px;
    padding: 0 40px;
  }
}

/* Compact Header Heights when Scrolled */
.site-header.scrolled .header-inner,
.site-header.is-compact .header-inner {
  height: 50px !important;
}

@media (min-width: 768px) {
  .site-header.scrolled .header-inner,
  .site-header.is-compact .header-inner {
    height: 54px !important;
  }
}

@media (min-width: 1024px) {
  .site-header.scrolled .header-inner,
  .site-header.is-compact .header-inner {
    height: 58px !important;
  }
}

/* Header Left: Desktop Navigation */
.desktop-nav {
  display: none;
  justify-self: start;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: block;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  color: var(--kv-plum);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--kv-rose);
  border-radius: 2px;
  transition: width var(--transition-smooth);
}

.nav-item:hover > a {
  color: var(--kv-rose);
}

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

/* Nav Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: -16px;
  background: #FFFFFF;
  border: 1px solid var(--kv-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-smooth);
  z-index: 200;
  list-style: none;
}

.nav-item.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin-bottom: 4px;
}

.dropdown-menu li:last-child {
  margin-bottom: 0;
}

.dropdown-menu a {
  font-size: 13.5px;
  color: var(--kv-plum-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
  background: var(--kv-rose-pastel);
  color: var(--kv-rose);
  transform: translateX(4px);
}

/* Header Center: Logo */
.site-logo {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo-img {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: opacity 0.45s ease, height 0.35s ease, transform 0.2s ease;
}

@media (min-width: 768px) {
  .site-logo-img {
    height: 50px;
    max-width: 230px;
  }
}

@media (min-width: 1024px) {
  .site-logo-img {
    height: 56px;
    max-width: 260px;
  }
}

/* Compact Logo Sizes */
.site-header.scrolled .site-logo-img,
.site-header.is-compact .site-logo-img {
  height: 28px !important;
}

@media (min-width: 768px) {
  .site-header.scrolled .site-logo-img,
  .site-header.is-compact .site-logo-img {
    height: 32px !important;
  }
}

@media (min-width: 1024px) {
  .site-header.scrolled .site-logo-img,
  .site-header.is-compact .site-logo-img {
    height: 36px !important;
  }
}

.site-header.scrolled .nav-item > a,
.site-header.is-compact .nav-item > a {
  padding: 4px 0 !important;
  font-size: 12.5px !important;
}

.site-header.scrolled .icon-btn,
.site-header.is-compact .icon-btn {
  width: 34px !important;
  height: 34px !important;
}

/* Navigation Links & Contrast in Transparent Mode */
.nav-item > a {
  transition: color 0.45s ease, text-shadow 0.45s ease, padding 0.35s ease, font-size 0.35s ease;
}

.icon-btn {
  transition: color 0.45s ease, filter 0.45s ease, background-color 0.25s ease, transform 0.2s ease, width 0.35s ease, height 0.35s ease;
}

.mobile-menu-btn {
  transition: color 0.45s ease, filter 0.45s ease;
}

.site-header:not(.scrolled) .nav-item > a {
  color: #FFFFFF;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.site-header:not(.scrolled) .nav-item > a:hover {
  color: var(--kv-rose-soft);
}

.site-header:not(.scrolled) .icon-btn {
  color: #FFFFFF;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
}

.site-header:not(.scrolled) .icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.site-header:not(.scrolled) .mobile-menu-btn {
  color: #FFFFFF;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
}

/* Logos: Smooth Cross-fade between Hero and Scrolled */
.logo-hero-transparent {
  opacity: 1;
  visibility: visible;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  transition: opacity 0.45s ease, visibility 0.45s ease, height 0.35s ease;
}

.logo-header-scrolled {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease, height 0.35s ease;
}

.site-header.scrolled .logo-hero-transparent {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-header.scrolled .logo-header-scrolled {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-logo-img:hover {
  transform: scale(1.02);
}

/* Header Right: Actions */
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (min-width: 768px) {
  .header-actions {
    gap: 14px;
  }
}

.icon-btn {
  color: var(--kv-plum);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all var(--transition-fast);
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background-color: var(--kv-rose-pastel);
  color: var(--kv-rose);
  transform: scale(1.05);
}

/* Cart Badge */
.cart-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background: var(--kv-rose);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  height: 18px;
  min-width: 18px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(184, 77, 107, 0.4);
  transition: transform var(--transition-fast);
}

.cart-badge.bump {
  animation: badgeBump 0.3s ease;
}

@keyframes badgeBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  justify-self: start;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

/* Search Dropdown Bar */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--kv-border);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-smooth);
  z-index: 99;
}

.search-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-input-wrapper {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  border: 1.5px solid var(--kv-border);
  border-radius: var(--radius-full);
  padding: 10px 42px 10px 18px;
  font-size: 14px;
  font-family: inherit;
  color: var(--kv-plum);
  background: var(--kv-rose-pastel);
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--kv-rose);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--kv-rose-glow);
}

.search-icon-inside {
  position: absolute;
  right: 14px;
  color: var(--kv-rose);
  pointer-events: none;
}

/* Mobile Navigation Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 20, 25, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 86%;
  max-width: 340px;
  background: #FFFFFF;
  z-index: 1001;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--transition-smooth);
}

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

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

.drawer-logo-img {
  height: 38px;
  width: auto;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kv-plum);
  transition: background var(--transition-fast);
}

.drawer-close-btn:hover {
  background: var(--kv-rose-pastel);
  color: var(--kv-rose);
}

.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--kv-plum);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.drawer-nav-link:hover {
  background: var(--kv-rose-pastel);
  color: var(--kv-rose);
  padding-left: 16px;
}

.drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--kv-border);
  background: var(--kv-rose-pastel);
}

.drawer-hours {
  font-size: 12px;
  color: var(--kv-plum-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* --- Hero Section - 100% full-viewport first fold with photo extending behind header --- */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #14080D;
}

@media (max-width: 767px) {
  .hero {
    min-height: 500px;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition: opacity 0.75s ease-in-out, transform 1.2s ease-out, visibility 0.75s;
  pointer-events: none;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 8, 13, 0.85) 0%,
    rgba(36, 20, 25, 0.38) 50%,
    rgba(20, 8, 13, 0.3) 100%
  );
  pointer-events: none;
}

/* Hero Typography & Copy */
.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(56px, 10vh, 84px);
  z-index: 5;
  color: #FFFFFF;
}

.hero-copy .hero-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: rgba(184, 77, 107, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-slide.show-copy .hero-copy .hero-tag-badge {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease 0.05s, transform 0.5s ease 0.05s;
}

.hero-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.08;
  max-width: 18ch;
  overflow: hidden;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.hero-copy h2 span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.4s ease;
}

.hero-slide.show-copy .hero-copy h2 span {
  transform: none;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}

.hero-copy p {
  margin-top: 10px;
  font-size: clamp(0.92rem, 1.35vw, 1.15rem);
  max-width: 48ch;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.hero-slide.show-copy .hero-copy p {
  opacity: 0.95;
  transform: none;
  transition: opacity 0.6s ease 0.25s, transform 0.6s ease 0.25s;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  background: var(--kv-rose);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(16px);
  box-shadow: 0 6px 20px rgba(184, 77, 107, 0.4);
  transition: opacity 0.4s ease, transform 0.4s ease, scale 0.25s ease, background 0.25s;
}

.hero-slide.show-copy .hero-cta {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease 0.35s, transform 0.6s ease 0.35s, scale 0.25s;
}

.hero-cta:hover {
  scale: 1.04;
  background: var(--kv-rose-light);
  box-shadow: 0 10px 26px rgba(184, 77, 107, 0.55);
}

.hero-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

/* Hero Controls: Progress Dots + Play/Pause + Navigation Arrows */
.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(16px, 3vh, 28px);
  z-index: 50 !important;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #FFFFFF;
  pointer-events: auto !important;
}

.hero-dots {
  display: flex;
  gap: 8px;
  flex: 1;
  pointer-events: auto !important;
}

.hero-dot {
  position: relative;
  height: 5px;
  flex: 0 1 80px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: background 0.25s;
}

.hero-dot::before {
  content: "";
  position: absolute;
  top: -14px;
  bottom: -14px;
  left: 0;
  right: 0;
}

.hero-dot .fill {
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  transform: scaleX(0);
  transform-origin: left;
}

.hero-dot.active .fill {
  animation: heroProgress var(--hero-dur, 6s) linear forwards;
}

.hero.paused .hero-dot.active .fill {
  animation-play-state: paused;
}

@keyframes heroProgress {
  to {
    transform: scaleX(1);
  }
}

.hero-arrows {
  display: flex;
  gap: 10px;
  pointer-events: auto !important;
  z-index: 55 !important;
}

.hero-arrow,
.hero-pause {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  cursor: pointer !important;
  pointer-events: auto !important;
  user-select: none;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hero-arrow:hover,
.hero-pause:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #FFFFFF;
  transform: scale(1.08);
}

.hero-arrow:active,
.hero-pause:active {
  transform: scale(0.95);
}

.hero-arrow svg,
.hero-pause svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  pointer-events: none !important;
}

/* Mobile Responsiveness for Hero */
@media (max-width: 768px) {
  .hero {
    height: calc(100svh - var(--header-h, 64px));
    height: calc(100vh - var(--header-h, 64px));
    min-height: 460px;
  }

  .hero-copy {
    bottom: 46px;
  }

  .hero-copy .hero-tag-badge {
    font-size: 9.5px;
    padding: 4px 10px;
    margin-bottom: 8px;
  }

  .hero-copy h2 {
    font-size: clamp(1.6rem, 6.2vw, 2.2rem);
    line-height: 1.12;
    max-width: 100%;
  }

  .hero-copy p {
    font-size: 0.88rem;
    margin-top: 6px;
    line-height: 1.4;
    max-width: 100%;
  }

  .hero-cta {
    margin-top: 14px;
    padding: 9px 20px;
    font-size: 0.88rem;
  }

  .hero-controls {
    bottom: 12px;
    gap: 8px;
  }

  .hero-dot {
    flex: 0 1 40px;
    height: 4px;
  }

  .hero-arrow,
  .hero-pause {
    width: 36px;
    height: 36px;
  }

  .hero-arrow svg,
  .hero-pause svg {
    width: 15px;
    height: 15px;
  }
}

/* --- Buttons --- */
.btn-primary {
  background: linear-gradient(135deg, #B84D6B 0%, #942E47 100%);
  color: #FFFFFF !important;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-rose);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #D46784 0%, #B84D6B 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(184, 77, 107, 0.38);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: #FFFFFF;
  color: var(--kv-rose) !important;
  border: 1.5px solid var(--kv-rose);
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  background: var(--kv-rose-pastel);
  border-color: var(--kv-rose-dark);
  color: var(--kv-rose-dark) !important;
  transform: translateY(-2px);
}

/* --- Category Touts (3 Destaques) --- */
.touts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 36px auto 0;
  max-width: 1400px;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .touts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 28px;
  }
}

@media (min-width: 1024px) {
  .touts-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 52px;
    padding: 0 40px;
    gap: 24px;
  }
}

.tout-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--kv-border);
  display: block;
}

.tout-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.tout-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(36, 20, 25, 0.85) 0%, rgba(36, 20, 25, 0.25) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #FFFFFF;
  transition: background var(--transition-smooth);
}

.tout-card:hover img {
  transform: scale(1.06);
}

.tout-card:hover .tout-overlay {
  background: linear-gradient(to top, rgba(184, 77, 107, 0.88) 0%, rgba(36, 20, 25, 0.35) 60%, transparent 100%);
}

.tout-title {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #FFFFFF;
}

.tout-link-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform var(--transition-fast);
}

.tout-card:hover .tout-link-text {
  transform: translateX(4px);
}

/* --- Catalog Section --- */
.catalog-section {
  max-width: 1400px;
  margin: 56px auto 0;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .catalog-section {
    margin-top: 76px;
    padding: 0 28px;
  }
}

@media (min-width: 1024px) {
  .catalog-section {
    margin-top: 92px;
    padding: 0 40px;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kv-rose);
  display: inline-block;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 600;
  color: var(--kv-plum);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--kv-plum-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 580px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.product-card {
  background: #FFFFFF;
  border: 1px solid var(--kv-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--kv-rose-light);
}

.product-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  background: var(--kv-rose);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.product-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--kv-rose-pastel);
  margin-bottom: 14px;
  position: relative;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--kv-plum);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--kv-plum-muted);
  margin-bottom: 16px;
  min-height: 58px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 19px;
  font-weight: 700;
  color: var(--kv-rose);
  margin-bottom: 12px;
}

.btn-card {
  width: 100%;
  background: #FFFFFF;
  color: var(--kv-rose);
  border: 1.5px solid var(--kv-rose);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-card:hover {
  background: var(--kv-rose);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(184, 77, 107, 0.25);
}

/* ==========================================================================
   DESTAQUES MAIS PEDIDOS — VARIANTE COMPACTA (SOMENTE MOBILE, <= 767px)
   --------------------------------------------------------------------------
   Grade de 2 colunas, cards sem moldura (sem borda, sem fundo, sem padding).
   A foto passa a ser a moldura: o card vira imagem + texto, estilo catalogo
   de delivery. Nada aqui afeta tablet/desktop, que seguem em 2 e 4 colunas
   com os cards emoldurados originais.
   ========================================================================== */
@media (max-width: 767px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 12px;
  }

  /* Card sem moldura */
  .product-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    gap: 0;
  }

  /* Em toque, :hover fica "grudado" apos o tap — desliga os efeitos */
  .product-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
  }

  .product-card:hover .product-thumb img {
    transform: none;
  }

  /* A foto vira a moldura do card */
  .product-thumb {
    border-radius: 12px;
    margin-bottom: 8px;
  }

  /* Badge acompanha o novo padding zero (antes assumia os 16px do card) */
  .product-badge {
    top: 7px;
    right: 7px;
    font-size: 8.5px;
    letter-spacing: 0.05em;
    padding: 3px 7px;
  }

  .product-name {
    font-size: 13.5px;
    line-height: 1.25;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* min-height fixo de 58px criava buracos na grade de 2 colunas */
  .product-desc {
    font-size: 11.5px;
    line-height: 1.4;
    margin-bottom: 8px;
    min-height: 0;
    -webkit-line-clamp: 2;
  }

  .product-price {
    font-size: 15px;
    margin-bottom: 7px;
  }

  /* "ADICIONAR A SACOLA" precisa caber em ~139px na largura de 320px */
  .btn-card {
    padding: 8px 6px;
    font-size: 10px;
    letter-spacing: 0.02em;
    border-width: 1.25px;
    gap: 4px;
  }
}

/* Telas muito estreitas: alivia mais um pouco. */
@media (max-width: 360px) {
  .products-grid {
    gap: 18px 10px;
  }

  .product-name {
    font-size: 12.5px;
  }

  .btn-card {
    font-size: 9.5px;
    letter-spacing: 0;
    padding: 8px 4px;
  }
}

/* --- Brand Story Section --- */
.story-section {
  background: radial-gradient(circle at 50% 50%, #FFF8FA 0%, #FDF3F6 100%);
  border-top: 1px solid var(--kv-border);
  border-bottom: 1px solid var(--kv-border);
  padding: 60px 16px;
  margin-top: 64px;
}

@media (min-width: 1024px) {
  .story-section {
    padding: 84px 40px;
    margin-top: 88px;
  }
}

.story-container {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.story-title {
  font-size: clamp(24px, 3.6vw, 40px);
  color: var(--kv-plum);
  margin-bottom: 18px;
  font-weight: 600;
}

.story-text {
  font-size: clamp(14.5px, 1.8vw, 16.5px);
  line-height: 1.8;
  color: var(--kv-plum-light);
  margin-bottom: 18px;
}

/* --- Footer Section --- */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--kv-border);
  padding: 44px 16px 24px;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 60px 28px 30px;
  }
}

@media (min-width: 1024px) {
  .site-footer {
    padding: 72px 40px 32px;
  }
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--kv-border);
}

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

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 12px;
}

.footer-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--kv-plum-muted);
  max-width: 320px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kv-rose);
  margin-bottom: 14px;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  font-size: 13px;
  color: var(--kv-plum-light);
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-social-icons {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--kv-border);
  color: var(--kv-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--kv-rose);
  border-color: var(--kv-rose);
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(184, 77, 107, 0.3);
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: var(--kv-plum-muted);
  padding-top: 22px;
}

/* --- Floating Action Container & Dynamic Buttons --- */
.floating-action-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: grid;
  grid-template-areas: "actionBtn";
  justify-items: end;
  align-items: end;
  pointer-events: none;
}

.floating-action-wrapper > * {
  grid-area: actionBtn;
}

/* Floating WhatsApp Button (Hidden on hero, visible when scrolled past hero) */
.whatsapp-floating {
  background: linear-gradient(135deg, var(--kv-green-wa) 0%, var(--kv-green-wa-dark) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0.4s,
              box-shadow var(--transition-fast);
}

.whatsapp-floating.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0s,
              box-shadow var(--transition-fast);
}

.whatsapp-floating.is-visible:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
  color: #FFFFFF;
}

/* Floating Cart Button (Active when items in cart) */
.cart-floating-btn {
  background: linear-gradient(135deg, var(--kv-rose) 0%, var(--kv-rose-dark) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 26px rgba(184, 77, 107, 0.45);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0.4s,
              box-shadow var(--transition-fast);
}

.cart-floating-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0s,
              box-shadow var(--transition-fast);
}

.cart-floating-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 12px 32px rgba(184, 77, 107, 0.6);
  color: #FFFFFF;
}

.cart-floating-btn .cart-floating-count {
  background: #FFFFFF;
  color: var(--kv-rose);
  font-size: 12px;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast);
}

.cart-floating-btn.bounce {
  animation: cartBtnBump 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cartBtnBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.22) translateY(-4px); }
  65% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@media (max-width: 480px) {
  .floating-action-wrapper {
    bottom: 16px;
    right: 16px;
  }
  .whatsapp-floating {
    padding: 12px;
  }
  .whatsapp-floating span {
    display: none;
  }
  .cart-floating-btn {
    padding: 11px 16px;
    font-size: 13px;
  }
}

/* --- Toast Message --- */
.toast-msg {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--kv-plum);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 100000;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-smooth);
}

.toast-msg.active {
  transform: translateY(0);
  opacity: 1;
}

/* --- Non-Blocking Floating Cart Popover (No Overlay Backdrop) --- */
.cart-floating-popover {
  position: fixed;
  bottom: 82px;
  right: 20px;
  width: min(430px, calc(100vw - 32px));
  max-height: min(660px, calc(100vh - 95px));
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--kv-border);
  border-radius: 20px;
  box-shadow: 0 16px 45px rgba(36, 20, 25, 0.18), 0 2px 10px rgba(0, 0, 0, 0.04);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.88) translateY(16px);
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              visibility 0s linear 0.3s;
  overflow: hidden;
}

.cart-floating-popover.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              visibility 0s linear 0s;
}

@media (max-width: 480px) {
  .cart-floating-popover {
    bottom: 74px;
    right: 16px;
    width: calc(100vw - 32px);
    max-height: min(580px, calc(100vh - 85px));
    border-radius: 16px;
  }
}

.cart-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--kv-border-subtle);
  background: var(--kv-rose-pastel);
}

.cart-popover-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-popover-title {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--kv-plum);
  margin: 0;
}

.cart-popover-count-pill {
  background: var(--kv-rose);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.cart-popover-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kv-plum-muted);
  background: #FFFFFF;
  border: 1px solid var(--kv-border);
  font-size: 14px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.cart-popover-close-btn:hover {
  background: var(--kv-rose);
  color: #FFFFFF;
  border-color: var(--kv-rose);
  transform: rotate(90deg);
}

.cart-popover-body {
  flex: 1;
  overflow-y: auto;
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: min(500px, calc(100vh - 190px));
}

.cart-popover-body::-webkit-scrollbar {
  width: 5px;
}

.cart-popover-body::-webkit-scrollbar-thumb {
  background: var(--kv-border);
  border-radius: 10px;
}

.cart-popover-empty {
  text-align: center;
  padding: 32px 12px;
}

.cart-popover-empty-icon {
  font-size: 34px;
  margin-bottom: 8px;
  opacity: 0.35;
}

.cart-popover-empty-text {
  font-size: 13.5px;
  color: var(--kv-plum-muted);
  margin-bottom: 14px;
}

.cart-popover-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--kv-rose-pastel);
  border: 1px solid var(--kv-border);
  border-radius: 12px;
  gap: 8px;
  transition: all var(--transition-fast);
}

.cart-popover-item:hover {
  border-color: var(--kv-rose-light);
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(184, 77, 107, 0.08);
}

.cart-popover-item-info {
  flex: 1;
  min-width: 0;
}

.cart-popover-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--kv-plum);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.cart-popover-item-price {
  font-size: 11.5px;
  color: var(--kv-plum-muted);
  margin-top: 2px;
}

.cart-popover-item-ctrls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cart-qty-group {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--kv-border);
  border-radius: 6px;
  overflow: hidden;
}

.cart-qty-btn {
  padding: 2px 7px;
  font-weight: 700;
  font-size: 12px;
  color: var(--kv-plum);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.cart-qty-btn:hover {
  background: var(--kv-rose-pastel);
  color: var(--kv-rose);
}

.cart-qty-val {
  padding: 2px 5px;
  font-size: 12px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.cart-popover-item-total {
  font-weight: 700;
  font-size: 13px;
  color: var(--kv-rose);
  min-width: 58px;
  text-align: right;
}

.cart-popover-item-del {
  background: none;
  border: none;
  color: #DC2626;
  font-size: 13px;
  cursor: pointer;
  padding: 3px;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.cart-popover-item-del:hover {
  opacity: 1;
  transform: scale(1.15);
}

.cart-popover-footer {
  padding: 13px 18px;
  border-top: 1px solid var(--kv-border);
  background: #FFFFFF;
}

.cart-popover-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 11px;
}

.cart-popover-subtotal-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--kv-plum-muted);
}

.cart-popover-subtotal-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--kv-rose);
}

.cart-popover-checkout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--kv-rose) 0%, var(--kv-rose-dark) 100%);
  color: #FFFFFF;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(184, 77, 107, 0.35);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.cart-popover-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(184, 77, 107, 0.45);
  color: #FFFFFF;
}

.cart-popover-checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- Cart Views & Delivery Address Form --- */
.cart-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cart-view.hidden {
  display: none !important;
}

.cart-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  border: 1px solid var(--kv-border);
  color: var(--kv-plum);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cart-back-btn:hover {
  background: var(--kv-rose-pastel);
  color: var(--kv-rose);
  border-color: var(--kv-rose);
}

/* Delivery Type Toggle */
.delivery-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--kv-rose-pastel);
  border: 1px solid var(--kv-border);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 9px;
  gap: 4px;
}

.delivery-type-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--kv-plum-muted);
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.delivery-type-btn.active {
  background: #FFFFFF;
  color: var(--kv-rose);
  box-shadow: 0 2px 8px rgba(184, 77, 107, 0.15);
}

/* Address Form Fields */
.cart-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 2px;
}

.cart-form-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-form-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--kv-plum-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cart-form-input {
  width: 100%;
  border: 1.5px solid var(--kv-border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--kv-plum);
  background: #FFFFFF;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-fast);
}

.cart-form-input:focus {
  border-color: var(--kv-rose);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--kv-rose-glow);
}

.cart-form-input.input-error {
  border-color: #DC2626;
  background: #FFF5F5;
  animation: inputShake 0.4s ease;
}

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.cart-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.cart-form-row-cep {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 6px;
  align-items: end;
}

.cep-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cep-status-icon {
  position: absolute;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.spin-icon {
  animation: cepSpin 0.9s linear infinite;
}

@keyframes cepSpin {
  100% { transform: rotate(360deg); }
}

.geo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px;
  background: var(--kv-rose-pastel);
  border: 1.5px dashed var(--kv-rose);
  border-radius: 8px;
  color: var(--kv-rose);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.geo-btn:hover {
  background: var(--kv-rose-soft);
  transform: translateY(-1px);
}

.pickup-notice {
  background: var(--kv-rose-pastel);
  border: 1px dashed var(--kv-rose);
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  color: var(--kv-plum);
  line-height: 1.5;
  text-align: center;
}

.pickup-notice strong {
  color: var(--kv-rose);
  display: block;
  margin-bottom: 2px;
}

/* --- Flying Cart Item Animation Element --- */
.flying-cart-clone {
  position: fixed;
  z-index: 100000;
  pointer-events: none;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(184, 77, 107, 0.45);
  border: 2px solid #FFFFFF;
  object-fit: cover;
  will-change: transform, opacity;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.25, 1), opacity 0.65s ease;
}

:focus-visible {
  outline: 2px solid var(--kv-rose);
  outline-offset: 2px;
}
