/* LOOM7 Design System
 * Minimalist, editorial fashion brand aesthetic
 * Colors: off-white/cream + black + warm accent
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */

:root {
  /* Color System */
  --color-ink: #211f1b;
  --color-muted: #726d66;
  --color-paper: #f8f6f1;
  --color-sand: #eae4da;
  --color-warm: #c9b8a4;
  --color-accent: #b18a65;
  --color-white: #ffffff;
  --color-line: #e9e4db;
  --color-dark: #24211e;
  --glass-paper: rgba(248, 246, 241, 0.68);
  --glass-sand: rgba(234, 228, 218, 0.62);
  --glass-dark: rgba(36, 33, 30, 0.9);
  --glass-border: rgba(255, 255, 255, 0.48);

  /* Typography Scale */
  --font-body: 'DM Sans', Arial, sans-serif;
  --font-display: 'Josefin Slab', Georgia, serif;

  --text-xs: 10px;
  --text-sm: 11px;
  --text-base: 12px;
  --text-md: 13px;
  --text-lg: 14px;
  --text-xl: 15px;
  --text-2xl: 16px;
  --text-3xl: 17px;
  --text-4xl: 21px;
  --text-5xl: 34px;
  --text-6xl: clamp(34px, 4vw, 48px);
  --text-7xl: clamp(52px, 6vw, 82px);

  /* Line Heights */
  --leading-tight: 1.02;
  --leading-snug: 1.1;
  --leading-normal: 1.2;
  --leading-relaxed: 1.5;
  --leading-loose: 1.75;
  --leading-looser: 1.8;

  /* Letter Spacing */
  --tracking-tighter: -0.025em;
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.08em;
  --tracking-widest: 0.12em;
  --tracking-widest-xl: 0.13em;
  --tracking-widest-2xl: 0.14em;
  --tracking-widest-3xl: 0.18em;
  --tracking-widest-4xl: 0.22em;

  /* Spacing Scale */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 10px;
  --space-4: 12px;
  --space-5: 14px;
  --space-6: 16px;
  --space-7: 18px;
  --space-8: 20px;
  --space-9: 22px;
  --space-10: 24px;
  --space-11: 26px;
  --space-12: 28px;
  --space-14: 32px;
  --space-16: 38px;
  --space-18: 42px;
  --space-20: 48px;
  --space-22: 52px;
  --space-24: 62px;
  --space-28: 80px;
  --space-32: 88px;
  --space-36: 96px;
  --space-40: 104px;
  --space-48: 120px;

  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 4px;

  /* Shadows */
  --shadow-sm: 0 8px 24px rgba(33, 31, 27, 0.08);
  --shadow-md: 0 14px 28px rgba(33, 31, 27, 0.08);
  --shadow-lg: 0 18px 34px rgba(33, 31, 27, 0.1);
  --shadow-xl: 0 20px 60px rgba(33, 31, 27, 0.22);
  --shadow-2xl: 0 8px 24px rgba(33, 31, 27, 0.2);

  /* Transitions */
  --transition-fast: 0.15s;
  --transition-base: 0.2s;
  --transition-slow: 0.25s;
  --transition-slower: 0.5s;

  /* Z-Index Scale */
  --z-dropdown: 10;
  --z-sticky: 15;
  --z-modal: 20;
  --z-toast: 20;

  /* Container Widths */
  --container-narrow: 440px;
  --container-medium: 620px;
  --container-wide: 1040px;
  --container-max: 1440px;

  /* Component Heights */
  --height-nav: 88px;
  --height-nav-mobile: 84px;
  --height-hero: 650px;
  --height-hero-mobile: 560px;
  --height-product-image: 355px;
  --height-product-image-mobile: 430px;
  --height-dialog: 420px;
  --height-dialog-mobile: 280px;
  --height-feature: 470px;
  --height-feature-mobile: 360px;
}

/* ============================================
   BASE STYLES
   ============================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.loom-ai-open {
  overflow: hidden;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 12% 18%, rgba(201, 184, 164, 0.2), transparent 38%),
    radial-gradient(ellipse at 86% 54%, rgba(234, 228, 218, 0.72), transparent 42%),
    var(--color-paper);
  background-attachment: fixed;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  line-height: var(--leading-relaxed);
}

body,
button,
a {
  font-synthesis: none;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  font: inherit;
}

img {
  max-width: 100%;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.skip-link {
  position: absolute;
  left: var(--space-6);
  top: -60px;
  z-index: var(--z-dropdown);
  background: var(--color-ink);
  color: var(--color-white);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: var(--space-6);
}

:where(a, button):focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
p {
  margin-top: 0;
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest-4xl);
  text-transform: uppercase;
  color: var(--color-accent);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--color-ink);
  color: var(--color-white);
  padding: var(--space-5) var(--space-9);
  border: 1px solid var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-widest-2xl);
  text-transform: uppercase;
  transition: background var(--transition-base),
              border-color var(--transition-base),
              transform var(--transition-base);
}

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

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button:disabled:hover {
  transform: none;
}

/* ============================================
   NAVIGATION
   ============================================ */

.topbar {
  position: relative;
  z-index: 3;
  background: var(--glass-dark);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-widest-2xl);
  text-transform: uppercase;
}

.nav {
  min-height: var(--height-nav);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-2) 6vw;
  background: var(--glass-paper);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 72px;
}

.logo img {
  display: block;
  width: 112px;
  height: 72px;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.navlinks {
  display: flex;
  grid-column: 2;
  justify-self: center;
  gap: var(--space-10);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  background: transparent;
}

.navlinks a {
  padding: var(--space-2) 0;
  font-weight: 600;
  background: transparent;
}

.navlinks a:hover,
.social a:hover,
.footer-links a:hover {
  color: var(--color-accent);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: var(--height-hero);
  background: transparent;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(48px, 8vw, 120px);
  background: var(--glass-sand);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero .eyebrow {
  width: 100%;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest-4xl);
  text-transform: uppercase;
  color: var(--color-accent);
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-7xl);
  line-height: var(--leading-tight);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: var(--space-3) auto var(--space-6);
  max-width: 560px;
  text-align: center;
  color: var(--color-ink);
}

.hero-copy p {
  max-width: 410px;
  margin-right: auto;
  margin-left: auto;
  color: var(--color-muted);
  font-size: var(--text-xl);
  line-height: var(--leading-looser);
  margin-bottom: 0;
  text-align: center;
}

.hero-image {
  position: relative;
  min-height: var(--height-hero);
  overflow: hidden;
  background: var(--color-paper);
  touch-action: pan-y;
}

.hero-image img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image img {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-image img.is-active {
  opacity: 1;
}

.hero-controls {
  position: absolute;
  z-index: 2;
  inset: 50% 18px auto;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-control {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  place-items: center;
  background: rgba(33, 31, 27, 0.56);
  color: var(--color-white);
  cursor: pointer;
  pointer-events: auto;
  transition: background-color var(--transition-base);
}

.hero-control:hover {
  background: rgba(33, 31, 27, 0.82);
}

.hero-control svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero-control[hidden] {
  display: none;
}

.hero-indicators {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
}

.hero-indicators[hidden] {
  display: none;
}

.hero-indicator {
  display: grid;
  flex: 0 0 12px;
  width: 12px;
  height: 22px;
  padding: 0;
  border: 0;
  place-items: center;
  background: transparent;
  cursor: pointer;
}

.hero-indicator::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  transition: width 220ms ease, background-color 220ms ease;
}

.hero-indicator[aria-current="true"] {
  flex-basis: 24px;
  width: 24px;
}

.hero-indicator[aria-current="true"]::before {
  width: 24px;
  background: var(--color-accent);
}

.hero-indicator:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hero-image::before {
  content: 'LOOM7';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.46);
  font: 500 clamp(48px, 8vw, 104px) var(--font-display);
  letter-spacing: 0.1em;
  opacity: 0;
  z-index: 1;
}

.media.hero-image::after {
  content: none;
}

.hero-image.is-fallback::before {
  opacity: 1;
}

/* ============================================
   MEDIA / IMAGES
   ============================================ */

.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #d7c8b6 0%, #a88e75 100%);
}

.media::after {
  content: attr(data-fallback);
  position: absolute;
  left: var(--space-10);
  bottom: var(--space-10);
  max-width: calc(100% - var(--space-20));
  background: rgba(248, 246, 241, 0.92);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest-3xl);
  text-transform: uppercase;
}

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

.media.hero-image img {
  object-fit: cover;
}

.media img[hidden] {
  display: none;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: clamp(var(--space-16), 8vw, var(--space-40)) 7vw;
}

.section-heading {
  text-align: center;
  margin: 0 auto var(--space-12);
  max-width: var(--container-medium);
}

.section-heading .eyebrow {
  margin-bottom: var(--space-3);
}

.section-heading h2 {
  font: 500 var(--text-6xl) / var(--leading-snug) var(--font-display);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.section-heading p {
  font-size: var(--text-lg);
  color: var(--color-muted);
  margin-bottom: 0;
}

/* ============================================
   COLLECTION SECTION
   ============================================ */

.collection-section {
  background: var(--glass-paper);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#home + .collection-section {
  background: var(--glass-paper);
}

.collection-header {
  text-align: center;
  margin: 0 auto var(--space-16);
  max-width: var(--container-medium);
}

.collection-label {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: var(--tracking-widest-2xl);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

.collection-header h1,
.collection-header h2 {
  font: 500 var(--text-6xl) / var(--leading-snug) var(--font-display);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-6);
}

.collection-intro {
  font-size: var(--text-lg);
  color: var(--color-muted);
  line-height: var(--leading-loose);
  max-width: 580px;
  margin: 0 auto;
}

.collection-status,
.collection-count {
  color: var(--color-muted);
  text-align: center;
}

.collection-status {
  margin: var(--space-10) 0 0;
}

.collection-count {
  margin: var(--space-8) 0 0;
  color: var(--color-ink);
  font-size: clamp(var(--text-2xl), 2vw, var(--text-4xl));
  line-height: var(--leading-snug);
}

.collection-load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  margin: var(--space-10) auto 0;
}

.collection-progress {
  display: block;
  width: 100%;
  height: 12px;
  margin: var(--space-5) 0 var(--space-4);
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #d2d5d9;
}

.collection-progress::-webkit-progress-bar {
  border-radius: inherit;
  background: #d2d5d9;
}

.collection-progress::-webkit-progress-value {
  border-radius: inherit;
  background: var(--color-accent);
}

.collection-progress::-moz-progress-bar {
  border-radius: inherit;
  background: var(--color-accent);
}

.collection-load-frame {
  position: relative;
  isolation: isolate;
  padding: 0;
  border-radius: 34px;
}

.collection-load-frame::before {
  content: none;
}

.collection-load-button {
  position: relative;
  display: inline-flex;
  isolation: isolate;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: 10px 24px;
  border: 2px solid rgb(193, 163, 98);
  border-radius: 34px;
  background: transparent;
  color: rgb(193, 163, 98);
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: var(--leading-normal);
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.collection-load-button::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 50px;
  height: 50px;
  border-radius: inherit;
  scale: 0;
  z-index: -1;
  background-color: rgb(193, 163, 98);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.collection-load-button:hover::before {
  scale: 3;
}

.collection-load-button:hover {
  color: #212121;
  scale: 1.1;
  box-shadow: 0 0 20px rgba(193, 163, 98, 0.4);
}

.collection-load-button:active {
  scale: 1;
}

.collection-load-button svg {
  display: block;
  width: 21px;
  height: 20px;
  flex: 0 0 auto;
}

.collection-load-button .load-chevron {
  transition: transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.collection-load-button .load-chevron-second {
  transition-delay: 45ms;
}

.collection-load-button > span {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .collection-load-button:hover .load-chevron-first {
    transform: translateX(2px);
  }

  .collection-load-button:hover .load-chevron-second {
    transform: translateX(4px);
  }
}

.collection-load-button[hidden] {
  display: none;
}

.collection-load-button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 5px;
}

/* ============================================
   PRODUCT DETAILS
   ============================================ */

.product-detail-section {
  min-height: 65vh;
}

.product-detail-back {
  display: inline-block;
  margin-bottom: var(--space-8);
  color: var(--color-muted);
  font-size: var(--text-md);
}

.product-detail-back::before {
  content: '←';
  margin-right: var(--space-2);
}

.product-detail-back:hover {
  color: var(--color-accent);
}

.product-detail-status {
  max-width: var(--container-max);
  margin: var(--space-10) auto;
  color: var(--color-muted);
  text-align: center;
}

.product-detail-status.is-error {
  color: #8b302b;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: start;
  gap: clamp(var(--space-10), 5vw, var(--space-24));
  max-width: var(--container-max);
  margin: 0 auto;
}

.product-detail-layout[hidden] {
  display: none;
}

.product-detail-gallery {
  min-width: 0;
}

.product-detail-image {
  display: block;
  aspect-ratio: 4 / 5;
  max-height: 780px;
  background: var(--color-sand);
  overflow: hidden;
}

.product-detail-image::after {
  display: none;
}

.product-detail-image.is-fallback::after {
  display: block;
}

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

.product-detail-media-grid {
  display: grid;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.product-detail-gallery-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--color-sand);
}

.product-detail-video {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  max-height: 780px;
  background: var(--color-ink);
}

.product-detail-copy {
  padding-top: var(--space-4);
}

.product-detail-copy h1 {
  margin: var(--space-5) 0 var(--space-3);
  font: 500 clamp(30px, 3vw, 42px) / var(--leading-snug) var(--font-display);
  letter-spacing: var(--tracking-tight);
}

.product-detail-price {
  margin: 0 0 var(--space-7);
  font-size: var(--text-4xl);
}

.product-detail-description {
  margin: 0 0 var(--space-10);
  color: var(--color-muted);
  line-height: var(--leading-loose);
}

.product-size-selector {
  margin: var(--space-10) 0 var(--space-12);
  padding: var(--space-8) 0;
  border: 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.product-size-selector legend {
  padding: var(--space-1) 0 var(--space-4);
  font: 500 var(--text-3xl) / var(--leading-normal) var(--font-display);
}

.product-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.product-size-option {
  position: relative;
  cursor: pointer;
}

.product-size-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.product-size-option span {
  display: grid;
  min-width: 48px;
  min-height: 48px;
  place-items: center;
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.product-size-option input:checked + span {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-white);
}

.product-size-option input:disabled + span {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.product-size-option input:focus-visible + span {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.product-size-status {
  margin: var(--space-4) 0 0;
  color: var(--color-muted);
}

.product-enquiry-status {
  margin: var(--space-4) 0 0;
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
}

.product-enquiry-status.is-error {
  color: #8b302b;
}

.product-detail-cta {
  min-height: 52px;
}

/* ============================================
   PRODUCT GRID
   ============================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-10);
  max-width: var(--container-max);
  margin: 0 auto;
}

.product {
  position: relative;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform var(--transition-slow);
}

.product[data-product-reveal] {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 650ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--product-reveal-delay, 0ms),
              translate 650ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--product-reveal-delay, 0ms),
              transform var(--transition-slow);
}

.product[data-product-reveal].is-revealed {
  opacity: 1;
  translate: 0 0;
}

.product:hover,
.product:focus-within {
  transform: translateY(-8px);
}

.product-card {
  display: block;
  height: 100%;
  color: inherit;
}

.product-image {
  display: block;
  height: var(--height-product-image);
  background: var(--color-sand);
  overflow: hidden;
}

.product-image::after {
  display: none;
}

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

.product:hover .product-image img,
.product-card:focus-visible .product-image img {
  transform: scale(1.06);
}

.product-copy {
  padding: var(--space-6) 0 var(--space-4);
  text-align: center;
}

.product-copy h3 {
  font: 500 var(--text-4xl) / var(--leading-normal) var(--font-display);
  margin-bottom: var(--space-2);
  color: var(--color-ink);
}

.product-copy .product-price,
.quick-view-price {
  color: var(--color-ink);
  font-size: var(--text-md);
  font-weight: 600;
  margin: 0 0 var(--space-2);
}

.product-copy p {
  font-size: var(--text-md);
  color: var(--color-muted);
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

.product-link {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest-xl);
  text-transform: uppercase;
  color: var(--color-accent);
  border-bottom: 1px solid transparent;
  padding-bottom: var(--space-1);
  transition: border-color var(--transition-base);
}

.product-link:hover {
  border-bottom-color: var(--color-accent);
}

.quick-view {
  display: none;
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  border: 0;
  background: var(--color-white);
  color: var(--color-ink);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-base),
              color var(--transition-base);
  opacity: 0;
  transform: translateY(-4px);
}

.product:hover .quick-view {
  opacity: 1;
  transform: translateY(0);
}

.quick-view:hover {
  background: var(--color-ink);
  color: var(--color-white);
}

/* ============================================
   DIALOGS
   ============================================ */

.quick-view-dialog {
  width: min(760px, calc(100% - var(--space-8)));
  padding: 0;
  border: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  box-shadow: var(--shadow-xl);
}

.quick-view-dialog::backdrop {
  background: rgba(33, 31, 27, 0.56);
}

.dialog-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: var(--height-dialog);
}

.dialog-media {
  min-height: var(--height-dialog);
  background: linear-gradient(145deg, #d7c8b6 0%, #a88e75 100%);
}

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

.dialog-copy {
  position: relative;
  padding: var(--space-16) var(--space-18) var(--space-10);
}

.dialog-copy h2 {
  font: 500 clamp(var(--text-5xl), 4vw, var(--text-6xl)) / var(--leading-snug) var(--font-display);
  margin: var(--space-4) 0 var(--space-5);
}

.dialog-copy p {
  color: var(--color-muted);
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
}

.dialog-note {
  margin: var(--space-7) 0 var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-line);
  font-size: var(--text-md) !important;
}

.dialog-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: var(--text-2xl);
  line-height: 1;
  cursor: pointer;
  padding: var(--space-2);
}

.dialog-close:hover {
  color: var(--color-ink);
}

/* ============================================
   HOW TO ORDER SECTION
   ============================================ */

.order-header {
  text-align: center;
  margin: 0 auto var(--space-16);
  max-width: var(--container-medium);
}

.order-label {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: var(--tracking-widest-2xl);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

.order-header h2 {
  font: 500 var(--text-6xl) / var(--leading-snug) var(--font-display);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-6);
}

.order-intro {
  font-size: var(--text-lg);
  color: var(--color-muted);
  line-height: var(--leading-loose);
  max-width: 580px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-10);
  max-width: var(--container-max);
  margin: 0 auto;
}

.step {
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  transition: border-color var(--transition-base);
}

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

.step-number {
  display: block;
  margin-bottom: var(--space-6);
  color: var(--color-accent);
  font: 500 clamp(var(--text-5xl), 5vw, 72px) / 1 var(--font-display);
  letter-spacing: -0.02em;
}

.step h3 {
  font: 600 var(--text-3xl) / var(--leading-normal) var(--font-body);
  margin-bottom: var(--space-3);
  color: var(--color-ink);
}

.step p {
  color: var(--color-muted);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

/* ============================================
   STORY / ABOUT SECTION
   ============================================ */

.story-section {
  background: var(--glass-sand);
  border-block: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-12);
  min-height: var(--height-feature);
}

.story-content {
  padding: var(--space-16) 7vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-label {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: var(--tracking-widest-2xl);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

.story-content h1 {
  font: 400 clamp(30px, 6vw, 88px) / 1.1 'La Belle Aurore', cursive;
  letter-spacing: 0;
  margin: 0 0 var(--space-8);
  max-width: 600px;
  color: var(--color-ink);
}

.story-text {
  font-size: var(--text-lg);
  color: var(--color-muted);
  line-height: var(--leading-loose);
  max-width: 520px;
  margin-bottom: var(--space-10);
}

.story-image {
  height: var(--height-feature);
  position: relative;
  overflow: hidden;
}

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

.story-image.is-fallback {
  background: var(--color-line);
}

/* ============================================
   SOCIAL / INSTAGRAM SECTION
   ============================================ */

.social {
  background: var(--glass-dark);
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-28) var(--space-6);
}

.social h2 {
  font: 500 var(--text-6xl) / var(--leading-snug) var(--font-display);
  margin: var(--space-3) 0 var(--space-4);
}

.social p {
  font-size: var(--text-lg);
  color: #d5d0ca;
  margin-bottom: var(--space-8);
}

.social .button {
  background: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}

.social .social-instagram-link {
  padding: 0;
  min-width: 56px;
  min-height: 56px;
  border: 0;
  background: transparent;
  transition: transform var(--transition-base);
}

.social-instagram-link svg {
  display: block;
  width: 56px;
  height: 56px;
}

.social .button:not(.social-instagram-link):hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.social .social-instagram-link:hover {
  background: transparent;
  transform: translateY(-2px);
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */

.newsletter {
  background: var(--glass-paper);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: clamp(var(--space-16), 8vw, var(--space-40)) 7vw;
  text-align: center;
}

.newsletter h2 {
  font: 500 var(--text-6xl) / var(--leading-snug) var(--font-display);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-4);
}

.newsletter p {
  font-size: var(--text-lg);
  color: var(--color-muted);
  margin-bottom: var(--space-10);
  max-width: var(--container-medium);
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: var(--container-medium);
  margin: 0 auto;
}

.newsletter-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: left;
}

.newsletter-field label {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-ink);
}

.newsletter-field input {
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-xl);
  font-family: var(--font-body);
  border: 1px solid var(--color-line);
  background: var(--color-white);
  color: var(--color-ink);
  transition: border-color var(--transition-base);
}

.newsletter-field input:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-color: var(--color-accent);
}

.newsletter-field input::placeholder {
  color: var(--color-muted);
}

.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  text-align: left;
  font-size: var(--text-md);
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
}

.newsletter-consent input[type=checkbox] {
  flex: 0 0 auto;
  width: var(--space-6);
  height: var(--space-6);
  margin-top: var(--space-1);
  cursor: pointer;
  accent-color: var(--color-accent);
}

.newsletter-consent label {
  cursor: pointer;
  color: var(--color-muted);
}

.newsletter-notice {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-md);
  border-radius: var(--radius-sm);
}

.newsletter-notice.hidden {
  display: none;
}

.newsletter-notice.success {
  background: #e8f5e9;
  color: #2e7d32;
}

.newsletter-notice.error {
  background: #ffebee;
  color: #c62828;
}

.newsletter-submit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-self: center;
  padding: 10px 24px;
  color: rgb(193, 163, 98);
  border: 2px solid rgb(193, 163, 98);
  border-radius: 34px;
  background-color: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.newsletter-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 50px;
  height: 50px;
  margin: auto;
  border-radius: inherit;
  background-color: rgb(193, 163, 98);
  scale: 0;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.newsletter-submit:hover:not(:disabled)::before {
  scale: 3;
}

.newsletter-submit:hover:not(:disabled) {
  color: #212121;
  scale: 1.1;
  box-shadow: 0 0 20px rgba(193, 163, 98, 0.4);
}

.newsletter-submit:active:not(:disabled) {
  scale: 1;
}

.newsletter-submit:focus-visible {
  outline: 3px solid rgb(193, 163, 98);
  outline-offset: 3px;
}

.newsletter-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding: var(--space-12) 7vw;
  background: rgba(26, 24, 22, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #cfc9c1;
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

.footer-brand {
  display: block;
  filter: brightness(0) invert(1);
}

.footer-brand img {
  display: block;
  height: 34px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: var(--space-8);
}

.footer-links a {
  padding: var(--space-2) 0;
  letter-spacing: var(--tracking-wide);
}

.footer-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #cfc9c1;
  transition: background var(--transition-base),
              border-color var(--transition-base),
              color var(--transition-base),
              transform var(--transition-base);
}

.footer-top:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-3px);
}

.footer-top svg {
  display: block;
  width: var(--text-3xl);
  height: var(--text-3xl);
}

/* ============================================
   MOBILE ELEMENTS
   ============================================ */

.toast {
  position: fixed;
  left: 50%;
  bottom: var(--space-8);
  z-index: var(--z-toast);
  transform: translate(-50%, var(--space-5));
  background: var(--color-ink);
  color: var(--color-white);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base),
              transform var(--transition-base);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================
   LOOM AI CHAT PANEL
   ============================================ */

.loom-ai-widget {
  --loom-ai-paper: rgba(255, 255, 255, 0.94);
  --loom-ai-card: rgba(255, 255, 255, 0.72);
  --loom-ai-ink: #211f1b;
  --loom-ai-muted: #726d66;
  --loom-ai-line: rgba(33, 31, 27, 0.12);
  --loom-ai-accent: #b18a65;
  --loom-ai-shadow: 0 24px 80px rgba(33, 31, 27, 0.2);
  position: fixed;
  z-index: 25;
  right: max(32px, calc(env(safe-area-inset-right) + 12px));
  bottom: max(32px, calc(env(safe-area-inset-bottom) + 12px));
  color: var(--loom-ai-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

.loom-ai-widget[data-theme="dark"] {
  --loom-ai-paper: rgba(28, 27, 29, 0.97);
  --loom-ai-card: rgba(255, 255, 255, 0.07);
  --loom-ai-ink: #f8f6f1;
  --loom-ai-muted: #b8b2ac;
  --loom-ai-line: rgba(255, 255, 255, 0.12);
  --loom-ai-accent: #d3b18e;
  --loom-ai-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
}

.loom-ai-launcher {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 194px;
  min-height: 50px;
  padding: 5px 15px 5px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  position: relative;
  isolation: isolate;
  background: transparent;
  color: #665ce9;
  box-shadow: 0 8px 22px rgba(39, 38, 48, 0.2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.loom-ai-launcher::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(115deg, #d7d5df 0%, #6d63f4 56%, #42c8ed 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.loom-ai-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(39, 38, 48, 0.26);
}

.loom-ai-launcher-mark {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #665ce9;
}

.loom-ai-launcher-mark svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: url(#loom-ai-sparkle-gradient);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.loom-ai-launcher-label {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0.01em;
  background: linear-gradient(100deg, #5548ca 0%, #7937bd 56%, #087ba0 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.loom-ai-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: flex;
  flex-direction: column;
  width: min(410px, calc(100vw - 32px));
  height: min(650px, calc(100dvh - 112px));
  min-height: min(480px, calc(100dvh - 112px));
  overflow: hidden;
  overscroll-behavior: contain;
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  background: var(--loom-ai-paper);
  box-shadow: var(--loom-ai-shadow);
  color: var(--loom-ai-ink);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  animation: loom-ai-enter 180ms ease-out both;
}

.loom-ai-panel[hidden] {
  display: none;
}

@keyframes loom-ai-enter {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.loom-ai-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--loom-ai-line);
}

.loom-ai-history-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.loom-ai-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-right: auto;
}

.loom-ai-brand-mark {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  place-items: center;
  background: var(--color-paper);
}

.loom-ai-brand-mark img {
  display: block;
  width: 33px;
  height: 25px;
  object-fit: contain;
  filter: brightness(0);
}

.loom-ai-brand-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.loom-ai-brand-caption {
  display: block;
  color: var(--loom-ai-muted);
  font-size: 11px;
  line-height: 1.3;
}

.loom-ai-icon-button {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--loom-ai-line);
  border-radius: 50%;
  place-items: center;
  background: var(--loom-ai-card);
  color: var(--loom-ai-ink);
  font-size: 17px;
  cursor: pointer;
}

.loom-ai-icon-button:hover {
  border-color: var(--loom-ai-accent);
}

.loom-ai-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 22px 20px 18px;
}

.loom-ai-history[hidden],
.loom-ai-messages[hidden] {
  display: none;
}

.loom-ai-history {
  display: grid;
  gap: 14px;
}

.loom-ai-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.loom-ai-history-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.loom-ai-history-new {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--loom-ai-line);
  border-radius: 9px;
  background: var(--loom-ai-card);
  color: var(--loom-ai-ink);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.loom-ai-history-list {
  display: grid;
  gap: 8px;
}

.loom-ai-history-item {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--loom-ai-line);
  border-radius: 11px;
  background: var(--loom-ai-card);
  color: var(--loom-ai-ink);
  text-align: left;
  cursor: pointer;
}

.loom-ai-history-item:hover,
.loom-ai-history-new:hover {
  border-color: var(--loom-ai-accent);
}

.loom-ai-history-item strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loom-ai-history-item time,
.loom-ai-history-empty {
  margin: 0;
  color: var(--loom-ai-muted);
  font-size: 11px;
}

.loom-ai-greeting {
  margin-bottom: 7px;
  text-align: center;
  font-size: clamp(19px, 5vw, 22px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.loom-ai-intro {
  max-width: 290px;
  margin: 0 auto 22px;
  color: var(--loom-ai-muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.65;
}

.loom-ai-prompts {
  display: grid;
  gap: 9px;
}

.loom-ai-prompts[hidden] {
  display: none;
}

.loom-ai-messages {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.loom-ai-message {
  width: fit-content;
  max-width: 88%;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid var(--loom-ai-line);
  border-radius: 14px;
  background: var(--loom-ai-card);
  color: var(--loom-ai-ink);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.loom-ai-message-user {
  justify-self: end;
  border-color: transparent;
  background: rgba(177, 138, 101, 0.16);
}

.loom-ai-message-assistant {
  justify-self: start;
}

.loom-ai-message.is-error {
  color: #8b302b;
}

.loom-ai-order {
  display: grid;
  gap: 9px;
  width: min(100%, 340px);
  padding: 12px;
  border: 1px solid var(--loom-ai-line);
  border-radius: 12px;
  background: var(--loom-ai-card);
}

.loom-ai-order-heading {
  color: var(--loom-ai-ink);
  font-size: 12px;
}

.loom-ai-order-draft {
  margin: 0;
  padding: 9px;
  border-radius: 8px;
  background: var(--loom-ai-paper);
  color: var(--loom-ai-ink);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.loom-ai-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.loom-ai-order-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--loom-ai-line);
  border-radius: 9px;
  background: var(--loom-ai-card);
  color: var(--loom-ai-ink);
  font: inherit;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
}

.loom-ai-order-instagram {
  border-color: var(--loom-ai-accent);
  background: var(--loom-ai-accent);
  color: #fff;
}

.loom-ai-order-instagram:hover {
  filter: brightness(0.94);
}

.loom-ai-size-selector {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  width: min(100%, 340px);
  padding: 12px;
  border: 1px solid var(--loom-ai-line);
  border-radius: 12px;
  background: var(--loom-ai-card);
}

.loom-ai-size-label {
  grid-column: 1 / -1;
  color: var(--loom-ai-ink);
  font-size: 12px;
  font-weight: 600;
}

.loom-ai-size-select {
  min-width: 0;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--loom-ai-line);
  border-radius: 8px;
  background: var(--loom-ai-paper);
  color: var(--loom-ai-ink);
  font: inherit;
  font-size: 12px;
}

.loom-ai-size-continue {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--loom-ai-accent);
  border-radius: 8px;
  background: var(--loom-ai-accent);
  color: #fff;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.loom-ai-size-continue:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.loom-ai-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 11px 13px;
  border: 1px solid var(--loom-ai-line);
  border-radius: 14px;
  background: var(--loom-ai-card);
  color: var(--loom-ai-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.loom-ai-prompt:hover {
  transform: translateY(-1px);
  border-color: var(--loom-ai-accent);
}

.loom-ai-prompt-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  place-items: center;
  background: rgba(177, 138, 101, 0.12);
  color: var(--loom-ai-accent);
  font-size: 17px;
}

.loom-ai-prompt strong,
.loom-ai-prompt small {
  display: block;
}

.loom-ai-prompt strong {
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
}

.loom-ai-prompt small {
  color: var(--loom-ai-muted);
  font-size: 11px;
  line-height: 1.4;
}

.loom-ai-compose {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--loom-ai-line);
  background: var(--loom-ai-card);
}

.loom-ai-status {
  margin: 0 0 8px;
  color: var(--loom-ai-muted);
  font-size: 11px;
}

.loom-ai-handoff {
  display: inline-block;
  margin-left: 4px;
  color: var(--loom-ai-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.loom-ai-form {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 8px;
  align-items: end;
  padding: 9px;
  border: 1px solid var(--loom-ai-line);
  border-radius: 13px;
  background: var(--loom-ai-paper);
}

.loom-ai-input {
  display: block;
  width: 100%;
  min-height: 54px;
  max-height: 110px;
  resize: vertical;
  padding: 4px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--loom-ai-ink);
  font: inherit;
  font-size: 13px;
}

.loom-ai-input::placeholder {
  color: var(--loom-ai-muted);
  opacity: 0.8;
}

.loom-ai-send {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: var(--color-accent);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.loom-ai-send:hover {
  filter: brightness(0.92);
}

.loom-ai-feedback {
  margin: 8px 2px 0;
  color: var(--loom-ai-muted);
  font-size: 11px;
}

@media (max-width: 480px) {
  .loom-ai-widget {
    right: 0;
    bottom: 0;
  }

  .loom-ai-panel {
    position: fixed;
    inset: 0;
    width: auto;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
    animation: none;
  }

  .loom-ai-widget[data-open="true"] .loom-ai-launcher {
    display: none;
  }

  .loom-ai-header {
    padding-top: calc(14px + env(safe-area-inset-top));
  }

  .loom-ai-compose {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 1020px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .product-image {
    height: 330px;
  }

  .collection-header {
    margin-bottom: var(--space-12);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-8);
  }

  .order-header {
    margin-bottom: var(--space-12);
  }

  .order-label {
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
  }

  .order-header h2 {
    font-size: var(--text-5xl);
  }

  .hero {
    min-height: 560px;
  }

  .hero-image {
    min-height: 560px;
  }
  .order-intro {
    font-size: var(--text-md);
  }
}

@media (max-width: 760px) {
  .hero-controls {
    display: none;
  }

  .nav {
    display: flex;
    justify-content: space-between;
    min-height: var(--height-nav-mobile);
    padding: var(--space-2) 5vw;
    flex-wrap: wrap;
  }

  .logo {
    min-height: 64px;
    transform: translateY(10px);
  }

  .logo img {
    width: 94px;
    height: 64px;
  }

  .navlinks {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: var(--space-5);
    font-size: var(--text-xs);
    padding: var(--space-1) 0 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .story-section {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: stretch;
    gap: clamp(8px, 2vw, 16px);
    min-height: 0;
    padding: 16px 4vw;
  }

  .story-content {
    min-width: 0;
    min-height: clamp(260px, 70vw, 420px);
    padding: 0;
    justify-content: center;
  }

  .story-content h1 {
    font-size: clamp(22px, 5vw, 36px);
    line-height: 1;
    margin-bottom: clamp(6px, 1.5vw, 12px);
  }

  .story-label {
    font-size: clamp(8px, 1.8vw, 11px);
    letter-spacing: 0.08em;
    margin-bottom: clamp(4px, 1vw, 8px);
  }

  .story-text {
    font-size: clamp(10px, 2.7vw, 16px);
    line-height: 1.3;
    margin-bottom: 0;
  }

  .story-image {
    height: auto;
    min-height: clamp(260px, 70vw, 420px);
  }

  .hero-image {
    grid-row: 1;
  }

  .hero-copy {
    grid-row: 2;
    padding: 64px 8vw 52px;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 70px);
  }

  .hero-image {
    min-height: 420px;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
    justify-content: center;
  }
  .section {
    padding: var(--space-16) 6vw;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .product-detail-copy {
    padding-top: 0;
  }

  .product-detail-cta {
    width: 100%;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .product-image {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .product-copy {
    padding: var(--space-4) 0 var(--space-3);
  }

  .product-copy h3 {
    font-size: var(--text-xl);
  }

  .product-copy p {
    font-size: var(--text-sm);
  }

  .product-link {
    font-size: 10px;
  }

  .collection-header {
    margin-bottom: var(--space-10);
  }

  .collection-label {
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
  }

  .collection-header h1,
  .collection-header h2 {
    font-size: var(--text-5xl);
  }

  .collection-intro {
    font-size: var(--text-md);
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: var(--container-narrow);
    gap: var(--space-8);
  }

  .step {
    padding: var(--space-6) 0;
    border-top: 1px solid var(--color-line);
  }

  .step:last-child {
    border-bottom: 1px solid var(--color-line);
  }

  .step-number {
    margin-bottom: var(--space-4);
    font-size: var(--text-5xl);
  }

  .order-header {
    margin-bottom: var(--space-12);
  }

  .order-label {
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
  }

  .order-header h2 {
    font-size: var(--text-5xl);
  }

  .order-intro {
    font-size: var(--text-md);
  }

  .dialog-inner {
    grid-template-columns: 1fr;
  }

  .dialog-media {
    min-height: var(--height-dialog-mobile);
    max-height: var(--space-12);
  }

  .dialog-copy {
    padding: var(--space-14) var(--space-8) var(--space-8);
  }

  .toast {
    bottom: var(--space-10);
  }

  .feature {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
  }

  .feature-image {
    height: var(--height-feature-mobile);
  }

  .feature-copy {
    padding: var(--space-12) 8vw var(--space-16);
  }

  .newspaper-cutout {
    padding: var(--space-10) var(--space-8) var(--space-10);
    transform: rotate(-0.4deg);
    box-shadow: 6px 8px 0 rgba(177, 138, 101, 0.2), var(--shadow-md);
  }

  .newspaper-meta {
    font-size: var(--text-xs);
  }

  .footer {
    flex-direction: column;
    gap: var(--space-5);
    text-align: center;
    padding: var(--space-10) 6vw var(--space-14);
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4) var(--space-6);
  }

  .newsletter {
    padding: var(--space-16) 6vw;
  }

  .newsletter-form {
    max-width: 100%;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .hero-image img {
    transition: none;
  }

  .collection-load-frame,
  .collection-load-frame::before,
  .collection-load-button,
  .collection-load-button::before,
  .collection-load-button .load-chevron {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .product,
  .button,
  .newsletter-submit,
  .newsletter-submit::before,
  .product-image img {
    transition: none;
  }

  .product[data-product-reveal] {
    opacity: 1;
    translate: 0 0;
  }

  .product:hover,
  .button:hover {
    transform: none;
  }

  .newsletter-submit:hover:not(:disabled),
  .newsletter-submit:active:not(:disabled) {
    scale: 1;
    box-shadow: none;
  }

  .newsletter-submit:hover:not(:disabled)::before {
    scale: 0;
  }

  .collection-load-button:hover,
  .collection-load-button:active {
    scale: 1;
    box-shadow: none;
  }

  .collection-load-button:hover::before {
    scale: 0;
  }

  .collection-load-button:hover .load-chevron {
    transform: none;
  }

  .hero-label,
  .hero h1,
  .hero-cta-group {
    animation: none;
    opacity: 1;
    transform: translateY(0);
  }
}
