/*
Theme Name: Novarex Therapeutics
Theme URI: https://novarextherapeutics.com
Author: Novarex Therapeutics
Author URI: https://novarextherapeutics.com
Description: Custom WooCommerce theme for Novarex Therapeutics — Research-Grade Peptides. Dark/purple brand palette, dual-chamber autoinjector pen storefront.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://novarextherapeutics.com
Text Domain: novarex-therapeutics
Tags: e-commerce, woocommerce, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   DESIGN TOKENS — matches the React storefront palette
   Primary purple: #6B21A8 (oklch 0.35 0.18 295 approx)
   Accent purple:  #9333EA (oklch 0.50 0.22 295 approx)
   Light purple:   #C084FC (oklch 0.72 0.15 295 approx)
   Dark bg:        #0F0A1A (oklch 0.12 0.015 295 approx)
   ============================================================ */

:root {
  --color-primary:      #6B21A8;
  --color-primary-dark: #4C1D95;
  --color-accent:       #9333EA;
  --color-accent-light: #C084FC;
  --color-dark:         #0F0A1A;
  --color-dark-mid:     #1E1333;
  --color-text:         #1a1a2e;
  --color-text-muted:   #6b7280;
  --color-border:       #e5e7eb;
  --color-bg:           #ffffff;
  --color-bg-subtle:    #f9f7ff;
  --font-sans:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius:             0.5rem;
  --shadow-sm:          0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:          0 4px 16px rgba(107,33,168,0.10);
  --shadow-lg:          0 8px 32px rgba(107,33,168,0.15);
  --container-width:    1200px;
  --container-padding:  1.5rem;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.site-logo .logo-mark {
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo .logo-mark svg { width: 18px; height: 18px; fill: white; }

.site-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-logo .logo-name {
  font-size: 1rem;
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.site-logo .logo-sub {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.primary-nav { display: flex; align-items: center; gap: 0.25rem; }

.primary-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a.current-menu-item { color: var(--color-primary); background: var(--color-bg-subtle); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.btn-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}

.btn-cart:hover { border-color: var(--color-primary); color: var(--color-primary); }

.cart-count {
  background: var(--color-accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--color-text);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  padding: 0.625rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  border: 1.5px solid transparent;
  text-decoration: none;
  line-height: 1.4;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}
.btn-primary:hover { background: var(--color-primary); border-color: var(--color-primary); color: white; }

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: white; }

.btn-outline-dark {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline-dark:hover { background: var(--color-primary); color: white; }

.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.375rem 1rem; font-size: 0.8125rem; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15,10,26,0.92) 0%, rgba(15,10,26,0.70) 50%, rgba(15,10,26,0.20) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 6rem 0;
  max-width: 600px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-eyebrow .line { width: 2rem; height: 1px; background: var(--color-accent-light); }

.hero-eyebrow span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-light);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 900;
  color: white;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero h1 .accent { color: var(--color-accent-light); }

.hero p {
  color: rgba(255,255,255,0.80);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.8125rem;
  font-weight: 500;
}

.hero-badge svg { width: 16px; height: 16px; color: var(--color-accent-light); flex-shrink: 0; }

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-dark { background: var(--color-dark); color: white; }
.section-subtle { background: var(--color-bg-subtle); }

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-eyebrow .line { width: 2rem; height: 1px; background: var(--color-accent); }
.section-eyebrow span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 600px;
}

/* ============================================================
   PRODUCT CARDS (Archive)
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-card {
  border: 1.5px solid var(--color-border);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  background: white;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.product-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-bg-subtle);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-card-image img { transform: scale(1.04); }

.product-card-body { padding: 1.25rem; }

.product-card-meta {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.375rem;
}

.product-card-title {
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.product-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.product-card-price .currency { font-size: 0.75rem; font-weight: 500; color: var(--color-text-muted); margin-left: 0.25rem; }

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
}

.badge-filled { background: var(--color-primary); color: white; }
.badge-outline { border: 1.5px solid var(--color-accent-light); color: var(--color-primary); }
.badge-ghost { border: 1.5px solid var(--color-border); color: var(--color-text-muted); }

.product-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.product-feature {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.product-feature svg { width: 14px; height: 14px; color: var(--color-primary); flex-shrink: 0; }

.product-card-actions { display: flex; gap: 0.5rem; }
.product-card-actions .btn { flex: 1; font-size: 0.875rem; padding: 0.5rem 1rem; }

/* ============================================================
   PRODUCT DETAIL (Single)
   ============================================================ */
.product-detail { padding: 3rem 0 5rem; }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.product-gallery { position: sticky; top: 80px; }

.product-gallery img {
  width: 100%;
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow-lg);
}

.product-info-meta {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.product-info-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.product-info-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.product-info-price .currency { font-size: 1rem; font-weight: 500; color: var(--color-text-muted); }

.product-info-desc {
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.product-add-to-cart { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; }

.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty-control button {
  width: 36px;
  height: 40px;
  background: var(--color-bg-subtle);
  border: none;
  font-size: 1.125rem;
  cursor: pointer;
  color: var(--color-text);
  transition: background 0.15s;
}

.qty-control button:hover { background: var(--color-border); }

.qty-control input {
  width: 48px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--color-border);
  border-right: 1.5px solid var(--color-border);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-sans);
}

.product-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-bg-subtle);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.trust-item svg { width: 16px; height: 16px; color: var(--color-primary); }

/* FAQ Accordion */
.faq-accordion { margin-top: 2rem; }

.faq-item {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  gap: 1rem;
}

.faq-question:hover { background: var(--color-bg-subtle); }
.faq-question.active { background: var(--color-bg-subtle); color: var(--color-primary); }

.faq-icon { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.2s; color: var(--color-primary); }
.faq-question.active .faq-icon { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 1.25rem 1rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  border-top: 1px solid var(--color-border);
}

.faq-answer.open { display: block; }

/* ============================================================
   FEATURE GRID (How It Works)
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: calc(var(--radius) * 2);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--color-bg-subtle);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg { width: 22px; height: 22px; color: var(--color-primary); }

.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.65; }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}

.process-step { text-align: center; }

.step-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-accent-light);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.process-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.65; }

/* ============================================================
   DISCLAIMER BANNER
   ============================================================ */
.disclaimer-banner {
  background: #FEF3C7;
  border-top: 3px solid #F59E0B;
  padding: 0.875rem 0;
  font-size: 0.8125rem;
  color: #92400E;
  text-align: center;
  line-height: 1.5;
}

.disclaimer-banner strong { font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo-name { color: white; font-size: 1.125rem; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.4); }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-top: 1rem; }

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--color-accent-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce .woocommerce-notices-wrapper { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--container-padding); }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--radius);
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-subtle);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.woocommerce-error { border-color: #ef4444; background: #fef2f2; }

/* Cart page */
.woocommerce-cart .woocommerce { max-width: var(--container-width); margin: 0 auto; padding: 3rem var(--container-padding); }

.woocommerce table.shop_table {
  border-collapse: collapse;
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.woocommerce table.shop_table th {
  background: var(--color-bg-subtle);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.875rem 1rem;
  text-align: left;
}

.woocommerce table.shop_table td { padding: 1rem; border-top: 1px solid var(--color-border); vertical-align: middle; }

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--color-accent) !important;
  color: white !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  font-family: var(--font-sans) !important;
  transition: background 0.15s !important;
  border: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--color-primary) !important; }

.woocommerce a.button.alt,
.woocommerce button.button.alt { background: var(--color-primary) !important; }
.woocommerce a.button.alt:hover { background: var(--color-primary-dark) !important; }

/* Checkout */
.woocommerce-checkout .woocommerce { max-width: var(--container-width); margin: 0 auto; padding: 3rem var(--container-padding); }

.woocommerce form .form-row label { font-size: 0.875rem; font-weight: 600; color: var(--color-text); margin-bottom: 0.375rem; display: block; }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  width: 100%;
  transition: border-color 0.15s;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(107,33,168,0.1); }

/* ============================================================
   RESPONSIVE — mobile-first
   ============================================================ */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
  .product-detail-grid { gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: ≤ 768px */
@media (max-width: 768px) {
  /* Nav */
  .primary-nav { display: none; }
  .primary-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    z-index: 99;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .primary-nav.open a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius);
    width: 100%;
  }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero { min-height: 480px; }
  .hero-content { padding: 3.5rem 0; }
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(15,10,26,0.88) 0%, rgba(15,10,26,0.75) 100%);
  }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-badges { gap: 0.75rem; }

  /* Product grid */
  .products-grid { grid-template-columns: 1fr; }
  .product-card-actions { flex-direction: column; }
  .product-card-actions .btn { width: 100%; }

  /* Product detail */
  .product-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .product-gallery { position: static; }
  .product-add-to-cart { flex-wrap: wrap; }
  .product-add-to-cart .btn { flex: 1 1 auto; min-width: 140px; }
  .product-trust { flex-direction: column; gap: 0.75rem; }

  /* Sections */
  .section { padding: 3.5rem 0; }
  .section-lead { max-width: 100%; }

  /* Feature / process */
  .feature-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* WooCommerce cart table — make it scrollable */
  .woocommerce table.shop_table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* WooCommerce checkout — single column */
  .woocommerce-checkout .col2-set { display: block; }
  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2 { width: 100%; float: none; }
}

/* Small mobile: ≤ 480px */
@media (max-width: 480px) {
  :root { --container-padding: 1rem; }

  /* Typography scale down */
  .hero h1 { font-size: 1.875rem; }
  .section-title { font-size: 1.5rem; }
  .product-info-title { font-size: 1.5rem; }
  .product-info-price { font-size: 1.625rem; }

  /* Header */
  .header-inner { height: 56px; }
  .primary-nav.open { top: 56px; }
  .site-logo .logo-name { font-size: 0.875rem; }

  /* Hero */
  .hero { min-height: 420px; }
  .hero-content { padding: 3rem 0; }
  .hero p { font-size: 1rem; }

  /* Process */
  .process-steps { grid-template-columns: 1fr; }

  /* Product detail */
  .product-add-to-cart { flex-direction: column; align-items: stretch; }
  .product-add-to-cart .btn { width: 100%; }
  .qty-control { width: 100%; justify-content: center; }
  .product-features { grid-template-columns: 1fr; }

  /* FAQ */
  .faq-question { font-size: 0.875rem; padding: 0.875rem 1rem; }

  /* Affiliate plugin forms */
  .nvx-form-group { margin-bottom: 1rem; }
  .nvx-stats-grid { grid-template-columns: 1fr 1fr !important; }
  .nvx-activity-item { flex-direction: column; gap: 0.25rem; }

  /* Buttons */
  .btn-lg { padding: 0.75rem 1.25rem; font-size: 0.9375rem; }

  /* WooCommerce */
  .woocommerce-cart .woocommerce,
  .woocommerce-checkout .woocommerce { padding: 2rem var(--container-padding); }
  .woocommerce #order_review { padding: 1rem; }
}

/* ============================================================
   TWO-COLUMN GRID UTILITY (replaces inline styles)
   ============================================================ */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-grid-2col {
  grid-template-columns: 1fr 1fr !important;
}

@media (max-width: 1024px) {
  .two-col-grid { gap: 2.5rem; }
}

@media (max-width: 768px) {
  .two-col-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  .feature-grid-2col {
    grid-template-columns: 1fr !important;
  }
  /* Ensure image comes first when stacked */
  .two-col-grid > div:first-child { order: -1; }
}

@media (max-width: 480px) {
  .two-col-grid { gap: 1.5rem; }
}

/* ============================================================
   SINGLE-COLUMN PRODUCT DETAIL (replaces two-col grid)
   ============================================================ */
.product-hero-image {
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.product-hero-image img {
  width: 100%;
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow-lg);
}

.product-info-single {
  max-width: 800px;
  margin: 0 auto;
}

.product-detail {
  padding: 3rem 0 5rem;
}

/* ============================================================
   SHOP PAGE — single-column product list
   ============================================================ */
.shop-product-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
}

.shop-product-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  border: 1.5px solid var(--color-border);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  background: white;
  transition: box-shadow 0.2s;
}

.shop-product-item:hover {
  box-shadow: var(--shadow-lg);
}

.shop-product-image {
  width: 220px;
  flex-shrink: 0;
  background: var(--color-bg-subtle);
}

.shop-product-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.shop-product-body {
  padding: 1.5rem 1.5rem 1.5rem 0;
  flex: 1;
  min-width: 0;
}

.shop-product-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.shop-product-title a {
  color: var(--color-text);
  text-decoration: none;
}

.shop-product-title a:hover { color: var(--color-primary); }

.shop-product-price {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.shop-product-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.shop-product-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Mobile: stack image above body */
@media (max-width: 600px) {
  .shop-product-item {
    flex-direction: column;
    gap: 0;
  }
  .shop-product-image {
    width: 100%;
  }
  .shop-product-image img {
    width: 100%;
    height: 220px;
  }
  .shop-product-body {
    padding: 1.25rem;
  }
  .shop-product-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .shop-product-actions .btn,
  .shop-product-actions .button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
