/*
Theme Name: Verdent
Theme URI: https://verdent.shop
Author: Verdent
Author URI: https://verdent.shop
Description: Custom theme for Verdent — Ancient wisdom, modern ritual. Built for WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://verdent.shop
Text Domain: verdent
Tags: woocommerce, custom, ecommerce, luxury
*/

/* ============================================================
   VERDENT DESIGN SYSTEM
   ============================================================ */

:root {
  --ivory:          #FAF8F4;
  --ivory-mid:      #F2EDE4;
  --ivory-deep:     #EDE8DF;
  --ivory-warm:     #F0EAE0;
  --ivory-gold:     #F5EDD8;
  --charcoal:       #1E1C18;
  --charcoal-mid:   #2C2A24;
  --charcoal-light: #3D3A34;
  --gold:           #C4A96B;
  --gold-light:     #D4BC8A;
  --gold-dark:      #A08848;
  --muted:          #6B6760;
  --muted-light:    #9B8B6E;
  --border:         rgba(196,169,107,0.2);
  --border-mid:     rgba(196,169,107,0.35);
  --border-strong:  rgba(196,169,107,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--ivory);
  color: var(--charcoal);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.15;
}

.verdent-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted-light);
  font-weight: 300;
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
  margin-bottom: 8px;
  display: block;
}

.verdent-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.15;
}

.verdent-body {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.9;
  font-family: 'Jost', sans-serif;
}

.verdent-gold-rule {
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.25rem;
  display: block;
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */

.verdent-announcement {
  background: var(--charcoal);
  color: var(--gold-light);
  text-align: center;
  padding: 9px 1rem;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 300;
  font-family: 'Jost', sans-serif;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.verdent-nav {
  background: var(--ivory);
  border-bottom: 0.5px solid var(--border-mid);
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.verdent-nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.verdent-nav-links a {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.25s;
  font-family: 'Jost', sans-serif;
}

.verdent-nav-links a:hover,
.verdent-nav-links a.current-menu-item { color: var(--charcoal); }

.verdent-nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  letter-spacing: 0.3em;
  font-weight: 400;
  color: var(--charcoal);
  text-decoration: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.verdent-nav-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.verdent-nav-icon {
  width: 19px;
  height: 19px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s;
}

.verdent-nav-icon:hover { color: var(--charcoal); }

.verdent-currency-pill {
  background: var(--charcoal);
  color: var(--gold-light);
  font-size: 10px;
  padding: 4px 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.25s;
  font-family: 'Jost', sans-serif;
  border: none;
}

.verdent-currency-pill:hover { background: var(--charcoal-light); }

.verdent-cart-count {
  background: var(--gold);
  color: var(--charcoal);
  font-size: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  margin-left: -8px;
  margin-top: -8px;
  font-family: 'Jost', sans-serif;
}

/* Mobile nav toggle */
.verdent-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.verdent-nav-toggle span {
  width: 22px;
  height: 1px;
  background: var(--charcoal);
  transition: all 0.3s;
}

/* ============================================================
   FOOTER
   ============================================================ */

.verdent-footer {
  background: #171614;
  padding: 4rem 5rem 3rem;
}

.verdent-footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
  margin-bottom: 2rem;
}

.verdent-footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  letter-spacing: 0.3em;
  color: #E8E0D0;
  margin-bottom: 1rem;
  font-weight: 400;
  display: block;
}

.verdent-footer-tagline {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
  font-family: 'Jost', sans-serif;
  margin-bottom: 1.5rem;
}

.verdent-footer-currencies {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.verdent-footer-currency {
  font-size: 10px;
  color: var(--muted);
  font-weight: 300;
  font-family: 'Jost', sans-serif;
}

.verdent-footer-currency strong { color: var(--gold); font-weight: 400; }

.verdent-footer-col-title {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted-light);
  font-weight: 300;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
  display: block;
}

.verdent-footer-links { list-style: none; }

.verdent-footer-links li { margin-bottom: 8px; }

.verdent-footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s;
  font-family: 'Jost', sans-serif;
}

.verdent-footer-links a:hover { color: #E8E0D0; }

.verdent-footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  font-weight: 300;
  font-family: 'Jost', sans-serif;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.verdent-btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 14px 36px;
  font-size: 11px;
  letter-spacing: 0.18em;
  border: none;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  transition: background 0.25s;
  text-decoration: none;
  display: inline-block;
}

.verdent-btn-primary:hover { background: var(--charcoal-light); color: var(--ivory); }

.verdent-btn-outline {
  background: transparent;
  color: var(--charcoal);
  padding: 13px 32px;
  font-size: 11px;
  letter-spacing: 0.18em;
  border: 0.5px solid var(--charcoal);
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-block;
}

.verdent-btn-outline:hover { background: var(--charcoal); color: var(--ivory); }

.verdent-btn-gold {
  background: transparent;
  color: var(--gold);
  border: 0.5px solid var(--gold);
  padding: 12px 28px;
  font-size: 11px;
  letter-spacing: 0.18em;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-block;
}

.verdent-btn-gold:hover { background: var(--gold); color: var(--charcoal); }

/* ============================================================
   WOOCOMMERCE — GLOBAL OVERRIDES
   ============================================================ */

/* Hide default WooCommerce styles we don't need */
.woocommerce-breadcrumb { display: none; }
.woocommerce-notices-wrapper { padding: 0 3rem; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 300;
  background: var(--ivory-gold);
  border-top-color: var(--gold);
  color: var(--charcoal);
}

/* Cart icon in nav */
.verdent-nav-cart {
  position: relative;
  display: flex;
  align-items: center;
}

.verdent-nav-cart .count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-family: 'Jost', sans-serif;
}

/* ============================================================
   LOCATION BAR
   ============================================================ */

.verdent-location-bar {
  background: var(--ivory-deep);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 12px 5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 300;
  font-family: 'Jost', sans-serif;
}

.verdent-loc-dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.verdent-currency-switches {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted-light);
  font-family: 'Jost', sans-serif;
}

.verdent-currency-switches button {
  color: var(--gold);
  cursor: pointer;
  transition: color 0.2s;
  letter-spacing: 0.08em;
  background: none;
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  padding: 0;
}

.verdent-currency-switches button:hover { color: var(--gold-dark); }

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes verdentFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.verdent-fade-in   { animation: verdentFadeUp 0.9s ease both; }
.verdent-fade-in-2 { animation: verdentFadeUp 0.9s 0.12s ease both; }
.verdent-fade-in-3 { animation: verdentFadeUp 0.9s 0.24s ease both; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .verdent-nav { padding: 0 1.5rem; }
  .verdent-nav-links { display: none; }
  .verdent-nav-toggle { display: flex; }
  .verdent-nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--ivory);
    padding: 1.5rem 2rem;
    border-bottom: 0.5px solid var(--border-mid);
    gap: 1.25rem;
    z-index: 999;
  }
  .verdent-location-bar { padding: 12px 1.5rem; }
  .verdent-footer { padding: 3rem 1.5rem 2rem; }
  .verdent-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
  .verdent-footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FULL WIDTH FIX
   Override WordPress core, block editor, and browser defaults
   that add unwanted margins/padding around the page.
   ============================================================ */

html,
body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #FAF8F4 !important;
    overflow-x: hidden;
}

/* WordPress block editor injects these — zero them all out */
.wp-site-blocks,
.wp-site-blocks > *,
#page,
#content,
#primary,
#secondary,
.site,
.site-content,
.site-header,
.site-footer,
.entry-content,
.entry-content > *,
.has-global-padding,
.alignfull,
body > .wp-block-group,
body > .wp-block-template-part {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
}

/* Kill WordPress block editor global styles padding injected via inline <style> */
:where(body) {
    margin: 0 !important;
    padding: 0 !important;
}

:where(.wp-site-blocks) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Admin bar offset — don't affect our sticky nav */
.verdent-nav {
    top: 0;
}

.admin-bar .verdent-nav {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .verdent-nav {
        top: 46px;
    }
}
