/*
Theme Name: Vendari
Theme URI: https://example.com/vendari
Author: Your Studio
Author URI: https://example.com
Description: A premium, Elementor-ready WooCommerce theme for single-vendor digital marketplaces (themes & plugins) that scales into multi-vendor. Ships with a ThemeForest-style product card, spec-strip compatibility badges, and a dark editorial hero.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vendari
Tags: e-commerce, one-column, two-columns, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready

Rename this theme: update "Theme Name" above and the text-domain "vendari"
throughout the theme (functions.php, template files) with a find/replace.
*/

/* =========================================================
   0. DESIGN TOKENS
   ========================================================= */
:root {
  /* Color */
  --v-ink: #12172B;          /* deep navy — dark sections, headings */
  --v-ink-soft: #262C46;     /* navy, one step lighter (cards on dark) */
  --v-paper: #FAF9F5;        /* body background */
  --v-paper-alt: #F1EFE7;    /* section band background */
  --v-text: #1B2233;         /* body copy on light */
  --v-text-muted: #6B7280;
  --v-line: #E3E0D6;
  --v-gold: #B8862F;         /* accent — CTAs, prices, highlights */
  --v-gold-deep: #93691F;
  --v-white: #FFFFFF;
  --v-success: #2F7A4F;

  /* Type */
  --v-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --v-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --v-font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --v-container: 1240px;
  --v-radius: 3px;
  --v-gap: 24px;
}

/* =========================================================
   1. RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--v-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--v-text);
  background: var(--v-paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--v-font-display);
  color: var(--v-ink);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
}
p { margin: 0 0 1em; }
:focus-visible {
  outline: 2px solid var(--v-gold);
  outline-offset: 2px;
}
.v-container {
  max-width: var(--v-container);
  margin: 0 auto;
  padding: 0 24px;
}
.v-eyebrow {
  font-family: var(--v-font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--v-gold-deep);
  display: inline-block;
  margin-bottom: 14px;
}
.v-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--v-font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: var(--v-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.v-btn:hover { transform: translateY(-1px); }
.v-btn--gold { background: var(--v-gold); color: var(--v-ink); }
.v-btn--gold:hover { background: var(--v-gold-deep); color: var(--v-white); }
.v-btn--ghost-dark { border-color: rgba(255,255,255,0.35); color: var(--v-white); }
.v-btn--ghost-dark:hover { border-color: var(--v-white); background: rgba(255,255,255,0.06); }
.v-btn--outline { border-color: var(--v-ink); color: var(--v-ink); }
.v-btn--outline:hover { background: var(--v-ink); color: var(--v-white); }

/* =========================================================
   2. SITE HEADER
   ========================================================= */
.v-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--v-paper);
  border-bottom: 1px solid var(--v-line);
}
.v-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 24px;
  max-width: var(--v-container);
  margin: 0 auto;
}
.v-logo {
  font-family: var(--v-font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--v-ink);
}
.v-logo img { max-height: 34px; }
.v-nav { display: flex; gap: 30px; }
.v-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--v-text);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.v-nav a:hover { color: var(--v-gold-deep); border-color: var(--v-gold-deep); }
.v-header__actions { display: flex; align-items: center; gap: 18px; }
.v-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--v-ink);
}
.v-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--v-gold);
  color: var(--v-ink);
  font-size: 11px;
  font-weight: 700;
}
.v-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--v-line);
  border-radius: var(--v-radius);
  padding: 8px 10px;
  cursor: pointer;
}
.v-menu-toggle span,
.v-menu-toggle span::before,
.v-menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--v-ink);
  position: relative;
  transition: 0.2s ease;
}
.v-menu-toggle span::before { content: ""; position: absolute; top: -6px; width: 18px; background: var(--v-ink); }
.v-menu-toggle span::after { content: ""; position: absolute; top: 6px; width: 18px; background: var(--v-ink); }

/* =========================================================
   3. HERO
   ========================================================= */
.v-hero {
  background: var(--v-ink);
  color: var(--v-white);
  overflow: hidden;
}
.v-hero__inner {
  max-width: var(--v-container);
  margin: 0 auto;
  padding: 96px 24px 90px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.v-hero h1 {
  color: var(--v-white);
  font-size: clamp(34px, 4.4vw, 54px);
  margin-bottom: 20px;
}
.v-hero h1 em {
  font-style: italic;
  color: var(--v-gold);
}
.v-hero p.v-lede {
  font-size: 18px;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  margin-bottom: 34px;
}
.v-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.v-hero__stats { display: flex; gap: 36px; }
.v-hero__stats div strong {
  display: block;
  font-family: var(--v-font-display);
  font-size: 26px;
  color: var(--v-white);
}
.v-hero__stats div span {
  font-family: var(--v-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* Floating preview frame — the hero's signature element */
.v-preview-frame {
  background: var(--v-ink-soft);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
  transform: rotate(1.2deg);
}
.v-preview-frame__bar {
  display: flex;
  gap: 6px;
  padding: 8px 6px 12px;
}
.v-preview-frame__bar span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.v-preview-frame__screen {
  background: var(--v-paper);
  border-radius: 4px;
  aspect-ratio: 16/11;
  overflow: hidden;
}
.v-preview-frame__screen img { width: 100%; height: 100%; object-fit: cover; }
.v-preview-frame__caption {
  font-family: var(--v-font-mono);
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
  padding: 12px 6px 4px;
  display: flex;
  justify-content: space-between;
}

/* =========================================================
   4. SECTION SCAFFOLDING
   ========================================================= */
.v-section { padding: 80px 0; }
.v-section--alt { background: var(--v-paper-alt); }
.v-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}
.v-section__head h2 { font-size: clamp(26px, 3vw, 36px); margin: 0; }
.v-section__head p { color: var(--v-text-muted); max-width: 480px; margin: 10px 0 0; }

/* Category rail */
.v-cat-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--v-gap); }
.v-cat-card {
  background: var(--v-white);
  border: 1px solid var(--v-line);
  border-radius: var(--v-radius);
  padding: 26px 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.v-cat-card:hover { border-color: var(--v-gold); transform: translateY(-2px); }
.v-cat-card__count { font-family: var(--v-font-mono); font-size: 12px; color: var(--v-text-muted); }
.v-cat-card h3 { font-size: 19px; margin: 6px 0 0; }

/* =========================================================
   5. PRODUCT GRID / CARD (ThemeForest-style)
   ========================================================= */
.v-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--v-gap);
}
.v-product-card {
  background: var(--v-white);
  border: 1px solid var(--v-line);
  border-radius: var(--v-radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.v-product-card:hover {
  box-shadow: 0 18px 40px rgba(18,23,43,0.12);
  transform: translateY(-3px);
}
.v-product-card__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--v-paper-alt);
}
.v-product-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.v-product-card:hover .v-product-card__media img { transform: scale(1.045); }
.v-product-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,23,43,0) 40%, rgba(18,23,43,0.82) 100%);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.v-product-card:hover .v-product-card__overlay { opacity: 1; }
.v-product-card__overlay a {
  background: var(--v-white);
  color: var(--v-ink);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 20px;
}
.v-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--v-gold); color: var(--v-ink);
  font-family: var(--v-font-mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 3px;
}
.v-product-card__body { padding: 18px 18px 16px; }
.v-product-card__cat {
  font-family: var(--v-font-mono);
  font-size: 11px; color: var(--v-text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.v-product-card__title {
  font-size: 17px; margin: 6px 0 8px;
  font-family: var(--v-font-display);
}
.v-rating { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--v-text-muted); margin-bottom: 12px; }
.v-rating .stars { color: var(--v-gold); letter-spacing: 1px; }
.v-product-card__spec-strip {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-family: var(--v-font-mono); font-size: 10.5px;
  color: var(--v-text-muted);
  border-top: 1px dashed var(--v-line);
  padding-top: 10px; margin-bottom: 12px;
}
.v-product-card__spec-strip span {
  background: var(--v-paper-alt);
  border-radius: 3px;
  padding: 3px 7px;
}
.v-product-card__footer {
  display: flex; align-items: center; justify-content: space-between;
}
.v-price { font-family: var(--v-font-display); font-size: 19px; color: var(--v-ink); font-weight: 600; }
.v-price del { color: var(--v-text-muted); font-size: 14px; font-weight: 400; margin-right: 6px; }

/* =========================================================
   6. TRUST BAR
   ========================================================= */
.v-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--v-gap);
  border-top: 1px solid var(--v-line);
  border-bottom: 1px solid var(--v-line);
  padding: 34px 0;
}
.v-trust__item { display: flex; align-items: flex-start; gap: 12px; }
.v-trust__item .v-glyph {
  font-family: var(--v-font-mono);
  font-size: 11px; color: var(--v-gold-deep);
  border: 1px solid var(--v-line); border-radius: 50%;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  flex: none;
}
.v-trust__item h4 { font-size: 14.5px; margin: 0 0 3px; }
.v-trust__item p { font-size: 13px; color: var(--v-text-muted); margin: 0; }

/* =========================================================
   7. NEWSLETTER / CTA BAND
   ========================================================= */
.v-cta-band {
  background: var(--v-ink);
  color: var(--v-white);
  border-radius: 6px;
  padding: 54px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.v-cta-band h2 { color: var(--v-white); font-size: 26px; margin-bottom: 8px; }
.v-cta-band p { color: rgba(255,255,255,0.65); margin: 0; }
.v-cta-band form { display: flex; gap: 10px; }
.v-cta-band input[type="email"] {
  padding: 12px 16px;
  border-radius: var(--v-radius);
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: var(--v-white);
  min-width: 260px;
  font-family: var(--v-font-body);
}
.v-cta-band input[type="email"]::placeholder { color: rgba(255,255,255,0.45); }

/* =========================================================
   8. FOOTER
   ========================================================= */
.v-footer { background: var(--v-paper-alt); border-top: 1px solid var(--v-line); margin-top: 40px; }
.v-footer__grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px; padding: 64px 0 40px;
}
.v-footer__brand p { color: var(--v-text-muted); font-size: 14px; max-width: 280px; }
.v-footer h5 {
  font-family: var(--v-font-mono);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--v-text-muted); margin-bottom: 16px;
}
.v-footer ul li { margin-bottom: 10px; font-size: 14px; }
.v-footer ul a:hover { color: var(--v-gold-deep); }
.v-footer__bottom {
  border-top: 1px solid var(--v-line);
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--v-text-muted);
}

/* =========================================================
   9. GENERIC PAGE / BLOG
   ========================================================= */
.v-page-header { padding: 60px 0 20px; }
.v-page-header h1 { font-size: 38px; }
.v-content { padding: 20px 0 80px; }
.v-content .v-container { max-width: 800px; }
.v-content article + article { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--v-line); }

/* Full width Elementor template */
.v-full-width main { padding: 0; }

/* =========================================================
   10. RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .v-hero__inner { grid-template-columns: 1fr; padding-top: 60px; }
  .v-product-grid { grid-template-columns: repeat(2, 1fr); }
  .v-cat-rail { grid-template-columns: repeat(2, 1fr); }
  .v-footer__grid { grid-template-columns: 1fr 1fr; }
  .v-trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .v-nav { display: none; }
  .v-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .v-product-grid { grid-template-columns: 1fr; }
  .v-cat-rail { grid-template-columns: 1fr; }
  .v-footer__grid { grid-template-columns: 1fr; }
  .v-trust { grid-template-columns: 1fr; }
  .v-cta-band { flex-direction: column; align-items: flex-start; }
  .v-hero__stats { flex-wrap: wrap; row-gap: 16px; }
}

/* Mobile nav drawer state (toggled via JS on <body>) */
body.v-menu-open .v-nav {
  display: flex;
  position: fixed;
  inset: 0 0 0 auto;
  width: 78%;
  max-width: 320px;
  background: var(--v-white);
  flex-direction: column;
  padding: 90px 28px;
  gap: 22px;
  box-shadow: -20px 0 40px rgba(0,0,0,0.15);
  z-index: 99;
}
