/*
Theme Name:  Vani Collections
Theme URI:   https://example.com/vani-collections
Author:      Vani Collections
Author URI:  https://example.com
Description: Premium custom WordPress WooCommerce theme for Vani Collections (VC Sarees & Collections) — sarees, dresses and ethnic wear. "Elegance in Every Thread". Built with ACF Pro, custom WooCommerce templates, no page builders.
Version:     2.4.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vani-collections
Tags:        e-commerce, woocommerce, custom-theme, fashion, sarees
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand Colors — VC Sarees (Royal Plum · Lavender · Antique Gold · Ivory) */
  --color-primary:       #5A2D58;  /* royal plum */
  --color-primary-dark:  #2F1A2D;  /* deep aubergine (logo background) */
  --color-secondary:     #8A5A9E;  /* orchid (supporting) */
  --color-accent:        #C9A04F;  /* antique gold */
  --color-accent-dark:   #A67F33;
  --color-accent-light:  #E8CF94;
  --color-lavender:      #B79BD3;  /* butterfly lavender */
  --color-lavender-soft: #EFE6F6;
  --color-blush:         #F7EEF1;
  --color-light:         #F6EFF5;  /* soft lavender-ivory sections */
  --color-light-alt:     #ECDDEB;
  --color-cream:         #FCF9F5;  /* ivory page background */
  --color-text:          #2B1D2A;
  --color-text-muted:    #6F5E6D;
  --color-white:         #FFFFFF;
  --color-border:        #E9DCE6;
  --color-error:         #B3261E;
  --color-success:       #2E7D5B;

  /* Typography */
  --font-heading:        'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body:           'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;

  /* Layout */
  --container-max:  1280px;
  --container-pad:  24px;
  --header-height:  80px;

  /* Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(47,26,45,0.12);
  --shadow-md:  0 4px 16px rgba(47,26,45,0.14);
  --shadow-lg:  0 12px 40px rgba(47,26,45,0.18);
  --shadow-xl:  0 24px 64px rgba(47,26,45,0.22);

  /* Transitions */
  --transition-fast:    0.15s ease;
  --transition-base:    0.25s ease;
  --transition-slow:    0.4s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--color-accent); }

ul, ol { list-style: none; }

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

button { cursor: pointer; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-primary);
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-accent  { color: var(--color-accent); }
.text-muted   { color: var(--color-text-muted); }
.text-center  { text-align: center; }
.text-light   { color: var(--color-light); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-3xl);
}

.section--light { background-color: var(--color-light); }
.section--cream { background-color: var(--color-cream); }
.section--dark  { background-color: var(--color-primary); color: var(--color-light); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--color-light); }

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

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

/* ── Icon SVG fix — ensures all SVGs inside .icon render correctly ── */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  width: 1.1em;   /* default size so SVGs without width/height don't balloon */
  height: 1.1em;
}
.icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  cursor: pointer;
  line-height: 1;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline-light {
  background: transparent;
  color: var(--color-light);
  border-color: var(--color-light);
}
.btn-outline-light:hover {
  background: var(--color-light);
  color: var(--color-primary);
}

.btn-sm { padding: 10px 22px; font-size: 0.8rem; }
.btn-lg { padding: 18px 44px; font-size: 1rem; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}
.section-header h2 {
  margin-bottom: var(--space-md);
}
.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-inline: auto;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: var(--space-lg);
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201,160,79,0.22);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-sale    { background: var(--color-error);     color: #fff; }
.badge-new     { background: var(--color-accent);    color: var(--color-primary); }
.badge-hot     { background: var(--color-secondary); color: #fff; }
.badge-organic { background: var(--color-success);   color: #fff; }

/* ============================================================
   STAR RATING
   ============================================================ */
.star-rating {
  display: flex;
  gap: 3px;
}
.star-rating .star { color: var(--color-accent); font-size: 1rem; }
.star-rating .star.empty { color: var(--color-border); }

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-primary);
  color: var(--color-light);
  padding: 8px 16px;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ============================================================
   SCREEN READER ONLY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

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

@media (max-width: 768px) {
  :root { --space-3xl: 64px; --space-2xl: 40px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding-block: var(--space-2xl); }
}

@media (max-width: 480px) {
  :root { --container-pad: 16px; }
}
