/*
Theme Name: GreenRoots Child
Theme URI: https://greenroots.example.com/
Description: Premium gardening e-commerce child theme for Hello Elementor. WooCommerce ready, Elementor Pro compatible, fully custom design system.
Author: GreenRoots Studio
Author URI: https://greenroots.example.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: greenroots-child
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, woocommerce, elementor, gardening, premium
*/

/* ==========================================================================
   Google Fonts
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=DM+Sans:wght@300;400;500&family=Space+Mono&display=swap');

/* ==========================================================================
   CSS Custom Properties — Brand Design System
   ========================================================================== */
:root {
  /* Colors */
  --color-primary: #2D6A4F;
  --color-secondary: #95D5B2;
  --color-accent: #F4A261;
  --color-dark: #1B1F1A;
  --color-light: #F8F5F0;
  --color-text: #2C3E2D;
  --color-muted: #7A8C7B;
  --color-border: #DDE8DC;

  /* Semantic */
  --color-success: #2D6A4F;
  --color-warning: #F4A261;
  --color-danger: #B5394A;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', 'SFMono-Regular', Consolas, monospace;

  /* Type Scale (clamp) */
  --fs-h1: clamp(2.75rem, 5vw + 1rem, 6rem);
  --fs-h2: clamp(2rem, 3.5vw + 1rem, 4rem);
  --fs-h3: clamp(1.5rem, 2vw + 0.75rem, 2.25rem);
  --fs-h4: clamp(1.25rem, 1.2vw + 0.75rem, 1.625rem);
  --fs-h5: 1.125rem;
  --fs-h6: 1rem;
  --fs-base: 1rem;
  --fs-small: 0.875rem;
  --fs-tiny: 0.75rem;

  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container-max: 1320px;
  --container-narrow: 980px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(27, 31, 26, 0.06);
  --shadow-md: 0 4px 12px rgba(27, 31, 26, 0.08);
  --shadow-lg: 0 12px 32px rgba(27, 31, 26, 0.12);
  --shadow-xl: 0 24px 56px rgba(27, 31, 26, 0.18);
  --shadow-green: 0 12px 32px rgba(45, 106, 79, 0.18);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 180ms;
  --duration-base: 320ms;
  --duration-slow: 560ms;

  /* Z-index */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-cursor: 9999;
}

/* ==========================================================================
   Reset / Base Normalization
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-light);
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover,
a:focus-visible {
  color: var(--color-accent);
}

ul,
ol {
  margin: 0;
  padding-left: 1.25rem;
}

hr {
  border: 0;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-2xl) 0;
}

::selection {
  background: var(--color-primary);
  color: var(--color-light);
}

/* ==========================================================================
   Typography Scale
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-md);
  color: var(--color-dark);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }

h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 500;
}

h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); text-transform: uppercase; letter-spacing: 0.08em; }

p {
  margin: 0 0 var(--space-md);
  max-width: 70ch;
}

p:last-child { margin-bottom: 0; }

small {
  font-size: var(--fs-small);
  color: var(--color-muted);
}

strong { font-weight: 500; color: var(--color-dark); }

code, pre, .price, .sku, .badge {
  font-family: var(--font-mono);
}

blockquote {
  margin: var(--space-xl) 0;
  padding-left: var(--space-lg);
  border-left: 3px solid var(--color-accent);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-style: italic;
  color: var(--color-text);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

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

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

.section-pad--sm { padding-block: var(--space-2xl); }
.section-pad--lg { padding-block: var(--space-5xl); }

.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-muted); }
.text-display { font-family: var(--font-display); }
.text-mono { font-family: var(--font-mono); }
.text-center { text-align: center; }

.bg-light { background: var(--color-light); }
.bg-primary { background: var(--color-primary); color: var(--color-light); }
.bg-dark { background: var(--color-dark); color: var(--color-light); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Buttons */
.btn,
.btn-primary,
.btn-ghost,
.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.95rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    background var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.btn-primary,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
  background: var(--color-primary);
  color: var(--color-light);
  border-color: var(--color-primary);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-dark);
  border-color: var(--color-accent);
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: var(--color-dark);
  color: var(--color-light);
  border-color: var(--color-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--color-primary);
  color: var(--color-light);
  border-color: var(--color-primary);
}

.btn--full { width: 100%; }
.btn--lg { padding: 1.15rem 2.25rem; font-size: var(--fs-base); }
.btn--sm { padding: 0.65rem 1.25rem; font-size: var(--fs-tiny); }

/* Button micro-interaction states */
.btn--loading {
  pointer-events: none;
  color: transparent !important;
}

.btn--loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  color: var(--color-light);
  animation: btnSpin 0.7s linear infinite;
}

.btn--success {
  background: var(--color-success) !important;
  border-color: var(--color-success) !important;
  color: var(--color-light) !important;
  pointer-events: none;
}

.btn--success::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px; height: 8px;
  border-left: 2px solid var(--color-light);
  border-bottom: 2px solid var(--color-light);
  transform: rotate(-45deg) translateY(-2px);
  color: transparent;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* Badges & Tags */
.badge,
.sale-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  background: var(--color-secondary);
  color: var(--color-dark);
}

.badge--accent { background: var(--color-accent); color: var(--color-dark); }
.badge--dark { background: var(--color-dark); color: var(--color-light); }

/* ==========================================================================
   Custom Cursor (desktop only)
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, input, textarea, select, [role="button"] { cursor: none; }

  .gr-cursor-dot,
  .gr-cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: var(--z-cursor);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
    mix-blend-mode: difference;
  }

  .gr-cursor-dot {
    width: 8px; height: 8px;
    background: var(--color-secondary);
    transition: transform var(--duration-fast) var(--ease-out);
  }

  .gr-cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid var(--color-secondary);
    transition:
      width var(--duration-base) var(--ease-out),
      height var(--duration-base) var(--ease-out),
      border-color var(--duration-base) var(--ease-out),
      background var(--duration-base) var(--ease-out);
  }

  .gr-cursor-ring.is-hover {
    width: 60px; height: 60px;
    border-color: var(--color-accent);
    background: rgba(244, 162, 97, 0.08);
  }
}

/* ==========================================================================
   Sticky Header & Navigation
   ========================================================================== */
.gr-header,
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  width: 100%;
  background: rgba(248, 245, 240, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition:
    background var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.gr-header.is-scrolled,
.site-header.is-scrolled {
  background: rgba(248, 245, 240, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.gr-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-block: var(--space-md);
}

.gr-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.gr-nav {
  display: flex;
  gap: var(--space-xl);
}

.gr-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  position: relative;
}

.gr-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
}

.gr-nav a:hover::after,
.gr-nav a:focus-visible::after { transform: scaleX(1); }

.gr-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.gr-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--color-text);
  transition: background var(--duration-fast) var(--ease-out);
}

.gr-icon-btn:hover { background: var(--color-border); }

.gr-cart-bubble {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  background: var(--color-accent);
  color: var(--color-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  border-radius: var(--radius-pill);
}

.gr-hamburger {
  display: none;
  width: 28px; height: 28px;
  position: relative;
}

.gr-hamburger span,
.gr-hamburger span::before,
.gr-hamburger span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--color-dark);
  transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-fast);
}

.gr-hamburger span { top: 50%; transform: translateY(-50%); }
.gr-hamburger span::before { top: -8px; }
.gr-hamburger span::after { top: 8px; }

.gr-hamburger.is-open span { transform: translateY(-50%) rotate(45deg); }
.gr-hamburger.is-open span::before { transform: translateY(8px) rotate(0); opacity: 0; }
.gr-hamburger.is-open span::after { transform: translateY(-8px) rotate(-90deg); }

@media (max-width: 1024px) {
  .gr-nav {
    position: fixed;
    inset: 70px 0 0 0;
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-2xl);
    background: var(--color-light);
    border-top: 1px solid var(--color-border);
    transform: translateX(100%);
    transition: transform var(--duration-base) var(--ease-out);
  }

  .gr-nav.is-open { transform: translateX(0); }
  .gr-hamburger { display: inline-block; }
}

/* ==========================================================================
   Hero Section + Parallax
   ========================================================================== */
.gr-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-light);
  isolation: isolate;
}

.gr-hero__bg {
  position: absolute;
  inset: -10% 0 -10% 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  will-change: transform;
}

.gr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 31, 26, 0.45) 0%, rgba(27, 31, 26, 0.65) 100%);
  z-index: -1;
}

/* Grain noise overlay (4% opacity) */
.gr-hero::after,
.gr-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.9'/></svg>");
  mix-blend-mode: overlay;
}

.gr-hero__content {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.gr-hero h1 {
  color: var(--color-light);
  font-size: var(--fs-h1);
  margin-bottom: var(--space-lg);
}

.gr-hero p.lead {
  font-size: clamp(1.05rem, 1vw + 0.75rem, 1.35rem);
  color: rgba(248, 245, 240, 0.88);
  max-width: 56ch;
  margin-bottom: var(--space-xl);
}

.gr-hero__ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.gr-scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1px solid rgba(248, 245, 240, 0.5);
  border-radius: var(--radius-pill);
  z-index: 2;
}

.gr-scroll-indicator::after {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 2px; height: 8px;
  background: var(--color-light);
  transform: translateX(-50%);
  animation: scrollPulse 1.8s var(--ease-in-out) infinite;
}

@keyframes scrollPulse {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ==========================================================================
   SVG Wave Dividers
   ========================================================================== */
.gr-wave {
  display: block;
  width: 100%;
  height: clamp(60px, 10vw, 140px);
  line-height: 0;
}

.gr-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.gr-wave--top { transform: rotate(180deg); margin-bottom: -1px; }
.gr-wave--bottom { margin-top: -1px; }

.gr-wave path { fill: var(--color-light); }
.gr-wave--dark path { fill: var(--color-dark); }
.gr-wave--primary path { fill: var(--color-primary); }

/* ==========================================================================
   Product Cards
   ========================================================================== */
.gr-product-grid,
.woocommerce ul.products,
.woocommerce-page ul.products {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-xl);
}

.woocommerce ul.products li.product,
.gr-product-card {
  position: relative;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.woocommerce ul.products li.product:hover,
.gr-product-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-lg);
}

.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
  display: block;
  color: inherit;
}

.woocommerce ul.products li.product img,
.gr-product-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 !important;
  background: var(--color-border);
  transition: transform var(--duration-slow) var(--ease-out);
}

.woocommerce ul.products li.product:hover img {
  transform: scale(1.04);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.gr-product-card__title {
  padding: var(--space-md) var(--space-md) var(--space-2xs);
  font-family: var(--font-body);
  font-size: var(--fs-h5);
  font-weight: 500;
  color: var(--color-dark);
}

.woocommerce ul.products li.product .price,
.gr-product-card__price {
  display: block;
  padding: 0 var(--space-md) var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--fs-base);
  color: var(--color-primary);
}

.woocommerce ul.products li.product .price del { color: var(--color-muted); margin-right: 0.5em; }
.woocommerce ul.products li.product .price ins { background: transparent; color: var(--color-accent); text-decoration: none; }

.woocommerce ul.products li.product .button {
  margin: 0 var(--space-md) var(--space-md);
}

.woocommerce ul.products li.product .onsale,
.gr-product-card .onsale {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  margin: 0;
  min-height: 0; min-width: 0;
  padding: 0.25rem 0.6rem;
  background: var(--color-accent);
  color: var(--color-dark);
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

/* Product hover overlay */
.gr-product-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(27,31,26,0.75), transparent);
  color: var(--color-light);
  transform: translateY(100%);
  transition: transform var(--duration-base) var(--ease-out);
}

.gr-product-card:hover .gr-product-card__overlay { transform: translateY(0); }

/* Star rating */
.woocommerce .star-rating {
  font-size: 0.85em;
  color: var(--color-accent);
  margin: 0 var(--space-md) var(--space-xs);
}

/* Pagination */
.woocommerce-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  list-style: none;
  padding: 0;
  margin: var(--space-2xl) 0 0;
  border: 0;
}

.woocommerce-pagination ul.page-numbers li {
  border: 0 !important;
}

.woocommerce-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 0.85rem;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  text-decoration: none;
  border: 1px solid var(--color-border);
  transition: all var(--duration-fast) var(--ease-out);
}

.woocommerce-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers:hover {
  background: var(--color-primary);
  color: var(--color-light);
  border-color: var(--color-primary);
}

/* ==========================================================================
   Cart Page
   ========================================================================== */
.gr-cart {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: var(--space-2xl);
  padding-block: var(--space-3xl);
}

.gr-cart__items {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.gr-cart__row {
  display: grid;
  grid-template-columns: 96px 1fr auto auto auto 32px;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
}

.gr-cart__row:last-child { border-bottom: 0; }

.gr-cart__thumb {
  width: 96px; height: 96px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--color-border);
}

.gr-cart__name {
  font-weight: 500;
  color: var(--color-dark);
}

.gr-cart__variation {
  font-size: var(--fs-small);
  color: var(--color-muted);
}

.gr-cart__price,
.gr-cart__line-total {
  font-family: var(--font-mono);
  color: var(--color-primary);
}

.gr-cart__line-total { font-size: var(--fs-base); color: var(--color-dark); }

.gr-cart__remove {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.gr-cart__remove:hover { background: var(--color-danger); color: var(--color-light); }

/* Quantity stepper */
.gr-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--color-light);
}

.gr-qty__btn {
  width: 36px; height: 36px;
  font-size: 1rem;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--ease-out);
}

.gr-qty__btn:hover { background: var(--color-secondary); }

.gr-qty__input {
  width: 44px;
  height: 36px;
  text-align: center;
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  -moz-appearance: textfield;
}

.gr-qty__input::-webkit-outer-spin-button,
.gr-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Coupon toggle */
.gr-coupon {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px dashed var(--color-border);
}

.gr-coupon__toggle {
  color: var(--color-primary);
  font-weight: 500;
  font-size: var(--fs-small);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gr-coupon__form {
  display: none;
  margin-top: var(--space-md);
  gap: var(--space-sm);
}

.gr-coupon.is-open .gr-coupon__form { display: flex; }

.gr-coupon__input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-light);
}

/* Empty cart state */
.gr-cart__empty {
  text-align: center;
  padding: var(--space-5xl) var(--space-lg);
}

.gr-cart__empty svg {
  width: 160px; height: auto;
  margin: 0 auto var(--space-xl);
  color: var(--color-secondary);
}

/* Order summary */
.gr-summary {
  position: sticky;
  top: 100px;
  align-self: start;
  background: var(--color-dark);
  color: var(--color-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.gr-summary h3 {
  color: var(--color-light);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.gr-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  font-size: var(--fs-small);
  border-bottom: 1px solid rgba(248,245,240,0.08);
}

.gr-summary__row span:last-child { font-family: var(--font-mono); }

.gr-summary__total {
  padding-top: var(--space-lg);
  margin-top: var(--space-md);
  border-top: 1px solid rgba(248,245,240,0.18);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-secondary);
}

.gr-summary__total span:last-child { font-family: var(--font-mono); }

.gr-summary .btn-primary {
  width: 100%;
  margin-top: var(--space-lg);
  background: var(--color-accent);
  color: var(--color-dark);
  border-color: var(--color-accent);
}

.gr-summary .btn-primary:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-dark);
}

.gr-summary__continue {
  display: block;
  text-align: center;
  margin-top: var(--space-md);
  color: rgba(248,245,240,0.7);
  font-size: var(--fs-small);
}

.gr-summary__continue:hover { color: var(--color-secondary); }

@media (max-width: 1024px) {
  .gr-cart { grid-template-columns: 1fr; }
  .gr-summary { position: static; }
}

@media (max-width: 640px) {
  .gr-cart__row {
    grid-template-columns: 72px 1fr 32px;
    grid-template-areas:
      "thumb name remove"
      "thumb price price"
      "qty qty total";
    gap: var(--space-sm);
  }
  .gr-cart__thumb { grid-area: thumb; width: 72px; height: 72px; }
  .gr-cart__info { grid-area: name; }
  .gr-cart__price { grid-area: price; }
  .gr-cart__qty-wrap { grid-area: qty; }
  .gr-cart__line-total { grid-area: total; text-align: right; }
  .gr-cart__remove { grid-area: remove; }
}

/* ==========================================================================
   Checkout
   ========================================================================== */
.gr-checkout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-2xl);
  padding-block: var(--space-3xl);
}

.gr-checkout__form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.gr-checkout__section {
  margin-bottom: var(--space-2xl);
}

.gr-checkout__section:last-child { margin-bottom: 0; }

.gr-checkout__section h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.gr-checkout__section h3::before {
  content: counter(gr-step);
  counter-increment: gr-step;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--color-primary);
  color: var(--color-light);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  border-radius: 50%;
}

.gr-checkout__form { counter-reset: gr-step; }

/* Step indicators */
.gr-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.gr-steps__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gr-steps__item.is-active { color: var(--color-primary); }
.gr-steps__item.is-done { color: var(--color-accent); }

.gr-steps__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.gr-steps__sep {
  width: 28px; height: 1px;
  background: var(--color-border);
}

/* Form fields */
.gr-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  margin-bottom: var(--space-md);
}

.gr-field label {
  font-size: var(--fs-small);
  color: var(--color-text);
  font-weight: 500;
}

.gr-field input,
.gr-field select,
.gr-field textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  transition: border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.gr-field input:focus,
.gr-field select:focus,
.gr-field textarea:focus,
.woocommerce form .form-row input.input-text:focus {
  outline: 0;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}

.gr-field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.gr-field__error {
  display: none;
  font-size: var(--fs-tiny);
  color: var(--color-danger);
  margin-top: var(--space-2xs);
}

.gr-field.is-error .gr-field__error { display: block; }
.gr-field.is-error input,
.gr-field.is-error select,
.gr-field.is-error textarea { border-color: var(--color-danger); }

/* Place order button */
.gr-place-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 1.15rem 2rem;
  margin-top: var(--space-lg);
  background: var(--color-accent);
  color: var(--color-dark);
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

.gr-place-order:hover {
  background: var(--color-primary);
  color: var(--color-light);
  transform: translateY(-2px);
}

.gr-place-order::before {
  content: "";
  width: 14px; height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 1a5 5 0 0 0-5 5v3H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-2V6a5 5 0 0 0-5-5zm-3 8V6a3 3 0 1 1 6 0v3H9z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 1a5 5 0 0 0-5 5v3H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-2V6a5 5 0 0 0-5-5zm-3 8V6a3 3 0 1 1 6 0v3H9z'/></svg>") center/contain no-repeat;
}

/* Trust badges */
.gr-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px dashed var(--color-border);
}

.gr-trust__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-tiny);
  font-family: var(--font-mono);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gr-trust__item::before {
  content: "✓";
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 700;
}

/* Order review sidebar */
.gr-review {
  position: sticky;
  top: 100px;
  align-self: start;
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.gr-review h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.gr-review__row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-small);
}

.gr-review__row:last-child { border-bottom: 0; }
.gr-review__row span:last-child { font-family: var(--font-mono); color: var(--color-dark); }

.gr-review__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 2px solid var(--color-dark);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-primary);
}

.gr-review__total span:last-child { font-family: var(--font-mono); }

@media (max-width: 1024px) {
  .gr-checkout { grid-template-columns: 1fr; }
  .gr-review { position: static; }
}

@media (max-width: 768px) {
  .gr-checkout__form { padding: var(--space-lg); }
  .gr-field--row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Single Product Page
   ========================================================================== */
.woocommerce div.product,
.gr-product {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-2xl);
  padding-block: var(--space-2xl);
}

.woocommerce div.product .images,
.gr-product__gallery {
  background: var(--color-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.woocommerce div.product .images img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.woocommerce div.product .summary,
.gr-product__details {
  padding: var(--space-md) 0;
}

.woocommerce div.product .product_title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--font-mono);
  font-size: var(--fs-h3);
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  margin: var(--space-xl) 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: var(--space-2xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: none;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: inline-block;
  padding: var(--space-md) 0;
  margin-right: var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  border-bottom: 2px solid transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

/* Stock badge */
.gr-stock {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gr-stock--in { background: rgba(45,106,79,0.12); color: var(--color-primary); }
.gr-stock--low { background: rgba(244,162,97,0.18); color: var(--color-accent); }
.gr-stock--out { background: rgba(181,57,74,0.12); color: var(--color-danger); }

.gr-stock::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* Wishlist button */
.gr-wishlist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  transition: all var(--duration-fast) var(--ease-out);
}

.gr-wishlist-btn:hover,
.gr-wishlist-btn.is-active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(244,162,97,0.08);
}

/* Sticky add-to-cart bar */
.gr-sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky);
  background: rgba(248,245,240,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  padding: var(--space-md) var(--space-lg);
  transform: translateY(110%);
  transition: transform var(--duration-base) var(--ease-out);
  box-shadow: 0 -8px 24px rgba(27,31,26,0.08);
}

.gr-sticky-bar.is-visible { transform: translateY(0); }

.gr-sticky-bar__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.gr-sticky-bar__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gr-sticky-bar__name {
  font-weight: 500;
  color: var(--color-dark);
}

.gr-sticky-bar__price {
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-size: var(--fs-small);
}

@media (max-width: 1024px) {
  .woocommerce div.product,
  .gr-product { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .gr-sticky-bar__inner { flex-direction: column; align-items: stretch; gap: var(--space-sm); }
  .gr-sticky-bar__info { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ==========================================================================
   Blog Cards
   ========================================================================== */
.gr-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.gr-blog-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.gr-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.gr-blog-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--color-border);
}

.gr-blog-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.gr-chip {
  align-self: flex-start;
  padding: 0.2rem 0.6rem;
  background: var(--color-secondary);
  color: var(--color-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  letter-spacing: 0.05em;
}

.gr-blog-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  margin: 0;
}

.gr-blog-card__title a { color: var(--color-dark); }
.gr-blog-card__title a:hover { color: var(--color-primary); }

.gr-blog-card__meta {
  font-size: var(--fs-tiny);
  color: var(--color-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gr-blog-card__excerpt {
  color: var(--color-text);
  font-size: var(--fs-small);
}

/* ==========================================================================
   Gallery — Masonry + Lightbox
   ========================================================================== */
.gr-gallery {
  columns: 4;
  column-gap: var(--space-md);
}

.gr-gallery__item {
  display: block;
  break-inside: avoid;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gr-gallery__item img {
  width: 100%;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}

.gr-gallery__item:hover img { transform: scale(1.05); }

.gr-gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(45,106,79,0.0);
  transition: background var(--duration-base) var(--ease-out);
}

.gr-gallery__item:hover::after { background: rgba(45,106,79,0.18); }

@media (max-width: 1024px) { .gr-gallery { columns: 3; } }
@media (max-width: 768px)  { .gr-gallery { columns: 2; } }
@media (max-width: 480px)  { .gr-gallery { columns: 1; } }

.gr-lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(27,31,26,0.92);
  padding: var(--space-xl);
}

.gr-lightbox.is-open { display: flex; }

.gr-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
}

.gr-lightbox__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 44px; height: 44px;
  background: rgba(248,245,240,0.1);
  color: var(--color-light);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.gr-footer {
  background: var(--color-dark);
  color: rgba(248,245,240,0.85);
  padding-block: var(--space-3xl) var(--space-lg);
  position: relative;
}

.gr-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(248,245,240,0.08);
}

.gr-footer__col h5 {
  color: var(--color-light);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.gr-footer__col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-xs);
}

.gr-footer__col a {
  color: rgba(248,245,240,0.7);
  font-size: var(--fs-small);
}

.gr-footer__col a:hover { color: var(--color-secondary); }

.gr-footer__brand {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-light);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.gr-footer__tagline {
  color: rgba(248,245,240,0.7);
  font-size: var(--fs-small);
  margin-bottom: var(--space-lg);
}

.gr-social {
  display: flex;
  gap: var(--space-sm);
}

.gr-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(248,245,240,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-light);
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.gr-social a:hover { background: var(--color-primary); color: var(--color-light); }

/* Newsletter micro-form */
.gr-newsletter {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.gr-newsletter input {
  flex: 1;
  padding: 0.7rem 1rem;
  background: rgba(248,245,240,0.06);
  border: 1px solid rgba(248,245,240,0.1);
  border-radius: var(--radius-pill);
  color: var(--color-light);
}

.gr-newsletter input::placeholder { color: rgba(248,245,240,0.4); }

.gr-newsletter button {
  padding: 0.7rem 1.25rem;
  background: var(--color-accent);
  color: var(--color-dark);
  border-radius: var(--radius-pill);
  font-weight: 500;
  text-transform: uppercase;
  font-size: var(--fs-tiny);
  letter-spacing: 0.06em;
}

.gr-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  font-size: var(--fs-tiny);
  color: rgba(248,245,240,0.5);
}

.gr-footer__bottom a {
  color: rgba(248,245,240,0.7);
  margin-left: var(--space-md);
  font-size: var(--fs-tiny);
}

.gr-payments {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

.gr-payments span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 var(--space-sm);
  background: rgba(248,245,240,0.08);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(248,245,240,0.7);
}

@media (max-width: 1024px) {
  .gr-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .gr-footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Scroll Reveal
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Forms (general)
   ========================================================================== */
.woocommerce form .form-row label,
.woocommerce-page form .form-row label {
  font-size: var(--fs-small);
  color: var(--color-text);
  margin-bottom: 4px;
}

/* ==========================================================================
   Responsive Breakpoints (Mobile-first refinements)
   ========================================================================== */
@media (max-width: 1280px) {
  :root {
    --container-max: 1140px;
  }
}

@media (max-width: 1024px) {
  :root {
    --space-4xl: 4.5rem;
    --space-5xl: 6rem;
  }
}

@media (max-width: 768px) {
  body { font-size: 0.95rem; }
  .container { padding-inline: var(--space-md); }
  .section-pad { padding-block: var(--space-3xl); }
}

@media (max-width: 480px) {
  :root {
    --space-3xl: 2.5rem;
    --space-4xl: 3.5rem;
  }
  .btn,
  .btn-primary,
  .btn-ghost { padding: 0.85rem 1.4rem; font-size: var(--fs-tiny); }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .gr-header,
  .site-header,
  .gr-footer,
  .gr-sticky-bar,
  .gr-cursor-dot,
  .gr-cursor-ring,
  .gr-scroll-indicator { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
