/* Gaga Glaces (gaga.ecorce.app) v2 — Joyful Montreal Artisanal Creamery & Patisserie Studio */
@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage.woff2?v=2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.woff2?v=2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-italic.woff2?v=2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #1e1411;
  --ink-soft: #4e3d37;
  --mute: #826e66;
  --cream: #fffaf7;
  --blush-bg: #fde9e7;
  --blush-card: #fff3f1;
  --salmon: #f28478;
  --salmon-deep: #dc5b4d;
  --aqua: #6fd8d0;
  --aqua-soft: #e4f8f6;
  --aqua-deep: #128279;
  --choco: #26150f;
  --line: rgba(30, 20, 17, 0.08);
  --shadow: 0 18px 44px rgba(30, 20, 17, 0.06);
  --shadow-lg: 0 24px 60px rgba(30, 20, 17, 0.1);
  --sans: "Bricolage", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --pad: clamp(20px, 4.8vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 450 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure { margin: 0; }

/* Floating Airy Header */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 233, 231, 0.88);
  backdrop-filter: blur(14px);
  padding: 14px var(--pad);
  border-bottom: 1px solid rgba(30, 20, 17, 0.06);
}
.top-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  height: 54px;
  width: auto;
  object-fit: contain;
}
.nav {
  display: none;
  gap: 32px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.nav a {
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--salmon-deep); }
@media (min-width: 900px) { .nav { display: flex; } }

.cart-btn {
  appearance: none;
  border: 0;
  background: var(--ink);
  color: var(--cream);
  font: 700 15px/1 var(--sans);
  padding: 12px 20px;
  border-radius: 99px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(30, 20, 17, 0.14);
  transition: transform 0.2s ease, background 0.2s ease;
}
.cart-btn:hover {
  transform: translateY(-2px);
  background: var(--choco);
}
.cart-count {
  background: var(--aqua);
  color: var(--ink);
  padding: 4px 9px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 800;
}

/* Editorial Blush Hero */
.hero {
  background: var(--blush-bg);
  padding: clamp(36px, 5.5vw, 72px) var(--pad) clamp(56px, 7.5vw, 96px);
  border-radius: 0 0 48px 48px;
}
.hero-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1020px) {
  .hero-grid { grid-template-columns: 1.02fr 1.08fr; gap: 56px; }
}
.hero h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: 82%;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-stretch: 100%;
  color: var(--salmon-deep);
}
.hero-lead {
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 22px;
  max-width: 32em;
}
.hero-addr {
  margin-top: 18px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.btn {
  appearance: none;
  border: 0;
  background: var(--ink);
  color: var(--cream);
  font: 700 16px/1.1 var(--sans);
  padding: 17px 28px;
  border-radius: 99px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(30, 20, 17, 0.15);
}
.btn.aqua {
  background: var(--aqua);
  color: var(--ink);
}
.btn.salmon {
  background: var(--salmon);
  color: var(--ink);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
}
.btn.ghost:hover {
  background: #ffffff;
}

/* Borderless Editorial Photo Triptych */
.hero-triptych {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}
.trip-tall {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
  background: #fff;
}
.trip-tall img, .trip-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trip-col {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}
.trip-col figure {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

/* Section Layout */
.sec {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(56px, 7.5vw, 100px) var(--pad);
}
.sec-head {
  max-width: 46rem;
  margin-bottom: 36px;
}
.sec h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: 82%;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.02em;
}
.sec h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--salmon-deep);
}
.sec-sub {
  color: var(--ink-soft);
  font-size: 18px;
  margin-top: 14px;
  line-height: 1.5;
}

/* PATISSERIE STUDIO — CAKE CONFIGURATOR */
.studio-card {
  background: #ffffff;
  border-radius: 36px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-lg);
}
.ai-studio-bar {
  background: var(--aqua-soft);
  border-radius: 24px;
  padding: 18px 22px;
  margin-bottom: 24px;
}
.ai-studio-bar label {
  display: block;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--ink);
  margin-bottom: 12px;
}
.ai-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ai-input-row input {
  flex: 1 1 320px;
  font: 500 16px/1.4 var(--sans);
  padding: 16px 20px;
  border: 1.5px solid rgba(30, 20, 17, 0.12);
  border-radius: 99px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}
.ai-input-row input:focus {
  border-color: var(--aqua-deep);
}
.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.chip {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-soft);
  font: 600 13.5px/1.3 var(--sans);
  padding: 9px 15px;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.chip:hover {
  background: #ffffff;
  color: var(--ink);
}

.studio-grid {
  display: grid;
  gap: 36px;
  align-items: start;
}
@media (min-width: 1020px) {
  .studio-grid { grid-template-columns: 1.02fr 1.08fr; gap: 44px; }
}

/* Left: Visual Patisserie Stage */
.cake-stage {
  background: var(--blush-card);
  border-radius: 30px;
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  gap: 18px;
}
.cake-stage-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.cake-stage h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.1;
}
.diet-pill {
  background: var(--aqua);
  color: var(--ink);
  font-weight: 700;
  font-size: 12.5px;
  padding: 6px 13px;
  border-radius: 99px;
  white-space: nowrap;
}
.cake-svg-wrap {
  width: 100%;
  margin: 0 auto;
}
.cake-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}
.chef-note {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.chef-note b { color: var(--ink); }

/* Right: Tactile Visual Swatch Pickers */
.picker-stack {
  display: grid;
  gap: 15px;
}
.picker-group h4 {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mute);
  margin-bottom: 7px;
}
.size-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.size-card {
  appearance: none;
  border: 2px solid transparent;
  background: var(--cream);
  border-radius: 18px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
.size-card strong {
  display: block;
  font: 800 16px/1.2 var(--sans);
  color: var(--ink);
}
.size-card span {
  display: block;
  font-size: 12.5px;
  color: var(--mute);
  margin-top: 2px;
}
.size-card em {
  display: inline-block;
  margin-top: 6px;
  font-style: normal;
  font-weight: 800;
  font-size: 14.5px;
  color: var(--salmon-deep);
}
.size-card[aria-pressed="true"] {
  background: var(--blush-card);
  border-color: var(--salmon-deep);
}

.swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.swatch {
  appearance: none;
  border: 2px solid transparent;
  background: var(--cream);
  color: var(--ink);
  font: 600 13.5px/1.2 var(--sans);
  padding: 6px 11px 6px 7px;
  border-radius: 99px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}
.swatch:hover {
  background: #f5ebe6;
}
.swatch[aria-pressed="true"] {
  background: var(--ink);
  color: var(--cream);
}
.swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}

.plaque-input {
  width: 100%;
  font: 600 15.5px/1.3 var(--sans);
  padding: 13px 16px;
  border: 1.5px solid rgba(30, 20, 17, 0.14);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
}

.cake-buy-bar {
  margin-top: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.cake-price strong {
  display: block;
  font: 800 32px/1 var(--sans);
  letter-spacing: -0.02em;
}
.cake-price small {
  display: block;
  font-size: 13.5px;
  color: var(--mute);
  margin-top: 4px;
}

/* BOUTIQUE PRODUCT GRID — Borderless, Appetizing Cards */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.tab {
  appearance: none;
  border: 0;
  background: #f3eae5;
  color: var(--ink-soft);
  font: 700 15px/1 var(--sans);
  padding: 13px 22px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab:hover { background: var(--blush-bg); color: var(--ink); }
.tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--cream);
}

.p-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.p-card {
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.p-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.p-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--blush-card);
  position: relative;
}
.p-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.p-card:hover .p-img img {
  transform: scale(1.04);
}
.p-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: var(--ink);
  padding: 6px 13px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 12px;
}
.p-body {
  padding: 22px 24px 14px;
  display: grid;
  gap: 6px;
}
.p-sub {
  font-weight: 700;
  font-size: 13px;
  color: var(--aqua-deep);
}
.p-body h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.p-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: 2px;
}
.p-foot {
  padding: 14px 24px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.p-price strong {
  display: block;
  font: 800 22px/1 var(--sans);
}
.p-price small {
  font-size: 13px;
  color: var(--mute);
}
.add-btn {
  appearance: none;
  border: 0;
  background: var(--aqua);
  color: var(--ink);
  font: 700 14.5px/1 var(--sans);
  padding: 12px 20px;
  border-radius: 99px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.add-btn:hover {
  background: var(--salmon);
  transform: translateY(-1px);
}

/* Neighborhood Story */
.story-wrap {
  background: var(--blush-bg);
  border-radius: 44px;
  padding: clamp(36px, 5.5vw, 68px);
}
.story-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 960px) {
  .story-grid { grid-template-columns: 1fr 1.05fr; gap: 48px; }
}
.story-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.story-photos figure {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
}
.story-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hours-card {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  padding: 22px 26px;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.hours-row:last-child { border-bottom: 0; }

/* Slide-Over Cart Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 17, 0.45);
  backdrop-filter: blur(4px);
  z-index: 90;
  display: none;
}
.drawer-backdrop.open { display: block; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100vw);
  background: var(--cream);
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(30, 20, 17, 0.18);
  transform: translateX(102%);
  transition: transform 0.25s ease;
}
.drawer.open { transform: translateX(0); }
.d-head {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.d-head h3 { font-family: var(--serif); font-size: 24px; }
.d-close {
  appearance: none;
  border: 0;
  background: #f0e6e1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 700;
  cursor: pointer;
}
.d-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 26px;
  display: grid;
  align-content: start;
  gap: 14px;
}
.c-item {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(30, 20, 17, 0.05);
  display: grid;
  gap: 6px;
}
.c-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
}
.c-item-meta {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.c-item-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: var(--blush-bg);
  font-weight: 700;
  cursor: pointer;
}
.d-foot {
  padding: 22px 26px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  display: grid;
  gap: 12px;
}
.d-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--mute);
  margin-bottom: 4px;
}
.d-field select, .d-field input {
  width: 100%;
  font: 600 14.5px var(--sans);
  padding: 11px 14px;
  border: 1px solid rgba(30, 20, 17, 0.14);
  border-radius: 12px;
  background: var(--cream);
}
.d-total {
  display: flex;
  justify-content: space-between;
  font: 800 22px/1.2 var(--sans);
  padding-top: 4px;
}

footer {
  background: var(--choco);
  color: var(--cream);
  padding: 52px var(--pad);
  margin-top: 40px;
}
.foot-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
