/* ==========================================================================
   Súper Abarrotes & Multi-Theme Business Platform
   Clean Modular Edition: Master Stylesheet, POS Cashier & Business Themes
   ========================================================================== */

:root {
  /* Default Theme Colors (Abarrotes / Súper) */
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --primary-light: #fee2e2;
  --primary-hover: #991b1b;
  --secondary: #0284c7;
  --secondary-dark: #0369a1;
  --secondary-light: #e0f2fe;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fef3c7;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-dark: #0f172a;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --danger: #dc2626;
  --warning: #f59e0b;
  --success: #16a34a;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.18);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== 12 BUSINESS GIROS THEMES ==================== */
[data-theme="ferreteria"] {
  --primary: #ea580c; --primary-dark: #c2410c; --primary-light: #ffedd5; --primary-hover: #9a3412;
  --secondary: #334155; --secondary-dark: #1e293b; --secondary-light: #f1f5f9;
  --accent: #eab308; --accent-dark: #ca8a04; --accent-light: #fef9c3;
}
[data-theme="carniceria"] {
  --primary: #991b1b; --primary-dark: #7f1d1d; --primary-light: #fee2e2; --primary-hover: #450a0a;
  --secondary: #d97706; --secondary-dark: #b45309; --secondary-light: #fef3c7; --accent: #f59e0b;
}
[data-theme="panaderia"] {
  --primary: #b45309; --primary-dark: #92400e; --primary-light: #fef3c7; --primary-hover: #78350f;
  --secondary: #d97706; --secondary-dark: #b45309; --secondary-light: #fffbeb; --accent: #fbbf24;
}
[data-theme="fruteria"] {
  --primary: #15803d; --primary-dark: #166534; --primary-light: #dcfce7; --primary-hover: #14532d;
  --secondary: #ea580c; --secondary-dark: #c2410c; --secondary-light: #ffedd5; --accent: #facc15;
}
[data-theme="cosmeticos"] {
  --primary: #db2777; --primary-dark: #be185d; --primary-light: #fce7f3; --primary-hover: #9d174d;
  --secondary: #9333ea; --secondary-dark: #7e22ce; --secondary-light: #f3e8ff; --accent: #f59e0b;
}
[data-theme="ropa"] {
  --primary: #4338ca; --primary-dark: #3730a3; --primary-light: #e0e7ff; --primary-hover: #312e81;
  --secondary: #0f172a; --secondary-dark: #020617; --secondary-light: #f8fafc; --accent: #ec4899;
}
[data-theme="mascotas"] {
  --primary: #0d9488; --primary-dark: #0f766e; --primary-light: #ccfbf1; --primary-hover: #115e59;
  --secondary: #f97316; --secondary-dark: #ea580c; --secondary-light: #ffedd5; --accent: #facc15;
}
[data-theme="refaccionaria"] {
  --primary: #b91c1c; --primary-dark: #991b1b; --primary-light: #fee2e2; --primary-hover: #7f1d1d;
  --secondary: #475569; --secondary-dark: #334155; --secondary-light: #f1f5f9; --accent: #f59e0b;
}
[data-theme="tecnologia"] {
  --primary: #2563eb; --primary-dark: #1d4ed8; --primary-light: #dbeafe; --primary-hover: #1e40af;
  --secondary: #7c3aed; --secondary-dark: #6d28d9; --secondary-light: #ede9fe; --accent: #06b6d4;
}
[data-theme="papeleria"] {
  --primary: #0284c7; --primary-dark: #0369a1; --primary-light: #e0f2fe; --primary-hover: #075985;
  --secondary: #d97706; --secondary-dark: #b45309; --secondary-light: #fef3c7; --accent: #f59e0b;
}
[data-theme="fitness"] {
  --primary: #d97706; --primary-dark: #b45309; --primary-light: #fef3c7; --primary-hover: #92400e;
  --secondary: #0f172a; --secondary-dark: #020617; --secondary-light: #f1f5f9; --accent: #eab308;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.5;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.hidden {
  display: none !important;
}

/* ==================== CLEAN ADMIN TABS ISOLATION ==================== */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  background: #f1f5f9;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #e2e8f0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.admin-tab {
  padding: 0.65rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-muted);
  border: 1px solid #cbd5e1;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-tab:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.admin-tab.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.admin-tab-content {
  display: none !important;
}

.admin-tab-content.active {
  display: block !important;
  animation: tabFadeIn 0.2s ease-out;
}

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

/* ==================== DESKTOP POS (PUNTO DE VENTA) ==================== */
.pos-desktop-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.25rem;
  background: #0f172a;
  padding: 1.25rem;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.pos-catalog-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pos-search-box {
  display: flex;
  gap: 0.5rem;
}

.pos-search-input {
  flex: 1;
  background: #1e293b;
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
  color: #ffffff;
  outline: none;
  font-weight: 700;
}

.pos-search-input:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.3);
}

.pos-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.65rem;
  max-height: 480px;
  overflow-y: auto;
  padding: 0.25rem;
}

.pos-product-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.pos-product-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: #334155;
}

.pos-product-card .thumb {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 0.25rem;
}

.pos-product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pos-product-card .name {
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  height: 2rem;
  line-height: 1.15;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pos-product-card .price {
  color: #fef08a;
  font-size: 0.95rem;
  font-weight: 900;
  margin-top: 0.25rem;
}

/* POS Register Ticket Panel */
.pos-ticket-panel {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.pos-ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.pos-ticket-items-box {
  flex: 1;
  max-height: 230px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
}

.pos-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.pos-items-table th {
  background: #f1f5f9;
  padding: 0.4rem;
  text-align: left;
  font-weight: 800;
}

.pos-items-table td {
  padding: 0.4rem;
  border-bottom: 1px solid #f1f5f9;
}

.pos-checkout-section {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  margin-top: auto;
}

.pos-grand-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.pos-grand-total-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.quick-cash-pills {
  display: flex;
  gap: 0.35rem;
  margin: 0.35rem 0 0.6rem;
}

.cash-pill {
  flex: 1;
  background: #e2e8f0;
  color: var(--text-main);
  padding: 0.3rem 0;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid #cbd5e1;
  text-align: center;
  cursor: pointer;
}

.cash-pill:hover {
  background: var(--pepsi-blue);
  color: #ffffff;
}

.btn-pos-pay {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  width: 100%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
  transition: var(--transition);
}

.btn-pos-pay:hover {
  transform: translateY(-2px);
  background: #15803d;
}

/* ==================== THEME PRESETS SELECTOR CARDS ==================== */
.theme-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.theme-card {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.theme-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.theme-card.active {
  border-color: var(--primary);
  background: #fef2f2;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.theme-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.95rem;
}

.theme-swatches {
  display: flex;
  gap: 0.35rem;
  margin: 0.25rem 0;
}

.theme-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
}

/* Top Announcement */
.top-announcement {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 0.45rem 0;
  border-bottom: 2px solid var(--accent);
}

.top-announcement-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-announcement-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  background-color: rgba(0, 0, 0, 0.25);
  color: #fef08a;
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(254, 240, 138, 0.4);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4ade80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.5);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.btn-text-light {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-text-light:hover {
  background: #ffffff;
  color: var(--primary-dark);
}

/* Header */
.main-header {
  background: #ffffff;
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-md);
}

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

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 2.1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--accent);
}

.logo-text h1 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.logo-text p {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--secondary-dark);
}

/* Search Bar */
.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 460px;
  margin: 0 0.5rem;
}

.search-wrapper input {
  width: 100%;
  padding: 0.65rem 2.2rem 0.65rem 2.5rem;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-full);
  background-color: var(--bg-muted);
  font-size: 0.92rem;
  transition: var(--transition);
  outline: none;
  font-weight: 500;
}

.search-wrapper input:focus {
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-light);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  pointer-events: none;
  opacity: 0.6;
}

.clear-search-btn {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-icon-labeled {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--secondary-dark);
  background-color: var(--secondary-light);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.btn-icon-labeled:hover {
  background-color: var(--secondary);
  color: #ffffff;
}

.btn-cart {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--accent);
  transition: var(--transition);
}

.btn-cart:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.cart-badge {
  background-color: var(--accent);
  color: #78350f;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid #ffffff;
}

.cart-total {
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  padding-left: 0.5rem;
  color: #fef08a;
}

/* ==================== HERO BANNER ==================== */
.hero-banner {
  padding: 1.5rem 0 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 1.25rem;
}

.hero-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.hero-main {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-hover) 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid var(--accent);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--accent);
  color: #78350f;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  width: fit-content;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.hero-main h2 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-main p {
  font-size: 0.98rem;
  color: #fee2e2;
  margin-bottom: 1.25rem;
  max-width: 540px;
  font-weight: 500;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.feature-tag {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(254, 240, 138, 0.3);
  color: #fef08a;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(4px);
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-promo-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  background: transparent;
}

.promo-item {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  flex: 1;
  transition: var(--transition);
}

.promo-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.promo-1 {
  background: linear-gradient(135deg, var(--secondary-light) 0%, #ffffff 100%);
  border: 2px solid var(--border-color);
  border-left: 6px solid var(--secondary);
}

.promo-2 {
  background: linear-gradient(135deg, var(--accent-light) 0%, #ffffff 100%);
  border: 2px solid var(--border-color);
  border-left: 6px solid var(--accent);
}

.promo-icon {
  font-size: 2.2rem;
  background: #ffffff;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.promo-text h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
  color: var(--text-main);
}

.promo-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.promo-code {
  font-size: 0.8rem;
  background-color: var(--secondary-light);
  color: var(--secondary-dark);
  border: 1px dashed var(--secondary);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  font-weight: 700;
}

/* ==================== CATEGORIES & BRANDS ==================== */
.categories-nav {
  background: linear-gradient(90deg, var(--secondary-dark) 0%, var(--secondary) 50%, var(--secondary-dark) 100%);
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--secondary-dark);
  position: sticky;
  top: 71px;
  z-index: 30;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.categories-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.65rem 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.categories-scroll::-webkit-scrollbar {
  height: 4px;
}

.categories-scroll::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 4px;
}

.cat-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.15);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cat-pill:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.cat-pill.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  border: 1px solid var(--accent);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Brands Bar */
.brands-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0;
}

.brands-scroll {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.brands-scroll::-webkit-scrollbar {
  display: none;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition);
}

.brand-pill:hover,
.brand-pill.active {
  background: var(--secondary-light);
  color: var(--secondary-dark);
  border-color: var(--secondary);
}

/* ==================== CATALOG & PRODUCTS GRID ==================== */
.main-content {
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
  flex: 1;
}

.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  background: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.catalog-heading h2 {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.results-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

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

.select-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.select-group select {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
}

.checkbox-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 800;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.checkbox-pill:hover {
  background-color: #fecdd3;
}

.checkbox-pill input {
  accent-color: var(--primary);
}

/* Active Filter Tags */
.active-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--secondary-light);
  color: var(--secondary-dark);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border-color);
}

.filter-tag button {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--secondary-dark);
  font-weight: 800;
}

.btn-link {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

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

.product-card {
  background-color: var(--bg-surface);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e1;
}

.card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.badge-offer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  border: 1px solid var(--accent);
}

.badge-best {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: #ffffff;
}

.badge-fresh {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #78350f;
  border: 1px solid #ffffff;
}

.product-image-wrap {
  width: 100%;
  height: 135px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #f1f5f9;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.35rem;
  transition: transform 0.25s ease;
}

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

.product-emoji {
  font-size: 4rem;
  transition: transform 0.2s ease;
  user-select: none;
}

.product-card:hover .product-emoji {
  transform: scale(1.12);
}

.low-stock-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #b45309;
  background-color: #fef3c7;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.4rem;
  border: 1px solid #fde68a;
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-title {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0.2rem 0 0.4rem;
  color: var(--text-main);
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6rem;
}

.product-title:hover {
  color: var(--primary);
}

.product-unit {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
  margin-bottom: 0.85rem;
}

.price-current {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.price-old {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 600;
}

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

.stepper {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-muted);
}

.stepper-btn {
  width: 28px;
  height: 32px;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  background-color: #ffffff;
  transition: var(--transition);
}

.stepper-btn:hover {
  background-color: #e2e8f0;
  color: var(--primary);
}

.stepper-val {
  width: 30px;
  text-align: center;
  font-weight: 800;
  font-size: 0.88rem;
}

.btn-add-to-cart {
  flex: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.btn-add-to-cart:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 2px dashed #cbd5e1;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

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

/* ==================== CROSS-SELLING & VENTA SUGERIDA ==================== */
.cross-sell-section {
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  padding: 0.85rem;
  margin-top: 1rem;
  border-radius: var(--radius-md);
}

.cross-sell-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--secondary-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cross-sell-scroll {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.cross-sell-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.5rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 175px;
  flex-shrink: 0;
}

.cross-sell-card img,
.cross-sell-card span.emoji {
  width: 32px;
  height: 32px;
  object-fit: contain;
  font-size: 1.5rem;
}

.cross-sell-info {
  flex: 1;
  min-width: 0;
}

.cross-sell-info h5 {
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cross-sell-info p {
  font-size: 0.72rem;
  color: var(--primary-dark);
  font-weight: 800;
}

.btn-add-cross {
  background: var(--primary);
  color: #ffffff;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
}

/* ==================== REPEAT ORDER & GPS ==================== */
.repeat-order-banner {
  background: #f0fdf4;
  border: 1px dashed #86efac;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.btn-gps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--secondary);
  color: #ffffff;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 800;
  margin-top: 0.35rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.btn-gps:hover {
  background: var(--secondary-dark);
}

.btn-gps.gps-active {
  background: #16a34a;
}

/* ==================== FINANCES & ANALYTICS ==================== */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.analytic-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.analytic-card h5 {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.analytic-card .number {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--text-main);
  margin: 0.25rem 0;
}

.top-products-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.top-prod-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 0.25rem;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
}

/* ==================== PROMOTIONS MANAGER CARDS ==================== */
.promos-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.promo-manager-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.promo-manager-card.promo-type-dia {
  border-left: 5px solid var(--primary);
}

.promo-manager-card.promo-type-semana {
  border-left: 5px solid var(--secondary);
}

.promo-manager-card.promo-type-combo {
  border-left: 5px solid var(--accent);
}

.promo-badge-tag {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

/* ==================== INVENTORY TABLE ==================== */
.admin-subhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.inventory-filter-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.inv-pill {
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  color: var(--text-muted);
  border: 1px solid #cbd5e1;
}

.inv-pill.active {
  background: var(--secondary);
  color: #ffffff;
  border-color: var(--secondary);
}

.admin-search-field {
  padding: 0.45rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  width: 230px;
}

.table-responsive {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  max-height: 480px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.admin-table th {
  background-color: var(--bg-muted);
  padding: 0.65rem 0.85rem;
  font-weight: 800;
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 5;
}

.admin-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.admin-table tr:hover {
  background-color: #f8fafc;
}

.admin-table-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.admin-table-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stock-qty-badge {
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.stock-qty-ok {
  background: #dcfce7;
  color: #15803d;
}

.stock-qty-low {
  background: #fef3c7;
  color: #b45309;
}

.stock-qty-zero {
  background: #fee2e2;
  color: #b91c1c;
}

.stock-toggle-btn {
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
}

.stock-in {
  background-color: #dcfce7;
  color: #15803d;
}

.stock-out {
  background-color: #fee2e2;
  color: #b91c1c;
}

.action-btns-group {
  display: flex;
  gap: 0.35rem;
}

.btn-action-icon {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}

.btn-action-icon:hover {
  background-color: #e2e8f0;
}

.btn-action-wa {
  background-color: #dcfce7;
  color: #15803d;
  font-weight: 700;
}
.btn-action-wa:hover {
  background-color: #25d366;
  color: #ffffff;
}

.btn-action-delete:hover {
  background-color: #fee2e2;
  color: var(--danger);
}

/* Form Styles */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.form-row-4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0.75rem;
}

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

.settings-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Marketing Studio Modal */
.share-modal-card {
  max-width: 620px;
}

.marketing-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

.mkt-tab {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  color: var(--text-muted);
  transition: var(--transition);
}

.mkt-tab.active {
  background: #25d366;
  color: #ffffff;
}

.mkt-tab-content {
  display: none;
}

.mkt-tab-content.active {
  display: block;
}

.share-text-area {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  font-family: monospace;
  font-size: 0.88rem;
  color: #1e293b;
  resize: vertical;
  min-height: 180px;
  line-height: 1.45;
  margin-top: 0.4rem;
  box-sizing: border-box;
}

.flyer-canvas-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1.25rem;
  background: #0f172a;
  border-radius: var(--radius-lg);
}

#flyerCanvas {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.share-actions-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.share-actions-row button {
  flex: 1;
}

.direct-customer-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 0.75rem;
}

.direct-customer-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.direct-customer-row input {
  flex: 1;
  padding: 0.45rem 0.65rem;
  font-size: 0.9rem;
  border: 1px solid #86efac;
  border-radius: var(--radius-sm);
}

/* Thermal Receipt */
.thermal-ticket-view {
  width: 58mm;
  max-width: 100%;
  margin: 0 auto;
  background: #ffffff;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  color: #000000;
  padding: 0.5rem;
  border: 1px dashed #cbd5e1;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-lg {
  max-width: 900px;
}

@keyframes modalScale {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid var(--primary-light);
  background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
}

.modal-header h3 {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.modal-body {
  padding: 1.5rem;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  z-index: 101;
  animation: slideDrawer 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 3px solid var(--primary);
}

@keyframes slideDrawer {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  padding: 1.1rem 1.25rem;
  border-bottom: 2px solid var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
}

.drawer-title-group h3 {
  font-size: 1.2rem;
  font-weight: 900;
}

.drawer-item-count {
  font-size: 0.82rem;
  color: #fef08a;
  font-weight: 700;
}

.drawer-header .btn-close {
  color: #ffffff;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
}

.cart-item-icon {
  font-size: 1.8rem;
  background-color: var(--bg-muted);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.cart-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

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

.cart-item-price strong {
  color: var(--primary-dark);
  font-weight: 800;
}

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

.cart-item-delete {
  color: var(--text-light);
  font-size: 1.1rem;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.cart-item-delete:hover {
  color: var(--danger);
  background-color: #fee2e2;
}

.empty-cart-message {
  text-align: center;
  padding: 3rem 1rem;
}
.empty-cart-icon {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}
.empty-cart-message h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.empty-cart-message p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Order Form Section */
.order-form-section {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.form-section-title {
  font-size: 0.95rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  color: var(--secondary-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.delivery-options-grid,
.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.payment-methods-grid {
  grid-template-columns: 1fr 1fr 1fr;
}

.delivery-card,
.payment-card {
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  background-color: var(--bg-surface);
  font-size: 0.82rem;
  font-weight: 700;
}

.delivery-card input,
.payment-card input {
  display: none;
}

.delivery-card.selected,
.payment-card.selected {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.delivery-card-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.delivery-card-content .icon {
  font-size: 1.4rem;
}

.delivery-card-content .small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.customer-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.input-group label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
}

.input-group .req {
  color: var(--danger);
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  background-color: #ffffff;
  outline: none;
  transition: var(--transition);
  font-weight: 500;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Photo Upload Box */
.photo-upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.photo-upload-zone:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.photo-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.photo-preview-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.photo-preview-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--primary);
}

/* Coupon Group */
.coupon-group {
  margin-top: 0.8rem;
  padding: 0.75rem;
  background-color: #fffbeb;
  border-radius: var(--radius-md);
  border: 1px solid #fde68a;
}

.coupon-input-wrapper {
  display: flex;
  gap: 0.5rem;
}

.coupon-input-wrapper input {
  flex: 1;
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  font-weight: 700;
}

.coupon-feedback {
  font-size: 0.78rem;
  margin-top: 0.3rem;
  font-weight: 700;
}

.coupon-feedback.success {
  color: #15803d;
}

.coupon-feedback.error {
  color: var(--danger);
}

.coupon-tip {
  font-size: 0.75rem;
  color: #92400e;
  display: block;
  margin-top: 0.25rem;
}

/* Drawer Footer */
.drawer-footer {
  border-top: 2px solid var(--border-color);
  padding: 1rem 1.25rem;
  background-color: #f8fafc;
}

.totals-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-weight: 600;
}

.discount-row {
  color: #b91c1c;
  font-weight: 800;
}

.total-row.grand-total {
  border-top: 2px dashed #cbd5e1;
  padding-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.secondary-checkout-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.92rem;
  transition: var(--transition);
  text-align: center;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  border: 1px solid var(--accent);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: #ffffff;
}
.btn-secondary:hover {
  background-color: var(--secondary-dark);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #78350f;
  font-weight: 900;
  border: 1px solid #ffffff;
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.btn-outline {
  border: 2px solid #ffffff;
  color: #ffffff;
}
.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-sm {
  border: 1px solid #cbd5e1;
  background-color: var(--bg-surface);
  color: var(--text-main);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
}
.btn-outline-sm:hover {
  background-color: var(--bg-muted);
}

.btn-text-sm {
  font-size: 0.82rem;
  color: var(--danger);
  font-weight: 700;
  padding: 0.4rem;
}
.btn-text-sm:hover {
  text-decoration: underline;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background: #128c7e;
}

.btn-close {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-close:hover {
  background-color: var(--bg-muted);
  color: var(--text-main);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 200;
  pointer-events: none;
}

.toast {
  background-color: var(--bg-dark);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto;
  animation: toastIn 0.25s ease-out, toastOut 0.25s ease-in 2.75s forwards;
}

.toast.toast-success {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #881337 100%);
  border: 1px solid var(--accent);
}

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

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

/* Media Queries */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .pos-desktop-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-container {
    flex-wrap: wrap;
  }
  .logo-text p {
    display: none;
  }
  .search-wrapper {
    order: 3;
    max-width: 100%;
    margin: 0.4rem 0 0;
    width: 100%;
  }
  .btn-icon-labeled .label {
    display: none;
  }
  .cart-text, .cart-total {
    display: none;
  }
  .btn-cart {
    padding: 0.55rem 0.75rem;
  }
  .mobile-sticky-bar {
    display: block;
  }
  body {
    padding-bottom: 60px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .product-card {
    padding: 0.75rem;
  }
  .product-image-wrap {
    height: 110px;
  }
  .floating-whatsapp {
    bottom: 4.5rem;
  }
}
