/* AMFY — Accessories Made For You | Shared Styles */

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

:root {
  --cream:       #F9F6F1;
  --surface:     #F2EDE4;
  --surface-2:   #E8E0D3;
  --gold:        #B8956A;
  --gold-deep:   #8B6B40;
  --gold-border: rgba(184,149,106,0.22);
  --gold-tint:   rgba(184,149,106,0.07);
  --cocoa:       #1A1612;
  --cocoa-mid:   #231E19;
  --text:        #1A1612;
  --muted:       #6B5E4F;
  --muted-2:     #9B8B7A;
  --white:       #FFFFFF;
  --radius-pill: 9999px;
  --radius-2xl:  2rem;
  --radius-xl:   1.75rem;
  --radius-lg:   1.25rem;
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-expo:   cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }
body { overflow-x: clip; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grain texture — fixed, pointer-events-none, never on scrolling containers */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

img { display: block; max-width: 100%; }

/* ─── NAV ──────────────────────────────────── */

body > nav {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 2rem);
  max-width: 1100px;
}

.nav-pill {
  background: rgba(249, 246, 241, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(26,22,18,0.08);
  border-radius: var(--radius-pill);
  padding: 0.4375rem 0.4375rem 0.4375rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 6px 28px rgba(26,22,18,0.07),
    0 1px 4px rgba(26,22,18,0.04);
}

.nav-logo {
  font-family: 'Cormorant', serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.3s var(--ease-spring);
}

.nav-logo:hover { opacity: 0.5; }

.nav-center { display: flex; align-items: center; }

.nav-center a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-decoration: none;
  padding: 0.3125rem 0.75rem;
  border-radius: var(--radius-pill);
  transition: color 0.28s var(--ease-spring), background 0.28s var(--ease-spring);
  white-space: nowrap;
}

.nav-center a:hover  { color: var(--text); background: rgba(26,22,18,0.05); }
.nav-center a.active { color: var(--text); background: rgba(26,22,18,0.06); font-weight: 500; }

.nav-right { display: flex; align-items: center; gap: 0.5rem; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cocoa);
  color: var(--cream);
  padding: 0.4rem 0.4rem 0.4rem 0.875rem;
  border-radius: var(--radius-pill);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: all 0.45s var(--ease-spring);
  white-space: nowrap;
}

.nav-cta:hover  { background: #2E2920; transform: scale(1.02); }
.nav-cta:active { transform: scale(0.975); }

.nav-cta-icon {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.13);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  transition: transform 0.4s var(--ease-spring);
}

.nav-cta:hover .nav-cta-icon { transform: translate(2px, -1px); }

/* ─── HAMBURGER ────────────────────────────── */

.hamburger {
  display: none;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  outline: none;
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.42s var(--ease-spring);
  position: absolute;
  left: 7px;
  transform-origin: center;
}

.hamburger span:nth-child(1) { top: 10px; }
.hamburger span:nth-child(2) { top: 15.5px; }
.hamburger span:nth-child(3) { top: 21px; }

.hamburger.open span:nth-child(1) { top: 15.5px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { top: 15.5px; transform: rotate(-45deg); }

/* ─── MOBILE OVERLAY ───────────────────────── */

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(249, 246, 241, 0.98);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 5.5rem 2rem 3rem;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.38s var(--ease-out), transform 0.38s var(--ease-out);
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mobile-overlay a {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--muted);
  text-decoration: none;
  padding: 0.6rem 0;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.4s var(--ease-out),
    transform 0.4s var(--ease-out),
    color 0.2s;
}

.mobile-overlay a:hover,
.mobile-overlay a:active { color: var(--text); }

.mobile-overlay a.active { color: var(--text); font-weight: 600; }

.mobile-overlay.open a               { opacity: 1; transform: translateY(0); }
.mobile-overlay.open a:nth-child(1)  { transition-delay: 0.05s; }
.mobile-overlay.open a:nth-child(2)  { transition-delay: 0.09s; }
.mobile-overlay.open a:nth-child(3)  { transition-delay: 0.13s; }
.mobile-overlay.open a:nth-child(4)  { transition-delay: 0.17s; }
.mobile-overlay.open a:nth-child(5)  { transition-delay: 0.21s; }
.mobile-overlay.open a:nth-child(6)  { transition-delay: 0.25s; }
.mobile-overlay.open a:nth-child(7)  { transition-delay: 0.29s; }
.mobile-overlay.open a:nth-child(8)  { transition-delay: 0.33s; }
.mobile-overlay.open a:nth-child(9)  { transition-delay: 0.37s; }
.mobile-overlay.open a:nth-child(10) { transition-delay: 0.41s; }
.mobile-overlay.open a:nth-child(11) { transition-delay: 0.45s; }
.mobile-overlay.open a:nth-child(12) { transition-delay: 0.49s; }

/* ─── BUTTONS ──────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--cocoa);
  color: var(--cream);
  padding: 0.9375rem 0.75rem 0.9375rem 1.625rem;
  border-radius: var(--radius-pill);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.45s var(--ease-spring);
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}

.btn-primary:hover  { background: #2E2920; transform: scale(1.025); }
.btn-primary:active { transform: scale(0.975); }

/* btn-primary on dark backgrounds (hero panel) */
.hero-panel-left .btn-primary,
.hero .btn-primary {
  background: var(--cream);
  color: var(--cocoa);
}
.hero-panel-left .btn-primary:hover,
.hero .btn-primary:hover { background: #ede8e0; transform: scale(1.025); }
.hero-panel-left .btn-primary .btn-icon,
.hero .btn-primary .btn-icon { background: rgba(26,22,18,0.1); }
.hero-panel-left .btn-primary:hover .btn-icon,
.hero .btn-primary:hover .btn-icon { background: rgba(26,22,18,0.16); transform: translate(2px, -1px); }

.btn-icon {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  transition: transform 0.4s var(--ease-spring), background 0.4s var(--ease-spring);
  flex-shrink: 0;
}

.btn-primary:hover .btn-icon { transform: translate(2px, -1px); background: rgba(255,255,255,0.22); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--muted);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.28s var(--ease-spring);
}

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

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: #16a34a;
  color: #fff;
  padding: 0.9375rem 0.75rem 0.9375rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.45s var(--ease-spring);
  letter-spacing: 0.01em;
}

.btn-whatsapp:hover  { background: #15803d; transform: scale(1.025); }
.btn-whatsapp:active { transform: scale(0.975); }
.btn-whatsapp .btn-icon { background: rgba(255,255,255,0.2); }
.btn-whatsapp:hover .btn-icon { transform: translate(2px, -1px); }

/* ─── UTILITIES ────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(26,22,18,0.04);
  border: 1px solid rgba(26,22,18,0.1);
  border-radius: var(--radius-pill);
  padding: 0.3125rem 1rem;
  font-size: 0.5938rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.section-label {
  font-size: 0.5938rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1rem;
  display: block;
}

.section-divider {
  width: calc(100% - 6rem);
  max-width: 1200px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(26,22,18,0.08), transparent);
}

/* ─── COLLECTION HERO ──────────────────────── */

.collection-hero {
  min-height: clamp(520px, 72vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: clamp(5rem, 9vw, 8.5rem) clamp(1.5rem, 4vw, 3.75rem) clamp(3.5rem, 5.5vw, 5.5rem);
  position: relative;
  overflow: hidden;
}

.collection-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 30%;
  transition: transform 8s var(--ease-expo);
}

.collection-hero:hover .collection-hero-bg {
  transform: scale(1.03);
}

.collection-hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.collection-hero h1 {
  font-family: 'Cormorant', serif;
  font-size: clamp(3.5rem, 9vw, 7.75rem);
  font-weight: 500;
  line-height: 0.93;
  letter-spacing: -0.04em;
  color: var(--cream);
  margin-bottom: 1.375rem;
}

.collection-hero .eyebrow {
  background: rgba(249,246,241,0.08);
  border-color: rgba(249,246,241,0.16);
  color: rgba(249,246,241,0.72);
}

.price-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(249,246,241,0.08);
  border: 1px solid rgba(249,246,241,0.16);
  border-radius: var(--radius-pill);
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(249,246,241,0.72);
  margin-right: 0.5rem;
  letter-spacing: 0.01em;
}

.collection-desc {
  margin-top: 1.375rem;
  font-size: 0.9375rem;
  color: rgba(249,246,241,0.62);
  font-weight: 400;
  max-width: 460px;
  line-height: 1.85;
}

/* ─── PRODUCT GRID ─────────────────────────── */

.product-grid-section {
  padding: clamp(3rem, 5vw, 5rem) clamp(1.5rem, 3.75vw, 3.75rem) clamp(5rem, 8vw, 8.5rem);
  max-width: 1280px;
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* ─── PRODUCT CARD ─────────────────────────── */

.product-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: transform 0.55s var(--ease-expo);
}

.product-card:hover { transform: translateY(-8px) scale(1.005); }

/* outer shell */
.product-shell {
  background: rgba(26,22,18,0.02);
  border: 1px solid rgba(26,22,18,0.08);
  border-radius: var(--radius-xl);
  padding: 0.3125rem;
  height: 100%;
  transition: border-color 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-spring);
}

.product-card:hover .product-shell {
  border-color: rgba(26,22,18,0.12);
  box-shadow:
    0 20px 56px rgba(26,22,18,0.08),
    0 4px 12px rgba(26,22,18,0.04),
    0 0 0 1px rgba(184,149,106,0.06);
}

/* inner core */
.product-core {
  border-radius: calc(var(--radius-xl) - 0.3125rem);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.5);
}

/* image */
.product-img {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.72s var(--ease-expo), filter 0.5s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.07);
  filter: brightness(1.03);
}

.product-img-ph {
  width: 100%;
  height: 100%;
  transition: transform 0.72s var(--ease-expo);
}

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

/* info area */
.product-info {
  padding: 1.125rem 1.25rem 1.375rem;
  border-top: 1px solid rgba(26,22,18,0.07);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.product-name {
  font-family: 'Cormorant', serif;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.25;
}

.product-price {
  font-size: 0.8125rem;
  color: var(--gold-deep);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.6rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: gap 0.35s var(--ease-spring), color 0.28s var(--ease-spring);
}

.product-card:hover .product-cta { gap: 0.6rem; color: var(--text); }

/* ─── CTA STRIP ────────────────────────────── */

.cta-strip {
  background: var(--cocoa);
  padding: clamp(5rem, 9vw, 8rem) clamp(1.5rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-strip::before {
  content: 'AMFY';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant', serif;
  font-size: clamp(9rem, 24vw, 24rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  color: rgba(184,149,106,0.05);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

.cta-strip-inner { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; }

.cta-strip h2 {
  font-family: 'Cormorant', serif;
  font-size: clamp(2.25rem, 5vw, 3.875rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin-bottom: 1.125rem;
}

.cta-strip h2 em { font-style: italic; color: var(--gold); }

.cta-strip p {
  font-size: 0.9375rem;
  color: rgba(249,246,241,0.45);
  line-height: 1.85;
  margin-bottom: 2.75rem;
  font-weight: 400;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* ─── OUTLINE BUTTON (dark bg contexts) ───── */

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--cream);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid rgba(249,246,241,0.28);
  border-radius: var(--radius-pill);
  padding: 0.9375rem 1.625rem;
  transition: all 0.45s var(--ease-spring);
  letter-spacing: 0.01em;
}

.btn-outline:hover {
  border-color: rgba(249,246,241,0.7);
  background: rgba(249,246,241,0.07);
  transform: scale(1.02);
}

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

/* ─── WHATSAPP FAB ─────────────────────────── */

.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.25rem;
  height: 3.25rem;
  background: #22C55E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 4px 20px rgba(34,197,94,0.38), 0 1px 4px rgba(26,22,18,0.1);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring);
  text-decoration: none;
  color: #fff;
}

.whatsapp-fab:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(34,197,94,0.48), 0 2px 8px rgba(26,22,18,0.12);
}

.whatsapp-fab:active { transform: scale(0.95); }

/* ─── FOOTER ───────────────────────────────── */

footer {
  padding: 2rem clamp(1.5rem, 3.75vw, 3.75rem) 1.75rem;
  border-top: 1px solid rgba(26,22,18,0.08);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.footer-logo {
  font-family: 'Cormorant', serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}

.footer-links {
  display: flex;
  gap: 0.875rem 2.25rem;
  flex-wrap: wrap;
  padding: 0;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.28s var(--ease-spring);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted-2);
  line-height: 1.6;
}

/* ─── SCROLL REVEAL ────────────────────────── */

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

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── PAGE TRANSITIONS ─────────────────────── */

@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: 260ms var(--ease-spring) both vt-out;
}
::view-transition-new(root) {
  animation: 380ms var(--ease-out) both vt-in;
}

@keyframes vt-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-8px) scale(0.99); }
}
@keyframes vt-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ───────────────────────────── */

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

@media (max-width: 900px) {
  .nav-center { display: none; }
  .hamburger  { display: flex; }
  .nav-right .nav-cta { display: none; }
  .section-divider { width: calc(100% - 3rem); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  footer { gap: 1.75rem; }
}

@media (max-width: 768px) {
  /* Footer */
  .footer-links { display: none; }

  /* Collection hero */
  .collection-hero {
    min-height: 460px;
    padding: 5rem 1.5rem 2.75rem;
    align-items: flex-end;
  }
  .collection-hero-bg { background-attachment: scroll; }
  .collection-hero h1 {
    font-size: clamp(2.5rem, 11vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 0.875rem;
  }
  .collection-desc { font-size: 0.875rem; margin-top: 0.75rem; max-width: 100%; }
  .price-badge { font-size: 0.75rem; padding: 0.3rem 0.75rem; }
  .eyebrow { font-size: 0.5625rem; }

  /* Product grid */
  .product-grid-section { padding: 2.5rem 1rem 4rem; }
  .product-grid { gap: 0.625rem; }
  .product-name { font-size: 0.9375rem; }
  .product-price { font-size: 0.75rem; }
  .product-info { padding: 0.75rem 0.875rem 1rem; }
  .product-cta { font-size: 0.625rem; }

  /* CTA strip */
  .cta-strip { padding: 3.5rem 1.5rem; }
  .cta-strip::before { display: none; }
  .cta-strip h2 { font-size: clamp(1.875rem, 8vw, 2.5rem); }
  .cta-strip p { font-size: 0.875rem; margin-bottom: 2rem; }
  .cta-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .btn-primary, .btn-whatsapp { justify-content: center; width: 100%; }
  .btn-ghost { justify-content: center; }
}

@media (max-width: 480px) {
  /* Tighter product grid at phone size */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .product-shell { border-radius: var(--radius-lg); }
  .product-core { border-radius: calc(var(--radius-lg) - 0.3125rem); }
  .product-img { aspect-ratio: 1/1; }
  .product-info { padding: 0.625rem 0.75rem 0.875rem; }
  .product-name { font-size: 0.875rem; }
  .product-price { font-size: 0.6875rem; }
  .product-cta { font-size: 0.5625rem; letter-spacing: 0.04em; }

  /* Tighter nav pill */
  .nav-pill { padding: 0.375rem 0.5rem 0.375rem 1.125rem; }
  .nav-logo { font-size: 1rem; }

  /* Collection hero tighter */
  .collection-hero { min-height: 380px; padding: 4.5rem 1.25rem 2.25rem; }
}

@media (max-width: 400px) {
  .nav-pill { padding: 0.375rem 0.375rem 0.375rem 1rem; }
  .product-grid { gap: 0.375rem; }
  .product-info { padding: 0.5rem 0.625rem 0.75rem; }
  .product-name { font-size: 0.8125rem; }
  .collection-hero { min-height: 340px; }
}

/* Disable sticky hover states on touch-only devices */
@media (hover: none) {
  .cl-link:hover { padding-left: 0; }
  .cl-link:hover .cl-name { color: var(--text); }
  .cl-link:hover .cl-arrow { background: transparent; border-color: rgba(26,22,18,0.14); color: var(--muted); transform: none; }
  .product-card:hover { transform: none; }
  .product-card:hover .product-shell { box-shadow: none; border-color: rgba(26,22,18,0.08); }
  .product-card:hover .product-img img { transform: none; }
  .product-card:active { transform: translateY(-4px) scale(1.002); }
  .collection-hero:hover .collection-hero-bg { transform: none; }
}
