/* ============ Recipe Shop — main styles ============ */
:root {
  --bg: #F8F0E8;
  --bg-alt: #F5E6EA;
  --card: rgba(255, 255, 255, 0.55);
  --ink: #5A3A48;
  --muted: #A07E8C;
  --accent: #D886A0;
  --accent-dark: #C06E8C;
  --accent-soft: #F0D0D8;
  --green: #C98A5E;
  --green-soft: #F5E6D8;
  --line: #E8D0D8;
  --shadow: 0 10px 30px rgba(190, 130, 150, 0.14);
  --radius: 18px;
  --font-heading: "SiteHeading", Georgia, "Times New Roman", serif;
  --font-body: "SiteBody", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: #F8F0E8 url('/images/bg.jpg') top center / cover no-repeat;
  color: var(--ink);
  line-height: 1.6;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.2; color: #2a0a15; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 14px; }
p { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 240, 232, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.site-header h1, .site-header h2, .site-header h3, .site-header h4, .site-header h5, .site-header h6 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s;
}
.brand:hover {
  transform: scale(1.05);
}
.brand img {
  height: 46px;
  width: auto;
  display: block;
}
.main-nav { display: flex; gap: 36px; }
.main-nav a {
  color: #3a1020;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--accent); }
.cart-btn-image {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s;
}
.cart-btn-image img {
  height: 48px;
  width: auto;
  display: block;
}
.cart-btn-image:hover {
  transform: scale(1.05);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}
.btn img { width: 19px; height: 19px; display: block; filter: brightness(0) invert(1); }
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: scale(0.98); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: rgba(255,255,255,0.7);
  color: var(--accent-dark);
  border: 2px solid var(--accent);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.btn-outline:hover { background: var(--accent-soft); }
.btn-outline img { filter: none; }
.btn-small { padding: 9px 18px; font-size: 0.9rem; }
.btn-green { background: var(--green); }
.btn-green:hover { background: #A96F45; }
.btn-danger { background: #D64545; }
.btn-danger:hover { background: #B93434; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: transparent; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head p { font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 80px;
  background: transparent;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero-text {
  text-align: left;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.25;
  margin-bottom: 16px;
  color: #2a0a15;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: #3a1020;
  margin-bottom: 20px;
  font-style: italic;
}
.hero-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #2a0a15;
  margin-bottom: 28px;
  white-space: pre-line;
}
.hero-text-box {
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  border-radius: 16px;
  padding: 24px 28px;
  border: 1px solid rgba(255,255,255,0.3);
}
.hero-text-box .btn-card-image {
  max-width: 220px;
  margin: 16px 0 0;
}
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
}
.about-visual {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  text-align: center;
  font-size: 5rem;
}
.about-text p { font-size: 1.05rem; }

/* ---------- Products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.product-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.15s;
  border: 2px solid transparent;
  overflow: hidden;
}
.product-card:hover { transform: translateY(-4px); }
.product-card.featured { border-color: var(--accent); }
.badge-featured {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  z-index: 2;
}
.product-image {
  width: 100%;
  overflow: hidden;
  background: rgba(255,255,255,0.3);
}
.product-image img {
  width: 100%;
  height: auto;
  display: block;
}
.product-emoji { font-size: 3rem; padding: 24px 24px 0; }
.product-info {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-card h3 { font-size: 1.15rem; }
.product-sub { font-size: 0.9rem; }
.product-recipes {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
}
.product-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
}
.product-price s { color: var(--muted); font-size: 0.95rem; }
.product-price strong { font-size: 1.5rem; font-family: var(--font-heading); }
.product-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 16px 20px 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-card-image {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  cursor: pointer;
  display: block;
  flex: 1;
  min-width: 140px;
  max-width: 240px;
  transition: transform 0.15s;
}
.btn-card-image:hover {
  background: none;
  transform: scale(1.05);
}
.btn-card-image:active {
  transform: scale(1.02);
}
.btn-card-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: none;
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.review-stars { color: #F5A623; letter-spacing: 2px; margin-bottom: 10px; }
.review-text { font-size: 0.95rem; margin-bottom: 14px; }
.review-name { font-weight: 700; font-size: 0.9rem; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: rgba(255, 252, 250, 0.94);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-a { padding: 0 22px 18px; font-size: 0.95rem; }

/* ---------- CTA ---------- */
.cta-box {
  background: linear-gradient(135deg, #D886A0 0%, #C06E8C 100%);
  border-radius: 24px;
  color: #fff;
  text-align: center;
  padding: 56px 32px;
  box-shadow: var(--shadow);
}
.cta-box h2 { color: #fff; }
.cta-box p { color: rgba(255,255,255,0.9); max-width: 520px; margin: 0 auto 28px; font-size: 1.05rem; }
.cta-box .btn { background: #fff; color: var(--accent-dark); }
.cta-box .btn:hover { background: var(--accent-soft); }

/* ---------- Contacts ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  max-width: 800px;
  margin: 0 auto;
}
.contact-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s;
}
a.contact-card:hover { transform: translateY(-3px); }
.contact-icon { font-size: 2rem; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; }
.contact-icon img { width: 30px; height: 30px; display: block; }
.contact-label { font-size: 0.85rem; color: var(--muted); }
.contact-value { font-weight: 700; font-size: 1.05rem; word-break: break-all; }

/* ---------- Product page ---------- */
.product-page { padding: 48px 0 72px; }
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}
.product-visual {
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 60px 30px;
  text-align: center;
  font-size: 6rem;
}
.product-visual-img {
  padding: 0;
  overflow: hidden;
}
.product-visual-img img {
  width: 100%;
  height: auto;
  display: block;
}
.product-info h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 10px; white-space: nowrap; }
.product-page .product-info {
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 16px;
  padding: 28px 32px;
}
.product-info .product-sub { font-size: 1.1rem; margin-bottom: 18px; color: #3a1020; }
.product-info .description { margin-bottom: 24px; color: #3a1020; }
.product-buy {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.product-buy .price-block s { color: var(--muted); }
.product-buy .price-block strong { font-size: 1.8rem; font-family: var(--font-heading); }
.btn-image {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  width: 100%;
  max-width: 320px;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.15s;
}
.btn-image:hover {
  background: none;
  transform: scale(1.05);
}
.btn-image:active {
  transform: scale(1.02);
}
.btn-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  filter: none;
}
.recipes-block h2 { margin-bottom: 8px; }
.recipes-block .recipes-note { margin-bottom: 24px; }
.inside-block {
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  border-radius: 16px;
  padding: 28px 32px;
  margin-top: 24px;
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.3);
}
.inside-block h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: #5a1a2a;
}
.inside-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #3a1020;
  white-space: pre-line;
}
.recipe-item {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
.recipe-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.recipe-item summary::-webkit-details-marker { display: none; }
.recipe-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.recipe-chip {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.recipe-chip.green { background: var(--green-soft); color: var(--green); }
.recipe-body { padding: 0 24px 24px; }
.recipe-desc { margin-bottom: 16px; }
.recipe-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.recipe-cols h4 { margin-bottom: 8px; font-size: 0.95rem; }
.recipe-cols ul, .recipe-cols ol { padding-left: 20px; color: var(--muted); font-size: 0.95rem; }
.recipe-cols li { margin-bottom: 6px; }

/* ---------- Cart ---------- */
.cart-page { padding: 48px 0 72px; }
.cart-page h1 { margin-bottom: 24px; }
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cart-item-emoji { font-size: 2.2rem; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info .name { font-weight: 700; }
.cart-item-info .sub { font-size: 0.85rem; color: var(--muted); }
.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 4px 8px;
}
.qty-control button {
  width: 30px; height: 30px;
  border: none;
  background: #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
}
.cart-item-price { font-weight: 700; font-size: 1.1rem; min-width: 90px; text-align: right; }
.cart-remove {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--muted);
  padding: 6px;
}
.cart-remove:hover { color: #D64545; }
.cart-summary {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  position: sticky;
  top: 90px;
}
.cart-summary h3 { margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.95rem; color: var(--muted); }
.summary-row.total { font-size: 1.2rem; color: var(--ink); font-weight: 700; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.cart-summary .btn { width: 100%; text-align: center; margin-top: 16px; }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty .big { font-size: 4rem; margin-bottom: 16px; }

/* ---------- Checkout ---------- */
.checkout-page { padding: 48px 0 72px; }
.checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.form-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.form-card h3 { margin-bottom: 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 90px; }
.form-error {
  background: #FDE8E8;
  color: #B93434;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 0.92rem;
}
.order-items-mini { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.order-item-mini { display: flex; justify-content: space-between; gap: 10px; font-size: 0.95rem; }
.order-item-mini span:last-child { font-weight: 700; white-space: nowrap; }

/* ---------- Success ---------- */
.success-page { padding: 80px 0; text-align: center; }
.success-page .big { font-size: 5rem; margin-bottom: 20px; }
.success-page h1 { margin-bottom: 14px; }
.success-page p { max-width: 480px; margin: 0 auto 28px; font-size: 1.05rem; }
.order-id {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 10px 24px;
  border-radius: 999px;
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #5A3A48;
  color: #D8C0CC;
  padding: 40px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.footer-brand { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: #fff; width: 100%; }
.footer-brand img { height: 44px; width: auto; display: block; margin: 0 auto; }
.footer-social { display: flex; gap: 12px; margin-top: 8px; justify-content: center; }
.footer-social a { display: block; }
.footer-social img {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: block;
  transition: transform 0.15s;
}
.footer-social img:hover { transform: scale(1.1); }
.footer-tagline { font-size: 0.9rem; }
.footer-contacts { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.9rem; }
.footer-contacts a { color: #D8C0CC; text-decoration: none; }
.footer-contacts a:hover { color: #fff; }
.footer-legal { font-size: 0.85rem; }
.footer-disclaimer {
  font-size: 0.7rem;
  color: #B89AAA;
  max-width: 600px;
  line-height: 1.4;
  margin-top: 8px;
}
.footer-admin { color: #A98CA0; text-decoration: none; }
.footer-admin:hover { color: #fff; }
.footer-legal-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.footer-legal-links a { font-size: 0.7rem; color: #B89AAA; text-decoration: none; }
.footer-legal-links a:hover { color: #fff; text-decoration: underline; }

/* ---------- Legal pages (оферта / политика) ---------- */
.legal-page { max-width: 780px; padding: 40px 20px 70px; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: #A98CA0; text-decoration: none; }
.legal-back img { width: 16px; height: 16px; transform: rotate(180deg); }
.legal-back:hover { color: #E76F9C; }
.legal-page h1 { font-size: 1.9rem; margin: 16px 0 18px; }
.legal-text {
  background: rgba(255, 252, 250, 0.94);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 10px 30px rgba(214, 158, 178, 0.18);
}
.legal-text p { margin: 0 0 14px; line-height: 1.65; color: #4A3A42; }
.legal-text p:last-child { margin-bottom: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  animation: toast-in 0.25s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .main-nav { display: none; }
  .hero-layout { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-text { text-align: center; }
  .hero-text-box .btn-card-image { margin: 16px auto 0; }
  .hero-image { order: -1; }
  .hero-image img { max-width: 80%; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .product-hero, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .about-visual { font-size: 3.5rem; padding: 28px; }
  .product-visual { font-size: 4rem; padding: 36px 20px; }
  .recipe-cols { grid-template-columns: 1fr; }
  .product-info h1 { white-space: normal; }
  .cart-summary { position: static; }
  .section { padding: 44px 0; }
}
@media (max-width: 500px) {
  .products-grid { grid-template-columns: 1fr; }
}
