/*
Theme Name: VapeExpress AU
Theme URI: https://vapeexpressau.com
Author: Vape AU Network
Description: VapeExpress AU - disposable vapes, discreet express delivery. Sky-blue accent, warm off-white background, Boska/Chillax typography.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: vapeexpressau
*/

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --color-bg:           #f6f4ee;
  --color-surface:      #ffffff;
  --color-border:       #e4e0d5;
  --color-ink:          #181715;
  --color-muted:        #64748b;
  --color-dark:         #0e0e0c;
  --color-dark-2:       #0a0a08;
  --color-accent:       #0ea5e9;
  --color-accent-light: #38bdf8;
  --color-accent-hover: #0284c7;
  --color-success:      #059669;
  --color-success-bg:   #d1fae5;
  --section-y:          7rem;
}

/* ============================================
   BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Chillax', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-ink);
  margin: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: 'Boska', Georgia, serif;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================
   TEXTURES
   ============================================ */
.paper-texture {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23181715' fill-opacity='0.04'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.035'/%3E%3C/svg%3E");
}

.dark-texture {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 40 L40 0' stroke='white' stroke-width='0.4' stroke-opacity='0.04'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ============================================
   HEADER
   ============================================ */
#main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
#main-header.is-top {
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
}
#main-header.is-scrolled,
#main-header.solid {
  background: #0e0e0c;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 32px -4px rgba(0,0,0,0.6);
}
/* Push page content down so it starts below the 88px fixed header */
.header-offset { padding-top: 88px; }

/* WordPress Custom Logo uploader — keep logo constrained */
.custom-logo-link { display: flex; align-items: center; }
.custom-logo-link img {
  max-height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

/* ============================================
   CARDS
   ============================================ */
.paper-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px -4px rgba(24,23,21,0.05);
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
}
.paper-card:hover {
  border-color: var(--color-ink);
  box-shadow: 0 12px 30px -6px rgba(24,23,21,0.12);
  transform: translateY(-2px);
}

.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
}
.blog-card:hover {
  border-color: var(--color-ink);
  box-shadow: 0 12px 30px -6px rgba(24,23,21,0.12);
  transform: translateY(-2px);
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
}
.marquee-pill-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.marquee-pill-label { color: var(--color-muted); font-size: 10px; font-weight: 600; }
.marquee-pill-value { color: var(--color-ink); font-size: 11px; font-weight: 700; }
.marquee-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--color-border); }
.marquee-pill-dark {
  background: var(--color-dark);
  border-color: rgba(255,255,255,0.06);
}

/* ============================================
   CART DRAWER
   ============================================ */
#cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 360px;
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  background: white;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}
#cart-drawer.open { transform: translateX(0); }
#cart-overlay {
  position: fixed; inset: 0; z-index: 49;
  background: rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
#cart-overlay.open { opacity: 1; pointer-events: all; }

/* ============================================
   FORMS
   ============================================ */
.input-field {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: 'Chillax', sans-serif;
  color: var(--color-ink);
  outline: none;
  transition: border-color 0.2s;
}
.input-field:focus { border-color: var(--color-accent); }
.input-field::placeholder { color: #94a3b8; }

/* ============================================
   PRODUCT / BRAND FILTER TABS
   ============================================ */
.brand-tab.active {
  background: var(--color-dark);
  color: white;
  border-color: transparent;
}
.product-card { display: flex; }
.product-card.hidden { display: none; }

/* ============================================
   WOOCOMMERCE OVERRIDES
   ============================================ */
.woocommerce-page .woocommerce { width: 100%; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
}
.woocommerce ul.products li.product:hover {
  border-color: var(--color-ink);
  box-shadow: 0 12px 30px -6px rgba(24,23,21,0.12);
  transform: translateY(-2px);
}
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 0.75rem;
  padding: 0.6rem 1.25rem;
  font-family: 'Boska', Georgia, serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.woocommerce ul.products li.product .button:hover {
  background: var(--color-accent-hover);
}
.woocommerce span.price,
.woocommerce-page span.price { color: var(--color-ink); font-weight: 700; }

/* ============================================
   SINGLE PRODUCT
   ============================================ */
.woocommerce div.product div.images { margin-bottom: 2rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: 'Boska', Georgia, serif;
  font-weight: 600;
  color: var(--color-muted);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--color-ink); }

/* ============================================
   BLOG / ARCHIVE
   ============================================ */
.ve-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.6);
}

/* ============================================
   UTILITY
   ============================================ */
.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;
}
