/* ==========================================================================
   SNACK STORE BH - CATÁLOGO EXCLUSIVO DE ATACADO
   Design System: Luxury Dark Glassmorphism, Gold & Emerald Highlights
   ========================================================================== */

:root {
  --bg-main: #080C14;
  --bg-surface: #0E1524;
  --bg-card: #121B2D;
  --bg-card-hover: #16233B;
  --bg-glass: rgba(18, 27, 45, 0.75);
  --bg-input: #172238;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-gold: rgba(212, 175, 55, 0.35);

  --gold-primary: #D4AF37;
  --gold-light: #F5D061;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --gold-dark: #8C6B10;

  --emerald: #10B981;
  --emerald-dark: #059669;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(16, 185, 129, 0.35);

  --red-alert: #EF4444;
  --red-bg: rgba(239, 68, 68, 0.12);
  --red-border: rgba(239, 68, 68, 0.35);

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.2);

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   TOP BAR & HEADER
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, #070B12 0%, #0F172A 50%, #070B12 100%);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 8px 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-phone {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition-fast);
}

.top-phone:hover {
  color: #fff;
}

.top-phone i {
  width: 13px;
  height: 13px;
}

/* Main Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-crest {
  font-size: 28px;
  filter: drop-shadow(0 2px 8px var(--gold-glow));
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1.1;
}

.brand-gold {
  color: var(--gold-primary);
  font-weight: 900;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stock-sync-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

.btn-cart-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1E293B 0%, #111A2B 100%);
  border: 1px solid var(--border-gold);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.btn-cart-header:hover {
  background: linear-gradient(135deg, #2A384F 0%, #16233B 100%);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-icon-wrap i {
  width: 18px;
  height: 18px;
  color: var(--gold-light);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--emerald);
  color: #042F2E;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  transition: transform var(--transition-fast);
}

.cart-header-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.cart-header-label {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cart-header-val {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 36px 0 24px;
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 14px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.highlight-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

.hl-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-fast);
}

.hl-item:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.hl-item.hl-green {
  border-color: var(--emerald-border);
  background: rgba(16, 185, 129, 0.05);
}

.hl-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}

.hl-item.hl-green .hl-num {
  color: var(--emerald);
}

.hl-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ==========================================================================
   TOOLBAR & FILTERS
   ========================================================================== */
.toolbar-section {
  padding: 20px 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.toolbar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 13px 44px 13px 44px;
  border-radius: var(--radius-full);
  outline: none;
  transition: var(--transition-normal);
}

.search-box input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
  background: #1B273F;
}

.btn-clear-search {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
}

.btn-clear-search i {
  width: 16px;
  height: 16px;
}

/* Filters Row */
.filters-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.filter-pill:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: var(--border-medium);
}

.filter-pill.active {
  background: var(--gold-primary);
  color: #0B111E;
  border-color: var(--gold-primary);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.dot-red {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-alert);
}

.filter-pill.pill-available.active {
  background: var(--emerald);
  color: #022C22;
  border-color: var(--emerald);
}

.filter-pill.pill-out.active {
  background: var(--red-alert);
  color: #fff;
  border-color: var(--red-alert);
}

/* Sort Select */
.sort-group {
  margin-left: auto;
}

.sort-select {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sort-select:focus {
  border-color: var(--gold-primary);
}

/* Filter Summary */
.filter-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  padding-top: 4px;
}

.btn-reset-filters {
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-reset-filters i {
  width: 12px;
  height: 12px;
}

/* ==========================================================================
   PRODUCTS GRID & CARDS
   ========================================================================== */
.catalog-container {
  padding: 30px 20px 80px;
  flex: 1;
}

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

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}

.product-card.card-out-of-stock {
  opacity: 0.85;
}

/* Card Media Header */
.card-media {
  position: relative;
  width: 100%;
  height: 220px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.25) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: pointer;
  overflow: hidden;
}

.card-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.35s ease;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

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

/* Badges on Media */
.media-badges-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.code-badge {
  background: rgba(14, 21, 36, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}

.line-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
}

.line-badge.arab {
  background: rgba(139, 92, 246, 0.85);
  color: #fff;
}

.line-badge.brand {
  background: rgba(59, 130, 246, 0.85);
  color: #fff;
}

/* Availability Badge Strip */
.availability-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  z-index: 2;
}

.availability-pill.in-stock {
  background: rgba(16, 185, 129, 0.92);
  color: #042F2E;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.availability-pill.in-stock .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #042F2E;
}

.availability-pill.out-of-stock {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.availability-pill.out-of-stock .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.gender-corner-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.gender-corner-badge.fem { background: rgba(236, 72, 153, 0.85); color: #fff; }
.gender-corner-badge.masc { background: rgba(14, 165, 233, 0.85); color: #fff; }
.gender-corner-badge.uni { background: rgba(20, 184, 166, 0.85); color: #fff; }

/* Card Content Body */
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 12px;
}

.card-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.card-ref-box {
  background: rgba(212, 175, 55, 0.08);
  border-left: 2.5px solid var(--gold-primary);
  padding: 4px 8px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 4px;
}

.card-ref-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.card-ref-value {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* Quick Notes Button */
.btn-quick-notes {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 11px;
  cursor: pointer;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  transition: var(--transition-fast);
}

.btn-quick-notes:hover {
  color: var(--gold-light);
}

.btn-quick-notes i {
  width: 12px;
  height: 12px;
}

/* Card Pricing Box */
.card-price-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.02) 100%);
  border: 1.2px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-main-block {
  display: flex;
  flex-direction: column;
}

.price-label-atacado {
  font-size: 9px;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.price-number-atacado {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.price-extra-block {
  display: flex;
  flex-direction: column;
  text-align: right;
  gap: 2px;
}

.price-retail-text {
  font-size: 10px;
  color: var(--text-muted);
}

.price-retail-text b {
  color: #fff;
}

.price-profit-chip {
  font-size: 10px;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-bg);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* Card Action Area (Quantity & Add) */
.card-action-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.qty-control {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  height: 38px;
}

.btn-qty {
  width: 32px;
  height: 100%;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition-fast);
}

.btn-qty:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-light);
}

.qty-input {
  width: 34px;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}

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

.btn-add-cart {
  flex: 1;
  height: 38px;
  background: linear-gradient(135deg, var(--gold-primary) 0%, #B8860B 100%);
  border: none;
  border-radius: var(--radius-sm);
  color: #080C14;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-normal);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

.btn-add-cart:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn-add-cart:active {
  transform: translateY(1px);
}

.btn-add-cart i {
  width: 14px;
  height: 14px;
}

.btn-add-cart.added {
  background: var(--emerald);
  color: #042F2E;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.btn-primary {
  background: var(--gold-primary);
  border: none;
  color: #080C14;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary:hover {
  background: var(--gold-light);
}

/* ==========================================================================
   CART DRAWER & SLIDE-OVER
   ========================================================================== */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 460px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

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

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

.cart-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-header-icon {
  font-size: 24px;
}

.cart-drawer-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.cart-drawer-sub {
  font-size: 11px;
  color: var(--text-dim);
}

.cart-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  transition: var(--transition-fast);
}

.cart-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Cart Items Container */
.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-dim);
  gap: 10px;
  padding: 40px 20px;
}

.cart-empty-msg i {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

/* Cart Item Card */
.cart-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}

.cart-item:hover {
  border-color: var(--border-gold);
}

.cart-item-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: #080C14;
  object-fit: contain;
  padding: 2px;
  flex-shrink: 0;
}

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

.cart-item-code {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-item-price strong {
  color: #fff;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cart-item-qty-control {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  height: 28px;
}

.btn-cart-qty {
  width: 24px;
  height: 100%;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-cart-qty:hover {
  color: var(--gold-light);
}

.cart-qty-val {
  width: 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.btn-remove-item {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.btn-remove-item:hover {
  color: var(--red-alert);
}

.btn-remove-item i {
  width: 12px;
  height: 12px;
}

/* Cart Footer & Checkout */
.cart-drawer-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-summary-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.summary-line.highlight {
  font-size: 14px;
  color: #fff;
  border-top: 1px solid var(--border-subtle);
  padding-top: 6px;
  margin-top: 2px;
}

.total-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--gold-light);
}

.summary-line.profit {
  font-size: 11px;
  color: var(--emerald);
  font-weight: 600;
}

.profit-val {
  color: var(--emerald);
  font-weight: 800;
}

/* Checkout Form */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-title i {
  width: 13px;
  height: 13px;
  color: var(--gold-light);
}

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--gold-primary);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Action Buttons */
.cart-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-whatsapp-checkout {
  width: 100%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  padding: 13px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: var(--transition-normal);
}

.btn-whatsapp-checkout:hover {
  background: linear-gradient(135deg, #2BF074 0%, #18A796 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.wa-icon {
  width: 20px;
  height: 20px;
}

.cart-secondary-actions {
  display: flex;
  gap: 8px;
}

.btn-copy-order {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-copy-order:hover {
  border-color: var(--border-gold);
  color: var(--gold-light);
}

.btn-copy-order i {
  width: 12px;
  height: 12px;
}

.btn-clear-cart {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-clear-cart:hover {
  color: var(--red-alert);
}

.btn-clear-cart i {
  width: 12px;
  height: 12px;
}

.cart-footer-security {
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.4;
}

.cart-footer-security strong {
  color: var(--gold-light);
}

/* ==========================================================================
   MOBILE STICKY BOTTOM BAR
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(14, 21, 36, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-gold);
  padding: 10px 16px;
  z-index: 30;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.mobile-bar-summary {
  display: flex;
  flex-direction: column;
}

.m-qty {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

.m-total {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  color: var(--gold-light);
}

.btn-mobile-cart {
  background: linear-gradient(135deg, var(--gold-primary) 0%, #B8860B 100%);
  border: none;
  color: #080C14;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-gold);
}

.btn-mobile-cart i {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   QUICK VIEW MODAL (DETALHES DA FRAGRÂNCIA)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.quick-modal {
  width: 100%;
  max-width: 640px;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s ease;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-backdrop.open .quick-modal {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--red-alert);
}

.modal-close-btn i {
  width: 16px;
  height: 16px;
}

.quick-modal-body {
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Modal Content Grid */
.modal-hero-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: center;
}

.modal-img-wrap {
  width: 100%;
  height: 180px;
  background: #080C14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.modal-img-wrap img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.modal-title-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-title-info h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.modal-insp-pill {
  background: rgba(212, 175, 55, 0.1);
  border-left: 3px solid var(--gold-primary);
  padding: 6px 10px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12px;
  color: var(--text-main);
}

.modal-pyramid-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-pyramid-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

.pyramid-note-row {
  display: flex;
  font-size: 12px;
  gap: 6px;
  line-height: 1.4;
}

.pyramid-note-row strong {
  color: #fff;
  min-width: 75px;
}

.pyramid-note-row span {
  color: var(--text-muted);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #111B2D;
  border: 1px solid var(--gold-primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideInToast 0.3s ease, fadeOutToast 0.3s ease 2.7s forwards;
  pointer-events: auto;
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOutToast {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(10px); }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 900px) {
  .hero-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar-right {
    display: none;
  }

  .brand-name {
    font-size: 18px;
  }

  .stock-sync-indicator {
    display: none;
  }

  .cart-header-info {
    display: none;
  }

  .btn-cart-header {
    padding: 8px 12px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
  }

  .filters-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .sort-group {
    margin-left: 0;
    width: 100%;
  }

  .sort-select {
    width: 100%;
  }

  .mobile-bottom-bar {
    display: flex;
  }

  .catalog-container {
    padding-bottom: 90px;
  }

  .cart-drawer {
    max-width: 100%;
  }

  .modal-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .modal-img-wrap {
    height: 150px;
  }
}

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

  .card-media {
    height: 240px;
  }

  .hero-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}
