/*
Theme Name: Lunia – Hurtownia Regionalna
Theme URI: https://lunia.pl
Author: Lunia
Author URI: https://lunia.pl
Description: Motyw WordPress dla P.H. „Lunia" Hurtownia Regionalna. Katalog produktów regionalnych z Podhala.
Version: 2.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lunia
*/

/* ========================================================
   0. CSS VARIABLES — Design Tokens from React project
   ======================================================== */
:root {
  /* Brand */
  --lunia-red: #9B1C1F;
  --lunia-red-dark: #7E1A1D;
  --lunia-red-light: rgba(155, 28, 31, 0.08);
  --lunia-graphite: #2A2220;
  --lunia-cream: #F7F4EF;
  --lunia-silver: #E4E2DD;
  --lunia-taupe: #C8B39D;
  --lunia-bronze: #B9845A;

  /* Semantic (HSL from React CSS vars) */
  --background: hsl(30, 25%, 96%);
  --foreground: hsl(15, 12%, 14%);
  --card: hsl(30, 20%, 98%);
  --card-foreground: hsl(15, 12%, 14%);
  --muted: hsl(30, 10%, 92%);
  --muted-foreground: hsl(15, 6%, 45%);
  --border: hsl(30, 12%, 86%);
  --border-half: hsla(30, 12%, 86%, 0.5);
  --ring: hsl(358, 70%, 36%);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;

  /* Radius */
  --radius: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
  --radius-4xl: 2rem;
}

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

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ========================================================
   2. TYPOGRAPHY
   ======================================================== */
.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--lunia-graphite);
  line-height: 1.1;
}

/* ========================================================
   3. LAYOUT UTILITIES
   ======================================================== */
.container-lunia {
  width: 100%;
  max-width: 72rem; /* max-w-6xl = 1152px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* ========================================================
   4. GLASS MORPHISM
   ======================================================== */
.glass {
  background: rgba(247, 244, 239, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-strong {
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

/* ========================================================
   5. FLOATING HEADER
   ======================================================== */
.floating-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 2rem);
  max-width: 72rem; /* match container-lunia */
  animation: headerSlideIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

@keyframes headerSlideIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.header-inner {
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.5s ease;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
}

.header-inner.scrolled {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  background: var(--lunia-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
}

.header-logo-img {
  height: 3.25rem;
  width: auto;
  border-radius: 50%;
  object-fit: contain;
}

.header-logo-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--lunia-graphite);
}

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

.header-nav a {
  padding: 0.5rem 1.125rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(42, 34, 32, 0.7);
  transition: all 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
  background: var(--lunia-red-light);
  color: var(--lunia-red);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(42, 34, 32, 0.06);
  color: var(--lunia-graphite);
  transition: all 0.25s;
  flex-shrink: 0;
}

.header-phone-btn:hover {
  background: var(--lunia-red);
  color: #fff;
  transform: scale(1.05);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--lunia-red);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--lunia-red-dark); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(42, 34, 32, 0.05);
  color: var(--lunia-graphite);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-secondary:hover { background: rgba(42, 34, 32, 0.1); }

.btn-primary-lg {
  padding: 0.75rem 1.5rem;
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.mobile-toggle:hover { background: rgba(155, 28, 31, 0.05); }

.mobile-menu {
  display: none;
  margin-top: 0.5rem;
  border-radius: var(--radius-3xl);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  padding: 1rem;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(42, 34, 32, 0.7);
  transition: background 0.2s;
}

.mobile-menu a:hover { background: rgba(155, 28, 31, 0.05); }

@media (max-width: 767px) {
  .header-nav { display: none; }
  .header-cta .btn-primary { display: none; }
  .mobile-toggle { display: flex; }
}

@media (min-width: 640px) {
  .header-inner { padding: 0.75rem 1.5rem; }
}

/* ========================================================
   6. HERO SECTION — Full-width video background
   ======================================================== */
.hero-video-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video,
.hero-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--lunia-graphite) 0%, #3d302c 50%, var(--lunia-red-dark) 100%);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(42, 34, 32, 0.55) 0%,
    rgba(42, 34, 32, 0.35) 40%,
    rgba(42, 34, 32, 0.60) 100%
  );
}

.hero-video-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 8rem 1rem 4rem;
}

.hero-video-content .hero-content {
  max-width: 40rem;
  animation: fadeInUp 0.7s ease forwards;
  opacity: 0;
}

.hero-video-content .hero-title {
  color: #fff;
}

.hero-video-content .hero-title em {
  color: #fff;
  text-shadow: 0 0 40px rgba(155, 28, 31, 0.5);
}

.hero-video-content .hero-desc {
  color: rgba(255, 255, 255, 0.8);
}

.hero-video-content .hero-badge {
  background: rgba(155, 28, 31, 0.25);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-video-content .hero-tag {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@media (min-width: 640px) {
  .hero-video-content { padding-top: 10rem; padding-bottom: 5rem; }
  .hero-video-content .hero-title { font-size: 3rem; }
  .hero-video-content .hero-desc { font-size: 1.125rem; }
}

@media (min-width: 1024px) {
  .hero-video-content .hero-title { font-size: 3.8rem; }
}

/* Shared keyframes */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* Shared hero sub-element base styles */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--lunia-red-light);
  color: var(--lunia-red);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  width: fit-content;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--lunia-graphite);
}

.hero-title em {
  color: var(--lunia-red);
  font-style: italic;
}

.hero-desc {
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 28rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--lunia-silver);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(42, 34, 32, 0.6);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  animation: fadeInScale 0.5s ease forwards;
  opacity: 0;
}

.hero-tag:nth-child(1) { animation-delay: 0.4s; }
.hero-tag:nth-child(2) { animation-delay: 0.48s; }
.hero-tag:nth-child(3) { animation-delay: 0.56s; }
.hero-tag:nth-child(4) { animation-delay: 0.64s; }
.hero-tag:nth-child(5) { animation-delay: 0.72s; }

/* ========================================================
   7. CATEGORIES SECTION
   ======================================================== */
.categories-section {
  padding: 4rem 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--lunia-red-light);
  color: var(--lunia-red);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--lunia-graphite);
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  max-width: 32rem;
  margin: 0 auto;
}

.categories-grid {
  display: none; /* legacy — replaced by masonry */
}

/* ── Masonry Grid ── */
.masonry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.masonry-item {
  display: block;
  position: relative;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  min-height: 14rem;
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  inset: 0;
  transition: transform 0.7s ease;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.05) 55%);
  transition: background 0.4s;
}

.masonry-item:hover .masonry-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 55%);
}

.masonry-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  z-index: 1;
}

.masonry-content h3 {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
  line-height: 1.2;
}

.masonry-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.masonry-arrow {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.3s;
}

.masonry-item:hover .masonry-arrow {
  background: var(--lunia-red);
}

/* Desktop masonry: 3 columns, first item spans 1 col × 2 rows */
@media (min-width: 768px) {
  .masonry-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 0.75rem;
  }

  /* Pantofle — large left, spans 2 rows */
  .masonry-item.masonry-large {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 0;
  }

  /* Skarpety — top middle */
  .masonry-item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  /* Artykuły skórzane — top right */
  .masonry-item:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }

  /* Na zimę — middle center */
  .masonry-item:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  /* Artykuły wełniane — middle right */
  .masonry-item:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
  }

  /* Artykuły regionalne — bottom left */
  .masonry-item.masonry-bottom {
    grid-column: 1;
    grid-row: 3;
  }

  .masonry-content h3 {
    font-size: 1.25rem;
  }

  .masonry-item.masonry-large .masonry-content h3 {
    font-size: 1.75rem;
  }

  .masonry-item.masonry-large .masonry-content p {
    font-size: 0.9375rem;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .masonry-item { min-height: 16rem; }
  .masonry-item.masonry-large { min-height: 20rem; }
}

@media (min-width: 1024px) {
  .section-title { font-size: 2.25rem; }
}

/* ========================================================
   7b. TILE GRID SECTIONS (Dla kogo + Kategorie)
   ======================================================== */
.tiles-section {
  padding: 4rem 1rem;
}

.section-alt-bg {
  background: var(--card);
}

.tiles-grid {
  display: grid;
  gap: 0.75rem;
}

/* ── "Dla kogo" — asymmetric: 2 big + 2 small stacked ── */
.tiles-grid-dlakogo {
  grid-template-columns: 1fr 1fr;
}

.tiles-grid-dlakogo .tile-card {
  aspect-ratio: 3 / 4;
}

/* ── "Kategorie" — larger cards, 2-col mobile ── */
.tiles-grid-kategorie {
  grid-template-columns: 1fr 1fr;
}

.tiles-grid-kategorie .tile-card {
  aspect-ratio: 4 / 3;
}

/* Fallback for old tiles-grid-4 */
.tiles-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

.tile-card {
  display: block;
  position: relative;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.tile-card-img {
  position: absolute;
  inset: 0;
}

.tile-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  object-position: center center;
  transition: transform 0.7s ease;
}

.tile-card:hover .tile-card-img img {
  transform: scale(1.05);
}

.tile-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.02) 55%);
  transition: background 0.4s;
}

.tile-card:hover .tile-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.08) 55%);
}

.tile-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  z-index: 1;
}

.tile-card-content h3 {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
  line-height: 1.2;
}

.tile-card-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.tile-card-arrow {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.3s;
  z-index: 1;
}

.tile-card:hover .tile-card-arrow {
  background: var(--lunia-red);
}

@media (min-width: 640px) {
  .tiles-grid { gap: 1rem; }
  .tile-card-content h3 { font-size: 1.25rem; }
}

@media (min-width: 768px) {
  .tiles-grid-4 { grid-template-columns: repeat(4, 1fr); }

  /* "Dla kogo" — 2 big left/center, 2 small stacked on right
     Layout: [  Dla niej  ] [ Dla niego ] [ Dziewczynki ]
                                          [  Chłopcy    ]  */
  .tiles-grid-dlakogo {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
  }

  /* First card: big, spans 2 rows */
  .tiles-grid-dlakogo .tile-card:nth-child(1) {
    grid-row: 1 / 3;
    aspect-ratio: auto;
  }

  /* Second card: big, spans 2 rows */
  .tiles-grid-dlakogo .tile-card:nth-child(2) {
    grid-row: 1 / 3;
    aspect-ratio: auto;
  }

  /* Third card: small top-right */
  .tiles-grid-dlakogo .tile-card:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
    aspect-ratio: auto;
  }

  /* Fourth card: small bottom-right */
  .tiles-grid-dlakogo .tile-card:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
    aspect-ratio: auto;
  }

  .tiles-grid-dlakogo .tile-card:nth-child(1) .tile-card-content h3,
  .tiles-grid-dlakogo .tile-card:nth-child(2) .tile-card-content h3 {
    font-size: 1.5rem;
  }

  /* "Kategorie" — 3 columns, balanced cards */
  .tiles-grid-kategorie {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .tiles-grid-kategorie .tile-card {
    aspect-ratio: 5 / 4;
  }

  .tiles-grid-kategorie .tile-card-content h3 {
    font-size: 1.375rem;
  }
}

@media (min-width: 1024px) {
  .tiles-grid-dlakogo {
    min-height: 28rem;
  }

  .tiles-grid-dlakogo .tile-card:nth-child(1) .tile-card-content h3,
  .tiles-grid-dlakogo .tile-card:nth-child(2) .tile-card-content h3 {
    font-size: 1.75rem;
  }
}

/* ========================================================
   8. FEATURED SECTION
   ======================================================== */
.featured-section {
  padding: 4rem 1rem;
  background: var(--card);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.product-card {
  display: block;
  text-align: left;
  background: var(--background);
  border-radius: var(--radius-3xl);
  overflow: hidden;
  border: 1px solid var(--border-half);
  transition: all 0.5s;
}

.product-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.product-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.7s;
}

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

.product-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--lunia-red);
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.product-badge svg { width: 0.625rem; height: 0.625rem; }

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

.product-sku {
  font-size: 0.625rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  line-height: 1.3;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--lunia-red);
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .featured-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .product-card-body { padding: 1rem; }
  .product-name { font-size: 1rem; }
}

@media (min-width: 1024px) {
  .featured-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ========================================================
   9. ABOUT SECTION
   ======================================================== */
.about-section {
  padding: 4rem 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-4xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(228, 226, 221, 0.3);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.about-content { display: flex; flex-direction: column; gap: 1.25rem; }

.about-content h2 {
  font-size: 1.875rem;
  font-weight: 600;
}

.about-content p {
  color: var(--muted-foreground);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 0.5rem;
}

.about-stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--lunia-red);
}

.about-stat-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .about-content h2 { font-size: 2.25rem; }
}

/* ========================================================
   10. BENEFITS SECTION
   ======================================================== */
.benefits-section {
  padding: 4rem 1rem;
  background: var(--card);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.benefit-card {
  background: var(--background);
  border-radius: var(--radius-3xl);
  padding: 1.5rem;
  border: 1px solid var(--border-half);
  transition: all 0.3s;
}

.benefit-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.benefit-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--lunia-red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--lunia-red);
}

.benefit-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.benefit-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

/* ========================================================
   11. CONTACT SECTION
   ======================================================== */
.contact-section {
  padding: 4rem 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info h2 {
  font-size: 1.875rem;
  font-weight: 600;
}

.contact-info p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-detail-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: var(--lunia-red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lunia-red);
  flex-shrink: 0;
}

.contact-detail-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.contact-detail-text strong {
  display: block;
  font-size: 0.875rem;
  color: var(--foreground);
  margin-bottom: 0.125rem;
}

.contact-detail-text span {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.contact-form {
  background: var(--card);
  border-radius: var(--radius-4xl);
  padding: 2rem;
  border: 1px solid var(--border-half);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--background);
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--foreground);
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--lunia-red);
  box-shadow: 0 0 0 3px rgba(155, 28, 31, 0.1);
}

.form-group textarea {
  min-height: 7rem;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 3rem; }
  .contact-info h2 { font-size: 2.25rem; }
}

/* ========================================================
   12. FOOTER
   ======================================================== */
.footer-cta-box {
  background: var(--lunia-graphite);
  border-radius: var(--radius-4xl);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.footer-cta-box h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-cta-box p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.875rem;
}

.footer-main {
  background: var(--card);
  border-radius: var(--radius-4xl);
  border: 1px solid var(--border-half);
  padding: 2rem;
}

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

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-col a {
  font-size: 0.875rem;
  color: rgba(42, 34, 32, 0.7);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--lunia-red); }

.footer-contact-info {
  font-size: 0.875rem;
  color: rgba(42, 34, 32, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-half);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.footer-bottom-heart {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-bottom-heart svg { color: var(--lunia-red); }

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cta-box { padding: 3rem; }
  .footer-cta-box h3 { font-size: 1.875rem; }
  .footer-bottom { flex-direction: row; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ========================================================
   13. CATALOG PAGE
   ======================================================== */
.catalog-page {
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.catalog-header { margin-bottom: 2rem; }
.catalog-header h1 {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--lunia-graphite);
}
.catalog-header p {
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

/* Filters */
.catalog-filters { margin-bottom: 2rem; }

.catalog-search {
  position: relative;
  margin-bottom: 1rem;
}

.catalog-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: var(--radius);
  border: 1px solid hsla(30, 12%, 86%, 0.6);
  background: var(--card);
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--foreground);
}

.catalog-search input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(155, 28, 31, 0.1);
}

.catalog-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  pointer-events: none;
}

.catalog-search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.catalog-tag {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid var(--border-half);
  background: var(--card);
  color: rgba(42, 34, 32, 0.7);
}

.catalog-tag:hover { background: var(--muted); }

.catalog-tag.active {
  background: var(--lunia-red);
  color: #fff;
  border-color: var(--lunia-red);
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.catalog-sort select {
  font-size: 0.875rem;
  background: transparent;
  border: none;
  color: rgba(42, 34, 32, 0.7);
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
}

.catalog-sort select:focus { outline: none; }

.catalog-count {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .catalog-header h1 { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .catalog-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ========================================================
   14. PRODUCT MODAL
   ======================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42, 34, 32, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 50;
}

.modal-overlay.open { display: block; }

.modal-container {
  display: none;
  position: fixed;
  inset: 1rem;
  z-index: 51;
  overflow-y: auto;
}

.modal-container.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  background: var(--card);
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
  border: 1px solid var(--border-half);
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-image {
  position: relative;
  aspect-ratio: 4 / 3;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover { background: #fff; }

.modal-body {
  padding: 1.5rem;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.modal-tag {
  font-size: 0.625rem;
  font-weight: 500;
  background: var(--lunia-red-light);
  color: var(--lunia-red);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.modal-price-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--lunia-red);
}

.modal-sku {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  background: var(--muted);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

.modal-details {
  padding-top: 1rem;
  border-top: 1px solid var(--border-half);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-detail {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.modal-detail-label { color: var(--muted-foreground); }
.modal-detail-value { font-weight: 500; }

.modal-cta {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  text-align: center;
  background: var(--lunia-red);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s;
}

.modal-cta:hover { background: var(--lunia-red-dark); }

@media (min-width: 640px) {
  .modal-body { padding: 2rem; }
}

/* ========================================================
   15. ANIMATIONS (scroll-triggered via JS)
   ======================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================
   16. WORDPRESS SPECIFIC
   ======================================================== */
.wp-block-image img { border-radius: var(--radius); }
.entry-content p { margin-bottom: 1rem; }
.entry-content h2 { margin: 2rem 0 1rem; }

/* Screen reader text (WP accessibility) */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
