/*
Theme Name:     O-Village Light Tech
Theme URI:      https://o-village.com/
Description:    A bright, playful tech-forward WooCommerce child theme for O-Village.
Author:         DJ Spade / Hermes
Template:       storefront
Version:        1.1.0
*/

:root {
  --bg: #F8FAFC;
  --bg-card: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;
  --accent: #6366F1;
  --accent-dark: #4F46E5;
  --accent-soft: #E0E7FF;
  --lime: #84CC16;
  --pink: #EC4899;
  --cyan: #06B6D4;
  --surface: #F1F5F9;
  --border: #E2E8F0;
  --shadow-sm: 0 6px 20px rgba(15, 23, 42, .07);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, .12);
  --radius: 22px;
  --serif: 'Space Grotesk', system-ui, sans-serif;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
}
body, button, input, textarea, select { font-family: var(--sans); }
a { color: var(--accent-dark); }
a:hover, a:focus { color: var(--pink); }

.site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(15, 23, 42, .05);
}
.site-branding .site-title a,
.site-branding .site-description { color: var(--text); }
.site-title {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -.04em;
}
.main-navigation ul li a,
.site-header-cart .cart-contents { color: var(--text); font-weight: 700; }
.main-navigation ul li a:hover,
.site-header-cart .cart-contents:hover { color: var(--accent-dark); }

.site-content { padding-top: 2.5rem; }
.content-area { width: 100%; float: none; margin-right: 0; }
.widget-area { display: none; }
.entry-header { margin-bottom: 1.5rem; }
.entry-title {
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.045em;
}

button,
input[type='button'],
input[type='reset'],
input[type='submit'],
.button,
.added_to_cart,
.wc-block-components-button {
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  padding: .85rem 1.3rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
button:hover,
input[type='submit']:hover,
.button:hover,
.added_to_cart:hover,
.wc-block-components-button:hover {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 10px 24px rgba(99, 102, 241, .24);
  transform: translateY(-2px);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(6, 182, 212, .42);
  outline-offset: 3px;
}

.ov-section { padding: clamp(2.5rem, 6vw, 5.5rem) 0; }
.ov-container { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }
.ov-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
  align-items: end;
  gap: 1.5rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.ov-section-head h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(2.25rem, 6vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .96;
}
.ov-section-head .sub {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}
.ov-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.75rem);
}
.ov-prod {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ov-prod:hover {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.ov-prod .img {
  position: relative;
  display: grid;
  min-height: 260px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(236, 72, 153, .18), transparent 33%),
    radial-gradient(circle at 82% 24%, rgba(6, 182, 212, .20), transparent 35%),
    linear-gradient(145deg, #EEF2FF 0%, #FDF2F8 52%, #ECFEFF 100%);
}
.ov-prod .img::after {
  content: '';
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(99, 102, 241, .22);
  border-radius: 36% 64% 54% 46% / 48% 42% 58% 52%;
  transform: rotate(-8deg);
}
.ov-prod .ph {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ov-prod .tag {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  padding: .4rem .7rem;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  color: var(--accent-dark);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.ov-prod .body { padding: 1.35rem; }
.ov-prod .brand {
  display: block;
  margin-bottom: .35rem;
  color: var(--accent-dark);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.ov-prod h4 {
  margin: 0 0 1.2rem;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -.025em;
}
.ov-prod .meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ov-prod .price { color: var(--text); font-size: 1.2rem; font-weight: 900; }
.ov-btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; text-decoration: none; }
.ov-btn-ghost {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 850;
  padding: .65rem 1rem;
}
.ov-btn-ghost:hover,
.ov-btn-ghost:focus {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.site-footer {
  background: #0F172A;
  color: #CBD5E1;
}
.site-footer a { color: #fff; }

.ov-agegate[hidden] { display: none !important; }
.ov-agegate {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 20% 15%, rgba(236, 72, 153, .20), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, .22), transparent 32%),
    rgba(15, 23, 42, .92);
  backdrop-filter: blur(12px);
}
.ov-agegate-open,
.ov-agegate-open body { overflow: hidden; }
.ov-agegate-card {
  width: min(600px, 100%);
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
  text-align: left;
}
.ov-agegate-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-dark);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ov-agegate-card h2 {
  margin: 0 0 1rem;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
}
.ov-agegate-card > p { color: var(--muted); font-size: 1rem; }
.ov-agegate-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.ov-agegate-enter,
.ov-agegate-leave { min-height: 48px; }
.ov-agegate-leave {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.ov-agegate-leave:hover,
.ov-agegate-leave:focus { background: #E2E8F0; color: var(--text); box-shadow: none; }
.ov-agegate-card .ov-agegate-note { margin: 1rem 0 0; font-size: .78rem; }

@media (max-width: 860px) {
  .ov-section-head { grid-template-columns: 1fr; align-items: start; }
  .ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .site-content { padding-top: 1.25rem; }
  .ov-section { padding: 2.25rem 0; }
  .ov-container { width: min(100% - 1.25rem, 1160px); }
  .ov-grid { grid-template-columns: 1fr; }
  .ov-prod .img { min-height: 220px; }
  .ov-prod:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
