/*
Theme Name: Lamperia24 Memphis
Description: Custom WooCommerce theme for Lamperia24 Memphis Edition 3D-printed lamps
Version: 1.0
Author: Lamperia24
Text Domain: lamperia24
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;600;700&family=Inter:wght@400;600&display=swap');

/* Base styles */
html, body { 
  scroll-behavior: smooth; 
  font-family: 'Inter', ui-sans-serif, system-ui;
}

.font-display {
  font-family: 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui;
}

/* Custom Memphis pattern backgrounds */
.memphis-dots {
  background-image: radial-gradient(circle at 25% 25%, currentColor 2px, transparent 2px),
                    radial-gradient(circle at 75% 75%, currentColor 2px, transparent 2px);
  background-size: 20px 20px;
}

.memphis-stripe {
  background-image: repeating-linear-gradient(45deg, currentColor 0px, currentColor 2px, transparent 2px, transparent 12px);
}

.memphis-grid {
  background-image: linear-gradient(currentColor 1px, transparent 1px),
                    linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 20px 20px;
}

.shape { filter: drop-shadow(6px 6px 0 #0b0b0b); }
.btn-pop { 
  box-shadow: 6px 6px 0 0 #0b0b0b; 
  transition: transform .15s ease; 
}
.btn-pop:active { 
  transform: translate(2px,2px); 
  box-shadow: 4px 4px 0 0 #0b0b0b; 
}

/* Aurora Product Page Styles */
.swatch { 
  height: 24px; 
  width: 24px; 
  border-radius: 9999px; 
  border: 2px solid #0b0b0b; 
  display: inline-block; 
  cursor: pointer; 
  transition: all 0.15s ease;
}

.single-product .swatch[aria-checked="true"] { 
  outline: 3px solid rgba(58,134,255,.35); 
  outline-offset: 2px; 
}

.gallery-main { 
  position: relative; 
}

.tint { 
  position: absolute; 
  inset: 0; 
  mix-blend-mode: multiply; 
  opacity: 0; 
  transition: opacity .25s ease; 
  border-radius: inherit; 
}

.thumb { 
  border: 2px solid #0b0b0b; 
  border-radius: 14px; 
  overflow: hidden; 
  cursor: pointer; 
  transition: all 0.15s ease;
}

.thumb[aria-current="true"] { 
  outline: 3px solid rgba(58,134,255,.35); 
  outline-offset: 2px; 
}

.hero-shape { 
  filter: drop-shadow(6px 6px 0 #0b0b0b); 
}

.floating { 
  animation: float 8s ease-in-out infinite; 
}

@keyframes float { 
  0%, 100% { transform: translateY(0) } 
  50% { transform: translateY(-10px) } 
}

.tag { 
  border: 2px solid #0b0b0b; 
  border-radius: 999px; 
  padding: 4px 10px; 
  font-weight: 700; 
  background: #ffd100; 
  box-shadow: 6px 6px 0 0 #0b0b0b; 
  font-size: 12px;
}

.accordion-btn[aria-expanded="true"] .chev { 
  transform: rotate(180deg); 
}

.chip { 
  display: inline-flex; 
  align-items: center; 
  gap: .25rem; 
  cursor: pointer; 
  user-select: none; 
  border: 2px solid #0b0b0b; 
  border-radius: 9999px; 
  padding: .4rem .8rem; 
  font-weight: 700; 
  background: #ffffff; 
  box-shadow: none; 
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease; 
}

.chip[aria-pressed="true"] { 
  background: #ffd100; 
  box-shadow: 6px 6px 0 0 #0b0b0b; 
}

.chip:active { 
  transform: translate(2px,2px); 
  box-shadow: 4px 4px 0 0 #0b0b0b; 
}

.chip:focus-visible { 
  outline: 3px solid rgba(58,134,255,.35); 
  outline-offset: 2px; 
}

.isolate { 
  isolation: isolate; 
}

@media (prefers-reduced-motion: no-preference) {
  .memphis-dots, .memphis-stripe, .memphis-grid { 
    animation: pattern-pan 14s linear infinite; 
  }
}

@keyframes pattern-pan { 
  to { background-position: 120px 0, 0 120px; } 
}

/* Reveal on scroll */
.reveal { 
  opacity: 0; 
  transform: translateY(10px); 
}
.reveal.is-visible { 
  opacity: 1; 
  transform: translateY(0); 
  transition: opacity .6s ease, transform .6s ease; 
}

/* Mobile menu animation */
#mobile-menu {
  transition: transform 0.3s ease-in-out;
}

/* Prevent initial animation on page load */
.no-transitions * {
  transition: none !important;
  animation: none !important;
}

#mobile-menu.open {
  transform: translateX(0) !important;
}

/* Floating decorative shapes */
@media (prefers-reduced-motion: no-preference) {
  .float-slow { animation: float 6s ease-in-out infinite; }
  .float-slower { animation: float 9s ease-in-out infinite; }
}
@keyframes float { 
  0%, 100% { transform: translateY(0) } 
  50% { transform: translateY(-10px) } 
}

/* Click pulse for swatches */
.pulse { animation: pulse .35s ease-out; }
@keyframes pulse { 
  0% { transform: scale(1) } 
  50% { transform: scale(1.15) } 
  100% { transform: scale(1) } 
}

/* Dialog entrance */
dialog[open] { display: block; animation: dialog-in .18s ease; }
@keyframes dialog-in { 
  from { opacity: 0; transform: scale(.98) } 
  to { opacity: 1; transform: scale(1) } 
}
dialog::backdrop { 
  background: rgba(0,0,0,.25); 
  animation: fade-in .18s ease; 
}
@keyframes fade-in { 
  from { opacity: 0 } 
  to { opacity: 1 } 
}

/* Images & interactions */
.img-slot { 
  display:block; 
  width:100%; 
  height:100%; 
  object-fit:cover; 
  border-radius:inherit; 
  transition: transform .6s ease, opacity .3s ease; 
}
.group:hover .img-slot { transform: scale(1.02); }
.hover-wobble:hover { animation: wobble .5s ease; }
@keyframes wobble { 
  0%{transform:translateY(0)} 
  33%{transform:translateY(-2px) rotate(-.5deg)} 
  66%{transform:translateY(1px) rotate(.5deg)} 
  100%{transform:translateY(0)} 
}

.ripple-wrap { position: relative; overflow: hidden; }
.ripple { 
  position:absolute; 
  border-radius:9999px; 
  pointer-events:none; 
  width:20px; 
  height:20px; 
  background: rgba(0,0,0,.15); 
  transform: translate(-50%,-50%) scale(0); 
  animation:ripple .5s ease-out; 
}
@keyframes ripple { 
  to { transform: translate(-50%,-50%) scale(10); opacity:0 } 
}

.swatch { 
  height: 22px; 
  width: 22px; 
  border-radius: 9999px; 
  border: 2px solid #0b0b0b; 
  background: var(--c); 
  display: inline-block; 
}

/* Consistent swatch size for product cards (home + catalog) */
.product-card .swatch {
  height: 18px;
  width: 18px;
  min-height: 18px;
  min-width: 18px;
  border-radius: 9999px;
  border: 2px solid #0b0b0b;
  -webkit-tap-highlight-color: transparent;
  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  animation: none !important;
}

/* Unified active state for product card swatches (yellow rim) */
.product-card .swatch.active,
.product-card .swatch[aria-checked="true"] {
  outline: none !important;
  box-shadow: none !important;
  border-color: #ffd100;
  border-width: 3px;
}

/* Remove iOS/Safari blue focus rings on product-card swatches */
.product-card .swatch:focus,
.product-card .swatch:focus-visible,
.product-card .swatch:active {
  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  animation: none !important;
}

/* Mobile Navigation Styles */
.mobile-menu-open {
  overflow: hidden;
}

#mobile-menu.open {
  transform: translateX(0);
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
    line-height: 1.1;
  }
  
  .hero .btn-pop {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  
  .product-grid {
    gap: 1rem;
  }
  
  .custom-form .grid {
    grid-template-columns: 1fr;
  }
  
  .color-chip {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Mobile hero simplification (mobile-only) */
@media (max-width: 768px) {
  /* Show decorations but make them subtle */
  #hero .shape,
  #hero .memphis-dots {
    display: block !important;
    opacity: 0.18 !important;
    filter: saturate(110%);
    pointer-events: none;
  }
  /* Any remaining absolute layers: keep, but very faint */
  #hero > .absolute { opacity: 0.12 !important; pointer-events: none; }

  /* Tighter spacing for hero container */
  #hero > .mx-auto {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  /* Soften card styling for the media block */
  #hero #hero-media {
    border-width: 3px;
    border-radius: 1.25rem;
    box-shadow: 4px 4px 0 0 #0b0b0b;
  }
  #hero #hero-media .grid {
    gap: 0.5rem;
    padding: 0.5rem;
  }

  /* Slightly reduce internal gaps */
  #hero .grid {
    gap: 1.25rem;
  }

  /* Avoid reveal pop-in on small screens */
  #hero .reveal {
    opacity: 1;
    transform: none;
    transition: none !important;
  }

  /* Light overlay to calm background while keeping image vivid */
  #hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,.85) 0%, rgba(255,255,255,.6) 42%, rgba(255,255,255,0) 75%);
    pointer-events: none;
    z-index: 2;
  }

  /* Improve text readability: glassy white card */
  #hero .hero-intro {
    position: relative;
    z-index: 3;
    background: rgba(255,255,255,.9);
    -webkit-backdrop-filter: saturate(110%) blur(6px);
    backdrop-filter: saturate(110%) blur(6px);
    border: 2.5px solid #0b0b0b;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 4px 4px 0 0 #0b0b0b;
  }

  /* Headline refinements */
  #hero .hero-intro h1 {
    line-height: 1.2;
    font-size: 1.9rem;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 0 rgba(255,255,255,.7);
  }

  /* Kill local animations/transforms within hero intro */
  #hero .hero-intro *,
  #hero .hero-intro *::before,
  #hero .hero-intro *::after {
    animation: none !important;
    transition: none !important;
  }

  /* Gentle motion to keep it lively */
  #hero .float-slow { animation-duration: 9s !important; }
  #hero .float-slower { animation-duration: 12s !important; }
  #hero .memphis-dots,
  #hero .memphis-grid,
  #hero .memphis-stripe { animation-duration: 18s !important; }

  /* Slight line-height bump for readability */
  #hero .hero-intro h1 { line-height: 1.2; }

  /* Neutralize rotated highlight for crisper reading */
  #hero .hero-intro .rotate-2 {
    transform: none !important;
  }

  /* Softer yellow highlight chip (not rotated) */
  #hero .hero-intro .bg-lemon {
    background: rgba(255,209,0,.92) !important;
    box-shadow: 0 2px 0 rgba(0,0,0,.08);
    border-radius: .35em !important;
    padding: .05em .25em !important;
    border-bottom: none !important;
  }

  /* Subhead readability */
  #hero .hero-intro p {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: rgba(15,23,42,.82);
  }
}

/* Touch-friendly buttons on mobile */
@media (max-width: 768px) {
  .btn-pop {
    min-height: 44px;
    min-width: 44px;
  }
  
  .color-swatch {
    min-height: 32px;
    min-width: 32px;
  }
  
  .filter-btn {
    padding: 0.75rem 1rem;
  }
}

/* Filter Section Base Styles */
.filter-section {
  background: #fef7ed;
  border: 2px solid #0b0b0b;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 4px 4px 0 0 #0b0b0b;
  transition: all 0.15s ease;
}

.filter-section:hover {
  box-shadow: 6px 6px 0 0 #0b0b0b;
}

/* Desktop filter buttons enhanced */
.filter-btn {
  transition: all 0.15s ease;
  box-shadow: 2px 2px 0 0 #0b0b0b;
}

.filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 3px 3px 0 0 #0b0b0b;
}

.filter-btn:active {
  transform: translateY(0);
  box-shadow: 1px 1px 0 0 #0b0b0b;
}

/* Shop Page Mobile Optimization */
@media (max-width: 768px) {
  /* Shop header mobile styling */
  .woocommerce-products-header {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .woocommerce-products-header__title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  /* Filter section on mobile - removed sticky */
  .shop-filters-container {
    position: static;
    background: transparent;
    padding-top: 0;
    margin-top: 0;
  }
  
  /* Filter section styling */
  .filter-section {
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 3px 3px 0 0 #0b0b0b;
  }
  
  .filter-section .flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .shop-description {
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 1rem;
  }
  
  /* Mobile filter dropdown */
  .mobile-filter-dropdown {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #0b0b0b;
    border-radius: 0.75rem;
    background: #ffd100;
    font-weight: 600;
    font-size: 0.875rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: 2.5rem;
    box-shadow: 4px 4px 0 0 #0b0b0b;
    transition: all 0.15s ease;
  }
  
  .mobile-filter-dropdown:focus {
    outline: 3px solid rgba(58,134,255,.35);
    outline-offset: 2px;
  }
  
  .mobile-filter-dropdown:active {
    transform: translate(1px, 1px);
    box-shadow: 3px 3px 0 0 #0b0b0b;
  }
  
  /* Hide desktop filters on mobile */
  .desktop-filters {
    display: none;
  }
  
  /* Product grid mobile layout */
  #productGrid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Product card mobile optimization */
  .product-card {
    border-radius: 1rem;
    box-shadow: 4px 4px 0 0 #0b0b0b;
  }
  
  .product-card .aspect-\[4\/3\] {
    aspect-ratio: 3/2;
  }
  
  .product-card h3 {
    font-size: 1.125rem;
    line-height: 1.3;
  }
  
  .product-card p {
    font-size: 0.75rem;
    margin-top: 0.25rem;
  }
  
  /* Mobile color swatches */
  .card-colors {
    margin-top: 0.75rem;
  }
  
  .card-colors .flex {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  /* Force a single row for swatch groups on product cards (home + catalog) */
  .product-card .card-colors > .flex {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.2rem !important; /* tighter, match catalog more closely */
    padding-right: 8px; /* prevent last item cut-off */
    padding-left: 2px;
    scroll-padding-right: 8px;
  }
  /* Also prevent wrapping inside each swatch group so the +N chip stays inline */
  .product-card .card-colors > .flex > .flex {
    flex-wrap: nowrap !important;
    flex-shrink: 0;
    min-width: max-content; /* keep contents on a single line */
    gap: 0.2rem !important; /* tighter spacing inside group */
  }
  /* Ensure the +N chip itself never wraps and stays inline */
  .product-card .card-colors button[data-color-overflow-toggle] {
    flex: 0 0 auto;
    white-space: nowrap;
    display: inline-flex;
    padding: 0.125rem 0.375rem !important; /* compact chip */
    gap: 0.125rem; /* tighten internals */
  }
  /* Make labels and swatches non-shrinking so layout stays consistent */
  .product-card .card-colors span.text-ink\/60 { /* "Base:" and "Shade:" labels */
    flex: 0 0 auto;
  }
  .product-card .card-colors .swatch {
    flex: 0 0 auto;
  }
  /* Belt-and-suspenders: keep each group strictly one line */
  .product-card .card-colors .flex.items-center.gap-1 {
    white-space: nowrap !important;
  }
  .product-card .card-colors .flex.items-center.gap-1 > * {
    flex: 0 0 auto !important;
  }
  
  .product-card .card-colors .swatch {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
  }
  
  .card-colors .text-xs {
    font-size: 0.625rem;
  }
  
  /* Mobile action buttons */
  .product-card .mt-4 {
    margin-top: 0.75rem;
  }
  
  .product-card .btn-pop {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 0.5rem;
  }
  
  /* Mobile price and lead time */
  .product-card .mt-2 {
    margin-top: 0.5rem;
  }
  
  .product-card .text-lg {
    font-size: 1rem;
  }
  
  .product-card .text-xs {
    font-size: 0.625rem;
  }
}

/* Tablet responsive (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  #productGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .product-card h3 {
    font-size: 1rem;
  }
  
  .product-card .btn-pop {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* Small mobile (max 480px) */
@media (max-width: 480px) {
  .mx-auto.max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .woocommerce-products-header__title {
    font-size: 1.75rem;
  }
  
  .shop-description {
    font-size: 0.8125rem;
  }
  
  .product-card {
    border-width: 3px;
    box-shadow: 3px 3px 0 0 #0b0b0b;
  }
  
  .product-card .p-4 {
    padding: 0.75rem;
  }

  /* Extra-small hero refinements */
  #hero > .mx-auto {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  #hero h1 {
    font-size: 1.75rem;
    line-height: 1.15;
  }
  #hero .btn-pop {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 0.625rem;
  }
  #hero .hero-intro {
    padding: 0.75rem;
    border-width: 2px;
    box-shadow: 3px 3px 0 0 #0b0b0b;
  }

  /* Keep media on very small screens but let text lead */
  #hero #hero-media { display: block; opacity: .98; }
  #hero .grid { gap: 1rem; }
  #hero .hero-intro h1 {
    font-size: 1.6rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }

  /* Balanced overlay on very small screens */
  #hero::before {
    background: linear-gradient(to bottom, rgba(255,255,255,.9) 0%, rgba(255,255,255,.7) 45%, rgba(255,255,255,0) 85%);
  }
}

/* Essential layout utilities */
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-7xl { max-width: 80rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.p-5 { padding: 1.25rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.grid { display: grid; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-3 { gap: 0.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.leading-\[1\.05\] { line-height: 1.05; }
.rounded { border-radius: 0.25rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.border-y-4 { border-top-width: 4px; border-bottom-width: 4px; }
.border-ash { border-color: #0b0b0b; }
.bg-white { background-color: #ffffff; }
.bg-lemon { background-color: #ffd100; }
.bg-electric { background-color: #3a86ff; }
.bg-ink { background-color: #0f172a; }
.bg-mint { background-color: #00f5d4; }
.bg-hotpink { background-color: #ff3ea5; }
.bg-cream { background-color: #fef7ed; }
.text-white { color: #ffffff; }
.text-ink { color: #0f172a; }
.text-ink\/60 { color: rgba(15, 23, 42, 0.6); }
.text-ink\/70 { color: rgba(15, 23, 42, 0.7); }
.inline-flex { display: inline-flex; }
.w-64 { width: 16rem; }
.h-64 { height: 16rem; }
.w-80 { width: 20rem; }
.h-80 { height: 20rem; }
.w-full { width: 100%; }
.h-72 { height: 18rem; }
.rounded-\[2rem\] { border-radius: 2rem; }
.rounded-full { border-radius: 9999px; }
.absolute { position: absolute; }
.relative { position: relative; }
.top-40 { top: 10rem; }
.left-40 { left: 10rem; }
.overflow-hidden { overflow: hidden; }
.-top-10 { top: -2.5rem; }
.-left-12 { left: -3rem; }
.-bottom-16 { bottom: -4rem; }
.-right-16 { right: -4rem; }
.border-2 { border-width: 2px; }
.font-semibold { font-weight: 600; }

/* Minimal utility classes used by global footer modals */
.hidden { display: none !important; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }
.transition-transform { transition: transform 0.3s ease; }
.duration-300 { transition-duration: 300ms; }
.scale-95 { transform: scale(0.95); }
.scale-100 { transform: scale(1); }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.max-w-md { max-width: 28rem; }
.text-ash { color: #0b0b0b; }

/* Responsive display utilities */
@media (min-width: 640px) {
  .sm\:inline { display: inline !important; }
  .sm\:inline-block { display: inline-block !important; }
  .sm\:block { display: block !important; }
  .sm\:flex { display: flex !important; }
  .sm\:hidden { display: none !important; }
}

@media (min-width: 768px) {
  /* Ensure hidden default can be overridden on md and up */
  .md\:flex { display: flex !important; }
  .md\:block { display: block !important; }
  .md\:inline { display: inline !important; }
  .md\:inline-block { display: inline-block !important; }
  .md\:grid { display: grid !important; }
  .md\:hidden { display: none !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .md\:p-8 { padding: 2rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:pl-2 { padding-left: 0.5rem; }
}

/* About page specific styles */
.pill { 
  border: 2px solid #0b0b0b; 
  border-radius: 9999px; 
  padding: .25rem .6rem; 
  font-weight: 700; 
  background: #fff; 
  display: inline-block;
}

.stat { 
  font-variant-numeric: tabular-nums; 
}

.timeline:before { 
  content: ''; 
  position: absolute; 
  left: 22px; 
  top: 0; 
  bottom: 0; 
  width: 4px; 
  background: #0b0b0b; 
  border-radius: 4px; 
}

.year-dot { 
  display: none;
}

.card { 
  border: 4px solid #0b0b0b; 
  border-radius: 1.25rem; 
  background: #fff; 
  box-shadow: 6px 6px 0 0 #0b0b0b; 
}

@media (prefers-reduced-motion: no-preference) {
  .float { 
    animation: float 8s ease-in-out infinite; 
  }
}

/* Mobile-only color availability plaque */
.mobile-color-plaque {
  display: none;
}

@media (max-width: 768px) {
  .mobile-color-plaque {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .6rem;
    border: 2px solid #0b0b0b;
    border-radius: 9999px;
    color: #0b0b0b;
    background: linear-gradient(135deg, #ff3ea5 0%, #ffd100 50%, #3a86ff 100%);
    box-shadow: 4px 4px 0 0 #0b0b0b;
    font-weight: 700;
    pointer-events: none; /* ensure plaque doesn't block taps */
  }
  /* Hide color swatches + labels on mobile when plaque is shown */
  .mobile-hide-swatches { display: none !important; }
}

/* Subtle plaque animation only on mobile and when reduced motion is off */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  @keyframes plaque-breathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-1px) scale(1.015); }
  }
  .mobile-color-plaque {
    animation: plaque-breathe 3.6s ease-in-out infinite;
    will-change: transform;
  }
}
