/*
Theme Name:   MarketFlow
Theme URI:    https://eyesdigitale.fr
Author:       EyesDigitale — Loic
Author URI:   https://eyesdigitale.fr
Description:  A premium multi-vendor marketplace theme built on WooCommerce & Dokan. Personal / non-commercial use only.
Version:      1.0.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 8.1
License:      Personal / Non-Commercial
License URI:  https://creativecommons.org/licenses/by-nc/4.0/
Text Domain:  marketflow
Tags:         e-commerce, marketplace, woocommerce, dokan, multi-vendor, dark
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand */
  --c-brand:        #FF5C2A;
  --c-brand-dark:   #D94510;
  --c-brand-light:  #FF8C65;
  --c-brand-glow:   rgba(255, 92, 42, 0.22);

  /* Surfaces */
  --c-bg:           #0C0C0F;
  --c-surface-1:    #141418;
  --c-surface-2:    #1C1C22;
  --c-surface-3:    #26262E;
  --c-border:       rgba(255,255,255,0.07);
  --c-border-focus: rgba(255, 92, 42, 0.55);

  /* Text */
  --c-text-1:       #F0EEE8;
  --c-text-2:       #9A9898;
  --c-text-3:       #5E5C5C;

  /* Status */
  --c-success:      #22C55E;
  --c-warning:      #FACC15;
  --c-danger:       #EF4444;

  /* Typography */
  --f-display:      'Syne', sans-serif;
  --f-body:         'DM Sans', sans-serif;
  --f-mono:         'JetBrains Mono', monospace;

  /* Sizing — 8 px base */
  --s1:  8px;   --s2: 16px;  --s3: 24px;
  --s4:  32px;  --s5: 40px;  --s6: 48px;
  --s8:  64px;  --s10: 80px; --s12: 96px;

  /* Radii */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(0,0,0,.35);
  --shadow-md:  0 4px 20px rgba(0,0,0,.45);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.55);
  --shadow-brand: 0 0 32px var(--c-brand-glow);

  /* Motion */
  --ease:    cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;

  /* Layout */
  --max-w:  1320px;
  --pad-x:  clamp(20px, 4vw, 48px);
}

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

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

body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text-1);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-brand); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--c-brand-light); }
ul, ol { list-style: none; }
button { font-family: var(--f-body); cursor: pointer; }
input, select, textarea { font-family: var(--f-body); font-size: 1rem; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-text-1);
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }
p  { margin-bottom: var(--s2); color: var(--c-text-2); }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--s12); }
.section--sm { padding-block: var(--s8); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: 13px var(--s3);
  border-radius: var(--r-md);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: -.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--dur-fast) var(--ease);
}

.btn:hover::after { background: rgba(255,255,255,0.06); }

/* Primary */
.btn-primary {
  background: var(--c-brand);
  color: #fff;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 0 var(--c-brand-glow);
}
.btn-primary:hover {
  background: var(--c-brand-dark);
  border-color: var(--c-brand-dark);
  color: #fff;
  box-shadow: var(--shadow-brand);
  transform: translateY(-1px);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--c-text-1);
  border-color: var(--c-border);
}
.btn-ghost:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
}

/* Dark */
.btn-dark {
  background: var(--c-surface-2);
  color: var(--c-text-1);
  border-color: var(--c-border);
}
.btn-dark:hover {
  background: var(--c-surface-3);
  border-color: var(--c-brand);
  color: #fff;
}

.btn-lg { padding: 16px var(--s4); font-size: 1rem; border-radius: var(--r-lg); }
.btn-sm { padding: 8px var(--s2); font-size: .82rem; border-radius: var(--r-sm); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--c-surface-1);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}
.card:hover {
  border-color: rgba(255,92,42,.3);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,92,42,.1);
  transform: translateY(-3px);
}

.card-body { padding: var(--s3); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: .72rem;
  font-weight: 600;
  font-family: var(--f-display);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.badge-brand   { background: rgba(255,92,42,.15); color: var(--c-brand-light); border: 1px solid rgba(255,92,42,.25); }
.badge-success { background: rgba(34,197,94,.12); color: #4ade80; border: 1px solid rgba(34,197,94,.25); }
.badge-warning { background: rgba(250,204,21,.12); color: #fde047; border: 1px solid rgba(250,204,21,.25); }

/* ============================================================
   FORMS
   ============================================================ */
.field {
  width: 100%;
  padding: 12px var(--s2);
  background: var(--c-surface-2);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text-1);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
}
.field::placeholder { color: var(--c-text-3); }
.field:focus {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px var(--c-brand-glow);
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  height: 1px;
  background: var(--c-border);
  margin-block: var(--s4);
}

/* ============================================================
   SECTION LABELS
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-family: var(--f-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-brand);
  margin-bottom: var(--s2);
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-brand);
  border-radius: 1px;
}

.section-heading { margin-bottom: var(--s3); }
.section-heading p { font-size: 1.1rem; max-width: 560px; }

.section-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s5);
  flex-wrap: wrap;
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(12, 12, 15, .88);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--c-border);
  transition: border-color var(--dur-base);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s3);
  height: 68px;
}

.site-logo {
  flex-shrink: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--c-text-1);
  letter-spacing: -.03em;
}
.site-logo span { color: var(--c-brand); }
.site-logo img { height: 36px; width: auto; }

.header-search {
  flex: 1;
  max-width: 440px;
  margin-inline: auto;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--c-surface-2);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-pill);
  overflow: hidden;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.search-bar:focus-within {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px var(--c-brand-glow);
}
.search-bar input {
  flex: 1;
  padding: 10px var(--s2);
  background: transparent;
  border: none;
  color: var(--c-text-1);
  outline: none;
  font-size: .9rem;
}
.search-bar input::placeholder { color: var(--c-text-3); }
.search-bar button {
  padding: 10px 16px;
  background: var(--c-brand);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background var(--dur-fast);
}
.search-bar button:hover { background: var(--c-brand-dark); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.primary-nav a {
  font-family: var(--f-display);
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-text-2);
  padding: 6px 2px;
  transition: color var(--dur-fast);
  position: relative;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--c-brand);
  transition: width var(--dur-base) var(--ease);
}
.primary-nav a:hover,
.primary-nav a.current-menu-item { color: var(--c-text-1); }
.primary-nav a:hover::after,
.primary-nav a.current-menu-item::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s1);
  flex-shrink: 0;
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
  transition: all var(--dur-fast);
}
.cart-btn:hover { border-color: var(--c-brand); color: var(--c-brand); }
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  background: var(--c-brand);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: .65rem;
  font-weight: 700;
  font-family: var(--f-display);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.hamburger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--c-text-2);
  border-radius: 2px;
  transition: all var(--dur-base) var(--ease);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(-6px); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

.mobile-nav {
  display: none;
  background: var(--c-surface-1);
  border-top: 1px solid var(--c-border);
  padding: var(--s2) var(--pad-x) var(--s3);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav ul a {
  display: block;
  padding: 10px var(--s1);
  color: var(--c-text-2);
  font-family: var(--f-display);
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: all var(--dur-fast);
}
.mobile-nav ul a:hover { background: var(--c-surface-2); color: var(--c-text-1); }

@media (max-width: 900px) {
  .header-search { display: none; }
  .primary-nav   { display: none; }
  .hamburger     { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-block: var(--s12) var(--s10);
  overflow: hidden;
}

/* Noise/grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 72% 18%, rgba(255,92,42,.18) 0%, transparent 55%),
    radial-gradient(circle at 15% 78%, rgba(255,92,42,.09) 0%, transparent 45%);
  pointer-events: none;
}

/* Dot grid */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  background: rgba(255,92,42,.1);
  border: 1px solid rgba(255,92,42,.25);
  border-radius: var(--r-pill);
  padding: 4px 12px 4px 6px;
  font-size: .78rem;
  font-weight: 600;
  font-family: var(--f-display);
  color: var(--c-brand-light);
  margin-bottom: var(--s2);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--c-brand);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--c-brand-glow); }
  50%       { opacity: .7; box-shadow: 0 0 0 4px transparent; }
}

.hero-title { margin-bottom: var(--s2); }
.hero-title em {
  font-style: normal;
  color: var(--c-brand);
  position: relative;
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: var(--s5);
  color: var(--c-text-2);
}

.hero-search {
  display: flex;
  background: var(--c-surface-2);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--s4);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.hero-search:focus-within {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 4px var(--c-brand-glow);
}
.hero-search input {
  flex: 1;
  padding: 16px var(--s3);
  background: transparent;
  border: none;
  color: var(--c-text-1);
  font-size: .95rem;
  outline: none;
}
.hero-search input::placeholder { color: var(--c-text-3); }
.hero-search .btn { margin: 6px; border-radius: var(--r-lg); }

.hero-ctas { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s4); }

.hero-trust {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--c-text-3);
  font-weight: 500;
}
.trust-item svg { color: var(--c-brand); flex-shrink: 0; }

/* Hero visual */
.hero-visual {
  position: relative;
}

.hero-card-float {
  background: var(--c-surface-1);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--s3);
  position: relative;
  overflow: hidden;
}

.hero-card-float::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,92,42,.5), transparent);
}

.hero-products-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
  margin-bottom: var(--s2);
}

.preview-card {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s2);
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}
.preview-card .preview-img {
  width: 100%; height: 80px;
  background: linear-gradient(135deg, var(--c-surface-3), var(--c-bg));
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.preview-card .preview-name {
  font-family: var(--f-display);
  font-size: .78rem;
  font-weight: 600;
  color: var(--c-text-1);
}
.preview-card .preview-price {
  font-family: var(--f-display);
  font-size: .82rem;
  font-weight: 700;
  color: var(--c-brand);
}

.hero-stats-bar {
  display: flex;
  justify-content: space-between;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s2);
}
.hstat { text-align: center; }
.hstat-val {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--c-brand);
  display: block;
}
.hstat-label { font-size: .72rem; color: var(--c-text-3); }

/* Floating badge */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-size: .78rem;
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--c-text-1);
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}
.float-badge--tl { top: -18px; left: -24px; animation-delay: 0s; }
.float-badge--br { bottom: -18px; right: -24px; animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { padding-block: var(--s8); }
}

/* ============================================================
   MARQUEE / BRANDS
   ============================================================ */
.marquee-section {
  padding-block: var(--s5);
  border-block: 1px solid var(--c-border);
  overflow: hidden;
  background: var(--c-surface-1);
}

.marquee-track {
  display: flex;
  gap: var(--s5);
  animation: marquee 22s linear infinite;
  width: max-content;
}

.marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--s1);
  font-family: var(--f-display);
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-text-3);
  white-space: nowrap;
}
.marquee-item svg { opacity: .4; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--s2);
}

.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: var(--s2) var(--s1);
  background: var(--c-surface-1);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  color: var(--c-text-2);
  transition: all var(--dur-base) var(--ease);
}
.cat-tile:hover {
  background: var(--c-surface-2);
  border-color: var(--c-brand);
  color: var(--c-brand-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3), 0 0 0 1px rgba(255,92,42,.15);
}

.cat-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: background var(--dur-base);
}
.cat-tile:hover .cat-icon { background: rgba(255,92,42,.12); border-color: rgba(255,92,42,.3); }

.cat-name { font-family: var(--f-display); font-size: .78rem; font-weight: 600; line-height: 1.25; }
.cat-count { font-size: .7rem; color: var(--c-text-3); }

@media (max-width: 1024px) { .categories-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px)  { .categories-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card { display: flex; flex-direction: column; }

.product-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--c-surface-2);
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-card-img .sale-badge {
  position: absolute; top: 12px; right: 12px;
}

.product-card-img .wishlist-btn {
  position: absolute; top: 12px; left: 12px;
  width: 32px; height: 32px;
  background: rgba(12,12,15,.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--c-text-2);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: all var(--dur-fast);
}
.product-card:hover .wishlist-btn { opacity: 1; }
.wishlist-btn:hover { color: var(--c-brand); border-color: var(--c-brand); }

.product-card-body {
  padding: var(--s2) var(--s2) var(--s3);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-vendor {
  font-family: var(--f-display);
  font-size: .72rem;
  font-weight: 600;
  color: var(--c-brand);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.product-title {
  font-family: var(--f-display);
  font-size: .95rem;
  font-weight: 600;
  color: var(--c-text-1);
  line-height: 1.35;
  flex: 1;
}
.product-title a { color: inherit; }
.product-title a:hover { color: var(--c-brand-light); }

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stars { display: flex; gap: 1px; }
.star { font-size: .75rem; color: var(--c-surface-3); }
.star.filled { color: var(--c-warning); }
.rating-count { font-size: .72rem; color: var(--c-text-3); }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--s1);
  border-top: 1px solid var(--c-border);
}

.product-price {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--c-text-1);
}
.product-price .old-price {
  font-size: .78rem;
  font-weight: 400;
  color: var(--c-text-3);
  text-decoration: line-through;
  margin-right: 4px;
}

/* ============================================================
   VENDOR CARDS
   ============================================================ */
.vendor-card { overflow: visible; }

.vendor-banner {
  height: 90px;
  background: linear-gradient(135deg, var(--c-surface-2), var(--c-surface-3));
  background-size: cover;
  background-position: center;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.vendor-body {
  padding: var(--s3);
  text-align: center;
}

.vendor-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 3px solid var(--c-surface-1);
  overflow: hidden;
  margin: -32px auto var(--s2);
  box-shadow: var(--shadow-md);
  background: var(--c-surface-2);
}
.vendor-avatar img { width: 100%; height: 100%; object-fit: cover; }

.vendor-name {
  font-family: var(--f-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--c-text-1);
  margin-bottom: 4px;
}
.vendor-meta { font-size: .78rem; color: var(--c-text-3); margin-bottom: var(--s2); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  position: relative;
  background: var(--c-surface-1);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--s10) var(--s8);
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 50%, rgba(255,92,42,.14) 0%, transparent 60%),
    radial-gradient(circle at 75% 50%, rgba(255,92,42,.08) 0%, transparent 55%);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { margin-bottom: var(--s2); }
.cta-banner p  { font-size: 1.05rem; max-width: 480px; margin-inline: auto; margin-bottom: var(--s4); }
.cta-banner-btns { display: flex; gap: var(--s2); justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-surface-1);
  border-top: 1px solid var(--c-border);
  padding-top: var(--s10);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: var(--s6);
  padding-bottom: var(--s8);
  border-bottom: 1px solid var(--c-border);
}

.footer-brand .logo-text {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--c-text-1);
  display: block;
  margin-bottom: var(--s2);
}
.footer-brand .logo-text span { color: var(--c-brand); }
.footer-brand p { font-size: .875rem; max-width: 260px; margin-bottom: var(--s3); }

.footer-socials { display: flex; gap: var(--s1); }
.social-btn {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast);
}
.social-btn:hover { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }

.footer-col-title {
  font-family: var(--f-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-text-1);
  margin-bottom: var(--s2);
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .875rem; color: var(--c-text-3); }
.footer-links a:hover { color: var(--c-text-1); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--s3);
  gap: var(--s2);
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .8rem; color: var(--c-text-3); margin: 0; }
.footer-bottom a { color: var(--c-text-3); }
.footer-bottom a:hover { color: var(--c-brand-light); }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.wc-main { padding-block: var(--s8); }

.shop-layout { display: block; }
.shop-layout.has-sidebar {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--s5);
  align-items: start;
}

.shop-sidebar {
  position: sticky; top: 90px;
  background: var(--c-surface-1);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s3);
}

/* WC product loop */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
  margin: 0; padding: 0;
}
.woocommerce ul.products li.product {
  list-style: none; margin: 0;
  background: var(--c-surface-1);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur-base), transform var(--dur-base), box-shadow var(--dur-base);
}
.woocommerce ul.products li.product:hover {
  border-color: rgba(255,92,42,.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.woocommerce ul.products li.product a img { width: 100%; height: 200px; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--f-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--c-text-1);
  padding: var(--s2) var(--s2) 0;
}
.woocommerce ul.products li.product .price {
  padding: 4px var(--s2) var(--s2);
  color: var(--c-text-1);
  font-weight: 700;
  font-family: var(--f-display);
}

@media (max-width: 900px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .shop-layout.has-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .woocommerce ul.products { grid-template-columns: 1fr; }
}

/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button.alt {
  background: var(--c-brand) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--r-md) !important;
  font-family: var(--f-display) !important;
  font-weight: 600 !important;
  padding: 10px var(--s2) !important;
  transition: background var(--dur-fast) !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .button.alt:hover {
  background: var(--c-brand-dark) !important;
  color: #fff !important;
}

/* Price */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--c-text-1);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.5rem;
}
.woocommerce div.product .product_title { font-family: var(--f-display); }

/* Notices */
.woocommerce-message { border-left-color: var(--c-brand); background: var(--c-surface-1); color: var(--c-text-1); }
.woocommerce-info    { border-left-color: var(--c-brand); background: var(--c-surface-1); color: var(--c-text-1); }
.woocommerce-error   { background: var(--c-surface-1); color: var(--c-text-1); }

/* ============================================================
   PAGE / POST CONTENT
   ============================================================ */
.content-single { max-width: 780px; margin-inline: auto; }
.content-single h1 { margin-bottom: var(--s4); }
.content-single p  { line-height: 1.85; }

.post-meta {
  display: flex; gap: var(--s2); align-items: center;
  font-size: .82rem; color: var(--c-text-3);
  margin-bottom: var(--s4);
  flex-wrap: wrap;
}

/* ============================================================
   404
   ============================================================ */
.page-404 { text-align: center; padding-block: var(--s12); }
.page-404 .error-code {
  font-family: var(--f-display);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-surface-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--s2);
}
.page-404 h1 { margin-bottom: var(--s2); }
.page-404 p  { margin-bottom: var(--s4); }
.page-404-btns { display: flex; gap: var(--s2); justify-content: center; flex-wrap: wrap; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex; gap: var(--s1); align-items: center;
  flex-wrap: wrap; margin-bottom: var(--s3);
}
.breadcrumb li { font-size: .82rem; color: var(--c-text-3); }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: var(--s1); opacity: .4; }
.breadcrumb a { color: var(--c-text-3); }
.breadcrumb a:hover { color: var(--c-brand-light); }
.breadcrumb li:last-child { color: var(--c-text-2); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: var(--s6); }
.pagination .page-numbers {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px;
  background: var(--c-surface-1);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-family: var(--f-display);
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-text-2);
  transition: all var(--dur-fast);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
}

/* ============================================================
   VENDOR BADGE (single product)
   ============================================================ */
.vendor-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: .82rem;
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--c-text-2);
  margin-bottom: var(--s2);
}
.vendor-badge a { color: var(--c-brand); font-weight: 600; }

/* ============================================================
   LAZY IMAGE FADE-IN
   ============================================================ */
img[loading="lazy"] { opacity: 0; transition: opacity var(--dur-slow) var(--ease); }
img.loaded          { opacity: 1; }

/* ============================================================
   SELECTION & FOCUS
   ============================================================ */
::selection { background: rgba(255,92,42,.25); color: #fff; }
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 3px; }
