/* ============ BUBBLES BASKET — ATELIER VARIATION ============ */
/* Editorial, boutique, magazine-driven */

:root {
  --bg: oklch(0.97 0.008 85);
  --bg-deep: oklch(0.94 0.012 84);
  --ink: oklch(0.12 0.005 240);
  --ink-soft: oklch(0.25 0.005 240);
  --gold: oklch(0.72 0.12 78);
  --gold-deep: oklch(0.62 0.11 75);
  --cream: oklch(0.99 0.004 80);
  --muted: oklch(0.45 0.008 240);
  --line: oklch(0.85 0.01 80);
  --line-soft: oklch(0.9 0.008 82);

  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", monospace;

  --max: 1400px;
  --pad-x: clamp(20px, 5vw, 64px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "rlig" 1, "calt" 1, "kern" 1;
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

/* ============ NAV ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(0.97 0.008 85 / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-text h1 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}
.brand-text small {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  justify-content: center;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.currency {
  position: relative;
}
.currency-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s;
}
.currency-btn:hover {
  border-color: var(--ink);
}
.currency-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  min-width: 140px;
  box-shadow: 0 8px 24px oklch(0.12 0.005 240 / 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s;
  z-index: 200;
}
.currency.open .currency-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.currency-menu button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 8px;
  color: var(--muted);
}
.currency-menu button:hover {
  background: var(--bg-deep);
  color: var(--ink);
}
.currency-menu button.active {
  color: var(--ink);
}
.currency-menu button.active::before {
  content: "✓ ";
  color: var(--gold);
}

.cta-quote {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.cta-quote:hover {
  background: var(--gold);
  color: var(--ink);
}

.menu-toggle {
  display: none;
}

@media (max-width: 900px) {
  .nav-inner {
    grid-template-columns: 1fr auto;
  }
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    flex-shrink: 0;
  }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px var(--pad-x);
    border-bottom: 1px solid var(--line);
    gap: 18px;
    box-shadow: 0 8px 24px oklch(0.12 0.005 240 / 0.08);
  }
  .brand-text h1 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .cta-quote {
    display: none;
  }
  .nav-inner {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.display-xl {
  font-family: var(--serif);
  font-size: clamp(48px, 9vw, 144px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.display-lg {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 88px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.display-md {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.display-sm {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 500;
}

em {
  font-style: italic;
  font-weight: 400;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.eyebrow.no-line::before {
  display: none;
}

.num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 26px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-soft);
}

p {
  color: var(--ink-soft);
}

/* ============ LAYOUT ============ */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section {
  padding: clamp(48px, 10vh, 128px) 0;
}
.section-tight {
  padding: clamp(32px, 6vh, 72px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.section-head .left .num {
  margin-bottom: 16px;
  display: block;
}
.section-head .right {
  max-width: 540px;
}

@media (max-width: 800px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn .arrow {
  width: 14px;
  height: 14px;
  display: inline-block;
  transition: transform 0.3s;
}
.btn:hover .arrow {
  transform: translateX(3px);
}

@media (max-width: 480px) {
  .btn {
    padding: 12px 20px;
    font-size: 10px;
  }
}

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

.footer {
  background: var(--ink);
  color: oklch(0.85 0.008 80);
  padding: 96px 0 32px;
  margin-top: 96px;
}
.footer .display-md {
  color: var(--cream);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid oklch(0.25 0.005 240);
}
.footer-top h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 500;
}
.footer-top ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-top a {
  font-size: 14px;
  color: oklch(0.78 0.01 80);
  transition: color 0.2s;
}
.footer-top a:hover {
  color: var(--gold);
}
.footer-brand .brand-text h1 {
  color: var(--cream);
  font-size: 22px;
}
.footer-brand p {
  margin-top: 20px;
  font-size: 14px;
  color: oklch(0.7 0.008 80);
  max-width: 320px;
  line-height: 1.7;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid oklch(0.25 0.005 240);
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.55 0.008 80);
}
.footer-bottom a:hover {
  color: var(--gold);
}

.footer-marquee {
  font-family: var(--serif);
  font-size: clamp(56px, 14vw, 220px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: oklch(0.18 0.005 240);
  white-space: nowrap;
  overflow: hidden;
  padding: 24px 0;
  user-select: none;
}
.footer-marquee em {
  font-style: italic;
  color: var(--gold);
  opacity: 0.5;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding-top: 64px;
    margin-top: 64px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============ PRODUCT CARD ============ */

.prod-card {
  display: block;
  position: relative;
  overflow: hidden;
}
.prod-card .img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-deep);
  overflow: hidden;
}
.prod-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.prod-card:hover .img-wrap img {
  transform: scale(1.04);
}
.prod-card .cat {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: oklch(0.97 0.008 85 / 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
}
.prod-card .price-tag {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 8px 14px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.prod-card:hover .price-tag {
  opacity: 1;
  transform: translateY(0);
}
.prod-card .info {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.prod-card .info h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  transition: color 0.2s;
}
.prod-card:hover .info h4 {
  color: var(--gold-deep);
}
.prod-card .info .num {
  white-space: nowrap;
}

/* Always show price on touch devices */
@media (hover: none) {
  .prod-card .price-tag {
    opacity: 1;
    transform: translateY(0);
  }
  .prod-card:hover .img-wrap img {
    transform: none;
  }
}

/* ============ CATEGORY TILES ============ */

.cat-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-deep);
  display: block;
  transition: transform 0.4s ease;
}
.cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  mix-blend-mode: multiply;
}
.cat-tile:hover img {
  transform: scale(1.06);
}
.cat-tile .label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, oklch(0.12 0.005 240 / 0.7), transparent);
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.cat-tile .label h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 40px);
  font-weight: 400;
}
.cat-tile .label .arrow-circle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--cream);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.cat-tile:hover .label .arrow-circle {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* ============ ANIMATIONS ============ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.d-1 { animation-delay: 0.1s; }
.d-2 { animation-delay: 0.2s; }
.d-3 { animation-delay: 0.3s; }
.d-4 { animation-delay: 0.4s; }
.d-5 { animation-delay: 0.5s; }

/* ============ FORM ELEMENTS ============ */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold);
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}

/* ============ UTILS ============ */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

.gold-text { color: var(--gold-deep); }
.ink-bg { background: var(--ink); color: var(--cream); }
.cream-bg { background: var(--cream); }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

/* ============ SAFE AREA (notched phones) ============ */

@supports (padding: max(0px)) {
  .nav-inner {
    padding-left: max(var(--pad-x), env(safe-area-inset-left));
    padding-right: max(var(--pad-x), env(safe-area-inset-right));
  }
  .wrap {
    padding-left: max(var(--pad-x), env(safe-area-inset-left));
    padding-right: max(var(--pad-x), env(safe-area-inset-right));
  }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
