/* ============================================================
   KINGSTON OLIVE OIL — COOKING & LIVING
   Main Stylesheet | koocooking.ca
   ============================================================ */

/* === DESIGN TOKENS === */
:root {
  /* Brand Colors */
  --coral:     #E8472A;   /* brand title, recipe card names, icon accents */
  --lime:      #8DC63F;   /* hover states on all interactive elements */

  /* Neutrals */
  --color-text:      #000000;
  --color-muted:     #888888;
  --color-border:    #F0F0F0;   /* subtle structural borders */
  --color-bg:        #ffffff;
  --color-card-ph:   #e8e8e8;

  /* Typography */
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Spacing */
  --s1:  0.25rem;  --s2:  0.5rem;   --s3:  0.75rem;  --s4:  1rem;
  --s5:  1.25rem;  --s6:  1.5rem;   --s8:  2rem;     --s10: 2.5rem;
  --s12: 3rem;     --s16: 4rem;     --s20: 5rem;     --s24: 6rem;

  /* Border Radius */
  --r-sm:       2px;
  --r-md:       4px;
  --r-lg:       8px;
  --r-full:     9999px;
  --r-pill:     9999px; /* search bar — full pill */
  --r-squircle: 20px;   /* nav pills, subscribe fields, buttons */
  --r-chip:     12px;   /* card images */

  /* Shadows */
  --shadow-card:       0 2px 12px rgba(0,0,0,.06);
  --shadow-card-hover: 0 6px 28px rgba(0,0,0,.11);
  --shadow-dropdown:   0 4px 20px rgba(0,0,0,.10);

  /* Motion */
  --fast: 150ms ease;
  --base: 250ms ease;

  /* Layout */
  --max-w: 1280px;
  --pad:   clamp(1rem, 4vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; }

/* === UTILITIES === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ============================================================
   SITE CAP — header scrolls normally; nav sticks at top
   ============================================================ */
.site-cap {
  background: #fff;
  border-bottom: 1px solid #D8D8D8;
}


/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: #fff;
  padding: var(--s2) var(--pad) var(--s2);
}

/* Store return bar */
.store-bar {
  text-align: center;
  padding: 3px 16px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: var(--s3);
}
.store-bar__link {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--coral);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.store-bar__link:hover {
  text-decoration: none;
}

/* Top bar: logo left | newsletter right */
.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.header__logo {
  display: block;
  justify-self: start;
}

.header__logo-img {
  height: 68px;
  width: auto;
}

/* Newsletter form — header variant */
.newsletter-form {
  display: flex;
  align-items: center;
  gap: var(--s2);
  justify-self: end;
}

.newsletter-form__input {
  display: inline-block;
  text-decoration: none;
  border: 1px solid #E0E0E0;
  border-radius: var(--r-squircle);
  padding: var(--s2) var(--s4);
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--color-text);
  background: #fff;
  outline: none;
  width: 260px;
  text-align: center;
  box-shadow: none;
  transition: border-color var(--fast);
}

.newsletter-form__input::placeholder {
  color: var(--color-muted);
  text-align: center;
}

.newsletter-form__input:focus {
  border-color: #999;
  box-shadow: none;
}

/* Header newsletter — pill link (not a form field) */
.newsletter-pill-link {
  display: inline-block;
  white-space: nowrap;
  width: 240px !important;
  padding: var(--s2) var(--s4) !important;
  font-size: 1.05rem !important;
  font-weight: 400;
  color: #444444;
  background: linear-gradient(135deg, #fafafa, #f3f3f3) !important;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--fast), color var(--fast);
}

.newsletter-pill-link:hover {
  border-color: #999;
  color: #666666;
}

.newsletter-form__btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: var(--s2) 0;
  transition: color var(--fast);
  white-space: nowrap;
}

.newsletter-form__btn:hover {
  color: var(--lime);
}

.newsletter-form--footer {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s3);
}

.newsletter-form--footer .newsletter-form__input {
  width: 100%;
  max-width: 300px;
}

.newsletter-form--footer .newsletter-form__btn {
  font-size: 0.82rem;
}

/* Full-width ingredient ribbon */
.header__ribbon {
  width: 100%;
  margin-bottom: -8px;
  text-align: center;
}

.header__ribbon-img {
  width: 52%;
  height: auto;
  display: inline-block;
  opacity: 0.88;
}

/* Brand name */
.header__brand-name {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--s4);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
  line-height: 1.2;
  text-decoration: none;
  display: block;
}

/* Search bar — below brand name */
.header__search {
  max-width: 860px;
  margin: 0 auto;
}

.header__top + .header__search {
  margin-top: var(--s5);
}


/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar {
  position: relative;
  width: 100%;
}

.search-bar__wrap {
  display: flex;
  align-items: stretch;
  border: none;
  border-radius: var(--r-pill);
  overflow: hidden;
  background: #fff;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.10), 0px 6px 20px rgba(0,0,0,0.13), 0px 12px 32px -4px rgba(232,71,42,0.28);
  transition: box-shadow var(--fast);
}

.search-bar__wrap:focus-within {
  box-shadow: 0px 2px 8px rgba(0,0,0,0.12), 0px 8px 24px rgba(0,0,0,0.15), 0px 14px 36px -4px rgba(232,71,42,0.40);
}

.search-bar__input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 44px 0 var(--s6);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--color-text);
  background: transparent;
  min-height: 64px;
}

.search-bar__input::placeholder {
  color: var(--color-muted);
  font-weight: 400;
}

/* Coral magnifying glass icon button — replaces Find button */
.search-bar__icon-btn {
  padding: 0 var(--s5);
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity var(--fast);
}

.search-bar__icon-btn:hover {
  opacity: 0.7;
}

/* Optical centering: 1px right, 1px up */
.search-bar__icon-btn svg {
  position: relative;
  top: -1px;
  left: 1px;
}

/* Search dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--r-squircle);
  box-shadow: var(--shadow-dropdown);
  display: none;
  z-index: 200;
  overflow: hidden;
}

.search-dropdown.open {
  display: block;
}

.search-dropdown__item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background var(--fast);
}

.search-dropdown__item:hover {
  background: #f5f5f5;
}

.search-dropdown__badge {
  margin-left: auto;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  flex-shrink: 0;
}

.search-dropdown__footer {
  padding: var(--s3) var(--s4);
  font-size: 0.82rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  cursor: pointer;
  transition: color var(--fast);
}

.search-dropdown__footer:hover {
  color: var(--color-text);
}


/* ============================================================
   SITE NAV — sticky pill buttons
   ============================================================ */
.site-nav {
  background: #fff;
}

.site-nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px var(--pad) 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
}

/* Dropdown wrapper */
.nav-dropdown {
  position: relative;
  flex-shrink: 0;
}

/* Trigger — squircle pill button */
.nav-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  background: #f1f3f4;
  border: none;
  border-radius: var(--r-squircle);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #666666;
  white-space: nowrap;
  transition: color var(--fast), background var(--fast);
}

/* Coral chevron */
.nav-dropdown__trigger svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--coral);
  transition: transform var(--fast);
}

.nav-dropdown:hover .nav-dropdown__trigger,
.nav-dropdown.open   .nav-dropdown__trigger {
  color: #000;
  background: #e8eaed;
}

.nav-dropdown.open .nav-dropdown__trigger svg {
  transform: rotate(180deg);
}

/* Dropdown menu */
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + var(--s2));
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--coral);
  list-style: none;
  padding: var(--s2) 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity var(--fast), transform var(--fast);
  z-index: 300;
  box-shadow: var(--shadow-dropdown);
  border-radius: 0 0 var(--r-squircle) var(--r-squircle);
}

.nav-dropdown.open .nav-dropdown__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown__menu a {
  display: block;
  padding: var(--s3) var(--s5);
  font-size: 0.88rem;
  color: #666666;
  white-space: nowrap;
  transition: background var(--fast), color var(--fast);
}

.nav-dropdown__menu a:hover {
  background: #f5f5f5;
  color: var(--lime);
}


/* ============================================================
   SITE MAIN
   ============================================================ */
.site-main {
  padding-top: 0;
}

.story-prompt {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--s3) var(--pad);
  border-bottom: 1px solid #D8D8D8;
}

.story-prompt__link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #666666;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.story-prompt__link:hover {
  color: #E8472A;
}

.story-prompt__icon {
  width: 36px;
  height: auto;
}


/* ============================================================
   RECIPE ROWS (homepage)
   ============================================================ */
.recipe-row {
  padding: var(--s6) 0 var(--s5);
}

/* Browse header — section label + items on one horizontal line */
.browse-header {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-bottom: var(--s3);
  overflow: hidden;
  position: relative;
}

/* Section label — left-aligned, same weight family as tab items */
.recipe-row__label {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #666666;
  margin-bottom: 0;
  flex-shrink: 0;
}

.label-short { display: none; }

/* Tab row — inline chips, single line, horizontal scroll */
.tab-row {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}

.tab-row::-webkit-scrollbar {
  display: none;
}

/* Browse items — plain text, no pill treatment */
.tab-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: #666666;
  white-space: nowrap;
  transition: color var(--fast);
  text-decoration: none;
}

@media (hover: hover) {
  .tab-item:hover {
    color: var(--coral);
  }
}

.tab-item.active {
  color: var(--coral);
}

/* Dot separator — 12px padding each side of the dot */
.tab-item:not(:last-child)::after {
  content: '·';
  color: #595959;
  padding: 0 8px;
  pointer-events: none;
  font-weight: 400;
  transition: none;
}


/* ============================================================
   RECIPE GRID
   ============================================================ */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6) var(--s5);
}


/* ============================================================
   RECIPE CARD — minimal, image-forward
   ============================================================ */
.recipe-card {
  display: block;
  color: var(--color-text);
  text-decoration: none;
}

.recipe-card__img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-card-ph);
  border-radius: 40px;
  margin-bottom: var(--s3);
}

.recipe-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.recipe-card:hover .recipe-card__img {
  transform: scale(1.03);
}

/* Placeholder card image area */
.recipe-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Recipe card title */
.recipe-card__title {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.4;
  margin: 0;
  color: #444444;
  text-align: left;
  transition: opacity var(--fast);
}

.recipe-card:hover .recipe-card__title {
  opacity: 0.75;
}


/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: var(--s8) var(--pad) var(--s8);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.footer__top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--s8);
}

.footer__left {
  flex-shrink: 0;
}

.footer__logo-img {
  height: 96px;
  width: auto;
  display: block;
}

.footer__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s6);
}

.footer__newsletter {
  text-align: center;
}

.footer__newsletter-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--s1);
  display: block;
}

.footer__newsletter .newsletter-form__input {
  width: 300px;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.08), 0px 4px 12px rgba(0,0,0,0.08);
}

.footer__koo-promo {
  text-align: center;
}

.footer__koo-promo .footer__koo-link {
  color: var(--coral);
}

.footer__koo-tagline {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: #888;
  margin: 0 0 var(--s1);
}

.footer__bottom {
  text-align: center;
  border-top: 1.5px solid #C8C8C8;
  padding-top: var(--s4);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
}

.footer__koo-link {
  font-size: 0.88rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--fast);
}

.footer__koo-link:hover {
  color: var(--lime);
}

.footer__stores {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s1);
  margin-bottom: var(--s2);
}

.footer__store {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--color-muted);
}


/* ============================================================
   RECIPES.HTML — results page
   ============================================================ */
.page-title-section {
  padding: var(--s5) 0 var(--s4);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--s5);
}

.page-title-section h1 {
  font-size: clamp(1.2rem, 2.25vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
  text-align: center;
}

.breadcrumb {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.5rem;
}

.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
}

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

/* Coming soon placeholder */
.recipes-placeholder {
  padding: var(--s20) 0;
  text-align: center;
  color: var(--color-muted);
}

.recipes-placeholder p {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* Interstitial search — after every 9 cards on recipes.html */
.interstitial-search {
  grid-column: 1 / -1;
  padding: var(--s6) 0;
  display: flex;
  align-items: center;
  gap: var(--s5);
  border-bottom: 1.5px solid var(--color-border);
}

.interstitial-search__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font);
  font-size: 1.05rem;
  color: var(--color-text);
  padding: var(--s2) 0;
}

.interstitial-search__input::placeholder {
  color: #555555;
  font-weight: 500;
}

.interstitial-search__btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  padding: 0;
  flex-shrink: 0;
  transition: color var(--fast);
}

.interstitial-search__btn:hover {
  color: var(--lime);
}


/* Interstitial hero — search bar between homepage recipe rows */
.interstitial-hero {
  padding: var(--s2) var(--pad);
  text-align: center;
  margin: 0;
}

.interstitial-hero__branch {
  display: none;
}

.interstitial-hero__search {
  max-width: 680px;
  margin: 0 auto;
}

.interstitial-hero__search .search-bar__wrap {
  box-shadow: 0px -1px 5px rgba(0,0,0,0.07), 0px 2px 8px rgba(0,0,0,0.06), 0px 5px 14px -2px rgba(232,71,42,0.16);
}


/* ============================================================
   RECIPE.HTML — individual recipe page
   ============================================================ */

body:has(#recipe-detail) .site-cap {
  border-bottom: none;
}

/* Full-width hero image */
.recipe-detail__hero {
  width: 100%;
  background: var(--color-card-ph);
  border-radius: var(--r-chip);
  margin-top: var(--s8);
}

.recipe-detail__hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Logo below image */
.recipe-detail__koo-logo {
  padding: var(--s5) var(--pad);
  max-width: var(--max-w);
  margin: 0 auto;
}

.recipe-detail__koo-logo img {
  height: 36px;
  width: auto;
}

/* Recipe content */
.recipe-detail__content {
  max-width: 840px;
  margin: 0 auto;
  padding: var(--s8) var(--pad) var(--s6);
  overflow-wrap: break-word;
  word-break: break-word;
}

.recipe-detail__title {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: var(--s5);
  color: var(--color-text);
}

.recipe-detail__intro {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: var(--s5);
  max-width: 680px;
}

.recipe-detail__section-label {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: var(--s4);
  display: block;
}

/* Ingredients */
.recipe-detail__ingredients {
  margin-bottom: var(--s5);
}

.ingredient-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ingredient-list li {
  font-family: Helvetica, Arial, sans-serif;
  padding: 2px 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.3;
  color: var(--color-text);
}

.ingredient-list__header {
  font-weight: 500;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text);
  list-style: none;
}


/* Directions */
.recipe-detail__directions {
  margin-bottom: var(--s5);
}

.directions__header {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-text);
  margin-top: var(--s5);
  margin-bottom: var(--s2);
}

.recipe-detail__directions p,
.recipe-detail__directions .step-text {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--s5);
}

/* Numbered steps (alternate format) */
.step-list {
  counter-reset: steps;
}

.step {
  display: flex;
  gap: var(--s5);
  margin-bottom: var(--s6);
  align-items: flex-start;
}

.step__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-card-ph);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-top: 2px;
}

.step__body p {
  font-size: 0.95rem;
  line-height: 1.75;
}


/* ============================================================
   COLLECTION PAGES
   ============================================================ */

.page-nav {
  display: flex;
  gap: var(--s3);
  margin-bottom: var(--s6);
}

.page-nav--recipe-top {
  padding: 2px var(--s4);
  margin-bottom: 0;
  margin-top: calc(var(--s2) * -1);
}

.page-nav--recipe-top + .recipe-detail__hero {
  margin-top: var(--s2);
}

.page-nav--recipe-top .page-nav__link {
  font-size: 0.75rem;
  padding: 3px 10px;
}

.page-nav__link {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 400;
  color: #444444;
  text-decoration: none;
  padding: var(--s2) var(--s4);
  border: 1px solid #D0D0D0;
  border-radius: var(--r-squircle);
  background: #fff;
  transition: color 0.15s, border-color 0.15s;
}

.page-nav__link:hover {
  color: var(--coral);
  border-color: var(--coral);
}

.collection__breadcrumb {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--s6);
}

.collection__breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
}

.collection__breadcrumb a:hover {
  color: var(--coral);
}

.collection__recipe {
  margin: var(--s12) 0;
}

.collection__recipe-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--r-chip);
  display: block;
  margin-bottom: var(--s6);
}

.collection__recipe-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--s2);
}

.collection__recipe-region {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: var(--s6);
}

.collection__recipe-directions {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-top: var(--s4);
  margin-bottom: var(--s6);
}

.collection__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--s10) 0;
}

/* Collections index page heading */
.page-section__label {
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--s4);
}

/* Collections index page grid */
.collections-page__intro {
  max-width: 640px;
  margin: 0 auto var(--s12);
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s8);
}

.collection-card__desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-muted);
  margin-top: var(--s2);
}

@media (max-width: 768px) {
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Generated collection body — styles raw Shopify HTML elements */
.collection__body {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text);
}

.collection__body p {
  line-height: 1.8;
  margin-bottom: var(--s4);
}

.collection__subheading {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: var(--s8) 0 var(--s4);
}

.collection__sign-off {
  margin-top: var(--s10);
  font-style: italic;
  color: var(--color-text);
  line-height: 1.6;
}

.collection__body img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--r-chip);
  margin: var(--s10) 0 var(--s6);
}

.collection__body p img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--r-chip);
  margin: var(--s10) auto var(--s6);
}

.collection__body p > span:only-child > img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--r-chip);
  margin: var(--s10) auto var(--s6);
}

.collection__body ul {
  padding-left: var(--s8);
  margin-bottom: var(--s4);
  line-height: 1.8;
}


/* ============================================================
   404.HTML
   ============================================================ */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: var(--s16) var(--pad);
  text-align: center;
}

.error-page__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--s4);
  display: block;
}

.error-page__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: var(--s4);
  color: var(--color-text);
}

.error-page__text {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: var(--s8);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.btn-home {
  display: inline-block;
  padding: var(--s3) var(--s8);
  background: #000;
  color: #fff;
  border-radius: var(--r-squircle);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--fast);
}

.btn-home:hover {
  background: var(--lime);
}


/* ============================================================
   SKELETON LOADING
   ============================================================ */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

.skeleton {
  background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--r-sm);
}


/* ============================================================
   MOBILE — responsive
   ============================================================ */
@media (max-width: 900px) {
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .header__logo-img {
    height: 44px;
  }

  /* Hide logo and email pill on mobile */
  #newsletter-header,
  .header__logo {
    display: none;
  }

  /* Collapse the now-empty top bar so it doesn't create phantom space */
  .header__top {
    display: none;
  }

  /* Ribbon — smaller, clearly decorative not dominant */
  .header__ribbon {
    margin-bottom: 0;
  }

  .header__ribbon-img {
    width: 55%;
  }

  /* Brand name — larger now that logo is gone, becomes identity anchor */
  .header__brand-name {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-top: var(--s1);
    margin-bottom: 1.2rem;
  }

  /* Search bar — full width on mobile */
  .search-bar {
    width: 100%;
    margin: 0;
  }

  /* Search bar — stronger presence on mobile */
  .search-bar__input {
    font-size: 15px;
    min-height: 54px;
    padding-left: 16px;
    padding-right: 52px;
  }

  .search-bar__wrap {
    border: 1.5px solid #D8D8D8;
    box-shadow: 0px -1px 6px rgba(0,0,0,0.08), 0px 3px 10px rgba(0,0,0,0.09), 0px 5px 10px -3px rgba(232,71,42,0.28);
  }
  .search-bar__wrap:focus-within {
    border-color: var(--coral);
    box-shadow: 0px -1px 6px rgba(0,0,0,0.08), 0px 3px 10px rgba(0,0,0,0.10), 0px 6px 12px -3px rgba(232,71,42,0.36);
  }

  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s4) var(--s3);
  }

  /* Cap homepage sections at 8 cards on mobile — keeps grid clean (4×2, no orphan) */
  #row-basics-grid .recipe-card:nth-child(n+9),
  #row-ingredients-grid .recipe-card:nth-child(n+9),
  #row-beat-grid .recipe-card:nth-child(n+9) {
    display: none;
  }

  .recipe-row {
    padding: var(--s6) 0 var(--s5);
  }

  .recipe-card__title {
    font-weight: 500;
    color: #222222;
    font-size: 0.95rem;
  }

  /* Shorten section headings on mobile */
  .label-long { display: none; }
  .label-short { display: inline; }

  /* Category tabs: horizontal scroll on mobile */
  .tab-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Right-edge fade — signals horizontal scroll on mobile */
  .browse-header::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(to right, transparent, #fff 80%);
    pointer-events: none;
  }

  .recipe-detail__hero {
    aspect-ratio: unset;
    margin-top: var(--s4);
  }

  .interstitial-search__input {
    font-size: 0.85rem;
  }
  .interstitial-search__input::placeholder {
    font-weight: 400;
  }

  .page-title-section {
    padding: var(--s4) 0;
    margin-bottom: var(--s4);
  }

  .site-nav {
    padding-top: 0.6rem;
  }

  .site-nav__inner {
    gap: var(--s2);
    flex-wrap: wrap;
    padding: var(--s2) var(--pad) 10px;
  }

  .nav-dropdown__trigger {
    font-size: 0.9rem;
    padding: var(--s2) var(--s3);
    color: #333333;
  }

  .nav-dropdown__menu a {
    font-size: 1rem;
    padding: var(--s3) var(--s5);
    color: #444444;
    white-space: normal;
  }

  .nav-dropdown__menu {
    white-space: normal;
    min-width: unset;
    max-width: 170px;
  }

  .nav-dropdown:last-child .nav-dropdown__menu {
    right: 0;
    left: auto;
  }

  .page-nav--recipe-top {
    margin-top: var(--s3);
  }

}

@media (max-width: 680px) {
  .story-prompt {
    padding: var(--s2) var(--pad);
  }

  .story-prompt__icon {
    width: 22px;
  }

  .footer__top {
    flex-direction: column;
    align-items: center;
    gap: var(--s4);
  }

  .footer__logo-img {
    height: 60px;
  }

  .footer__newsletter .newsletter-form__input {
    width: 240px;
  }

  .footer__stores {
    padding: 0 var(--s4);
    text-align: center;
  }

  .footer__store {
    font-size: 0.7rem;
    line-height: 1.5;
  }
}

@media (max-width: 400px) {
  .header__top {
    grid-template-columns: auto 1fr auto;
    gap: var(--s2);
  }

  .newsletter-form__input {
    width: 100px;
  }
}


/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-cap,
  .site-footer,
  .recipe-detail__koo-logo,
  .page-nav {
    display: none !important;
  }

  body {
    padding-top: 0 !important;
  }

  .recipe-detail__hero {
    aspect-ratio: unset;
    break-after: avoid;
  }

  .recipe-detail__content {
    max-width: 100%;
    padding: 1.5rem 0 0;
  }
}
