/* SawadeeCoCo — homepage visual recreation */

@font-face {
  font-family: Reckless;
  src: url("../fonts/RecklessCondensedS-Book.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Midnight;
  src: url("../fonts/midnight-sans-medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Midnight;
  src: url("../fonts/midnight-sans-semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Mono";
  src: url("../fonts/RobotoMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Mono";
  src: url("../fonts/RobotoMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Figtree;
  font-weight: 400;
  src: url("../fonts/figtree-regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  --brand: #2a2857;
  --accent: #ffb500;
  --cream: #fbf9eb;
  --page: #fffefb;
  --ink: #201c1a;
  --header-bg: #FFFEFB;
  --ease: cubic-bezier(0.5, 0, 0, 1);
  --btn-grad: linear-gradient(123deg, rgb(211, 69, 19), rgb(185, 15, 0));
  --header-h: 67px;
  --header-h-m: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#shop, #origins, #lattes, #reviews, #discover, #more-content, #main,
[id^="product-"] {
  scroll-margin-top: calc(var(--header-h-m) + 28px);
}
@media (min-width: 1024px) {
  #shop, #origins, #lattes, #reviews, #discover, #more-content, #main,
  [id^="product-"] {
    scroll-margin-top: calc(var(--header-h) + 28px);
  }
}
html, body { margin: 0; padding: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: Figtree, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3 { font-family: Reckless, Georgia, serif; font-weight: 300; margin: 0; }
em { font-style: italic; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
body.is-locked { overflow: hidden; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 50px;
  border: 1px solid var(--ink);
  font-size: 18px;
  letter-spacing: -0.3px;
  line-height: 1;
  transition: all 0.3s var(--ease);
  text-align: center;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: #fff; color: var(--ink); }
.btn-secondary {
  background: #fffaf6;
  color: #231f20;
  border-color: #231f20;
}
.btn-white {
  background: #fff;
  color: var(--ink);
}
.btn-white:hover { background: var(--brand); color: #fff; }
.btn-block { width: 100%; max-width: 340px; }

/* Decorated sticker titles */
.sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22em 0.42em 0.28em;
  font-family: Midnight, sans-serif;
  font-size: clamp(1.35rem, 6.2vw, 3.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
  color: var(--ink) !important;
  border: 1px solid var(--ink);
  border-radius: 0.375rem;
  transform: rotate(-2deg);
  overflow: visible;
}
@media (min-width: 1024px) {
  .sticker { font-size: 3.75rem; padding: 0.18em 0.38em 0.24em; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px;
  transition: padding 0.4s var(--ease);
}
.site-header.is-stuck { padding: 0; }
.header-inner {
  position: relative;
  display: grid;
  grid-template: "left center right" 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  height: var(--header-h-m);
  min-height: 0;
  overflow: visible;
  padding: 0 1.375rem 0 1.375rem;
  background: var(--header-bg);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 12px;
  transition: border-radius 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-stuck .header-inner {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.header-inner:has(.nav-item:hover .mega),
.header-inner:has(.nav-item:focus-within .mega) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
@media (min-width: 1024px) {
  .header-inner { height: var(--header-h); padding: 0 1.5625rem 0 1.25rem; gap: 1.125rem; }
}
.header-left, .header-right {
  display: flex;
  align-items: stretch;
  height: 100%;
  min-height: 0;
  gap: 1.25rem;
}
.header-left { grid-area: left; justify-content: flex-start; }
.header-right { grid-area: right; justify-content: flex-end; margin-left: auto; }
.logo {
  grid-area: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 0;
  padding: 0;
  font-family: Reckless, serif;
  font-weight: 300;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink);
}
@media (min-width: 1024px) {
  .logo { font-size: 1.625rem; }
}

.nav-left, .nav-right { display: none; height: 100%; }
@media (min-width: 1024px) {
  .nav-left, .nav-right { display: flex; }
  .hamburger { display: none; }
}
.nav-left ul, .nav-right ul {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 1.875rem;
}
.nav-left > ul > .nav-item > a,
.nav-right a {
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-left > ul > .nav-item > a {
  font-family: Reckless, serif;
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 0;
}
.nav-right a {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.nav-item { display: flex; align-items: center; position: static; }
.nav-caret {
  width: 1.125rem;
  height: 1.125rem;
  margin-left: 0.5rem;
  background: #c0dbff;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease);
}
.nav-item:hover .nav-caret { background: var(--accent); }
.nav-item:hover .nav-caret svg { transform: rotate(180deg); }
.nav-caret svg { width: 8px; height: 5px; transition: transform 0.3s var(--ease); }
.underline-link { position: relative; }
.underline-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.underline-link:hover::after { transform: scaleX(1); }

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--ink);
}
.icon-btn svg { transition: transform 0.3s var(--ease); }
.icon-btn:hover svg { transform: scale(0.9); }
.cart-btn { position: relative; padding: 5px 0; }
.cart-count {
  position: absolute;
  top: 7px;
  right: -13px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--accent);
  border: 1px solid var(--ink);
  border-radius: 10px;
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: block;
  width: 36px;
  height: 20px;
  position: relative;
  margin-right: 8px;
  align-self: center;
}
.hamburger span {
  position: absolute;
  left: 50%;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; }
.hamburger span:nth-child(3) { top: 100%; }

/* Mega menus */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--cream);
  border: 1px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  padding: 50px;
  display: none;
  z-index: 99;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.nav-item:hover .mega,
.nav-item:focus-within .mega { display: block; }
.nav-item:hover .mega-shop,
.nav-item:focus-within .mega-shop { display: grid; }
.mega-shop {
  grid-template-columns: 1.1fr 1.4fr 2.2fr;
  gap: 40px;
  align-items: start;
}
.mega h3 {
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.mega a {
  display: block;
  height: auto;
  padding: 4px 0;
  font-size: 18px;
  font-family: Figtree, Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.3;
}
.mega a:hover { text-decoration: underline; }
.mega-best {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mega-card {
  text-align: center;
}
.mega-card .img {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}
.mega-card img { width: 100%; height: 100%; object-fit: contain; background: transparent; }
.mega-card p { font-size: 14px; }
.mega-cta {
  grid-column: 1 / -1;
  margin-top: 8px;
  display: flex;
  justify-content: center;
}
.mega-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 48px;
  padding: 12px 28px;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
}
.mega-cta .btn:hover { text-decoration: none; }

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.overlay.is-open { opacity: 1; pointer-events: auto; }

/* Drawers */
.drawer {
  position: fixed;
  top: 0;
  height: 100%;
  width: min(480px, 100%);
  background: var(--cream);
  z-index: 120;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  overflow-y: auto;
  color: var(--ink);
}
.drawer.left { left: 0; transform: translateX(-100%); }
.drawer.right { right: 0; }
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}
.close-x {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer-body { padding: 0 28px 40px; }
.drawer h4 { font-family: Reckless, serif; font-size: 22px; font-weight: 300; }
.drawer .explore-label {
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.drawer-menu a {
  display: block;
  font-family: Reckless, serif;
  font-size: 32px;
  font-weight: 300;
  padding: 6px 0;
}
.drawer-best { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0; }
.drawer-best .img { aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.drawer-best img { width: 100%; height: 100%; object-fit: contain; background: transparent; }
.drawer-best p { font-size: 12px; margin-top: 6px; }
.socials { display: flex; gap: 16px; margin-top: 24px; }
.socials span { width: 24px; height: 24px; display: block; pointer-events: none; }

/* Search modal */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
}
.search-modal.is-open { display: flex; }
.search-panel {
  width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.search-box {
  width: 100%;
  background: var(--header-bg);
  border: 1px solid var(--ink);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  gap: 12px;
}
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 18px;
  background: transparent;
  font-family: Figtree, sans-serif;
  height: 48px;
}
@media (max-width: 1023px) {
  .search-box {
    gap: 8px;
    padding: 8px 10px;
  }
  .search-box .icon-btn,
  .search-box .close-x {
    flex-shrink: 0;
  }
  .search-box .close-x {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
  }
}
.search-results {
  display: none;
  background: var(--header-bg);
  border: 1px solid var(--ink);
  border-radius: 12px;
  max-height: min(60vh, 520px);
  overflow-y: auto;
}
.search-results.is-on { display: block; }
.search-group-label {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 16px 6px;
}
.search-hit {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid rgba(32, 28, 26, 0.1);
  text-align: left;
  width: 100%;
}
.search-hit.has-add {
  grid-template-columns: 64px 1fr auto;
}
.search-hit:not(.has-add) { display: block; }
.search-hit:hover { background: var(--cream); }
.search-hit-main {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  grid-column: 1 / 3;
}
.search-hit.has-add .search-hit-main { grid-column: 1 / 3; }
.search-hit img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
}
.search-hit-title { font-size: 16px; line-height: 1.25; }
.search-hit-meta { font-size: 14px; margin-top: 2px; opacity: 0.7; }
.search-hit .search-add {
  grid-column: 3;
  grid-row: 1;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 50px;
  background: #fff;
  font-size: 14px;
}
.search-hit .search-add:hover { background: var(--cream); }
.search-empty { padding: 20px 16px; font-size: 16px; }

/* Cart */
.cart-empty { padding: 40px 0; font-size: 18px; }
.progress { margin: 8px 0 20px; }
.progress p { font-size: 14px; margin-bottom: 8px; }
.bar { height: 6px; background: rgba(162, 201, 252, 0.12); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; background: var(--brand); }
.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(32,28,26,0.12);
}
.cart-item img { width: 88px; height: 88px; object-fit: contain; border-radius: 8px; }
.qty { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.qty button { width: 28px; height: 28px; border: 1px solid var(--ink); border-radius: 50%; }
.gift { margin: 16px 0; font-size: 16px; }
.gift textarea {
  width: 100%;
  margin-top: 8px;
  min-height: 80px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 10px;
  font-family: inherit;
  display: none;
}
.gift textarea.is-on { display: block; }
.checkout-note { font-size: 14px; opacity: 0.7; margin-top: 8px; text-align: center; }

/* Hero */
.hero {
  position: relative;
  z-index: 2;
  height: 95svh;
  max-height: 1080px;
  overflow: visible;
  color: #fff;
}
.hero > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 40px 24px 80px;
  max-width: 720px;
}
@media (min-width: 1024px) {
  .hero-content { padding: 60px 64px 90px; }
}
.hero h2 {
  font-size: 60px;
  line-height: 60px;
  margin: 17px 0 18px;
  color: #fff;
}
@media (min-width: 1024px) {
  .hero h2 { font-size: 84px; line-height: 84px; }
}
.hero p { max-width: 430px; margin-bottom: 18px; color: #fff; }
.hero .sticker { --deco-bg-color: #bada55; background: #bada55; margin-bottom: 19px; }
.scroll-hint {
  position: absolute;
  right: 20px;
  bottom: -25px;
  z-index: 10;
  width: 50px;
}
.scroll-hint img {
  position: relative;
  z-index: 10;
  width: 100%;
  height: auto;
  display: block;
}
@media (min-width: 1024px) {
  .scroll-hint { right: 30px; }
}

/* Tagline */
.tagline {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 99px 24px 74px;
  border-top: 1px solid #000;
  background: var(--cream);
}
@media (min-width: 1024px) {
  .tagline { padding: 105px 40px 138px; }
}
.tagline h2 {
  font-size: 32px;
  line-height: 1.15;
}
@media (min-width: 1024px) {
  .tagline h2 {
    font-size: clamp(45px, 8.08px + 3.606vw, 224px);
    line-height: 63px;
    letter-spacing: -0.1px;
  }
}
.desktop-only { display: none; }
.mobile-only { display: block; }
@media (min-width: 1024px) {
  .desktop-only { display: block; }
  .mobile-only { display: none; }
}

/* Product carousel */
.section-cream { background: var(--cream); }
.section-navy { background: var(--brand); color: #fff; }
.best-sellers { padding: 0 0 86px; border-bottom: 1px solid #000; }
@media (min-width: 1024px) { .best-sellers { padding-bottom: 138px; } }
.section-head {
  text-align: center;
  padding: 36px 16px 36px;
  overflow: visible;
}
@media (min-width: 1024px) {
  .section-head { padding: 48px 40px 60px; }
}
.best-sellers .sticker {
  background: #DAAEEA;
  font-size: clamp(1.2rem, 7vw, 3.75rem);
}

.carousel-wrap { position: relative; }
.track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 20px 32px;
  gap: 0;
}
.track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 auto;
  width: min(18.5rem, calc(100vw - 2.5rem));
  padding: 0 10px;
  scroll-snap-align: center;
}
@media (min-width: 1024px) {
  .slide { width: 20.25rem; }
  .track { padding: 0 42px 32px; }
}
.reviews .slide { width: auto; }
.lattes .slide {
  width: min(960px, calc(100vw - 40px));
}
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}
.carousel-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: #fff;
}
.explore-wrap { text-align: center; }

/* Product card */
.product-card { display: flex; flex-direction: column; }
.pc-media {
  position: relative;
  aspect-ratio: 324 / 365;
  background: var(--light-bg, #c1e4f8);
  border: 1px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pc-media a { display: flex; width: 100%; height: 100%; padding: 15px; }
.pc-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  transition: transform 0.3s var(--ease);
}
.product-card:hover .pc-media img { transform: scale(1.08); }
.pc-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 7px 6px 5px;
  font-family: Midnight, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.25rem;
}
.pc-rating {
  position: absolute;
  top: 15px;
  right: 12px;
  font-size: 14px;
  font-weight: 500;
  padding-left: 18px;
}
.pc-rating::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--ink);
}
.pc-add {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 50px;
  height: 50px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  z-index: 2;
}
.pc-info { padding-top: 20px; text-align: left; }
.pc-title {
  font-family: Reckless, serif;
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 15px;
}
.pc-price {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 7px;
}
.pc-desc {
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.005em;
  opacity: 0.8;
  width: 90%;
}

/* Reviews */
.reviews { padding: 80px 0; border-top: 1px solid #000; }
@media (min-width: 1024px) { .reviews { padding: 120px 0; } }
.reviews .section-head { text-align: left; max-width: 1104px; margin: 0 auto; padding: 0 20px 41px; }
@media (min-width: 1024px) { .reviews .section-head { padding: 0 40px 88px; } }
.reviews .sticker { background: #73BC25; }
.reviews h2 {
  font-size: 32px;
  margin-top: 18px;
}
@media (min-width: 1024px) {
  .reviews h2 { font-size: 60px; line-height: 63px; }
}
.review-card {
  width: min(340px, calc(100vw - 48px));
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.review-body { padding: 28px 24px 20px; flex: 1; text-align: left; }
.review-quote { font-family: Reckless, serif; font-size: 28px; line-height: 1.15; margin-bottom: 16px; }
.review-quote.large { font-size: 36px; }
.review-author { font-size: 16px; }
.review-shop {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  color: inherit;
}
.review-shop img { width: 72px; height: 72px; object-fit: contain; background: transparent; }
.review-shop p { font-size: 16px; margin-bottom: 8px; }
.review-shop .btn { min-height: 36px; padding: 6px 16px; font-size: 16px; }

/* Origins */
.origins {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: 172px 24px 40px;
}
@media (min-width: 1024px) { .origins { padding: 203px 40px 100px; } }
.origins-bg {
  position: absolute;
  inset: 0;
}
.origins-bg img { width: 100%; height: 100%; object-fit: cover; }
.origins-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(42, 40, 87, 0.55);
}
.origins-inner { position: relative; z-index: 1; }
.origins .sticker { background: #A2C9FC; color: var(--ink) !important; margin-bottom: 30px; }
.origins .display {
  font-family: Midnight, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 90px;
  line-height: 72px;
  margin: 150px 0 0;
}
@media (min-width: 1024px) {
  .origins .display { font-size: 180px; line-height: 144px; margin-bottom: 150px; }
}
.origins .story {
  max-width: 1355px;
  margin: 100px auto 0;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 300;
}
@media (min-width: 1024px) {
  .origins .story { font-size: 60px; line-height: 69px; margin: 40px auto 117px; }
}
.values {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 42px;
  margin: 100px 0 30px;
}
@media (min-width: 1024px) { .values { gap: 74px; margin: 0 0 40px; } }
.value { width: 90px; text-align: center; }
@media (min-width: 1024px) { .value { width: 146px; } }
.value img { width: 90px; height: 90px; margin: 0 auto 16px; }
@media (min-width: 1024px) { .value img { width: 100px; height: 100px; } }
.value p {
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}
/* Discover */
.discover { padding: 60px 0 75px; border-top: 1px solid #000; }
@media (min-width: 1024px) { .discover { padding: 120px 0 183px; } }
.discover .section-head { text-align: left; max-width: 1104px; margin: 0 auto; }
.discover .sticker { background: #FF7F31; }
.discover h2 { font-size: 32px; margin-top: 19px; }
@media (min-width: 1024px) { .discover h2 { font-size: 60px; line-height: 63px; } }
.search-block { max-width: 1104px; margin: 50px auto 0; padding: 0 20px; }
.search-input-wrap {
  position: relative;
  max-width: 390px;
  height: 82px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  margin: 0 auto 36px;
  transition: max-width 0.3s var(--ease);
}
.search-input-wrap.is-active { max-width: 100%; }
.search-input-wrap input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: Reckless, serif;
  font-size: 32px;
  padding: 20px 64px 20px 20px;
}
.search-ph {
  position: absolute;
  top: 50%;
  left: 40px;
  transform: translateY(-50%);
  font-family: Reckless, serif;
  font-size: 32px;
  opacity: 0.4;
  pointer-events: none;
}
.vibe-label {
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.vibes { display: flex; flex-wrap: wrap; gap: 8px; }
.vibe {
  font-family: Reckless, serif;
  font-size: 32px;
  letter-spacing: -0.005em;
  background: #daeaff;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  transition: background 0.3s var(--ease);
}
.vibe:hover, .vibe.is-on { background: #a2c9fc; }
.vibe-results {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.vibe-results.is-on { display: grid; }
@media (min-width: 1024px) {
  .vibe-results.is-on { display: flex; flex-wrap: wrap; justify-content: center; }
}
.vibe-item { text-align: center; max-width: 294px; }
.vibe-item img { width: 100%; aspect-ratio: 1; object-fit: contain; background: transparent; }
.vibe-item p {
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  text-transform: uppercase;
  margin: 10px 0 12px;
}

/* Lattes */
.lattes {
  position: relative;
  padding: 109px 0 52px;
  color: #fff;
  text-align: center;
  transition: background 0.3s ease;
  overflow: hidden;
}
@media (min-width: 1024px) { .lattes { padding: 95px 0 27px; } }
.lattes .sticker { background: #B6E242; }
.lattes h2 {
  font-family: Midnight, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 64px;
  line-height: 56px;
  max-width: 350px;
  margin: 18px auto 17px;
}
@media (min-width: 1024px) {
  .lattes h2 { font-size: 80px; line-height: 64px; max-width: none; }
}
.lattes .sub {
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  text-transform: uppercase;
}
.latte-card {
  width: min(920px, calc(100vw - 40px));
  margin: 0 auto;
  background: var(--light-bg, #ffcb96);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .latte-card {
    display: grid;
    grid-template-columns: 51.44% 48.56%;
    min-height: 420px;
    align-items: stretch;
  }
}
.latte-img { margin-top: -88px; }
@media (min-width: 1024px) {
  .latte-img { margin: 0; position: relative; min-height: 420px; }
  .latte-img img { position: absolute; right: 0; top: var(--image-offset, -52px); height: 100%; width: auto; max-height: 540px; object-fit: contain; }
}
.latte-copy { padding: 0 40px 40px; }
@media (min-width: 1024px) {
  .latte-copy { padding: 58px 80px 69px 40px; text-align: left; }
}
.latte-accent {
  display: inline-block;
  font-family: Midnight, sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 0 4px;
  transform: rotate(-2deg);
  margin-bottom: 8px;
  color: var(--ink);
}
@media (min-width: 1024px) { .latte-accent { font-size: 3.75rem; } }
.latte-copy h3 {
  font-size: 46px;
  line-height: 1;
  min-height: 2em;
  margin-bottom: 12px;
}
@media (min-width: 1024px) { .latte-copy h3 { font-size: clamp(50px, 3.8vw, 84px); } }
.latte-copy p { margin-bottom: 22px; max-width: 400px; }

/* Banner with box */
.banner-box { position: relative; border-top: 1px solid #000; }
.banner-box > img {
  width: 100%;
  height: 474px;
  object-fit: cover;
}
@media (min-width: 1024px) {
  .banner-box > img { height: 560px; }
}
.banner-panel {
  background: #F26412;
  color: #fff;
  padding: 40px 28px;
}
@media (min-width: 1024px) {
  .banner-panel {
    position: absolute;
    left: 42px;
    top: 50%;
    transform: translateY(-50%);
    width: min(460px, 40%);
    border-radius: 12px;
    padding: 48px 40px;
  }
}
.banner-panel h2 { font-size: 40px; line-height: 1.05; margin-bottom: 24px; }
@media (min-width: 1024px) { .banner-panel h2 { margin-bottom: 80px; } }
.banner-panel p { font-size: 22px; margin-bottom: 28px; }

/* Footer */
.footer { background: #C0DBFF; color: var(--ink); }
.footer-top { padding: 48px 24px 24px; }
@media (min-width: 1024px) {
  .footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 64px 48px 32px; }
}
.footer-heading { font-size: 18px; margin-bottom: 8px; }
.footer-caption { font-size: 16px; margin-bottom: 16px; }
.footer-email { font-size: 16px; margin-top: 16px; }
.footer-email a { text-decoration: underline; text-underline-offset: 3px; }
.newsletter {
  display: flex;
  gap: 8px;
  max-width: 420px;
}
.newsletter input {
  flex: 1;
  height: 48px;
  border: 1px solid var(--ink);
  border-radius: 50px;
  padding: 0 16px;
  background: #fff;
}
.footer-menus {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0 24px 32px;
}
@media (min-width: 1024px) {
  .footer-menus {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 0 48px 48px;
  }
  .acc-trigger { pointer-events: none; }
  .acc-trigger svg { display: none; }
  .acc-panel { display: block !important; max-height: none !important; }
}
.acc { border-top: 1px solid rgba(32,28,26,0.2); }
.acc-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 18px;
  text-align: left;
}
.acc-trigger svg { width: 35px; height: 35px; transition: transform 0.3s; }
.acc.is-open .acc-trigger svg { transform: rotate(180deg); }
.acc-panel { display: none; padding-bottom: 16px; }
.acc.is-open .acc-panel { display: block; }
.acc-panel a { display: block; padding: 4px 0; font-size: 16px; }

/* Inner pages (FAQ, Rewards, legal) */
.inner-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
@media (min-width: 1024px) {
  .inner-page { padding: 48px 24px 96px; }
}
.inner-kicker {
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.inner-page h1 {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  line-height: 0.95;
  margin-bottom: 16px;
}
.inner-lead {
  font-size: 18px;
  line-height: 1.45;
  margin-bottom: 36px;
  max-width: 40rem;
}
.legal-block { margin-bottom: 32px; }
.legal-block h2 {
  font-size: 28px;
  margin-bottom: 10px;
}
.legal-block p,
.legal-block li {
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 10px;
}
.legal-block ul {
  list-style: disc;
  padding-left: 1.25em;
  margin: 0 0 12px;
}
.inner-page a[href]:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-list { border-top: 1px solid rgba(32, 28, 26, 0.2); }
.faq-item { border-bottom: 1px solid rgba(32, 28, 26, 0.2); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-family: Reckless, Georgia, serif;
  font-size: 22px;
  font-weight: 300;
  text-align: left;
  line-height: 1.15;
}
.faq-q svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  transition: transform 0.3s var(--ease);
}
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 0 20px;
  font-size: 16px;
  line-height: 1.55;
  max-width: 40rem;
}
.faq-item.is-open .faq-a { display: block; }
.rewards-grid {
  display: grid;
  gap: 16px;
  margin: 8px 0 36px;
}
@media (min-width: 700px) {
  .rewards-grid { grid-template-columns: 1fr 1fr; }
}
.reward-card {
  background: var(--cream);
  border: 1px solid var(--ink);
  border-radius: 12px;
  padding: 24px;
}
.reward-card h2 { font-size: 28px; margin-bottom: 8px; }
.reward-card p { font-size: 16px; line-height: 1.45; }
.reward-code {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 16px;
  border: 1px dashed var(--ink);
  border-radius: 8px;
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
}

/* Product form drawer extras */
.pform-media { aspect-ratio: 1; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.pform-media img { width: 100%; height: 100%; object-fit: contain; }
.pform h3 { font-size: 32px; margin-bottom: 8px; }
.pform .price { font-weight: 500; margin-bottom: 16px; }
