/*
Theme Name:  Vasura
Theme URI:   https://vasura.online
Author:      Vasura Healthcare
Author URI:  https://vasura.online
Description: Premium Ayurvedic & Herbal Healthcare WordPress Theme — Modern, clean, white & gold. WooCommerce ready with multicurrency support.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vasura
Tags:        woocommerce, ecommerce, health, ayurveda, herbal, premium, clean, gold, white, responsive
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.5
*/

/* =====================================================
   VASURA THEME — CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
  --color-gold:        #B8960C;
  --color-gold-light:  #D4AF37;
  --color-gold-dark:   #8B6914;
  --color-gold-bg:     #FBF6E9;
  --color-white:       #FFFFFF;
  --color-off-white:   #FAFAF8;
  --color-cream:       #F7F4EF;
  --color-text:        #1A1A1A;
  --color-text-muted:  #6B6B6B;
  --color-text-light:  #9A9A9A;
  --color-border:      #E8E2D6;
  --color-border-light:#F0EBE2;
  --color-green-herb:  #2D6A4F;
  --color-green-light: #52B788;

  --font-heading:      'Cormorant Garamond', 'Georgia', serif;
  --font-body:         'Inter', 'Helvetica Neue', sans-serif;
  --font-accent:       'Cormorant Garamond', serif;

  --spacing-xs:   0.5rem;
  --spacing-sm:   1rem;
  --spacing-md:   2rem;
  --spacing-lg:   4rem;
  --spacing-xl:   6rem;
  --spacing-xxl:  8rem;

  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-pill:  100px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-gold:  0 4px 20px rgba(184,150,12,0.18);

  --transition:   all 0.28s cubic-bezier(0.4,0,0.2,1);

  --container:    1240px;
  --container-sm: 860px;
  --header-h:     80px;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; color: var(--color-text-muted); }
p:last-child { margin-bottom: 0; }

.text-gold    { color: var(--color-gold); }
.text-green   { color: var(--color-green-herb); }
.text-muted   { color: var(--color-text-muted); }

/* Gold underline accent on headings */
.heading-accent {
  display: inline-block;
  position: relative;
}
.heading-accent::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  border-radius: 2px;
}
.heading-accent-center::after { left: 50%; transform: translateX(-50%); }

/* =====================================================
   LAYOUT HELPERS
   ===================================================== */
.container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.container-sm {
  max-width: var(--container-sm);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.section-lg { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

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

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

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(184,150,12,0.28);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}
.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-text);
  border-color: var(--color-white);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  background: var(--color-gold-bg);
  color: var(--color-gold-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
  padding: 0.75rem 1.5rem;
}
.btn-ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.8rem; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 0.95rem; }

/* =====================================================
   BADGES & LABELS
   ===================================================== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
}
.badge-gold   { background: var(--color-gold-bg); color: var(--color-gold-dark); border: 1px solid rgba(184,150,12,0.2); }
.badge-green  { background: #EAF4EE; color: var(--color-green-herb); border: 1px solid rgba(45,106,79,0.2); }
.badge-white  { background: rgba(255,255,255,0.15); color: var(--color-white); border: 1px solid rgba(255,255,255,0.3); }

/* =====================================================
   CARDS
   ===================================================== */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(184,150,12,0.2);
  transform: translateY(-3px);
}

.card-body { padding: 1.5rem; }
.card-img   { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

/* =====================================================
   DIVIDERS / DECORATIVE LINES
   ===================================================== */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  border-radius: 2px;
  margin: 1.5rem auto;
}
.divider-left { margin-left: 0; }

/* =====================================================
   SECTION HEADINGS
   ===================================================== */
.section-header { margin-bottom: 3rem; }
.section-header .badge { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p  { max-width: 560px; font-size: 1.05rem; }
.section-header.text-center p { margin-left: auto; margin-right: auto; }

/* =====================================================
   HEADER
   ===================================================== */
#site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  transition: var(--transition);
}
#site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.site-logo-text {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.site-logo-text span { color: var(--color-gold); }
.site-logo-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: block;
  line-height: 1;
}

/* Primary Navigation */
#primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
#primary-nav ul li a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
#primary-nav ul li a:hover,
#primary-nav ul li.current-menu-item > a {
  color: var(--color-text);
  background: var(--color-cream);
}
#primary-nav ul li.menu-highlight > a {
  color: var(--color-gold);
  font-weight: 500;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: var(--transition);
  position: relative;
}
.header-icon-btn:hover {
  background: var(--color-cream);
  color: var(--color-text);
}
.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--color-gold);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Currency switcher in header */
.currency-switcher-wrap {
  position: relative;
}
.currency-switcher-wrap select {
  appearance: none;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.375rem 1.75rem 0.375rem 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font-body);
  color: var(--color-text);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: var(--transition);
}
.currency-switcher-wrap select:focus {
  outline: none;
  border-color: var(--color-gold);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-md);
}
.mobile-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* =====================================================
   TOP ANNOUNCEMENT BAR
   ===================================================== */
.announcement-bar {
  background: var(--color-text);
  color: var(--color-white);
  padding: 0.5rem 0;
  font-size: 0.8rem;
  text-align: center;
  letter-spacing: 0.02em;
}
.announcement-bar a { color: var(--color-gold-light); }
.announcement-bar .bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

/* =====================================================
   FOOTER
   ===================================================== */
#site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.75);
  padding: var(--spacing-xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .site-logo-text { color: var(--color-white); }
.footer-brand p { color: rgba(255,255,255,0.55); margin: 1.25rem 0; font-size: 0.9rem; line-height: 1.7; }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}
.footer-col ul li { margin-bottom: 0.625rem; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--color-gold-light); }

/* Payment badges row */
.footer-payments {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.payment-badge {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--color-gold-light); }

/* Social links */
.social-links { display: flex; gap: 0.625rem; margin-top: 1rem; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  transition: var(--transition);
}
.social-link:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(184,150,12,0.1);
}

/* =====================================================
   PRODUCT CARD (WooCommerce base)
   ===================================================== */
.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(184,150,12,0.18);
  transform: translateY(-4px);
}
.product-card-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--color-cream);
  aspect-ratio: 1/1;
}
.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img-wrap img {
  transform: scale(1.04);
}
.product-card-actions {
  position: absolute;
  bottom: -48px;
  left: 0; right: 0;
  padding: 0.75rem;
  background: linear-gradient(0deg, rgba(255,255,255,0.95), transparent);
  display: flex;
  gap: 0.5rem;
  transition: var(--transition);
}
.product-card:hover .product-card-actions { bottom: 0; }

.product-card-body  { padding: 1.25rem; }
.product-card-name  { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.25rem; }
.product-card-sub   { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 0.75rem; }
.product-card-price {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}
.product-card-price .woocommerce-Price-currencySymbol { color: var(--color-gold); }
.product-card-rating { display: flex; gap: 2px; margin-bottom: 0.5rem; }
.product-card-rating .star { color: var(--color-gold); font-size: 0.75rem; }

/* =====================================================
   FORMS
   ===================================================== */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184,150,12,0.1);
}
.form-control::placeholder { color: var(--color-text-light); }

/* =====================================================
   WOOCOMMERCE OVERRIDES (Base)
   ===================================================== */
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--color-gold) !important;
  background: var(--color-gold-bg) !important;
  color: var(--color-text) !important;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--color-gold);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.75rem;
  transition: var(--transition);
  border: none;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--color-gold-dark);
  color: var(--color-white);
}
.woocommerce-Price-amount { color: var(--color-text); }
.woocommerce-Price-currencySymbol { color: var(--color-gold); }
span.onsale {
  background: var(--color-gold) !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.75rem !important;
  padding: 0.25rem 0.75rem !important;
}

/* =====================================================
   BREADCRUMBS
   ===================================================== */
.vasura-breadcrumb {
  padding: 1rem 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.vasura-breadcrumb a { color: var(--color-text-muted); }
.vasura-breadcrumb a:hover { color: var(--color-gold); }
.vasura-breadcrumb .sep { margin: 0 0.5rem; color: var(--color-border); }

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

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  #primary-nav,
  .header-actions .btn { display: none; }

  .mobile-menu-toggle { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .section { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
  .section-lg { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
}

@media (max-width: 480px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .btn { padding: 0.75rem 1.5rem; }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.no-scroll { overflow: hidden; }
.block { display: block; }
.w-full { width: 100%; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* =====================================================
   LOADING / SKELETON
   ===================================================== */
@keyframes shimmer {
  0% { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--color-cream) 25%, var(--color-border-light) 50%, var(--color-cream) 75%);
  background-size: 1200px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* =====================================================
   SCROLL TO TOP
   ===================================================== */
.scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--color-gold);
  color: var(--color-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-gold);
  opacity: 0; pointer-events: none;
  transition: var(--transition);
  z-index: 999;
  font-size: 1.1rem;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--color-gold-dark); transform: translateY(-2px); }
