/* ==========================================================================
   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;
  overflow: hidden;
  background: #F4F6F9;
  cursor: pointer;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s ease;
}

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

.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 REDESIGN */
.product-modal {
  max-width: 960px;
  width: 95%;
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.product-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
}

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

/* GALLERY COLUMN */
.modal-gallery-col {
  background: radial-gradient(circle at center, #1e2638 0%, #0d111b 100%);
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 16px;
  position: relative;
  align-items: center;
  justify-content: flex-start;
  border-right: 1px solid var(--border);
}

@media (max-width: 820px) {
  .modal-gallery-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }
}

.modal-main-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #F4F6F9;
  border-radius: 18px;
  overflow: hidden;
  padding: 20px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
}

.modal-main-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s, transform 0.2s;
  user-select: none;
}

.gallery-nav-btn:hover {
  background: var(--brand-pink);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev {
  left: 10px;
}

.gallery-nav-btn.next {
  right: 10px;
}

.gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.modal-thumbs-row {
  display: flex;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
  justify-content: center;
}

.modal-thumbs-row::-webkit-scrollbar {
  display: none;
}

.modal-thumb-btn {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 2px solid transparent;
  background: #F4F6F9;
  cursor: pointer;
  overflow: hidden;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.2s;
}

.modal-thumb-btn:hover {
  border-color: rgba(255, 46, 147, 0.5);
  transform: translateY(-2px);
}

.modal-thumb-btn.active {
  border-color: var(--brand-pink);
  box-shadow: 0 0 10px rgba(255, 46, 147, 0.45);
}

.modal-thumb-btn img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* INFO & VARIANTS COLUMN */
.modal-info-col {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  min-width: 0;
}

@media (max-width: 680px) {
  .modal-info-col {
    padding: 20px 18px;
    gap: 14px;
  }
}

.modal-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.modal-rating-badge {
  font-size: 13px;
  font-weight: 700;
  color: #FBBF24;
}

.modal-product-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.modal-ref-code {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 2px 0 4px;
}

.modal-price {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: var(--brand-pink);
  letter-spacing: -0.5px;
}

/* VARIANTS */
.modal-variant-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.variant-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.variant-label {
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-size: 12px;
}

.variant-active-val {
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 700;
}

/* Color Swatches Grid */
.color-swatches-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.color-swatch-item {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, outline 0.2s, box-shadow 0.2s;
  background-clip: padding-box;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.color-swatch-item:hover {
  transform: scale(1.15);
}

.color-swatch-item.active {
  outline: 2.5px solid var(--brand-pink);
  outline-offset: 3px;
  transform: scale(1.12);
  box-shadow: 0 0 10px rgba(255, 46, 147, 0.5);
}

/* Sizes Chips Grid */
.sizes-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 8px;
}

.size-chip-btn {
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.size-chip-btn:hover {
  border-color: var(--brand-pink);
  background: rgba(255, 46, 147, 0.08);
  color: var(--brand-pink);
}

.size-chip-btn.active {
  background: var(--brand-pink);
  border-color: var(--brand-pink);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(255, 46, 147, 0.35);
}

/* ACCORDIONS */
.modal-details-accordion {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-header {
  width: 100%;
  padding: 12px 0;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
}

.accordion-header:hover {
  color: var(--brand-pink);
}

.accordion-icon {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 0 12px 0;
}

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

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

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

/* QUANTITY & ACTIONS */
.modal-purchase-footer {
  margin-top: auto;
  padding-top: 14px;
}

.modal-qty-row {
  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;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: 92%;
  max-width: 820px;
  background: rgba(15, 20, 32, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 46, 147, 0.35);
  border-radius: 20px;
  padding: 18px 24px;
  z-index: 250;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 80px;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
    gap: 14px;
  }
}

.cookie-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.cookie-text strong {
  color: var(--text-main);
}

.cookie-text a {
  color: var(--brand-pink);
  text-decoration: underline;
  cursor: pointer;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--brand-pink);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.btn-cookie-accept:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-cookie-reject {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

/* PRIVACY POLICY MODAL */
.privacy-modal {
  max-width: 760px;
  max-height: 85vh;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.privacy-modal-body {
  padding: 24px 30px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

.privacy-modal-body h4 {
  color: var(--text-main);
  font-size: 15.5px;
  margin: 18px 0 8px;
}

.privacy-modal-body p {
  margin-bottom: 12px;
}

.privacy-highlight-box {
  background: rgba(255, 46, 147, 0.08);
  border: 1px solid rgba(255, 46, 147, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 14px 0;
  color: var(--text-main);
  font-size: 13px;
}

/* CHECKOUT REFINEMENT */
.privacy-consent-box {
  margin: 16px 0 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.4;
}

.consent-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--brand-pink);
  cursor: pointer;
}

.consent-label a {
  color: var(--brand-pink);
  text-decoration: underline;
}

.checkout-actions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-generate-order {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #FF007F 0%, #9333EA 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(255, 0, 127, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn-generate-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 0, 127, 0.5);
}

.btn-generate-order:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.divider-text {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  position: relative;
  margin: 2px 0;
}

.btn-wa-secondary {
  width: 100%;
  padding: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-wa-secondary:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10B981;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  align-items: center;
  justify-content: center;
}

.footer-legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: var(--brand-pink);
  text-decoration: underline;
}

.footer-legal-links .sep {
  color: var(--border);
}

/* ==========================================================================
   IN-PAGE CHECKOUT VALIDATION & SUCCESS MODAL (NO NATIVE BROWSER ALERTS)
   ========================================================================== */

.checkout-inline-error {
  padding: 12px 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  color: #ef4444;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
  animation: shakeError 0.3s ease-in-out;
}

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

.success-modal-card {
  max-width: 480px;
  width: 90%;
  padding: 36px 28px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon-badge {
  font-size: 48px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.15) 0%, rgba(147, 51, 234, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 0, 127, 0.3);
}

.success-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}

.success-order-num {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.success-order-num strong {
  color: var(--brand-pink);
  font-size: 16px;
}

.success-info-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 24px;
  width: 100%;
  text-align: center;
}

.success-intro {
  margin: 0 0 6px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.success-email-highlight {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  word-break: break-all;
}

.success-alert-badge {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 20px;
  color: #22c55e;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.success-next-steps {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.success-actions-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn-success-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  background: #22c55e;
  color: #ffffff;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.35);
  transition: transform 0.2s, background 0.2s;
}

.btn-success-wa:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

.btn-success-close {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #FF007F 0%, #9333EA 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(255, 0, 127, 0.35);
}

.btn-success-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 0, 127, 0.5);
}

