/*
Theme Name: Vapes DZ
Theme URI: https://vapesdz.com
Author: Vapes DZ
Author URI: https://vapesdz.com
Description: Vapes DZ — Algeria's premium vape shop. A dark, red-accented WooCommerce theme (Oswald display + Inter body) with authentic devices, e-liquids and accessories. Prices in DA, cash-on-delivery, Yalidine Express shipping to all 58 wilayas. Mobile-first. Everything (categories, cart, orders, favorites, checkout, featured & best-seller lists) is driven by live WooCommerce data — demo products are auto-imported on activation and can be deleted any time.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
WC requires at least: 7.0
WC tested up to: 8.9
Text Domain: vapesdz
Tags: e-commerce, custom-menu, featured-images, full-width-template, translation-ready
*/

/* ============================================================
   Vapes DZ — Design tokens (1:1 with the source app)
   Dark canvas (#121212) · vivid red primary (hsl 358 82% 50%)
   Oswald display/headings · Inter body.
   ============================================================ */
:root {
  /* HSL channel tokens (mirror the React app's CSS variables) */
  --background: 0 0% 7%;          /* @kind color */
  --foreground: 0 0% 96%;         /* @kind color */
  --card: 0 0% 10%;               /* @kind color */
  --card-foreground: 0 0% 96%;    /* @kind color */
  --primary: 358 82% 50%;         /* @kind color */
  --primary-foreground: 0 0% 100%; /* @kind color */
  --secondary: 0 0% 14%;          /* @kind color */
  --secondary-foreground: 0 0% 96%; /* @kind color */
  --muted: 0 0% 14%;              /* @kind color */
  --muted-foreground: 0 0% 55%;   /* @kind color */
  --accent: 358 82% 50%;          /* @kind color */
  --accent-foreground: 0 0% 100%; /* @kind color */
  --destructive: 0 84.2% 60.2%;   /* @kind color */
  --border: 0 0% 18%;             /* @kind color */
  --input: 0 0% 18%;              /* @kind color */
  --ring: 358 82% 50%;            /* @kind color */
  --smoke-color: 0 0% 92%;        /* @kind color */
  --radius: 0.5rem;               /* @kind radius */

  /* Resolved colors for convenience */
  --bg:            hsl(var(--background));
  --fg:            hsl(var(--foreground));
  --card-bg:       hsl(var(--card));
  --primary-c:     hsl(var(--primary));
  --primary-fg:    hsl(var(--primary-foreground));
  --secondary-c:   hsl(var(--secondary));
  --muted-c:       hsl(var(--muted));
  --muted-fg:      hsl(var(--muted-foreground));
  --border-c:      hsl(var(--border));

  /* Radii (Tailwind borderRadius scale in the source) */
  --radius-lg: var(--radius);                 /* 8px  */
  --radius-md: calc(var(--radius) - 2px);     /* 6px  */
  --radius-sm: calc(var(--radius) - 4px);     /* 4px  */
  --radius-pill: 9999px;

  /* Type */
  --font-display: 'Oswald', ui-sans-serif, system-ui, sans-serif;
  --font-heading: 'Oswald', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, sans-serif;

  /* Layout */
  --container: 80rem; /* @kind spacing */
  --header-h: 5rem; /* @kind spacing */
  --header-h-mobile: 4rem; /* @kind spacing */

  /* Motion */
  --dur-fast: 200ms; /* @kind other */
  --dur-base: 300ms; /* @kind other */
  --ease: cubic-bezier(0.4, 0, 0.2, 1); /* @kind other */
}

/* ============================================================
   Base / reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; border-color: var(--border-c); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { margin: 0; color: var(--fg); font-family: var(--font-heading); line-height: 1.1; }
p { margin: 0; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease); }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--primary-c); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 768px) { .container { padding-inline: 2rem; } }

.font-display { font-family: var(--font-display); }
.font-heading { font-family: var(--font-heading); }
.uppercase { text-transform: uppercase; }
.text-primary { color: var(--primary-c); }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* ============================================================
   Header / Navbar  (sticky, blur, bottom border)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-c);
}
.nav-bar {
  max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h-mobile); padding-inline: 1rem;
}
@media (min-width: 768px) { .nav-bar { height: var(--header-h); padding-inline: 2rem; } }

.nav-logo { flex-shrink: 0; display: flex; }
.nav-logo img, .nav-logo .logo-fallback {
  height: 3rem; width: auto; border-radius: var(--radius-pill);
  border: 2px solid hsl(var(--primary) / 0.4);
}
@media (min-width: 768px) { .nav-logo img, .nav-logo .logo-fallback { height: 4rem; } }
.logo-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; font-family: var(--font-display); font-weight: 700; color: var(--primary-c);
  background: var(--card-bg); letter-spacing: 0.02em;
}
@media (min-width: 768px) { .logo-fallback { width: 4rem; font-size: 18px; } }

.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  font-family: var(--font-heading); font-weight: 500; font-size: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-fg);
}
.nav-links a:hover { color: var(--primary-c); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-search { display: none; color: var(--muted-fg); background: none; border: 0; padding: 0; }
@media (min-width: 768px) { .nav-search { display: inline-flex; } }
.nav-search:hover { color: var(--fg); }
.nav-cart { position: relative; color: var(--fg); display: inline-flex; }
.nav-cart:hover { color: var(--primary-c); }
.nav-cart .cart-count {
  position: absolute; top: -0.5rem; right: -0.5rem;
  background: var(--primary-c); color: var(--primary-fg);
  font-size: 10px; font-weight: 700; line-height: 1;
  width: 1rem; height: 1rem; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
}
.nav-toggle { display: inline-flex; color: var(--fg); background: none; border: 0; padding: 0; }
@media (min-width: 768px) { .nav-toggle { display: none; } }

/* Mobile menu */
.mobile-menu { display: none; background: var(--card-bg); border-top: 1px solid var(--border-c); }
.mobile-menu.is-open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; padding-block: 1rem; }
.mobile-menu a {
  display: block; padding: 0.75rem 1.5rem; font-family: var(--font-heading); font-weight: 500;
  font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-fg);
}
.mobile-menu a:hover { color: var(--primary-c); background: hsl(var(--secondary) / 0.5); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 1rem 2rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease);
}
.btn--primary { background: var(--primary-c); color: var(--primary-fg); }
.btn--primary:hover { background: hsl(var(--primary) / 0.9); color: var(--primary-fg); }
.btn--outline { border-color: hsl(var(--foreground) / 0.2); color: var(--fg); background: transparent; }
.btn--outline:hover { border-color: var(--primary-c); color: var(--primary-c); }
.btn .arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; min-height: 85vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg .scrim-x {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, hsl(var(--background)) 0%, hsl(var(--background) / 0.85) 45%, hsl(var(--background) / 0.4) 100%);
}
.hero__bg .scrim-y {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, hsl(var(--background)) 0%, transparent 50%, transparent 100%);
}
.hero__inner { position: relative; z-index: 10; width: 100%; max-width: var(--container); margin-inline: auto; padding: 5rem 1rem; }
@media (min-width: 768px) { .hero__inner { padding-inline: 2rem; } }
.hero__content { max-width: 42rem; display: flex; flex-direction: column; gap: 1.5rem; }
.hero__eyebrow {
  align-self: flex-start; display: inline-block;
  color: var(--primary-c); font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.3em;
  border: 1px solid hsl(var(--primary) / 0.3); padding: 0.375rem 1rem; border-radius: var(--radius-pill);
}
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3rem, 9vw, 6rem); line-height: 0.9; letter-spacing: -0.02em;
}
@media (min-width: 1024px) { .hero__title { font-size: 8rem; } }
.hero__sub { color: var(--muted-fg); font-size: 1rem; line-height: 1.7; max-width: 32rem; }
@media (min-width: 768px) { .hero__sub { font-size: 1.125rem; } }
.hero__cta { display: flex; flex-direction: column; gap: 1rem; padding-top: 1rem; }
@media (min-width: 640px) { .hero__cta { flex-direction: row; } }
.hero__fade { position: absolute; bottom: 0; left: 0; right: 0; height: 8rem; background: linear-gradient(0deg, var(--bg), transparent); }

/* Floating red shisha behind the hero text */
.hero__shisha { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.hero__shisha-inner {
  position: absolute; top: 50%; right: 6%; transform: translateY(-50%);
  width: min(34vw, 380px); aspect-ratio: 240 / 470;
  animation: vapes-float 7s ease-in-out infinite;
}
.hero__shisha-svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 34px hsl(var(--primary) / 0.45)) drop-shadow(0 0 10px hsl(var(--primary) / 0.35));
  opacity: 0.92;
}
@media (max-width: 767px) {
  .hero__shisha-inner { right: 50%; transform: translate(50%, -50%); width: 64vw; opacity: 0.5; }
}
@keyframes vapes-float {
  0%, 100% { transform: translateY(-50%) rotate(-1.5deg); }
  50%      { transform: translateY(calc(-50% - 16px)) rotate(1.5deg); }
}
@media (max-width: 767px) {
  @keyframes vapes-float {
    0%, 100% { transform: translate(50%, -50%) rotate(-1.5deg); }
    50%      { transform: translate(50%, calc(-50% - 14px)) rotate(1.5deg); }
  }
}
/* Smoke puffs rising from the bowl */
.hero__shisha-smoke { position: absolute; top: 4%; left: 50%; width: 0; height: 0; }
.hero__shisha-smoke span {
  position: absolute; left: 0; bottom: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--smoke-color) / 0.5), hsl(var(--smoke-color) / 0));
  transform: translate(-50%, 0); opacity: 0;
  animation: vapes-puff 4.5s ease-out infinite;
}
.hero__shisha-smoke span:nth-child(1) { animation-delay: 0s;   }
.hero__shisha-smoke span:nth-child(2) { animation-delay: 0.8s; }
.hero__shisha-smoke span:nth-child(3) { animation-delay: 1.6s; }
.hero__shisha-smoke span:nth-child(4) { animation-delay: 2.4s; }
.hero__shisha-smoke span:nth-child(5) { animation-delay: 3.2s; }
.hero__shisha-smoke span:nth-child(6) { animation-delay: 4s;   }
@keyframes vapes-puff {
  0%   { opacity: 0;    transform: translate(-50%, 0) scale(0.5); }
  15%  { opacity: 0.7; }
  100% { opacity: 0;    transform: translate(calc(-50% + 22px), -190px) scale(3.4); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__shisha-inner { animation: none; }
  .hero__shisha-smoke span { animation: none; opacity: 0; }
}

/* ============================================================
   Section heading (centered eyebrow + display title + rule)
   ============================================================ */
.section { padding-block: 5rem; }
@media (min-width: 768px) { .section { padding-block: 7rem; } }
.section--shade { background: hsl(var(--secondary) / 0.3); }
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head .eyebrow {
  color: var(--primary-c); font-family: var(--font-heading); font-size: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.3em;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.875rem, 5vw, 3rem);
  margin-top: 0.75rem; letter-spacing: -0.02em; text-transform: uppercase;
}
.section-head .rule { width: 4rem; height: 2px; background: var(--primary-c); margin: 1.25rem auto 0; }

/* ============================================================
   Trust section
   ============================================================ */
.trust { background: var(--card-bg); border-block: 1px solid var(--border-c); padding-block: 4rem; }
@media (min-width: 768px) { .trust { padding-block: 6rem; } }
.trust__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .trust__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust__grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.trust-badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; padding: 1.5rem; }
.trust-badge__icon {
  width: 3.5rem; height: 3.5rem; border-radius: var(--radius-pill);
  background: hsl(var(--primary) / 0.1); border: 1px solid hsl(var(--primary) / 0.2);
  display: flex; align-items: center; justify-content: center; color: var(--primary-c);
}
.trust-badge h3 {
  font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg);
}
.trust-badge p { color: var(--muted-fg); font-size: 0.875rem; line-height: 1.6; }

/* ============================================================
   Product grid + card
   ============================================================ */
.product-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin: 0; padding: 0; list-style: none;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.product-card {
  background: var(--card-bg); border: 1px solid var(--border-c); border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color var(--dur-base) var(--ease); list-style: none;
}
.product-card:hover { border-color: hsl(var(--primary) / 0.4); }
.product-card__image { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--secondary-c); }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.product-card:hover .product-card__image img { transform: scale(1.05); }
.product-card__badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--primary-c); color: var(--primary-fg);
  font-family: var(--font-heading); font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.05em; padding: 0.25rem 0.75rem; border-radius: var(--radius-sm);
}
.product-card__details { padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 768px) { .product-card__details { padding: 1.25rem; } }
.product-card__category {
  font-family: var(--font-heading); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--primary-c); margin: 0;
}
.product-card__title { font-family: var(--font-heading); font-weight: 600; color: var(--fg); font-size: 1rem; line-height: 1.2; }
.product-card__title a { color: inherit; }
.product-card__title a:hover { color: var(--primary-c); }
.product-card__rating { display: flex; align-items: center; gap: 0.25rem; }
.product-card__rating .star { width: 0.875rem; height: 0.875rem; color: hsl(var(--muted-foreground) / 0.3); }
.product-card__rating .star.is-on { color: var(--primary-c); fill: var(--primary-c); }
.product-card__rating .count { font-size: 11px; color: var(--muted-fg); margin-left: 0.25rem; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 0.25rem; }
.product-card__price { display: flex; align-items: baseline; gap: 0.5rem; }
.product-card__price .now { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--fg); }
.product-card__price del { font-size: 0.875rem; color: var(--muted-fg); }
.product-card__price ins { text-decoration: none; }
.add-to-cart-btn {
  display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem;
  background: var(--primary-c); color: var(--primary-fg); border: 0; border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease);
}
.add-to-cart-btn:hover { background: hsl(var(--primary) / 0.8); color: var(--primary-fg); }
.add-to-cart-btn.loading { opacity: 0.6; pointer-events: none; }

/* ============================================================
   Checkout (billing fields + order summary)
   ============================================================ */
.checkout-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .checkout-grid { grid-template-columns: repeat(5, 1fr); gap: 3.5rem; } }
.checkout-form { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) { .checkout-form { grid-column: span 3; } }
.checkout-subhead {
  font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--fg); border-bottom: 1px solid var(--border-c); padding-bottom: 0.75rem;
}
.checkout-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .checkout-row { grid-template-columns: repeat(2, 1fr); } }
.checkout-field { display: flex; flex-direction: column; }
.checkout-label {
  font-family: var(--font-heading); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted-fg); margin-bottom: 0.5rem;
}
.checkout-label .req { color: var(--primary-c); }
.checkout-input, .checkout-select, .checkout-textarea {
  width: 100%; background: var(--secondary-c); border: 1px solid var(--border-c); color: var(--fg);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem; font-size: 0.875rem; font-family: var(--font-body);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.checkout-input::placeholder, .checkout-textarea::placeholder { color: hsl(var(--muted-foreground) / 0.5); }
.checkout-input:focus, .checkout-select:focus, .checkout-textarea:focus {
  outline: none; border-color: var(--primary-c); box-shadow: 0 0 0 1px var(--primary-c);
}
.checkout-select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238c8c8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.checkout-textarea { resize: none; }
.checkout-submit { width: 100%; }

.order-review { grid-column: auto; }
@media (min-width: 1024px) { .order-review { grid-column: span 2; } }
.order-card {
  background: var(--card-bg); border: 1px solid var(--border-c); border-radius: var(--radius-sm);
  padding: 1.5rem; position: sticky; top: 7rem; display: flex; flex-direction: column; gap: 1.5rem;
}
@media (min-width: 768px) { .order-card { padding: 2rem; } }
.order-items { display: flex; flex-direction: column; gap: 1rem; }
.order-item { display: flex; align-items: center; gap: 1rem; }
.order-item img { width: 3.5rem; height: 3.5rem; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border-c); }
.order-item__name { font-size: 0.875rem; font-weight: 500; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-item__qty { font-size: 0.75rem; color: var(--muted-fg); }
.order-item__line { font-size: 0.875rem; font-weight: 600; color: var(--fg); white-space: nowrap; }
.order-totals { border-top: 1px solid var(--border-c); padding-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.order-totals .row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.order-totals .row span:first-child { color: var(--muted-fg); }
.order-totals .grand { border-top: 1px solid var(--border-c); padding-top: 0.75rem; font-size: 1rem; font-weight: 700; }
.order-totals .grand .label { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.05em; }
.order-totals .grand .amount { color: var(--primary-c); font-family: var(--font-display); font-size: 1.25rem; }
.order-note { font-size: 11px; color: var(--muted-fg); line-height: 1.6; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--card-bg); border-top: 1px solid var(--border-c); }
.site-footer__main { max-width: var(--container); margin-inline: auto; padding: 4rem 1rem; }
@media (min-width: 768px) { .site-footer__main { padding: 5rem 2rem; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.footer-brand { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-brand img, .footer-brand .logo-fallback { height: 4rem; width: 4rem; border-radius: var(--radius-pill); border: 2px solid hsl(var(--primary) / 0.3); }
.footer-brand p { color: var(--muted-fg); font-size: 0.875rem; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--font-heading); font-weight: 600; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--fg); margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a, .footer-col span { font-size: 0.875rem; color: var(--muted-fg); }
.footer-col a:hover { color: var(--primary-c); }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.75rem; }
.footer-contact .ico { width: 1rem; height: 1rem; color: var(--primary-c); margin-top: 0.125rem; flex-shrink: 0; }
.site-footer__bar { border-top: 1px solid var(--border-c); }
.site-footer__bar-inner {
  max-width: var(--container); margin-inline: auto; padding: 1.25rem 1rem;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.75rem;
}
@media (min-width: 640px) { .site-footer__bar-inner { flex-direction: row; } }
@media (min-width: 768px) { .site-footer__bar-inner { padding-inline: 2rem; } }
.site-footer__bar p, .site-footer__bar a { font-size: 0.75rem; color: var(--muted-fg); }
.site-footer__bar a:hover { color: var(--primary-c); }
.site-footer__bar .links { display: flex; align-items: center; gap: 1.5rem; }

/* ============================================================
   Cart drawer + mobile nav drawer scrims (theme behaviours)
   ============================================================ */
.cart-drawer, .nav-drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.cart-drawer.is-open, .nav-drawer.is-open { visibility: visible; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.6); opacity: 0; transition: opacity var(--dur-base) var(--ease); }
.cart-drawer.is-open .drawer-scrim, .nav-drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; right: 0; width: min(92vw, 26rem);
  background: var(--card-bg); border-left: 1px solid var(--border-c);
  transform: translateX(100%); transition: transform var(--dur-base) var(--ease);
  display: flex; flex-direction: column; padding: 1.5rem; overflow-y: auto;
}
.cart-drawer.is-open .drawer-panel, .nav-drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.drawer-head h2 { font-family: var(--font-heading); font-size: 1.125rem; text-transform: uppercase; letter-spacing: 0.05em; }
.drawer-close { background: none; border: 0; color: var(--muted-fg); }
.drawer-close:hover { color: var(--fg); }

/* ============================================================
   WooCommerce shop / archive
   ============================================================ */
.page-shell { padding-block: 3rem 5rem; }
.shop-head { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.shop-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-family: var(--font-heading); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted-fg); border: 1px solid var(--border-c); padding: 0.5rem 1rem; border-radius: var(--radius-pill);
}
.chip:hover, .chip.is-active { color: var(--primary-fg); background: var(--primary-c); border-color: var(--primary-c); }
.shop-head__title { display: flex; align-items: baseline; gap: 1rem; }
.shop-head__title h1 { font-family: var(--font-display); font-size: clamp(1.875rem,5vw,2.75rem); text-transform: uppercase; }
.shop-head__count { font-size: 0.875rem; color: var(--muted-fg); }
.page-title-lux { font-family: var(--font-display); font-size: clamp(1.875rem,5vw,2.75rem); text-transform: uppercase; margin-bottom: 1.5rem; }

/* Single product */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--muted-fg); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: var(--primary-c); }
.breadcrumb .current { color: var(--fg); }
.product-detail { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 900px) { .product-detail { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.product-detail .price { font-family: var(--font-display); font-size: 2rem; color: var(--primary-c); }
.product-detail .price del { color: var(--muted-fg); font-size: 1.25rem; margin-left: 0.5rem; }
.product-detail .price ins { text-decoration: none; }
.assurances { display: flex; flex-direction: column; gap: 0.625rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-c); }
.assurances .row { display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; color: var(--muted-fg); }
.assurances .row svg { color: var(--primary-c); }
.vapes-badge { display: inline-block; font-family: var(--font-heading); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.25rem 0.625rem; border-radius: var(--radius-sm); }
.vapes-badge--stock { background: hsl(var(--primary) / 0.12); color: var(--primary-c); }
.vapes-badge--sale { background: var(--primary-c); color: var(--primary-fg); }

/* Tables (size charts etc.) */
.size-table-wrap { overflow-x: auto; border: 1px solid var(--border-c); border-radius: var(--radius-md); }
.size-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.size-table th, .size-table td { padding: 0.75rem 1rem; text-align: center; border-bottom: 1px solid var(--border-c); }
.size-table th { background: var(--secondary-c); color: var(--primary-c); font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.05em; }
.size-table tr:last-child td { border-bottom: 0; }

/* WooCommerce notices / generic */
.woocommerce-info, .woocommerce-message, .woocommerce-error {
  background: var(--card-bg); border: 1px solid var(--border-c); border-left: 3px solid var(--primary-c);
  padding: 1rem 1.25rem; border-radius: var(--radius-sm); color: var(--fg); margin-bottom: 1.5rem; list-style: none;
}

/* Mini cart (drawer body) */
.cart-drawer .cart_list { display: flex; flex-direction: column; gap: 1rem; }
.cart-drawer .cart_list li { display: flex; gap: 0.75rem; align-items: center; font-size: 0.875rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-c); }
.cart-drawer .cart_list img { width: 3rem; height: 3rem; object-fit: cover; border-radius: var(--radius-sm); }
.cart-drawer .woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 1rem 0; font-weight: 700; }
.cart-drawer .woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: 0.5rem; }
.cart-drawer .woocommerce-mini-cart__buttons a { text-align: center; }

/* ============================================================
   WooCommerce checkout — style the framework-generated fields
   to match the Vapes DZ design.
   ============================================================ */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout #ship-to-different-address { display: none; }
.woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.woocommerce-checkout .form-row { display: flex; flex-direction: column; margin: 0; }
.woocommerce-checkout .form-row-wide { grid-column: 1 / -1; }
.woocommerce-checkout .form-row label {
  font-family: var(--font-heading); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted-fg); margin-bottom: 0.5rem;
}
.woocommerce-checkout .form-row label .required { color: var(--primary-c); text-decoration: none; border: 0; }
.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.select2-container .select2-selection {
  width: 100%; background: var(--secondary-c); border: 1px solid var(--border-c); color: var(--fg);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem; font-size: 0.875rem; font-family: var(--font-body);
  line-height: 1.4; transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.woocommerce-checkout textarea { min-height: 7rem; resize: none; }
.woocommerce-checkout .input-text::placeholder,
.woocommerce-checkout textarea::placeholder { color: hsl(var(--muted-foreground) / 0.5); }
.woocommerce-checkout .input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
  outline: none; border-color: var(--primary-c); box-shadow: 0 0 0 1px var(--primary-c);
}
.woocommerce-checkout select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238c8c8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
/* select2 (WooCommerce state dropdown) dark theme */
.select2-container--default .select2-selection--single { height: auto; }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--fg); line-height: 1.4; padding: 0; }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 50%; transform: translateY(-50%); right: 0.75rem; }
.select2-dropdown { background: var(--card-bg); border-color: var(--border-c); color: var(--fg); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--primary-c); }
.select2-search--dropdown .select2-search__field { background: var(--secondary-c); border-color: var(--border-c); color: var(--fg); }

/* Order review table */
.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin-bottom: 1rem; }
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td { padding: 0.625rem 0; text-align: left; border-bottom: 1px solid var(--border-c); }
.woocommerce-checkout-review-order-table tfoot th { color: var(--muted-fg); font-weight: 400; }
.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td { border-bottom: 0; padding-top: 0.875rem; }
.woocommerce-checkout-review-order-table .order-total .amount,
.woocommerce-checkout-review-order-table .order-total th {
  font-family: var(--font-display); font-size: 1.25rem; color: var(--primary-c);
}
.woocommerce-checkout-review-order-table td.product-name { color: var(--fg); }
.woocommerce-checkout-review-order-table .amount { color: var(--fg); }

/* Payment box */
.woocommerce-checkout #payment { background: transparent; border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods {
  background: var(--secondary-c); border: 1px solid var(--border-c); border-radius: var(--radius-sm);
  padding: 1rem; margin: 0 0 1rem; list-style: none;
}
.woocommerce-checkout #payment ul.payment_methods li { font-size: 0.875rem; }
.woocommerce-checkout #payment .payment_box {
  background: var(--card-bg); border-radius: var(--radius-sm); color: var(--muted-fg); font-size: 0.8125rem;
}
.woocommerce-checkout #payment .payment_box::before { display: none; }
.woocommerce-checkout #place_order,
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--primary-c); color: var(--primary-fg);
  font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  border: 0; border-radius: var(--radius-sm); padding: 1rem 2rem; font-size: 0.875rem; width: 100%;
  transition: background var(--dur-fast) var(--ease); cursor: pointer;
}
.woocommerce-checkout #place_order:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
  background: hsl(var(--primary) / 0.9); color: var(--primary-fg);
}
.woocommerce .button.alt, .woocommerce-cart .wc-proceed-to-checkout .checkout-button { width: auto; }

/* Cart page table */
.woocommerce table.shop_table {
  width: 100%; border-collapse: collapse; border: 1px solid var(--border-c); border-radius: var(--radius-sm);
  font-size: 0.875rem; overflow: hidden;
}
.woocommerce table.shop_table th, .woocommerce table.shop_table td {
  padding: 1rem; border-bottom: 1px solid var(--border-c); text-align: left; color: var(--fg);
}
.woocommerce table.shop_table th { background: var(--secondary-c); font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.05em; }
.woocommerce .cart_totals h2 { font-family: var(--font-display); text-transform: uppercase; margin-bottom: 1rem; }
.woocommerce-message, .woocommerce-info { color: var(--fg); }

/* Mini-cart buttons */
.woocommerce-mini-cart__buttons .button { display: block; margin-bottom: 0.5rem; }

/* Helpers */
.section-cta { text-align: center; margin-top: 3rem; }
[hidden] { display: none !important; }

/* ============================================================
   Delivery announcement bar (scrolling, all 58 wilayas)
   ============================================================ */
.delivery-bar {
  background: var(--primary-c); color: var(--primary-fg);
  overflow: hidden; white-space: nowrap; position: relative;
}
.delivery-bar__track {
  display: inline-flex; align-items: center; gap: 3rem;
  padding-block: 0.5rem; will-change: transform;
  animation: vapes-marquee 26s linear infinite;
}
.delivery-bar__item {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.8125rem;
  text-transform: uppercase; letter-spacing: 0.12em; flex: none;
}
.delivery-bar__item svg { opacity: 0.9; }
.delivery-bar:hover .delivery-bar__track { animation-play-state: paused; }
@keyframes vapes-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .delivery-bar__track { animation: none; justify-content: center; width: 100%; }
}

/* ============================================================
   Theme toggle button
   ============================================================ */
.nav-theme {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted-fg); background: none; border: 0; padding: 0;
  transition: color var(--dur-fast) var(--ease);
}
.nav-theme:hover { color: var(--primary-c); }

/* ============================================================
   Light theme — alternate palette (toggle). Dark stays the default
   pixel-exact source palette; light only swaps neutral channels.
   ============================================================ */
html[data-theme="light"] {
  --background: 0 0% 100%;        /* @kind color */
  --foreground: 0 0% 9%;          /* @kind color */
  --card: 0 0% 100%;              /* @kind color */
  --card-foreground: 0 0% 9%;     /* @kind color */
  --secondary: 0 0% 96%;          /* @kind color */
  --secondary-foreground: 0 0% 9%; /* @kind color */
  --muted: 0 0% 96%;              /* @kind color */
  --muted-foreground: 0 0% 40%;   /* @kind color */
  --border: 0 0% 88%;             /* @kind color */
  --input: 0 0% 88%;              /* @kind color */
  --smoke-color: 0 0% 45%;        /* @kind color */
}
html[data-theme="light"] body { background: var(--bg); color: var(--fg); }
html[data-theme="light"] .site-header { background: hsl(var(--background) / 0.92); }
html[data-theme="light"] .site-footer { background: hsl(0 0% 97%); }

/* ============================================================
   Category strip (auto from product categories)
   ============================================================ */
.section--cats { padding-block: 4rem; }
.cat-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
@media (min-width: 640px) { .cat-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-strip { grid-template-columns: repeat(6, 1fr); } }
.cat-card a {
  display: flex; flex-direction: column; align-items: center; gap: 0.625rem;
  padding: 1.25rem 0.75rem; text-align: center;
  background: var(--card-bg); border: 1px solid var(--border-c); border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.cat-card a:hover { border-color: var(--primary-c); transform: translateY(-3px); }
.cat-card__media {
  width: 3.75rem; height: 3.75rem; border-radius: var(--radius-pill); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: hsl(var(--secondary) / 0.6); color: var(--primary-c);
}
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__name {
  font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg);
}
.cat-card__count { font-size: 0.75rem; color: var(--muted-fg); }

/* ============================================================
   Product slider (new & on sale — horizontal)
   ============================================================ */
.slider-head { position: relative; }
.slider-head .section-head { margin-bottom: 2rem; }
.slider-nav { display: flex; gap: 0.5rem; justify-content: center; }
.slider-btn {
  width: 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center;
  background: var(--card-bg); color: var(--fg);
  border: 1px solid var(--border-c); border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease);
}
.slider-btn:hover { border-color: var(--primary-c); color: var(--primary-c); }
.product-slider {
  display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-block: 0.5rem 1.5rem; margin: 0; list-style: none;
  scrollbar-width: none; -ms-overflow-style: none;
}
.product-slider::-webkit-scrollbar { display: none; }
.product-slider > li {
  flex: 0 0 80%; max-width: 80%; scroll-snap-align: start;
}
@media (min-width: 640px) { .product-slider > li { flex-basis: 45%; max-width: 45%; } }
@media (min-width: 1024px) { .product-slider > li { flex-basis: 23%; max-width: 23%; } }
