/* ==========================================================================
   KAROL STORE — STYLESHEET (MOBILE-FIRST & LUXURY RESPONSIVE)
   ========================================================================== */

:root {
  /* Brand Core Colors */
  --primary: #FF007F;
  --primary-hover: #E11D48;
  --primary-glow: rgba(255, 0, 127, 0.35);
  --secondary: #9333EA;
  --accent-gold: #F59E0B;
  --accent-emerald: #10B981;

  /* Dark Theme Tokens (Default) */
  --bg-main: #0B0F19;
  --bg-surface: #111827;
  --bg-card: #151D30;
  --bg-card-hover: #1E293B;
  --border: #1F293D;
  --border-focus: #FF007F;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-inverse: #0F172A;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);

  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --nav-height: 92px;
  --mobile-nav-height: 64px;
}

@media (max-width: 768px) {
  :root {
    --nav-height: 80px;
  }
}

/* Light Theme Variables */
html.light {
  --bg-main: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --border: #E2E8F0;
  --border-focus: #FF007F;

  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  padding-bottom: var(--mobile-nav-height);
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

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

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

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

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* TOP ANNOUNCEMENT BAR */
.announcement-bar {
  background: linear-gradient(90deg, #9333EA 0%, #FF007F 100%);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 0;
  text-align: center;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-wa-link {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s;
}

.top-wa-link:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

html.light .navbar {
  background: rgba(255, 255, 255, 0.88);
}

.navbar-inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

@media (max-width: 768px) {
  .brand-logo {
    height: 58px;
  }
}

/* Theme-swappable logo */
html.dark .logo-light-mode { display: none; }
html.dark .logo-dark-mode { display: block; }
html.light .logo-light-mode { display: block; }
html.light .logo-dark-mode { display: none; }

/* SEARCH BAR */
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 14px;
  transition: all 0.2s ease;
  width: 100%;
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.desktop-search {
  max-width: 440px;
}

@media (max-width: 768px) {
  .desktop-search {
    display: none;
  }
}

.search-icon {
  font-size: 14px;
  margin-right: 8px;
  opacity: 0.6;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  width: 100%;
  font-size: 14px;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.clear-search-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 12px;
}

.mobile-search-bar {
  padding: 0 16px 12px;
}

@media (min-width: 769px) {
  .mobile-search-bar {
    display: none;
  }
}

/* NAV ACTIONS */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

html.dark .theme-icon-dark { display: block; }
html.dark .theme-icon-light { display: none; }
html.light .theme-icon-dark { display: none; }
html.light .theme-icon-light { display: block; }

.cart-trigger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: all 0.2s ease;
}

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

.cart-badge {
  background: #FFFFFF;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
}

@media (max-width: 600px) {
  .cart-label {
    display: none;
  }
  .cart-trigger-btn {
    padding: 8px 12px;
  }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #FF007F 0%, #9333EA 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* HERO SECTION */
.hero-banner {
  padding: 40px 0 28px;
  background: radial-gradient(circle at 50% 20%, rgba(255, 0, 127, 0.12) 0%, transparent 70%);
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 0, 127, 0.12);
  border: 1px solid rgba(255, 0, 127, 0.35);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #FF007F 0%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  max-width: 680px;
  margin: 0 auto 24px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* CATEGORIES CHIPS SCROLLER */
.categories-section {
  padding: 16px 0 12px;
  border-bottom: none;
}

.categories-wrapper {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.categories-wrapper::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.cat-chip:hover {
  border-color: var(--primary);
  color: var(--text-main);
}

.cat-chip.active {
  background: linear-gradient(135deg, #FF007F 0%, #9333EA 100%);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* CATALOG SECTION */
.catalog-section {
  padding: 36px 0 60px;
}

.catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.sort-select {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
}

/* PRODUCTS GRID — Mobile 2-cols, Desktop 3-4 cols */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
}

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

/* PRODUCT CARD */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 0, 127, 0.4);
  box-shadow: var(--shadow-md);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  background: #000000;
  cursor: pointer;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  color: var(--primary);
  border: 1px solid rgba(255, 0, 127, 0.4);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (min-width: 768px) {
  .card-body {
    padding: 16px;
  }
}

.card-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.card-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.card-price {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.card-original-price {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.btn-add-cart {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-add-cart:hover, .btn-add-cart:active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 18px;
}

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

/* HOW IT WORKS */
.how-it-works-section {
  padding: 60px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-badge {
  text-align: center;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 8px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  position: relative;
  text-align: center;
}

.step-number {
  position: absolute;
  top: -12px;
  left: 24px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* TRUST SECTION */
.trust-section {
  padding: 40px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.trust-icon {
  font-size: 32px;
}

.trust-item h4 {
  font-size: 15px;
  font-weight: 700;
}

.trust-item p {
  color: var(--text-muted);
  font-size: 13px;
}

/* FOOTER */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 50px 0 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.footer-domain {
  display: inline-block;
  background: rgba(255, 0, 127, 0.1);
  color: var(--primary);
  border: 1px solid rgba(255, 0, 127, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.btn-whatsapp-footer {
  background: #25D366;
  color: #FFFFFF;
  border: none;
}

.btn-whatsapp-footer:hover {
  background: #1EBE5D;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* MOBILE BOTTOM BAR */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--mobile-nav-height);
  background: rgba(17, 24, 39, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

html.light .mobile-nav {
  background: rgba(255, 255, 255, 0.94);
}

@media (min-width: 769px) {
  .mobile-nav {
    display: none;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  flex: 1;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.mobile-nav-item.active, .mobile-nav-item:active {
  color: var(--primary);
}

.mob-icon {
  font-size: 20px;
  line-height: 1;
}

.mob-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  min-width: 16px;
  text-align: center;
}

/* CART DRAWER */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--bg-surface);
  z-index: 210;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
}

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

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

.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-title-group h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
}

.drawer-count-chip {
  background: rgba(255, 0, 127, 0.15);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.close-drawer-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

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

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

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

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

.cart-item-title {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.cart-item-price {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--primary);
}

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

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.qty-number {
  font-size: 13px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  font-size: 16px;
}

.cart-item-remove:hover {
  color: #EF4444;
}

.cart-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

.drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.summary-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.total-line {
  font-size: 17px;
  font-weight: 800;
}

.total-amount {
  font-size: 22px;
  font-family: var(--font-heading);
  color: var(--primary);
}

.checkout-btn {
  margin-top: 16px;
  font-size: 15px;
  padding: 14px;
}

.clear-cart-link {
  display: block;
  text-align: center;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  margin: 10px auto 0;
  cursor: pointer;
}

.clear-cart-link:hover {
  text-decoration: underline;
}

/* MODALS */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

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

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

.modal-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 4px;
  display: block;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
}

.modal-close-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 24px;
}

.form-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

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

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
}

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

.channel-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

@media (max-width: 500px) {
  .channel-selector-grid {
    grid-template-columns: 1fr;
  }
}

.channel-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.channel-card:hover {
  transform: translateY(-2px);
}

.channel-whatsapp:hover {
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.08);
}

.channel-email:hover {
  border-color: #3B82F6;
  background: rgba(59, 130, 246, 0.08);
}

.channel-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.channel-text {
  flex: 1;
  min-width: 0;
}

.channel-text strong {
  display: block;
  font-size: 14px;
  color: var(--text-main);
}

.channel-text span {
  font-size: 11.5px;
  color: var(--text-muted);
}

.channel-arrow {
  font-size: 16px;
  color: var(--text-muted);
}

/* PRODUCT MODAL */
.product-modal {
  max-width: 760px;
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 680px) {
  .product-modal-grid {
    grid-template-columns: 1fr;
  }
}

.modal-img-col {
  background: #000000;
  aspect-ratio: 1;
}

.modal-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info-col {
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.modal-cat-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.modal-product-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-price {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  color: var(--primary);
}

.modal-original-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.modal-specs {
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-specs li::before {
  content: "✓ ";
  color: #10B981;
  font-weight: 800;
}

.modal-qty-row {
  margin-top: auto;
  display: flex;
  gap: 12px;
  align-items: center;
}

.qty-counter {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}

.qty-counter button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: none;
  color: var(--text-main);
  font-size: 18px;
  cursor: pointer;
}

.qty-counter span {
  min-width: 36px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
}

.modal-add-btn {
  flex: 1;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--primary);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  background: var(--primary);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}
