/* ==========================================================
   OBRA Art + Design — theme.css
   ========================================================== */

/* ----------------------------------------------------------
   1. CUSTOM PROPERTIES
   ---------------------------------------------------------- */

:root {
  /* Tokens alineados con Lovable `index.css` (HSL → hex) */
  --color-primary:            #00e1ff;
  --color-background:         #0d0f16;
  --color-foreground:         #e7ebef;
  --color-primary-foreground: #0d0f16;
  --color-secondary:          #1d1f2a;
  --color-muted:              #282a33;
  --color-muted-foreground:   #818c98;
  --color-border:             #282a33;
  --color-card:               #14161f;
  --color-accent:             #477eeb;
  --color-secondary-foreground: #d1d9e0;

  /* Derived / semantic */
  --color-cyan-glow:          hsl(187, 100%, 65%);
  --color-lightning:          hsl(200, 100%, 85%);

  /* Fonts */
  --font-display: 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --header-height:    64px;
  --container-max:    1280px;
  --section-padding:  clamp(4rem, 8vw, 6rem);
  --card-radius:      0.75rem;

  /* Buttons */
  --btn-height:          52px;
  --btn-padding:         0.875rem 2rem;
  --btn-radius:          0.5rem;
  --btn-font-size:       0.9375rem;
  --btn-font-weight:     500;
  --btn-letter-spacing:  0.01em;
  --btn-text-transform:  none;

  /* Logo */
  --logo-height: 60px;

  /* Shadows */
  --shadow-soft:     0 4px 20px -4px hsl(187 100% 50% / 0.08);
  --shadow-elevated: 0 8px 40px -8px hsl(187 100% 50% / 0.2);

  /* Easing */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.25, 0.4, 0.25, 1);
}

/* ----------------------------------------------------------
   2. RESET + BASE
   ---------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* ----------------------------------------------------------
   3. LAYOUT UTILITIES
   ---------------------------------------------------------- */

.container-wide {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 1024px) {
  :root { --header-height: 80px; }
  .container-wide { padding-inline: 2rem; }
}

.scroll-mt-24 { scroll-margin-top: calc(var(--header-height) + 1.5rem); }

.w-full { width: 100%; }

/* ----------------------------------------------------------
   4. TYPOGRAPHY UTILITIES
   ---------------------------------------------------------- */

.text-primary { color: var(--color-primary); }
.text-muted   { color: var(--color-muted-foreground); }

.glow-text {
  text-shadow:
    0 0 20px hsl(187 100% 50% / 0.5),
    0 0 40px hsl(187 100% 50% / 0.3);
}

.gradient-electric {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

/* ----------------------------------------------------------
   5. SITE HEADER
   ---------------------------------------------------------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  transition: background-color 0.3s var(--ease-smooth),
              border-color 0.3s var(--ease-smooth),
              backdrop-filter 0.3s;
  background-color: transparent;
  border-bottom: 1px solid transparent;
}

.site-header.is-solid {
  background-color: hsl(230 25% 7% / 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--color-border);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

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

.site-logo-img {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block;
}

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

.logo-obra {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-foreground);
  line-height: 1;
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  line-height: 1;
}

/* Nav links */
.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; align-items: center; }
}

.theme-nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.theme-nav-list a,
.theme-nav-list button {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--color-foreground);
  opacity: 0.9;
  transition: opacity 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.theme-nav-list a::after,
.theme-nav-list button::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-smooth);
}

.theme-nav-list a:hover,
.theme-nav-list button:hover {
  opacity: 1;
}

.theme-nav-list a:hover::after,
.theme-nav-list button:hover::after {
  transform: scaleX(1);
}

/* Right controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Support button */
.btn-support {
  display: none;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid hsl(187 100% 50% / 0.4);
  color: var(--color-primary);
  transition: background-color 0.2s;
  text-decoration: none;
}

@media (min-width: 640px) {
  .btn-support.nav-support-desktop { display: flex; }
}

.btn-support:hover {
  background-color: hsl(187 100% 50% / 0.1);
}

/* Cart button */
.btn-cart {
  position: relative;
  padding: 0.5rem;
  color: var(--color-foreground);
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-cart:hover { opacity: 0.6; }

.theme-cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border-radius: 50%;
}

.theme-cart-count:empty {
  display: none;
}

/* Mobile toggle */
.btn-mobile-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--color-foreground);
  transition: opacity 0.2s;
}

@media (min-width: 768px) {
  .btn-mobile-menu { display: none; }
}

.btn-mobile-menu:hover { opacity: 0.6; }

/* Mobile menu */
.mobile-menu {
  border-top: 1px solid var(--color-border);
  padding-block: 1rem;
  animation: fadeIn 0.2s var(--ease-smooth);
}

.mobile-menu[hidden] { display: none; }

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.theme-mobile-nav-list {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.theme-mobile-nav-list a,
.theme-mobile-nav-list button {
  display: block;
  padding: 0.625rem 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--color-foreground);
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: color 0.2s;
}

.theme-mobile-nav-list a:hover,
.theme-mobile-nav-list button:hover {
  color: var(--color-muted-foreground);
}

.mobile-support-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-primary);
  margin-top: 0.5rem;
}

/* ----------------------------------------------------------
   6. BUTTONS (GLOBAL)
   ---------------------------------------------------------- */

/* Primario = cyan (variante default de shadcn / Lovable) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-padding);
  min-height: var(--btn-height);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  border-radius: var(--btn-radius);
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s var(--ease-smooth), transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover  { opacity: 0.9; }
.btn-primary:active { transform: scale(0.97); }

/* Alias por si existía referencia en documentación */
.btn-primary-cyan {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-padding);
  min-height: var(--btn-height);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  border: 1px solid var(--color-border);
  border-radius: var(--btn-radius);
  background: transparent;
  color: var(--color-foreground);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline:hover {
  background-color: var(--color-secondary);
  border-color: hsl(230 12% 28%);
}

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

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-padding);
  min-height: var(--btn-height);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  background: transparent;
  color: var(--color-foreground);
  border: none;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  text-decoration: none;
}

.btn-ghost:hover {
  background-color: var(--color-accent);
  color: #ffffff;
}
.btn-ghost:active { transform: scale(0.97); }

/* ----------------------------------------------------------
   7. HERO SECTION
   ---------------------------------------------------------- */

.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-background);
}

/* Grid bg */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(var(--color-primary) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-primary) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.hero-orb--cyan {
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  filter: blur(120px);
  opacity: 0.15;
  top: 10%;
  left: -10%;
  animation: orbCyan 8s ease-in-out infinite;
}

.hero-orb--electric {
  width: 400px;
  height: 400px;
  background: var(--color-accent);
  filter: blur(100px);
  opacity: 0.1;
  bottom: 10%;
  right: -5%;
  animation: orbElectric 10s ease-in-out infinite;
}

@media (min-width: 768px) {
  .hero-orb--cyan    { opacity: 0.2; }
  .hero-orb--electric{ opacity: 0.15; }
}

@keyframes orbCyan {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(30px, -20px); }
}

@keyframes orbElectric {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-20px, 30px); }
}

/* Lightning flashes */
.hero-lightning {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: white;
}

.hero-lightning--1 {
  animation: lightningFlash1 1.6s 0.3s forwards;
  opacity: 1;
}

.hero-lightning--2 {
  opacity: 0;
  animation: lightningFlash2 1s 0.9s forwards;
}

@keyframes lightningFlash1 {
  0%    { opacity: 1; }
  15%   { opacity: 0; }
  25%   { opacity: 0.7; }
  45%   { opacity: 0; }
  55%   { opacity: 0.4; }
  100%  { opacity: 0; }
}

@keyframes lightningFlash2 {
  0%   { opacity: 0; }
  10%  { opacity: 0.6; }
  30%  { opacity: 0; }
  50%  { opacity: 0.3; }
  100% { opacity: 0; }
}

/* Cyan glow after-flash */
.hero-cyan-glow {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, hsl(187 100% 80% / 0.4), transparent 60%);
  animation: cyanGlow 2s 0.8s forwards;
  opacity: 0.8;
}

@keyframes cyanGlow {
  from { opacity: 0.8; }
  to   { opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-block: 5rem;
  will-change: opacity, transform;
}

/* BlurText hero title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.blur-letter {
  display: inline-block;
  animation: blurIn 0.6s var(--ease-spring) both;
}

/* Stagger como BlurText Lovable: delay base 0.4s + 0.07s por carácter */
.blur-letter:nth-child(1) { animation-delay: 0.40s; }
.blur-letter:nth-child(2) { animation-delay: 0.47s; }
.blur-letter:nth-child(3) { animation-delay: 0.54s; }
.blur-letter:nth-child(4) { animation-delay: 0.61s; }
.blur-letter:nth-child(5) { animation-delay: 0.68s; }
.blur-letter:nth-child(6) { animation-delay: 0.75s; }
.blur-letter:nth-child(7) { animation-delay: 0.82s; }
.blur-letter:nth-child(8) { animation-delay: 0.89s; }

@keyframes blurIn {
  from { opacity: 0; filter: blur(12px); transform: translateY(8px); }
  to   { opacity: 1; filter: blur(0);   transform: translateY(0); }
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 2rem;
  animation: fadeSlideUp 0.6s 0.8s var(--ease-spring) both;
}

@media (min-width: 768px) {
  .hero-subtitle { font-size: 1rem; }
}

.hero-cta-wrap {
  display: flex;
  justify-content: center;
  padding-inline: 1rem;
  animation: fadeSlideUp 0.7s 1.1s var(--ease-spring) both;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.5rem;
  min-height: var(--btn-height);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  background-color: var(--color-foreground);
  color: var(--color-background);
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s var(--ease-smooth), transform 0.2s var(--ease-smooth);
  text-decoration: none;
}

.btn-hero:hover  { opacity: 0.9; transform: scale(1.05); }
.btn-hero:active { transform: scale(0.97); }

/* ----------------------------------------------------------
   8. SHOWCASE SECTION
   ---------------------------------------------------------- */

.showcase-section {
  padding-block: var(--section-padding);
}

.showcase-container {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px)  { .showcase-container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .showcase-container { padding-inline: 2rem; } }

/* Top grid */
.showcase-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .showcase-top { grid-template-columns: 1fr 1fr; }
}

.showcase-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.showcase-desc {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--color-muted-foreground);
  max-width: 28rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.showcase-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Images grid */
.showcase-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .showcase-images { grid-template-columns: 1fr 1fr; }
}

.showcase-image-left,
.showcase-image-right {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Services overlay */
.services-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: hsl(210 20% 92% / 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: block;
  color: var(--color-background);
  text-decoration: none;
  transition: background-color 0.2s;
}

.services-overlay:hover {
  background: hsl(210 20% 92% / 0.7);
}

.services-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.services-overlay-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.services-overlay-arrow {
  font-size: 0.75rem;
  opacity: 0.6;
}

.services-list { list-style: none; }

.services-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  margin-bottom: 0.625rem;
}

.services-item:last-child { margin-bottom: 0; }

.services-check {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: hsl(230 25% 7% / 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  line-height: 1.5;
}

/* ----------------------------------------------------------
   9. ABOUT SECTION
   ---------------------------------------------------------- */

.about-section {
  position: relative;
  padding-block: 4rem;
  overflow: hidden;
}

@media (min-width: 768px) { .about-section { padding-block: 6rem; } }

.about-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.about-orb--1 {
  width: 350px;
  height: 350px;
  background: var(--color-primary);
  filter: blur(100px);
  opacity: 0.2;
  top: -5%;
  left: 10%;
  animation: orbCyan 10s ease-in-out infinite;
}

.about-orb--2 {
  width: 250px;
  height: 250px;
  background: hsl(280, 70%, 55%);
  filter: blur(90px);
  opacity: 0.15;
  bottom: 0;
  right: 5%;
  animation: orbElectric 12s ease-in-out infinite;
}

.about-orb--3 {
  width: 200px;
  height: 200px;
  background: hsl(40, 90%, 55%);
  filter: blur(80px);
  opacity: 0.1;
  top: 40%;
  right: 25%;
  animation: orbCyan 9s ease-in-out infinite reverse;
}

.about-inner {
  position: relative;
  z-index: 1;
}

.about-card {
  max-width: 48rem;
  margin-inline: auto;
  background: hsl(230 25% 7% / 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid hsl(210 20% 92% / 0.1);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 1.5rem 4rem -1rem hsl(187 100% 50% / 0.1);
}

@media (min-width: 768px) { .about-card { padding: 3rem; } }

.about-eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  display: block;
  margin-bottom: 0.5rem;
}

.about-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.about-body { color: var(--color-muted-foreground); }

.about-para {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

@media (min-width: 768px) { .about-para:first-child { font-size: 1.0625rem; } }

.about-signature {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-foreground);
  margin-top: 0.5rem;
}

/* ----------------------------------------------------------
   10. SHOP / GALLERY SECTION
   ---------------------------------------------------------- */

.shop-section {
  padding-block: 4rem 5rem;
}

@media (min-width: 768px) { .shop-section { padding-block: 5rem 6rem; } }

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

.shop-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-bottom: 0.5rem;
}

.shop-heading {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 2rem;
}

/* Category filters */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cat-filter-btn {
  padding: 0.625rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  border-radius: 0.5rem;
  background-color: var(--color-secondary);
  color: var(--color-secondary-foreground);
  border: 1px solid hsl(230 12% 18% / 0.4);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.1s;
}

.cat-filter-btn:hover  { background-color: var(--color-muted); }
.cat-filter-btn:active { transform: scale(0.95); }

.cat-filter-btn.is-active {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border-color: var(--color-primary);
}

/* Product grid */
.theme-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2rem;
  align-items: stretch;
}

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

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

.theme-product-card-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Product card */
.theme-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-spring);
}

.theme-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px hsl(187 100% 50% / 0.15);
}

/* Hit-area overlay */
.theme-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
}

.theme-product-card * { pointer-events: none; }

.theme-product-card .theme-card-link,
.theme-product-card .theme-product-card__title-link,
.theme-product-card .theme-product-card__image-link,
.theme-product-card .add_to_cart_button {
  pointer-events: auto;
}

.theme-product-card__image-wrapper {
  position: relative;
  z-index: 2;
  background-color: var(--color-secondary);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 1rem;
}

.theme-product-card__image-link {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.theme-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-spring);
}

.theme-product-card:hover .theme-product-card__img {
  transform: scale(1.08);
}

/* Sold-out badge */
.product-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
}

@media (min-width: 768px) {
  .product-badge { top: 0.75rem; left: 0.75rem; }
}

.product-badge--sold-out {
  background-color: var(--color-foreground);
  color: var(--color-background);
}

/* Hover overlay tint */
.theme-product-card__image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.theme-product-card:hover .theme-product-card__image-wrapper::after {
  opacity: 0.05;
}

/* Card info (z-index por encima del .theme-card-link para stacking claro) */
.theme-product-card__info {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.theme-product-card__name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.theme-product-card__title-link {
  color: var(--color-foreground);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
}

.theme-product-card__title-link:hover,
.theme-product-card:hover .theme-product-card__title-link {
  color: var(--color-primary);
}

.theme-product-card__price {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted-foreground);
}

.theme-product-card__price .woocommerce-Price-amount,
.theme-product-card__price ins { color: var(--color-muted-foreground); }

/* No products message */
.no-products-message {
  text-align: center;
  padding-block: 5rem;
  color: var(--color-muted-foreground);
  font-family: var(--font-body);
  grid-column: 1 / -1;
}

/* Load more */
.load-more-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

/* ----------------------------------------------------------
   11. CONTACT SECTION
   ---------------------------------------------------------- */

.contact-section {
  position: relative;
  overflow: hidden;
}

/* Fondo tipográfico CONTACT — equivalente a ContactSection.tsx (Tailwind en Lovable) */
.contact-bg-word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.contact-bg-word__text {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  user-select: none;
  margin-top: 1.5rem;
  color: color-mix(in srgb, var(--color-foreground) 6%, transparent);
}

@supports not (color: color-mix(in srgb, white 50%, black)) {
  .contact-bg-word__text {
    color: hsl(210 20% 92% / 0.06);
  }
}

@media (min-width: 768px) {
  .contact-bg-word__text {
    font-size: 14rem;
    margin-top: 1rem;
  }
}

@media (min-width: 1024px) {
  .contact-bg-word__text {
    font-size: 18rem;
  }
}

.contact-deco {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.1;
  color: var(--color-primary);
}

.contact-deco-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.contact-inner {
  position: relative;
  z-index: 10;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .contact-inner { padding-top: 10rem; }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 4rem;
  align-items: end;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-copy { display: flex; flex-direction: column; justify-content: flex-end; }

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: hsl(230 20% 10% / 0.5);
  border: 1px solid hsl(230 12% 18% / 0.5);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.contact-pill-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: hsl(187 100% 50% / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.contact-pill-text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.contact-body {
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
  max-width: 22rem;
  line-height: 1.7;
}

/* Misma celda: formulario o mensaje de éxito (como Lovable) */
.contact-form-col {
  display: grid;
  align-items: start;
  min-width: 0;
}

.contact-form-col > .contact-form,
.contact-form-col > .contact-success {
  grid-area: 1 / 1;
}

/* Form — no forzar display:flex sin :not([hidden]): el atributo hidden deja de ocultar */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form[hidden],
#contact-form[hidden] {
  display: none !important;
}

.contact-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: hsl(230 20% 10% / 0.6);
  border: 1px solid hsl(230 12% 18% / 0.4);
  border-radius: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-input::placeholder { color: var(--color-muted-foreground); }

.contact-input:focus {
  border-color: hsl(187 100% 50% / 0.4);
  box-shadow: 0 0 0 3px hsl(187 100% 50% / 0.1);
}

.contact-textarea { resize: none; }

.btn-contact-submit {
  width: 100%;
  padding-block: 1rem;
  font-size: 1rem;
  border-radius: 0.75rem;
  justify-content: center;
  gap: 0.5rem;
}

/* Success state — mismo hueco que el form (Lovable); oculto mientras [hidden] */
.contact-success {
  display: none;
  height: 100%;
  min-height: 12rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 2.5rem;
}

.contact-success:not([hidden]) {
  display: flex;
}

.contact-success-icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--color-primary);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-foreground);
  margin-bottom: 1.5rem;
}

.contact-success-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-success-body {
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
}

/* ----------------------------------------------------------
   12. FOOTER
   ---------------------------------------------------------- */

.site-footer {
  position: relative;
  background-color: var(--color-background);
  border-top: 1px solid var(--color-border);
}

/* Mismo relleno vertical del contenedor que Lovable Footer: py-12 lg:py-16 */
.site-footer .container-wide {
  padding-bottom: 3rem;
}

@media (min-width: 1024px) {
  .site-footer .container-wide {
    padding-bottom: 4rem;
  }
}

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

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); padding-block: 4rem; }
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  max-width: 22rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.footer-col-heading {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Footer nav grid */
.footer-nav-grid,
.theme-footer-nav-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  list-style: none;
}

.footer-nav-grid a,
.footer-nav-grid button,
.theme-footer-nav-list a,
.theme-footer-nav-list button {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav-grid a:hover,
.footer-nav-grid button:hover,
.theme-footer-nav-list a:hover,
.theme-footer-nav-list button:hover {
  color: var(--color-foreground);
}

.footer-contact-list {
  list-style: none;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

.footer-email {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.footer-email:hover { color: var(--color-foreground); }

/* Barra inferior: Lovable usa mt-10 pt-6 gap-4 (flex col sm:row) */
.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-copyright,
.footer-credit {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}

.footer-credit:hover { color: var(--color-foreground); }

/* ----------------------------------------------------------
   13. PAGE.PHP / INNER PAGES
   ---------------------------------------------------------- */

.site-main.page-main {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  min-height: 80svh;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
}

.entry-content {
  font-family: var(--font-body);
  line-height: 1.7;
}

/* ----------------------------------------------------------
   14. 404 PAGE
   ---------------------------------------------------------- */

.not-found-container {
  min-height: 80svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.not-found-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.not-found-heading {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--color-muted-foreground);
  margin-bottom: 2rem;
}

/* ----------------------------------------------------------
   15. WOOCOMMERCE — SINGLE PRODUCT PAGE
   ---------------------------------------------------------- */

.single-product .site-main {
  padding-top: calc(var(--header-height) + 1.5rem);
  padding-bottom: 5rem;
}

.single-product .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.single-product .back-link:hover { color: var(--color-foreground); }

.theme-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 4rem;
  padding-bottom: 5rem;
  min-width: 0;
}

@media (min-width: 1024px) {
  .theme-product-layout { grid-template-columns: 1fr 1fr; }
}

/* Gallery */
.theme-product-gallery { min-width: 0; max-width: 100%; }

.theme-product-main-image-wrapper {
  position: relative;
  background-color: var(--color-secondary);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  margin-bottom: 1rem;
}

.theme-product-main-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.theme-product-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.thumb-btn {
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
  background: none;
  padding: 0;
}

.thumb-btn:hover    { opacity: 1; }
.thumb-btn.is-active {
  border-color: var(--color-primary);
  opacity: 1;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Product info */
.theme-product-info {
  min-width: 0;
  max-width: 100%;
  padding-block: 0;
}

@media (min-width: 1024px) { .theme-product-info { padding-top: 2.5rem; } }

.product-category-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  display: block;
  margin-bottom: 0.5rem;
}

.product-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Precio hero — alineado con Lovable: text-2xl font-semibold text-primary mb-6 */
.product-price-display {
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.product-price-display .woocommerce-Price-amount,
.product-price-display ins { color: var(--color-primary); }

.product-price-display del {
  color: var(--color-muted-foreground);
  font-size: 1rem;
  font-weight: 500;
  margin-right: 0.35rem;
}

/* Texto solo lectores de pantalla en rangos WC (no debe verse en pantalla) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* Precio duplicado bajo el formulario: el precio activo vive en .product-price-display */
.single-product-main .single_variation_wrap .woocommerce-variation-price {
  display: none !important;
}

/* Stock en ficha (Lovable no lo muestra en cabecera) */
.single-product-main p.stock,
.single-product-main .woocommerce-variation-availability {
  display: none !important;
}

.product-description {
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
  line-height: 1.75;
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Attribute selectors */
.theme-attr-section {
  margin-bottom: 1.5rem;
}

.theme-attr-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}

.theme-attr-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.theme-attr-option {
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  background: none;
  color: var(--color-foreground);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.theme-attr-option:hover { border-color: hsl(187 100% 50% / 0.5); }

.theme-attr-option.is-selected {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border-color: var(--color-primary);
}

/* WooCommerce variations table — stack label above select */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
  display: block;
  width: 100%;
}

.single-product .variations tbody td.label { padding-bottom: 0.25rem; }
.single-product .variations tbody td.value { padding-top: 0; }

.theme-attr-select-hidden { display: none !important; }

/* Quantity + Add to cart */
.theme-add-to-cart-area {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.single-product .theme-add-to-cart-area { flex-wrap: wrap; gap: 0.75rem; }

.single-product .single_add_to_cart_button {
  flex: 1 1 auto;
  min-width: 160px;
  overflow-wrap: break-word;
}

.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Quantity wrapper */
.theme-quantity-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
}

.theme-qty-minus,
.theme-qty-plus {
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: var(--color-foreground);
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-qty-minus:hover,
.theme-qty-plus:hover { background-color: var(--color-secondary); }

.theme-qty-input {
  width: 3rem;
  padding: 0.75rem 0.25rem;
  text-align: center;
  background: none;
  border: none;
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  -moz-appearance: textfield;
}

.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Product details section */
.product-details-section {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  margin-top: 0.5rem;
}

.product-details-heading {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Lista Details — equivalente a ul.space-y-2 (gap 0.5rem) */
.product-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--color-muted-foreground);
  margin: 0;
}

.product-detail-text {
  flex: 1;
  min-width: 0;
}

.product-detail-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.45rem;
}

/* Related products */
.related-products-section {
  padding-top: 5rem;
  border-top: 1px solid var(--color-border);
}

.related-heading {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
}

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

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

/* ----------------------------------------------------------
   16. WOOCOMMERCE — ADD TO CART BUTTON OVERRIDES
   ---------------------------------------------------------- */

.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-foreground) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  text-transform: var(--btn-text-transform) !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
  text-decoration: none !important;
}

.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.9 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-primary-foreground) !important;
}

/* Disabled state */
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}

.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
  opacity: 0.4 !important;
  background-color: var(--color-primary) !important;
}

/* Hide "View cart" link after AJAX add */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward {
  display: none !important;
}

/* ----------------------------------------------------------
   17. WOOCOMMERCE — CART DRAWER
   ---------------------------------------------------------- */

#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background: hsl(210 20% 92% / 0.2);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-smooth);
}

body.cart-open #theme-cart-overlay {
  opacity: 1;
  pointer-events: auto;
}

#theme-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background-color: var(--color-background);
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-elevated);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-spring);
}

body.cart-open #theme-cart-drawer {
  transform: translateX(0);
}

#theme-cart-drawer.is-updating {
  opacity: 0.6;
  pointer-events: none;
}

/* Drawer header */
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.cart-drawer-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.cart-drawer-close {
  padding: 0.25rem;
  color: var(--color-foreground);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.cart-drawer-close:hover { opacity: 1; }

/* Empty state */
.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.cart-empty-icon {
  color: var(--color-muted-foreground);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.cart-empty-text {
  color: var(--color-muted-foreground);
  font-family: var(--font-body);
  margin-bottom: 1.5rem;
}

.btn-continue-shopping {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
}

.btn-continue-shopping:hover { background-color: var(--color-secondary); }

/* Items */
.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
}

.cart-item-image {
  width: 5rem;
  height: 6rem;
  background-color: var(--color-secondary);
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
  display: block;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  color: var(--color-foreground);
  margin-bottom: 0.125rem;
  transition: opacity 0.2s;
}

.cart-item-name:hover { opacity: 0.7; }

.cart-item-price {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-bottom: 0.75rem;
}

.cart-item-meta {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  margin-bottom: 0.25rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-qty-btn {
  padding: 0.25rem;
  color: var(--color-foreground);
  transition: background-color 0.2s;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-btn:hover { background-color: var(--color-secondary); }

.cart-qty-display {
  font-family: var(--font-body);
  font-size: 0.875rem;
  width: 1.5rem;
  text-align: center;
}

.cart-item-remove {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  transition: color 0.2s;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
}

.cart-item-remove:hover { color: var(--color-foreground); }

/* Footer */
.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
}

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

.cart-shipping-note {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}

.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.875rem;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-checkout:hover { opacity: 0.9; }

/* ----------------------------------------------------------
   18. WOOCOMMERCE — NOTICES
   ---------------------------------------------------------- */

/* Only hide on single product — drawer provides feedback */
.single-product .woocommerce-message,
.single-product .woocommerce-info {
  display: none;
}

#theme-cart-drawer .woocommerce-message { display: none; }

/* Style notices on archive/checkout */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  font-family: var(--font-body);
  padding: 0.875rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--color-primary);
  background-color: var(--color-card);
}

/* ----------------------------------------------------------
   19. WOOCOMMERCE — SHOP ARCHIVE
   ---------------------------------------------------------- */

.woocommerce-page .site-main,
body.woocommerce .site-main {
  padding-top: calc(var(--header-height) + 1.5rem);
  padding-bottom: 4rem;
  min-height: 80svh;
}

/* ----------------------------------------------------------
   20. WOOCOMMERCE — CHECKOUT (NATIVE BLOCK)
   ---------------------------------------------------------- */

body.woocommerce-checkout .site-main {
  padding-top: var(--header-height);
  padding-bottom: 4rem;
}

body.woocommerce-checkout .entry-content {
  max-width: 100%;
}

body.woocommerce-checkout .wc-block-checkout {
  display: block;
}

@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
  }
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0;
  width: 100%;
  max-width: none;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-card);
  border-radius: var(--card-radius);
  padding: 1.5rem;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  color: var(--color-foreground) !important;
  border-color: var(--color-border) !important;
  background-color: var(--color-background) !important;
  border-radius: 0.5rem !important;
  width: 100% !important;
  max-width: none !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  outline: none !important;
  border-color: hsl(187 100% 50% / 0.5) !important;
  box-shadow: 0 0 0 3px hsl(187 100% 50% / 0.1) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-foreground) !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  min-height: var(--btn-height) !important;
}

body.woocommerce-checkout .page-title {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

/* ----------------------------------------------------------
   21. THANK YOU PAGE
   ---------------------------------------------------------- */

body.theme-thankyou-page .woocommerce-order {
  font-family: var(--font-body);
}

body.theme-thankyou-page .woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  background-color: var(--color-card);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; }

body.theme-thankyou-page h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding-bottom: 1rem;
}

body.theme-thankyou-page .woocommerce-order-details table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.875rem;
}

body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }

body.theme-thankyou-page .woocommerce-customer-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

body.theme-thankyou-page .woocommerce-customer-details address {
  max-width: 480px;
  overflow-wrap: break-word;
  font-style: normal;
  font-size: 0.875rem;
}

body.theme-thankyou-page { overflow-x: hidden; }

/* ----------------------------------------------------------
   22. BUTTON LOCK (ADD TO CART AJAX)
   ---------------------------------------------------------- */

.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* ----------------------------------------------------------
   23. ANIMATIONS (REVEAL + FADE)
   ---------------------------------------------------------- */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.js-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
}

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

/* Stagger delays */
.js-reveal[data-delay="0"] { transition-delay: 0s; }
.js-reveal[data-delay="1"] { transition-delay: 0.12s; }
.js-reveal[data-delay="2"] { transition-delay: 0.24s; }
.js-reveal[data-delay="3"] { transition-delay: 0.36s; }
.js-reveal[data-delay="4"] { transition-delay: 0.48s; }
.js-reveal[data-delay="5"] { transition-delay: 0.60s; }
.js-reveal[data-delay="6"] { transition-delay: 0.72s; }
.js-reveal[data-delay="7"] { transition-delay: 0.84s; }

/* ----------------------------------------------------------
   24. RESPONSIVE UTILITIES
   ---------------------------------------------------------- */

@media (max-width: 767px) {
  .theme-product-thumbnails { grid-template-columns: repeat(4, 1fr); }
}
