@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
  --color-primary:    #3B1A17;
  --color-background: #FAF6F5;
  --color-card-bg:    #FFFFFF;
  --color-cta:        #F5D5D3;
  --color-cta-hover:  #E8807A;
  --color-text-dark:  #2C1810;
  --color-text-mid:   #8C6B65;
  --color-border:     #E8D5D0;
  --color-hint-bg:    #FDF0EE;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--color-background);
  color: var(--color-text-dark);
  -webkit-font-smoothing: antialiased;
}
button { font-family: 'Outfit', sans-serif; cursor: pointer; }
img    { max-width: 100%; display: block; }
a      { text-decoration: none; }

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: var(--color-card-bg);
  box-shadow: 0 2px 12px rgba(86, 38, 34, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo { display: flex; align-items: center; gap: 0; padding: 0; text-decoration: none; }
.nav-logo img { height: 63px; width: auto; margin-right: -0.55rem; }
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.3px;
  margin-left: -0.15rem;
  padding: 0;
  line-height: 1;
}
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.45rem;
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}
.nav-icon-btn:hover { background-color: var(--color-cta); }

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(86, 38, 34, 0.35);
  backdrop-filter: blur(3px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.menu-overlay.open { opacity: 1; pointer-events: all; }

.side-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(82vw, 340px);
  height: 100%;
  background: var(--color-card-bg);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(86, 38, 34, 0.18);
  border-radius: 20px 0 0 20px;
  overflow: hidden;
}
.side-drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1.5px solid var(--color-border);
}
.drawer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
}
.drawer-close-btn {
  background: var(--color-cta);
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1.1rem;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.15s;
}
.drawer-close-btn:hover { background-color: var(--color-cta-hover); transform: rotate(90deg) scale(1.1); }
.drawer-nav { list-style: none; padding: 0.75rem 0; margin: 0; flex: 1; overflow-y: auto; }
.drawer-nav li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  border-radius: 12px;
  margin: 0.1rem 0.6rem;
  transition: background-color 0.18s;
}
.drawer-nav li:hover { background-color: var(--color-hint-bg); }
.drawer-nav-left { display: flex; align-items: center; gap: 0.85rem; }
.drawer-nav-icon {
  width: 36px; height: 36px;
  background: var(--color-hint-bg);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.drawer-nav li:hover .drawer-nav-icon { background-color: var(--color-cta-hover); transform: scale(1.08); }
.drawer-nav-label { font-size: 0.95rem; font-weight: 600; color: var(--color-text-dark); }
.drawer-nav-arrow { color: var(--color-text-mid); font-size: 1rem; transition: transform 0.18s; }
.drawer-nav li:hover .drawer-nav-arrow { transform: translateX(3px); }
.side-drawer.open .drawer-nav li { animation: slideInItem 0.3s ease-out both; }
.side-drawer.open .drawer-nav li:nth-child(1) { animation-delay: 0.06s; }
.side-drawer.open .drawer-nav li:nth-child(2) { animation-delay: 0.10s; }
.side-drawer.open .drawer-nav li:nth-child(3) { animation-delay: 0.14s; }
.side-drawer.open .drawer-nav li:nth-child(4) { animation-delay: 0.18s; }
.side-drawer.open .drawer-nav li:nth-child(5) { animation-delay: 0.22s; }
.side-drawer.open .drawer-nav li:nth-child(6) { animation-delay: 0.26s; }
.side-drawer.open .drawer-nav li:nth-child(7) { animation-delay: 0.30s; }
.side-drawer.open .drawer-nav li:nth-child(8) { animation-delay: 0.34s; }
@keyframes slideInItem {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-card-bg);
  border-top: 1.5px solid var(--color-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.6rem 0 calc(0.6rem + env(safe-area-inset-bottom, 0px));
  z-index: 99;
  box-shadow: 0 -4px 20px rgba(86, 38, 34, 0.07);
}
.bottom-nav-btn {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  font-size: 1.3rem; color: var(--color-text-mid);
  padding: 0.3rem 1rem; border-radius: 12px;
  transition: color 0.18s, background-color 0.18s;
}
.bottom-nav-btn span.btn-label { font-size: 0.62rem; font-weight: 600; color: var(--color-text-mid); letter-spacing: 0.3px; }
.bottom-nav-btn:hover { background-color: var(--color-hint-bg); }
.bottom-nav-btn.active { color: var(--color-primary); }
.bottom-nav-btn.active span.btn-label { color: var(--color-primary); }
.bottom-nav-center {
  width: 52px; height: 52px;
  background: var(--color-cta);
  border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-top: -18px;
  box-shadow: 0 4px 16px rgba(86, 38, 34, 0.2);
  transition: background-color 0.2s, transform 0.15s;
}
.bottom-nav-center:hover { background-color: var(--color-cta-hover); transform: scale(1.08) translateY(-2px); }
.bottom-nav-center.active { background-color: var(--color-primary); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── index.html — Home Page ── */
.home-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 2.5rem 1rem 6rem;
  text-align: center;
}
.home-headline {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.home-sub {
  font-size: 1rem;
  color: var(--color-text-mid);
  margin-bottom: 2rem;
}
.match-card {
  background: var(--color-card-bg);
  border-radius: 24px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 6px 28px rgba(86, 38, 34, 0.10);
  text-align: center;
  margin-bottom: 1rem;
}
.match-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-mid);
  margin-bottom: 0.4rem;
}
.match-personality-label {
  font-size: 1rem;
  color: var(--color-text-mid);
  margin-bottom: 1.1rem;
}
.match-cookie-avatar-emoji {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--color-hint-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  margin: 0 auto 1rem;
  border: 3px solid var(--color-cta);
}
.match-cookie-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--color-cta);
  box-shadow: 0 4px 16px rgba(86, 38, 34, 0.13);
}
.match-cookie-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-cta-hover);
  margin-bottom: 1.25rem;
}
.find-cookie-btn {
  display: block;
  width: 100%;
  background-color: var(--color-primary);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}
.find-cookie-btn:hover { background-color: #562622; transform: translateY(-2px); }
.browse-all-btn {
  display: block;
  width: 100%;
  background: var(--color-cta);
  color: var(--color-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}
.browse-all-btn:hover { background-color: var(--color-cta-hover); color: #fff; transform: translateY(-2px); }

/* ── quiz.html — Cookie Quiz Page ── */
.quiz-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1rem 5rem;
}
.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.quiz-back-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
}
.quiz-back-btn:hover { background: var(--color-hint-bg); }
.question-counter {
  font-size: 0.9rem;
  font-weight: 600;
  color: #E8807A;
}
.quiz-skip-btn {
  background: none;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: #E8807A;
  cursor: pointer;
}
.progress-track {
  width: 100%;
  height: 6px;
  background: var(--color-border);
  border-radius: 50px;
  margin-bottom: 2rem;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: #E8807A;
  border-radius: 50px;
  transition: width 0.4s ease;
}
.question-block { display: none; }
.question-block.active {
  display: block;
  animation: fadeInUp 0.35s ease-out both;
}
.question-emoji {
  font-size: 2.8rem;
  text-align: center;
  display: block;
  margin-bottom: 0.75rem;
}
.question-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-dark);
  text-align: center;
  margin-bottom: 1.75rem;
  line-height: 1.3;
}
.answer-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.answer-card {
  background: var(--color-card-bg);
  border: 2px solid var(--color-border);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-dark);
  transition: border-color 0.18s, background-color 0.18s, transform 0.15s;
}
.answer-card:hover {
  border-color: #E8807A;
  background: #FFF0EF;
  transform: translateX(4px);
}
.answer-emoji { font-size: 1.5rem; flex-shrink: 0; }
.quiz-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-mid);
  margin-top: 2rem;
  padding: 0.6rem 1rem;
  background: var(--color-hint-bg);
  border-radius: 50px;
}

/* ── result.html — Cookie Match Result Page ── */
.result-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1rem 5rem;
  text-align: center;
}
.result-you-are {
  font-size: 1rem;
  color: var(--color-text-mid);
  margin-bottom: 0.2rem;
}
.personality-name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #E8807A;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.personality-desc {
  font-size: 0.9rem;
  color: var(--color-text-mid);
  margin-bottom: 1.75rem;
  line-height: 1.5;
  padding: 0 0.5rem;
}
.result-card {
  background: var(--color-card-bg);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(86, 38, 34, 0.10);
  margin-bottom: 1.25rem;
  text-align: left;
}
.result-card-img-wrap { position: relative; }
.result-card-img-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.result-heart-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.15s;
}
.result-heart-btn:hover { transform: scale(1.15); }
.result-heart-btn.liked { color: #e0344a; }
.result-card-body { padding: 1.25rem; }
.result-match-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-mid);
  margin-bottom: 0.3rem;
}
.cookie-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #E8807A;
  margin-bottom: 0.75rem;
}
.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.tag-pill {
  border: 1.5px solid var(--color-border);
  color: var(--color-text-mid);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  background: transparent;
}
.get-cookie-btn {
  display: block;
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  margin-bottom: 0.65rem;
  transition: background-color 0.2s, transform 0.15s;
}
.get-cookie-btn:hover { background: #562622; transform: translateY(-2px); }
.share-btn {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--color-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem;
  border: 2px solid var(--color-cta);
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}
.share-btn:hover { background: var(--color-hint-bg); transform: translateY(-2px); }

/* ── discovery.html — Product Catalog ── */
.discovery-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1rem 6rem;
}
.discovery-header {
  text-align: center;
  margin-bottom: 1.4rem;
}
.discovery-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 0.45rem;
}
.discovery-subtitle {
  font-size: 0.92rem;
  color: var(--color-text-mid);
}
.discovery-toolbar {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1.2rem;
}
.discovery-filters {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.discovery-filters::-webkit-scrollbar { display: none; }
.discovery-filter-btn,
.discovery-sort-btn {
  border: 1.5px solid #efc6c5;
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.discovery-filter-btn:hover,
.discovery-sort-btn:hover {
  transform: translateY(-1px);
  border-color: var(--color-cta-hover);
}
.discovery-filter-btn.active {
  background: #6b3128;
  border-color: #6b3128;
  color: #fff;
}
.discovery-sort-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.catalog-card {
  background: var(--color-card-bg);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(86, 38, 34, 0.12);
}
.catalog-card[hidden] { display: none; }
.catalog-card-media {
  position: relative;
  height: 170px;
  overflow: hidden;
}
.catalog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.catalog-badge,
.catalog-gift-badge {
  position: absolute;
  left: 12px;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
}
.catalog-badge {
  top: 12px;
  background: #f8c4c5;
  color: #7a352d;
}
.catalog-gift-badge {
  bottom: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
}
.catalog-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #d7a1a2;
  font-size: 1.15rem;
  box-shadow: 0 2px 8px rgba(44, 24, 16, 0.12);
}
.catalog-card-body {
  padding: 1rem 1rem 1.1rem;
}
.catalog-title-row,
.catalog-location-row,
.catalog-rating-row,
.catalog-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.catalog-title-row {
  margin-bottom: 0.35rem;
}
.catalog-product-name {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.15;
}
.catalog-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}
.catalog-location-row,
.catalog-rating-row,
.catalog-meta-row {
  font-size: 0.82rem;
  color: #c08d89;
  margin-bottom: 0.35rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.catalog-rating-row strong {
  color: #d7746f;
  font-weight: 700;
}
.catalog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 0.7rem;
}
.catalog-tag {
  background: #fff7f6;
  border: 1px solid #f2d8d6;
  border-radius: 999px;
  color: #9d7770;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.24rem 0.6rem;
}
.catalog-add-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  background: #6b3128;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}
.catalog-add-btn:hover {
  background: #562622;
  transform: translateY(-2px);
}

@media (max-width: 420px) {
  .discovery-title { font-size: 1.8rem; }
  .catalog-card-media { height: 155px; }
  .catalog-product-name { font-size: 1.15rem; }
}

@media (min-width: 700px) {
  .discovery-page {
    max-width: 900px;
    padding: 1.75rem 1.25rem 7rem;
  }
  .catalog-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
    align-items: start;
  }
  .catalog-card {
    height: 100%;
  }
  .catalog-card-media {
    height: 195px;
  }
}

@media (min-width: 1024px) {
  .discovery-page {
    max-width: 1200px;
    padding: 2rem 1.5rem 7rem;
  }
  .catalog-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .catalog-card-media {
    height: 210px;
  }
}

/* ── profile.html — Demo Profile ── */
.profile-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.75rem 1rem 6rem;
}
.profile-hero,
.profile-card {
  background: var(--color-card-bg);
  border-radius: 24px;
  box-shadow: 0 6px 28px rgba(86, 38, 34, 0.1);
}
.profile-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem;
  margin-bottom: 1rem;
}
.profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5d5d3, #e8807a);
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-mid);
  margin-bottom: 0.25rem;
}
.profile-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}
.profile-handle {
  font-size: 0.95rem;
  color: var(--color-text-mid);
}
.profile-card {
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.profile-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.85rem;
}
.profile-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}
.profile-detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.profile-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-mid);
}
.profile-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: right;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  text-align: center;
}
.profile-stat {
  padding: 0.25rem 0;
}
.profile-stat strong {
  display: block;
  font-size: 1.35rem;
  color: #e8807a;
  margin-bottom: 0.2rem;
}
.profile-stat span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-mid);
}
.profile-note {
  font-size: 0.92rem;
  color: var(--color-text-mid);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.profile-card .find-cookie-btn {
  margin-top: 0.2rem;
}
.why-box {
  background: #FFF0EF;
  border-radius: 20px;
  padding: 1.25rem;
  text-align: left;
}
.why-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.85rem;
}
.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.why-list li {
  font-size: 0.88rem;
  color: var(--color-text-dark);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}
.why-list li::before {
  content: '✦';
  color: #E8807A;
  flex-shrink: 0;
}

/* ── customize.html — Customize Your Cookie Page ── */
.customize-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1rem 5rem;
}
.page-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.section-card {
  background: var(--color-card-bg);
  border-radius: 20px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(86, 38, 34, 0.07);
}
.section-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--color-border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-dark);
}
.toggle-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 26px;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider { background: #E8807A; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.sweetness-slider {
  width: 100%;
  accent-color: #E8807A;
  margin-bottom: 0.6rem;
  cursor: pointer;
}
.sweetness-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-mid);
}
.toppings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
.topping-card {
  background: var(--color-background);
  border: 2px solid var(--color-border);
  border-radius: 14px;
  padding: 0.9rem 0.6rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, background-color 0.18s, transform 0.15s;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-dark);
}
.topping-card:hover { border-color: #E8807A; transform: translateY(-2px); }
.topping-card.selected { border-color: #E8807A; background: #FFF0EF; }
.topping-emoji { font-size: 1.6rem; display: block; margin-bottom: 0.35rem; }
.topping-check { display: none; color: #E8807A; font-size: 0.8rem; margin-top: 0.25rem; }
.topping-card.selected .topping-check { display: block; }
.confirm-btn {
  display: block;
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}
.confirm-btn:hover { background: #562622; transform: translateY(-2px); }

/* ── order.html — Cart & Checkout Page ── */
.order-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1rem 5rem;
}
.order-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.25rem;
}
.order-sub {
  font-size: 0.88rem;
  color: var(--color-text-mid);
  margin-bottom: 1.25rem;
}
.cart-item-card {
  background: var(--color-card-bg);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  box-shadow: 0 2px 12px rgba(86, 38, 34, 0.07);
  margin-bottom: 0.75rem;
  align-items: flex-start;
}
.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #E8807A;
  margin-bottom: 0.2rem;
}
.cart-item-bakery {
  font-size: 0.78rem;
  color: var(--color-text-mid);
  margin-bottom: 0.5rem;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.qty-btn {
  background: var(--color-hint-bg);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}
.qty-btn:hover { background: var(--color-cta); }
.qty-display {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-dark);
  min-width: 20px;
  text-align: center;
}
.cart-item-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-left: auto;
}
.continue-shopping {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-mid);
  text-decoration: underline;
  cursor: pointer;
  margin-bottom: 1rem;
  display: block;
}
.continue-shopping:hover { color: var(--color-primary); }
.delivery-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--color-border);
}
.delivery-option:last-child { border-bottom: none; }
.delivery-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.delivery-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-dark);
}
.delivery-meta { font-size: 0.78rem; color: var(--color-text-mid); }
.price-summary {
  background: var(--color-card-bg);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(86, 38, 34, 0.07);
}
.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 0.38rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-mid);
}
.price-row:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-dark);
}
.allergen-box {
  background: #FFF8E1;
  border-left: 4px solid #F0A020;
  border-radius: 0 12px 12px 0;
  padding: 1rem;
  margin-bottom: 1rem;
}
.allergen-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #7a5c00;
  margin-bottom: 0.35rem;
}
.allergen-box p {
  font-size: 0.82rem;
  color: #7a5c00;
  margin: 0;
}
.loyalty-banner {
  background: #E8F5E9;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #2e7d32;
  text-align: center;
}
.checkout-btn {
  display: block;
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
  margin-bottom: 0.6rem;
}
.checkout-btn:hover { background: #562622; transform: translateY(-2px); }
.checkout-btn:disabled { background: #ccc; cursor: not-allowed; transform: none; }
.secure-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-mid);
  margin-bottom: 1rem;
}
.order-confirmation {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
  background: var(--color-card-bg);
  border-radius: 20px;
  box-shadow: 0 6px 28px rgba(86, 38, 34, 0.10);
  margin-top: 1rem;
  animation: fadeInUp 0.4s ease-out both;
}
.order-confirmation.show { display: block; }
.confirm-checkmark { font-size: 3.5rem; display: block; margin-bottom: 0.75rem; }
.confirm-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.3rem;
}
.confirm-subtitle { font-size: 0.88rem; color: var(--color-text-mid); margin-bottom: 0.4rem; }
.order-number { font-size: 0.88rem; font-weight: 700; color: #E8807A; }
