/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  gap: var(--space-sm);
}

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

.btn--primary:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-bg-alt);
}

.btn--secondary:hover {
  background-color: var(--color-bg);
  border-color: var(--color-accent);
}

.btn--full {
  width: 100%;
}
/* ========================================
   NAVIGATION
   Modern, accessible, and performant navbar
   ======================================== */

/* Base Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-lg);
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Use pseudo-element for backdrop to avoid breaking child positioning */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(244, 241, 236, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
  padding: var(--space-md) var(--space-lg);
}

.nav.scrolled::before {
  opacity: 1;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.nav__logo:hover {
  opacity: 0.8;
}

.nav__logo:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav__logo-icon {
  height: 42px;
  width: auto;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1;
}

/* Desktop Links */
.nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  position: relative;
  padding: var(--space-sm) 0;
  font-size: 0.9375rem;
  color: var(--color-text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav__link:hover {
  color: var(--color-text);
}

.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
  color: var(--color-text);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-toggle:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.lang-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.lang-toggle:active {
  transform: translateY(0);
}

.lang-flag {
  font-size: 1.125rem;
  line-height: 1;
}

.lang-flag--en {
  display: none;
}

[data-lang="en"] .lang-flag--fr {
  display: none;
}

[data-lang="en"] .lang-flag--en {
  display: inline;
}

.lang-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
}

/* Mobile Menu Button */
.nav__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.nav__menu-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.nav__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger animation */
.nav__menu-btn.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__menu-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.nav__menu-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu - Dropdown style */
.mobile-menu {
  position: absolute;
  top: 100%;
  right: var(--space-md);
  min-width: 200px;
  background: var(--color-white);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 99;
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, 
              visibility 0.2s ease, 
              transform 0.2s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu__link {
  display: block;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--color-text);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-menu__link:hover,
.mobile-menu__link:focus-visible {
  background: var(--color-bg);
  color: var(--color-accent);
}

.mobile-menu__link:focus-visible {
  outline: none;
  background: var(--color-bg);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    padding: var(--space-md) var(--space-md);
  }
  
  .nav.scrolled {
    padding: var(--space-sm) var(--space-md);
  }
  
  .nav__logo-icon {
    height: 36px;
  }
  
  .nav__logo-text {
    font-size: 1.125rem;
  }
  
  .nav__links {
    display: none;
  }
  
  .nav__menu-btn {
    display: flex;
  }
  
  /* Pin language toggle to bottom-right on mobile */
  .lang-toggle {
    position: fixed;
    bottom: max(var(--space-lg), env(safe-area-inset-bottom, 1rem));
    right: max(var(--space-md), env(safe-area-inset-right, 1rem));
    z-index: 101;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav,
  .nav__link::after,
  .nav__menu-btn span,
  .mobile-menu,
  .lang-toggle {
    transition: none;
  }
}
/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--space-4xl) var(--space-lg);
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  overflow: hidden;
}

.hero__content {
  text-align: center;
  margin-bottom: var(--space-3xl);
  z-index: 2;
}

.hero__title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  color: var(--color-accent);
  font-style: italic;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-muted);
  font-weight: 300;
}

/* Hero Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-muted);
  border-radius: var(--radius-full);
  opacity: 0.5;
  transition: opacity var(--transition-base);
}

.hero__scroll:hover {
  opacity: 1;
}

.hero__scroll-line {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 2px;
  height: 8px;
  background: var(--color-muted);
  border-radius: var(--radius-full);
  animation: scroll-bounce 1.5s infinite;
  transform: translateX(-50%);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
/* ========================================
   3D POTTERY WHEEL
   ======================================== */

.wheel-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 400px;
  perspective: 1200px;
  margin: 0 auto;
  cursor: default;
  user-select: none;
}

.wheel {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

/* Initial 3D positioning for 6 items (before JS loads) */
.wheel__item:nth-child(1) { transform: rotateY(0deg) translateZ(500px); }
.wheel__item:nth-child(2) { transform: rotateY(60deg) translateZ(500px); opacity: 0.3; }
.wheel__item:nth-child(3) { transform: rotateY(120deg) translateZ(500px); opacity: 0.3; }
.wheel__item:nth-child(4) { transform: rotateY(180deg) translateZ(500px); opacity: 0.3; }
.wheel__item:nth-child(5) { transform: rotateY(240deg) translateZ(500px); opacity: 0.3; }
.wheel__item:nth-child(6) { transform: rotateY(300deg) translateZ(500px); opacity: 0.3; }

/* First item starts active */
.wheel__item:first-child {
  opacity: 1;
}

.wheel__item {
  position: absolute;
  width: 280px;
  height: 320px;
  left: 50%;
  top: 50%;
  margin-left: -140px;
  margin-top: -160px;
  overflow: hidden;
  opacity: 0.5;
  transition: transform var(--transition-base), opacity var(--transition-base);
  backface-visibility: hidden;
  cursor: pointer;
}

.wheel__item:hover {
  opacity: 1 !important;
}

.wheel__item.active {
  opacity: 1;
}

.wheel__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 3D Model Viewer items */
.wheel__item--3d {
  overflow: visible;
}

.wheel__item--3d model-viewer {
  --poster-color: transparent;
  --progress-bar-color: transparent;
  --progress-bar-height: 0;
}

/* Remove focus ring from model-viewer */
.wheel__item--3d model-viewer:focus,
.wheel__item--3d model-viewer:focus-visible {
  outline: none;
}

/* Also prevent any default focus outlines/borders on wheel items themselves */
.wheel__item:focus,
.wheel__item:focus-visible,
.wheel__item:active,
.wheel__item *:focus,
.wheel__item *:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Override global focus-visible for interactive elements inside the wheel */
.wheel-container a:focus-visible,
.wheel-container button:focus-visible,
.wheel-container select:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
}

.wheel__item--3d model-viewer::part(default-ar-button) {
  display: none;
}

/* Hide model-viewer default progress bar */
.wheel__item--3d model-viewer::part(default-progress-bar) {
  display: none;
}

.wheel__item--3d model-viewer::part(default-poster) {
  object-fit: contain;
}

.wheel__shadow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.wheel__hint {
  display: none;
}

/* Isolation Mode Styles */
.wheel-container.isolation-mode {
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  z-index: 100;
}

.wheel-container.isolation-mode .wheel {
  transition: transform 0.5s ease;
}

.wheel-container.isolation-mode .wheel__item {
  pointer-events: none;
  transition: all 0.5s ease !important;
}

.wheel-container.isolation-mode .wheel__item model-viewer {
  cursor: grab;
  pointer-events: auto;
}

.wheel-container.isolation-mode .wheel__item model-viewer:active {
  cursor: grabbing;
}

/* Object Mode Styles (Mobile interaction) */
.wheel-container.object-mode {
  cursor: default;
}

.wheel-container.object-mode .wheel__item.active {
  z-index: 10;
}

.wheel-container.object-mode .wheel__item.active model-viewer {
  cursor: grab;
  pointer-events: auto;
  /* Prevent camera reset animation */
  --interpolation-decay: 0;
}

.wheel-container.object-mode .wheel__item.active model-viewer:active {
  cursor: grabbing;
}

/* Prevent the wheel and items from animating their transforms
   while in object-mode (avoids jumps / scale changes on touchend) */
.wheel-container.object-mode .wheel {
  transition: none !important;
}

.wheel-container.object-mode .wheel__item {
  transition: none !important;
}

/* Limit browser gesture behavior on the wheel container to vertical panning
   so horizontal swipes are handled by our JS and don't trigger browser gestures. */
.wheel-container {
  touch-action: pan-y;
}

/* Mobile responsive wheel */
@media (max-width: 768px) {
  .wheel-container {
    height: 300px;
  }
  
  .wheel__item {
    width: 220px;
    height: 260px;
    margin-left: -110px;
    margin-top: -130px;
  }
  
  .wheel__item:nth-child(1) { transform: rotateY(0deg) translateZ(260px); }
  .wheel__item:nth-child(2) { transform: rotateY(60deg) translateZ(260px); }
  .wheel__item:nth-child(3) { transform: rotateY(120deg) translateZ(260px); }
  .wheel__item:nth-child(4) { transform: rotateY(180deg) translateZ(260px); }
  .wheel__item:nth-child(5) { transform: rotateY(240deg) translateZ(260px); }
  .wheel__item:nth-child(6) { transform: rotateY(300deg) translateZ(260px); }
}
/* ========================================
   ABOUT SECTION
   ======================================== */

.about {
  background: var(--color-white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about__image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  line-height: 1.8;
}

.about__content .btn {
  margin-top: var(--space-lg);
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .about__image-frame {
    max-width: 400px;
    margin: 0 auto;
  }
}
/* ========================================
   CREATIONS / PRODUCTS SECTION
   ======================================== */

.creations {
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(var(--space-lg), 4vw, var(--space-2xl));
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  cursor: pointer;
}

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

.product-card__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-card__content {
  padding: clamp(var(--space-md), 3vw, var(--space-lg));
}

.product-card__title {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  margin-bottom: var(--space-sm);
}

.product-card__price {
  font-weight: 600;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-md);
  font-size: clamp(0.9375rem, 2vw, 1rem);
}

.product-card__desc {
  color: var(--color-text-muted, #666);
  font-size: clamp(0.8125rem, 1.6vw, 0.9rem);
  margin: 0 0 var(--space-sm) 0;
  min-height: 2.2em; /* keep cards aligned even if small desc */
}

.product-card__tag {
  display: inline-block;
  font-size: clamp(0.6875rem, 1.5vw, 0.75rem);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  border-radius: var(--radius-full);
}

.product-card__variants {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}

.product-card__variant {
  background: transparent;
  border: 1px solid var(--color-border, #e6e6e6);
  color: var(--color-text, #222);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
}

.product-card__variant.active {
  background: var(--color-accent-dark);
  color: #fff;
  border-color: transparent;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-card {
    /* Disable hover effects on touch devices */
    -webkit-tap-highlight-color: transparent;
  }
  
  .product-card:active {
    transform: scale(0.98);
  }
}

@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch-only devices */
  .product-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
  }
  
  .product-card:hover .product-card__image img {
    transform: none;
  }
  
  /* Use active state instead */
  .product-card:active {
    transform: scale(0.98);
  }
}
/* ========================================
   WORKSHOPS SECTION
   ======================================== */

.workshops {
  background: var(--color-white);
}

.workshops__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.workshops__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.workshops__intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.workshops__info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.workshops__info-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.workshops__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.workshops__info-item strong {
  display: block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.workshops__info-item p {
  line-height: 1.6;
  color: var(--color-text-light);
}

.workshops__note {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
  font-style: italic;
  color: var(--color-text-light);
}

.workshops__image {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: sticky;
  top: var(--space-2xl);
}

.workshops__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.workshops__image-second {
  margin-left: var(--space-3xl);
}

@media (max-width: 900px) {
  .workshops__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .workshops__info {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .workshops__image {
    position: static;
    flex-direction: row;
    gap: var(--space-md);
    align-items: flex-start;
  }

  .workshops__image img {
    width: calc(50% - (var(--space-md) / 2));
    flex-shrink: 0;
  }

  .workshops__image-second {
    margin-left: 0;
    margin-top: 0;
  }
}
/* ========================================
   ATELIER SECTION
   ======================================== */

.atelier {
  background: var(--color-bg-alt);
}

.atelier__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.atelier__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.atelier__info-item {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.atelier__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  font-size: 1.5rem;
}

.atelier__info-item strong {
  display: block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.atelier__info-item p {
  line-height: 1.8;
}

.atelier__hours {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.atelier__hours-open {
  font-weight: 600;
  color: var(--color-accent-dark);
}

.atelier__hours-closed {
  color: var(--color-muted);
}

.atelier__note {
  margin: var(--space-md) 0;
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
  font-style: italic;
  color: var(--color-text-light);
}

.atelier__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .atelier__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}
/* ========================================
   CONTACT SECTION
   ======================================== */

.contact {
  background: var(--color-white);
  text-align: center;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(var(--space-md), 3vw, var(--space-xl));
}

.contact__card {
  padding: clamp(var(--space-lg), 4vw, var(--space-2xl));
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(var(--space-sm), 2vw, var(--space-md));
  /* Ensure touch-friendly target size */
  min-height: 44px;
}

.contact__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.contact__icon {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.contact__label {
  font-size: clamp(0.75rem, 1.8vw, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

.contact__value {
  font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
  font-weight: 600;
  word-break: break-word;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact__card {
    /* Better spacing on mobile */
    padding: var(--space-xl) var(--space-md);
  }
}

@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch-only devices */
  .contact__card:hover {
    transform: none;
    box-shadow: none;
  }
  
  /* Use active state instead */
  .contact__card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-md);
  }
}
/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--color-text);
  color: var(--color-white);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.footer__tagline {
  margin-top: var(--space-sm);
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  color: rgba(255,255,255,0.8);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-white);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.footer__social a:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

.footer__bottom {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .footer__social {
    justify-content: center;
  }
}
/* ========================================
   PRODUCT MODAL
   ======================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  max-width: 900px;
  width: 90%;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.modal.active .modal__content {
  transform: scale(1);
}

.modal__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 1.5rem;
  color: var(--color-text);
}

.modal__close:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  transform: rotate(90deg);
}

.modal__gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.modal__images {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
}

.modal__images img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.modal__thumbnail {
  flex: 1;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
}

.modal__thumbnail:hover,
.modal__thumbnail.active {
  border-color: var(--color-accent);
}

.modal__thumbnail.active {
  box-shadow: var(--shadow-md);
}

.modal__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.modal__title {
  font-size: 2rem;
}

.modal__price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent-dark);
}

.modal__description {
  line-height: 1.8;
  color: var(--color-text-light);
}

.modal__variations {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.modal__variations-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

.modal__variations-list {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.modal__variation {
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  transition: all var(--transition-base);
}

.modal__variation:hover {
  border-color: var(--color-accent);
}

.modal__variation.active {
  background: var(--color-accent-dark);
  color: var(--color-white);
}

.modal__note {
  padding: var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--color-text-light);
}

@media (max-width: 768px) {
  .modal__content {
    grid-template-columns: 1fr;
    max-width: 95%;
    padding: var(--space-xl);
  }
  
  .modal__close {
    top: var(--space-md);
    right: var(--space-md);
  }
}

/* ========================================
   GLB VIEWER MODAL
   ======================================== */

.glb-viewer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.glb-viewer-modal.active {
  opacity: 1;
  visibility: visible;
}

.glb-viewer-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.glb-viewer-modal__content {
  position: relative;
  width: 80vw;
  height: 80vh;
  max-width: 1000px;
  max-height: 800px;
  background: transparent;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.glb-viewer-modal.active .glb-viewer-modal__content {
  transform: scale(1);
}

.glb-viewer-modal__content model-viewer {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  --progress-bar-color: transparent;
  --progress-bar-height: 0;
}

/* Hide model-viewer default progress bar */
.glb-viewer-modal__content model-viewer::part(default-progress-bar) {
  display: none;
}

.glb-viewer-modal__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 1.5rem;
  color: var(--color-text);
  z-index: 10;
  border: none;
  box-shadow: var(--shadow-lg);
}

.glb-viewer-modal__close:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  transform: rotate(90deg);
}

.glb-viewer-modal__hint {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--color-text-light);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.glb-viewer-modal.active .glb-viewer-modal__hint {
  opacity: 1;
  animation: fadeOutHint 3s ease-in-out forwards;
  animation-delay: 2s;
}

@keyframes fadeOutHint {
  to {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .glb-viewer-modal__content {
    width: 95vw;
    height: 70vh;
  }
  
  .glb-viewer-modal__close {
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
  }
}
/* ========================================
   ANIMATIONS & UTILITIES
   ======================================== */

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Intersection Observer reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

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

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Loading state for images */
.img-loading {
  background: linear-gradient(90deg, var(--color-bg) 0%, var(--color-bg-alt) 50%, var(--color-bg) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
