/*
Theme Name: HouseOfWeebs Child
Theme URI: https://houseofweebs.com/
Description: Subtle Anime Luxury — Sophisticated design with anime DNA. "If you know you know" aesthetic.
Author: HouseOfWeebs
Version: 3.0.0
Template: storefront
*/

/* Import Light Mode styles */
@import url('style-light.css');

/*
═══════════════════════════════════════════════════════════════
  DESIGN SYSTEM — Gallery Editorial Aesthetic
═══════════════════════════════════════════════════════════════

  Direction: Art gallery minimalism meets bold editorial typography
  Tone: Refined, sophisticated, lets artwork breathe
  Typography: Distinctive sans + elegant serif contrast
  Color: High-contrast B&W with art-driven accents
  Motion: Scroll-triggered reveals, sophisticated interactions
*/

/* ═══ CSS VARIABLES ═══ */
:root {
  /* Typography Scale */
  --font-display: 'Familjen Grotesk', system-ui, -apple-system, sans-serif;
  --font-serif: 'Fraunces', 'Georgia', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Type Scale (1.25 — Major Third) */
  --text-xs: 0.64rem;    /* 10.24px */
  --text-sm: 0.8rem;     /* 12.8px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.25rem;    /* 20px */
  --text-xl: 1.563rem;   /* 25px */
  --text-2xl: 1.953rem;  /* 31.25px */
  --text-3xl: 2.441rem;  /* 39px */
  --text-4xl: 3.052rem;  /* 48.8px */
  --text-5xl: 3.815rem;  /* 61px */
  --text-6xl: 4.768rem;  /* 76.3px */

  /* Color Palette */
  --color-primary-bg: #1a1a1a; /* Rich Black */
  --color-primary-text: #ffffff; /* White */
  --color-accent: #00ffff; /* Cyan */
  --color-secondary-accent: #ff00ff; /* Magenta */
  --color-tertiary-accent: #ffff00; /* Yellow */
  --color-neutral-light: #cccccc; /* Light Gray */
  --color-neutral-mid: #999999; /* Gray */
  --color-neutral-dark: #333333; /* Dark Gray */
  --color-system-success: #00ff00; /* Green */
  --color-system-warning: #ffcc00; /* Yellow */
  --color-system-error: #ff0000; /* Red */

  /* Accent Colors */
  --color-accent-primary: var(--color-accent);
  --color-accent-secondary: var(--color-secondary-accent);
  --color-accent-gold: var(--color-tertiary-accent);

  /* Spacing Scale */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 6rem;     /* 96px */
  --space-5xl: 8rem;     /* 128px */

  /* Layout */
  --container-max: 1400px;
  --container-narrow: 720px;
  --grid-gap: var(--space-xl);

  /* Timing */
  --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --duration-fast: 200ms;
  --duration-base: 350ms;
  --duration-slow: 600ms;
}

/* ═══ GOOGLE FONTS IMPORT ═══ */
@import url('https://fonts.googleapis.com/css2?family=Familjen+Grotesk:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ═══ RESET & BASE STYLES ═══ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-primary-text);
  background-color: var(--color-primary-bg);
  overflow-x: hidden;
}

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-black);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
}

h3 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
}

h4 {
  font-size: var(--text-2xl);
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-mid-gray);
  font-weight: 500;
}

/* ═══ LAYOUT PRIMITIVES ═══ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: var(--space-5xl) 0;
}

/* ═══ HEADER OVERRIDES ═══ */
.site-header {
  background: var(--color-off-white);
  border-bottom: 1px solid var(--color-warm-gray);
  padding: var(--space-lg) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(254, 253, 251, 0.95);
}

.site-branding .site-title a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-black);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.site-branding .site-title a:hover {
  color: var(--color-accent-primary);
}

/* ═══ NAVIGATION ═══ */
.main-navigation {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-navigation a {
  color: var(--color-charcoal);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
  position: relative;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-primary);
  transition: width var(--duration-base) var(--ease-smooth);
}

.main-navigation a:hover::after {
  width: 100%;
}

/* ═══ ARCHIVE TEMPLATES (Gallery Editorial) ═══ */
.how-archive-hero {
  margin: var(--space-4xl) 0 var(--space-3xl);
  max-width: 900px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp var(--duration-slow) var(--ease-smooth) forwards;
  animation-delay: 100ms;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.how-archive-hero h1 {
  font-size: clamp(var(--text-4xl), 7vw, var(--text-6xl));
  margin-bottom: var(--space-lg);
  line-height: 1.05;
  position: relative;
}

.how-archive-hero h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent-primary);
  margin-top: var(--space-lg);
  opacity: 0;
  animation: fadeSlideRight var(--duration-base) var(--ease-smooth) forwards;
  animation-delay: 400ms;
}

@keyframes fadeSlideRight {
  from {
    opacity: 0;
    width: 0;
  }
  to {
    opacity: 1;
    width: 60px;
  }
}

.how-archive-intro {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-charcoal);
  max-width: 60ch;
  margin: var(--space-xl) 0 var(--space-2xl);
  opacity: 0;
  animation: fadeSlideUp var(--duration-slow) var(--ease-smooth) forwards;
  animation-delay: 300ms;
}

/* ═══ PRODUCT GRID (Asymmetric Gallery Layout) ═══ */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
  margin: var(--space-4xl) 0;
}

.products .product {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp var(--duration-base) var(--ease-smooth) forwards;
}

.product {
  background: var(--color-off-white);
  border: 1px solid transparent;
  transition: all var(--duration-base) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.product:hover {
  border-color: var(--color-accent-primary);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.product:hover img {
  transform: scale(1.05);
}

.woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin: var(--space-md) 0 var(--space-sm);
  color: var(--color-black);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.product:hover .woocommerce-loop-product__title {
  color: var(--color-accent-primary);
}

.price {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  color: var(--color-charcoal);
  font-weight: 500;
}

.price .amount {
  font-weight: 600;
}

/* ═══ SINGLE PRODUCT PAGE (Distinctive Layout) ═══ */
.single-product .product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  margin: var(--space-4xl) 0;
  background: transparent;
  border: none;
}

.single-product .woocommerce-product-gallery {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.single-product .woocommerce-product-gallery img {
  border: 1px solid var(--color-warm-gray);
  background: white;
  padding: var(--space-xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.single-product .summary {
  padding: var(--space-2xl) 0;
}

.single-product .product_title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: var(--space-lg);
}

.single-product .price {
  font-size: var(--text-2xl);
  margin: var(--space-xl) 0;
  color: var(--color-accent-primary);
}

.single-product .woocommerce-product-details__short-description {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.7;
  margin: var(--space-xl) 0 var(--space-2xl);
  color: var(--color-charcoal);
}

/* ═══ BUTTONS ═══ */
.button,
button.single_add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 32px;
  background: var(--color-accent);
  color: var(--color-primary-bg);
  border: none;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
  text-decoration: none;
  display: inline-block;
}

.button:hover,
button.single_add_to_cart_button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: color-mix(in srgb, var(--color-accent), #000 10%);
}

.button:active,
button.single_add_to_cart_button:active,
.woocommerce #respond input#submit:active,
.woocommerce a.button:active,
.woocommerce button.button:active,
.woocommerce input.button:active {
  background: color-mix(in srgb, var(--color-accent), #000 20%);
}

.button:disabled,
button.single_add_to_cart_button:disabled,
.woocommerce #respond input#submit:disabled,
.woocommerce a.button:disabled,
.woocommerce button.button:disabled,
.woocommerce input.button:disabled {
  background: var(--color-neutral-light);
  color: var(--color-neutral-mid);
  cursor: not-allowed;
}

.button--secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.button--secondary:hover {
  background: var(--color-accent);
  color: var(--color-primary-bg);
}

/* ═══ FAQ SECTION ═══ */
.how-faq {
  max-width: 800px;
  margin: var(--space-5xl) 0 var(--space-4xl);
  padding: var(--space-3xl);
  background: white;
  border: 1px solid var(--color-warm-gray);
}

.how-faq h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--color-accent-primary);
}

.how-faq dl {
  margin-top: var(--space-2xl);
}

.how-faq dt {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-top: var(--space-xl);
  color: var(--color-black);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.how-faq dt:hover {
  color: var(--color-accent-primary);
}

.how-faq dd {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: 1.7;
  margin: var(--space-md) 0 var(--space-lg);
  padding-left: var(--space-lg);
  color: var(--color-charcoal);
}

/* ═══ FOOTER ═══ */
.site-footer {
  background: var(--color-black);
  color: var(--color-warm-gray);
  padding: var(--space-4xl) 0 var(--space-2xl);
  margin-top: var(--space-5xl);
}

.site-footer a {
  color: var(--color-warm-gray);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.site-footer a:hover {
  color: var(--color-accent-primary);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  :root {
    --space-4xl: 3rem;
    --space-5xl: 4rem;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  .products {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
  }

  .single-product .product {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .single-product .woocommerce-product-gallery {
    position: static;
  }

  .how-faq {
    padding: var(--space-xl);
  }
}

/* ═══ DECORATIVE ELEMENTS ═══ */
.texture-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" /></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.03" /></svg>');
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

/* ═══ SCROLL REVEAL UTILITIES ═══ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-smooth),
              transform var(--duration-slow) var(--ease-smooth);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--color-accent-primary);
  outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══ HOMEPAGE SPECIFIC STYLES ═══ */

/* Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80vh;
  padding: var(--space-5xl) 0;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: clamp(var(--text-5xl), 10vw, var(--text-6xl));
  margin-bottom: var(--space-xl);
  line-height: 1;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  line-height: 1.6;
  color: var(--color-neutral-mid);
  margin-bottom: var(--space-2xl);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-4xl);
}

.section-description {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--color-charcoal);
  margin-top: var(--space-lg);
}

.section-cta {
  text-align: center;
  margin-top: var(--space-4xl);
}

/* Products Grid */
.products-grid {
  margin: var(--space-3xl) 0;
}

/* Style Cards */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.style-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-warm-gray);
  background: var(--color-off-white);
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-smooth);
}

.style-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--color-accent-primary);
}

.style-card__image {
  aspect-ratio: 4/5;
  overflow: hidden;
}

.style-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.style-card:hover .style-card__image img {
  transform: scale(1.1);
}

.style-card__content {
  padding: var(--space-lg);
}

.style-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: var(--space-sm);
}

.style-card__count {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-2xl);
  margin: var(--space-3xl) 0;
}

.testimonial {
  background: white;
  padding: var(--space-2xl);
  border: 1px solid var(--color-warm-gray);
  margin: 0;
}

.testimonial__quote {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-charcoal);
  margin-bottom: var(--space-xl);
  font-style: italic;
}

.testimonial__author {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-style: normal;
}

.author-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-black);
}

.author-title {
  font-size: var(--text-sm);
  color: var(--color-mid-gray);
}

/* Promise Cards */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3xl);
}

.promise-card {
  text-align: center;
}

.promise-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-accent-primary);
  border-radius: 50%;
  color: var(--color-accent-primary);
}

.promise-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.promise-card p {
  color: var(--color-charcoal);
  line-height: 1.6;
}

/* CTA Box */
.cta-box {
  background: var(--color-black);
  color: var(--color-off-white);
  padding: var(--space-4xl);
  text-align: center;
  border: 4px solid var(--color-accent-primary);
}

.cta-box h2 {
  color: var(--color-off-white);
  margin-bottom: var(--space-lg);
}

.cta-box p {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2xl);
  color: var(--color-warm-gray);
}

.cta-box .button {
  background: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
}

.cta-box .button:hover {
  background: var(--color-off-white);
  color: var(--color-accent-primary);
}

/* Product Badges */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) var(--space-sm);
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 2;
  font-weight: 600;
}

.badge--limited {
  background: var(--color-accent-gold);
  color: var(--color-black);
}

.badge--new {
  background: var(--color-accent-primary);
  color: white;
}

.badge--sale {
  background: var(--color-black);
  color: white;
}

/* Product Attributes */
.product-attributes {
  margin: var(--space-sm) 0;
}

.attribute {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-warm-gray);
  color: var(--color-charcoal);
  border-radius: 2px;
}

/* Product Provenance */
.product-provenance {
  margin: var(--space-2xl) 0;
  padding: var(--space-xl);
  background: var(--color-cream);
  border-left: 4px solid var(--color-accent-primary);
}

.product-provenance p {
  margin-bottom: var(--space-md);
}

.product-provenance p:last-child {
  margin-bottom: 0;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-mid-gray);
  margin: var(--space-xl) 0;
}

.breadcrumb-separator {
  margin: 0 var(--space-sm);
  color: var(--color-mid-gray);
}

.woocommerce-breadcrumb a {
  color: var(--color-charcoal);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.woocommerce-breadcrumb a:hover {
  color: var(--color-accent-primary);
}

/* Responsive Adjustments for Homepage */
@media (max-width: 1024px) {
  .hero-visual {
    position: static;
    transform: none;
    margin-top: var(--space-4xl);
    max-width: 100%;
  }

  .hero-section::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .button {
    width: 100%;
    text-align: center;
  }

  .testimonials-grid,
  .promise-grid,
  .styles-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: var(--space-2xl);
  }
}
