:root {
  --ink: #1a1612;
  --ink-soft: #3d342c;
  --muted: #6b5e52;
  --paper: #f4efe6;
  --paper-deep: #e8dfd0;
  --porcelain: #fbf8f2;
  --celadon: #5e7a68;
  --celadon-dark: #3f5648;
  --tea: #c4783a;
  --tea-deep: #8c4a22;
  --line: #d9d0c2;
  --gold: #c4a36a;
  --header-height: 72px;
  --font-sans: "Nunito Sans", "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.font-display,
.brand-name,
h1, h2, h3,
.offcanvas-title {
  font-family: var(--font-sans);
}

a { color: var(--celadon-dark); }
a:hover { color: var(--tea-deep); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(244, 239, 230, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand-name {
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--tea);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.menu-nav a {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  color: var(--ink);
  text-decoration: none;
}

.menu-nav a:hover { color: var(--celadon-dark); }

/* Home hero — две карточки под шапкой, как на irotea */
.home-hero {
  height: calc(100dvh - var(--header-height));
  box-sizing: border-box;
  padding: 1.25rem 0 1.5rem;
  display: flex;
}

.home-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  height: 100%;
  min-height: 0;
}

.home-hero-title {
  font-size: clamp(1.75rem, 4.2vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}

.home-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  flex: 1;
  min-height: 0;
}

.home-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 0;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: #fbf8f2;
  background: var(--ink);
}

.home-cat-media {
  position: absolute;
  inset: 5px;
  border-radius: 0.7rem;
  overflow: hidden;
  z-index: 0;
}

.home-cat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.25s ease;
}

.home-cat-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 22, 18, 0.45) 0%, rgba(26, 22, 18, 0.08) 55%, rgba(26, 22, 18, 0.25) 100%);
}

.home-cat:hover {
  color: #fbf8f2;
}

.home-cat:hover .home-cat-media img {
  transform: scale(1.04);
}

.home-cat-kicker,
.home-cat-name,
.home-cat-price {
  position: relative;
  z-index: 1;
}

.home-cat-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.home-cat-name {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 500;
  line-height: 1.05;
  margin: 0.15rem 0 0.2rem;
}

.home-cat-price {
  font-size: 0.95rem;
  opacity: 0.92;
}

.home-cat-arrow {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 0.4rem;
  background: var(--celadon);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.home-promo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem .7rem;
  padding: .55rem .9rem;
  max-width: 36rem;
  flex: 0 0 auto;
  background: var(--porcelain);
  border: 1px dashed var(--line);
  border-radius: .9rem;
}

.home-promo-icon {
  color: var(--celadon-dark);
  width: 1.4rem;
  text-align: center;
}

.home-promo-text {
  color: var(--ink-soft);
  font-size: .92rem;
}

.home-promo-copy {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.home-promo-copy strong {
  font-family: var(--font-sans);
  letter-spacing: .04em;
}

.home-promo-copy:hover,
.home-promo-copy:focus-visible {
  color: var(--celadon-dark);
  outline: 0;
}

.home-promo-copy.is-copied {
  color: var(--celadon-dark);
}

.home-promo-badge {
  display: inline-block;
  padding: .12rem .5rem;
  border-radius: 999px;
  background: var(--celadon);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.loyalty-card {
  background: var(--porcelain);
  border: 1px dashed var(--line);
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
}

.loyalty-card-name,
.loyalty-card-points {
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
}

.loyalty-bar {
  height: 0.4rem;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin: 0.85rem 0 0.55rem;
}

.loyalty-bar span {
  display: block;
  height: 100%;
  background: var(--celadon);
  border-radius: 999px;
}

.loyalty-current {
  background: rgba(94, 122, 104, 0.08);
}

@media (max-width: 575.98px) {
  .home-hero {
    padding: 1rem 0 1.15rem;
  }

  .home-hero-title {
    font-size: 1.75rem;
  }

  .home-cat {
    padding: 0.85rem;
  }

  .home-cat-name {
    font-size: 1.45rem;
  }
}

.faq-section {
  padding: 3.5rem 0 4.5rem;
  background: var(--porcelain);
}

.is-home .faq-section {
  border-top: 1px solid var(--line);
}

.faq-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  margin: 0 0 1.25rem;
}

.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 3rem;
  max-width: none;
}

@media (min-width: 768px) {
  .faq-list:has(.faq-col:nth-child(2)) {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker,
.faq-item summary::marker {
  display: none;
  content: "";
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.5rem;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--celadon-dark);
}

.faq-answer {
  overflow: hidden;
}

.faq-answer-inner {
  padding: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.js-faq-ready .faq-answer {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.45s ease;
}

@media (prefers-reduced-motion: reduce) {
  .js-faq-ready .faq-answer {
    transition: none;
  }
}

.reviews-section {
  padding: 3.5rem 0 3.25rem;
  background: var(--porcelain);
}

.is-home .reviews-section {
  border-top: 1px solid var(--line);
}

.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.reviews-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  margin: 0 0 0.35rem;
}

.reviews-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.reviews-meta .fa-star {
  color: var(--gold);
  margin-right: 0.2rem;
}

.reviews-nav {
  display: flex;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.reviews-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reviews-nav-btn:hover {
  background: var(--celadon-dark);
  border-color: var(--celadon-dark);
  color: #fff;
}

.reviews-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.reviews-viewport::-webkit-scrollbar {
  display: none;
}

.reviews-track {
  display: flex;
  gap: 1rem;
}

.review-card {
  flex: 0 0 min(100%, 22.5rem);
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.25rem 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
  min-height: 16rem;
}

.review-photo {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 0.85rem;
}

.review-stars {
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}

.review-body {
  margin: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  width: 100%;
}

.review-text-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.js-reviews-ready .review-text-wrap {
  transition: max-height 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.review-text {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.review-more {
  margin-top: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--celadon-dark);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

.review-more:hover {
  color: var(--tea);
}

@media (prefers-reduced-motion: reduce) {
  .js-reviews-ready .review-text-wrap {
    transition: none;
  }
}

.review-author {
  margin: 1rem 0 0;
  font-weight: 600;
  color: var(--ink);
}

.review-source {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.blog-home-section {
  padding: 3.5rem 0 3.5rem;
  background: var(--paper);
}

.is-home .blog-home-section {
  border-top: 1px solid var(--line);
}

.blog-home-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
}

.blog-home-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  margin: 0;
}

.blog-home-more {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.blog-home-more:hover { color: var(--celadon-dark); }

.blog-home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .blog-home-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.blog-home-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.blog-home-card:hover { color: inherit; }

.blog-home-media {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--paper-deep);
  margin-bottom: 0.85rem;
}

.blog-home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-home-date {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.blog-home-name {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.blog-home-card:hover .blog-home-name { color: var(--celadon-dark); }

.blog-home-excerpt {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 52rem;
}

.blog-list-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .blog-list-item {
    grid-template-columns: 16rem 1fr;
    gap: 1.5rem;
    align-items: start;
  }
}

.blog-list-media {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--paper-deep);
}

.blog-list-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-list-date {
  font-size: 0.82rem;
  color: var(--muted);
}

.blog-list-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 500;
  margin: 0.25rem 0 0.5rem;
  line-height: 1.15;
}

.blog-list-title a {
  color: var(--ink);
  text-decoration: none;
}

.blog-list-title a:hover { color: var(--celadon-dark); }

.blog-list-excerpt {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.blog-list-link {
  font-weight: 600;
  text-decoration: none;
}

.blog-article {
  max-width: 46rem;
}

.blog-article-back {
  margin-bottom: 0.75rem;
}

.blog-article-back a {
  color: var(--muted);
  text-decoration: none;
}

.blog-article-date {
  display: block;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.blog-article-cover {
  display: block;
  width: 100%;
  max-height: 26rem;
  object-fit: cover;
  border-radius: 1.1rem;
  margin: 0 0 1.75rem;
}

.blog-article-body p,
.blog-article-body li {
  color: var(--ink-soft);
}

.blog-article-body p:last-child {
  margin-bottom: 0;
}

.page-wrap { padding: 3rem 0 4rem; }

.page-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 0.75rem;
  padding-inline: 0.08em 0;
  overflow: visible;
}

.cat-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1rem;
  color: #fff;
  text-decoration: none;
  background: var(--ink);
}

.cat-tile:hover,
.cat-tile:focus {
  color: #fff;
}

.cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transform: scale(1);
  transition: transform 0.25s ease;
}

.cat-tile:hover img {
  transform: scale(1.04);
}

.cat-tile-count {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #e8c547;
  background: rgba(26, 22, 18, 0.72);
  color: #f3d45c;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-shadow: 0 0 8px rgba(232, 197, 71, 0.55);
  white-space: nowrap;
}

.cat-tile:hover .cat-tile-count,
.cat-tile:focus .cat-tile-count {
  color: #f3d45c;
}

.cat-tile-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 1rem;
  background: linear-gradient(to top, rgba(26,22,18,.75), transparent);
}

.cat-tile-caption strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: #e8c547;
  text-shadow: 0 1px 2px rgba(26, 22, 18, 0.75), 0 0 10px rgba(232, 197, 71, 0.35);
}

.cat-tile:hover .cat-tile-caption strong,
.cat-tile:focus .cat-tile-caption strong {
  color: #e8c547;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.7rem 0.7rem 0.75rem;
}

.product-card-grow {
  flex: 1 1 auto;
  min-height: 0;
}

.product-card-img {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0;
  background: var(--paper-deep);
  margin-bottom: 0;
}

.product-card-title {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.product-card-cn {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
}

.product-card-buy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid #eee;
}

.product-card-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  align-content: center;
  gap: 0.15rem 0.35rem;
  min-height: 1.55em;
  line-height: 1.25;
}

.product-card.has-pack-switch .product-card-price {
  /* Место под «было + стало / ед.» — без прыжка при Граммы/Блин */
  min-height: 2.5rem;
}

.product-card-price strong {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.product-card-price-old,
.js-buy-price-old {
  color: #9a9a9a;
  font-size: 0.92rem;
  font-weight: 400;
  text-decoration: line-through;
  text-decoration-color: #9a9a9a;
}

.product-card-unit {
  color: #9a9a9a;
  font-size: 0.85em;
  font-weight: 400;
  white-space: nowrap;
}

.product-card .variant-pills {
  display: flex;
  flex-wrap: nowrap;
  align-self: center;
  width: max-content;
  max-width: 100%;
  gap: 2px;
  padding: 2px;
  background: #f0f0f0;
  border-radius: 1rem;
}

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  flex-shrink: 0;
  min-height: 29px;
}

.product-card-cat {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding: 0 0.25rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.25;
  text-align: center;
}

.product-card .variant-pill {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 25px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.product-card .variant-pill.is-active {
  background: var(--ink);
  color: #fff;
}

.product-card .variant-pill:hover {
  border-color: transparent;
}

.product-card-cart {
  width: 100%;
  min-height: 36px;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 999px;
  background: #f6f6f6;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.product-card-cart:hover {
  background: #ececec;
  color: var(--ink);
}

.product-card.is-in-cart {
  outline: 2px solid var(--celadon);
  outline-offset: 0;
}

.card-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  min-height: 36px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.card-stepper.d-none {
  display: none;
}

.card-stepper-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  background: #f6f6f6;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.card-stepper-btn:hover {
  background: #ececec;
  color: var(--ink);
}

.card-stepper-info {
  flex: 1;
  min-width: 0;
  text-align: center;
  line-height: 1.15;
}

.card-stepper-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.card-stepper-info span.js-step-sum {
  display: block;
  font-size: 0.75rem;
  color: var(--celadon);
  font-weight: 600;
}

.card-stepper-extra {
  display: none;
}

@media (min-width: 576px) {
  .card-stepper-extra {
    display: inline;
  }
}

.product-card-title:hover { color: var(--celadon-dark); }

.product-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-fav {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(251, 248, 242, 0.92);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-fav:hover,
.btn-fav.is-active {
  color: var(--tea-deep);
}

.btn-fav-lg {
  position: static;
  flex-shrink: 0;
}

.auth-card {
  max-width: 28rem;
  margin: 0 auto;
}

.auth-id-notice {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 0.85rem;
  background: var(--paper);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.auth-id-notice-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.auth-id-notice-title i {
  color: var(--celadon-dark);
}

.auth-id-notice p {
  margin: 0 0 0.45rem;
}

.auth-id-notice p:last-child {
  margin-bottom: 0;
}

.badge-new {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--porcelain);
  color: var(--ink);
  border-radius: 999px;
  font-size: 11px;
  padding: 0.25rem 0.6rem;
}

.variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.variant-pill {
  border: 1px solid var(--line);
  background: var(--porcelain);
  color: var(--ink);
  border-radius: 999px;
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}

.variant-pill:hover {
  border-color: var(--celadon);
}

.variant-pill:focus-visible {
  outline: 2px solid var(--celadon);
  outline-offset: 2px;
}

.variant-pill.is-active {
  background: var(--ink);
  color: var(--porcelain);
  border-color: var(--ink);
}

.variant-pill-price {
  display: block;
  font-size: 0.72rem;
  opacity: 0.75;
}

.product-buy .variant-pill {
  min-height: 2.75rem;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  text-align: left;
}

.btn-cart {
  width: 100%;
  border-radius: 999px;
  background: var(--ink);
  color: var(--porcelain);
  border: 0;
  min-height: 2.5rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.btn-cart:hover {
  background: var(--celadon-dark);
  color: #fff;
}

.btn-tea {
  background: var(--tea);
  color: #fff;
  border: 0;
  border-radius: 999px;
}

.btn-tea:hover {
  background: var(--tea-deep);
  color: #fff;
}

.surface {
  background: var(--porcelain);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.site-footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover { color: var(--celadon-dark); }

.footer-help {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
}

.footer-help-card {
  flex: 1 1 10rem;
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
}

a.footer-help-card:hover {
  color: var(--celadon-dark);
  border-color: var(--celadon);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.footer-socials-help {
  display: grid;
  grid-template-columns: repeat(2, 38px);
  flex: 0 0 auto;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 0.65rem;
  background: var(--porcelain);
  border: 1px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.footer-socials a:hover {
  background: var(--celadon-dark);
  border-color: var(--celadon-dark);
  color: #fff;
}

.footer-copy { border-top: 1px solid var(--line); }

.popup-html p:last-child,
.popup-html ul:last-child,
.popup-html ol:last-child {
  margin-bottom: 0;
}

.popup-html ul,
.popup-html ol {
  padding-left: 1.2rem;
}

.cookie-notice {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  max-width: 28rem;
  margin-left: auto;
  z-index: 1080;
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 12px 32px rgba(26, 22, 18, 0.12);
}

.prose p, .prose li { color: var(--ink-soft); }
.prose h2 {
  font-size: 1.75rem;
  margin-top: 1.75rem;
}

.filter-chip {
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  color: var(--muted);
  text-decoration: none;
}

.filter-chip.active {
  background: var(--ink);
  color: #fff;
}

.search-hit {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.search-hit:hover { background: var(--paper); }

.search-hit img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.qty-control {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.qty-control button {
  border: 0;
  background: transparent;
  width: 36px;
  height: 36px;
}

.qty-control input {
  width: 40px;
  border: 0;
  text-align: center;
  background: transparent;
}

.form-control, .form-select {
  border-color: var(--line);
  background: var(--paper);
}

.form-control:focus, .form-select:focus {
  border-color: var(--celadon);
  box-shadow: 0 0 0 0.2rem rgba(94, 122, 104, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
