/* ОБЩИЕ СТИЛИ */

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

@font-face {
  font-family: "Kudryashev Display Sans";
  src: url("../fonts/KudryashevDisplay-Sans.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Kudryashev Display";
  src: url("../fonts/KudryashevDisplay.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: "Kudryashev Display", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-heading: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --wine-900: #3b0714;
  --wine-800: #5a1024;
  --wine-700: #741b34;
  --wine-600: #8e304a;
  --dust-400: #c98fa0;
  --ivory-200: #e8d9d2;
  --ivory-100: #f5efea;
  --ivory-50: #fffdfc;
  --ink: #111111;
  --brand-light-pink: #e8d9d2;
  --brand-dusty-rose: #741b34;
  --brand-mauve: #c98fa0;
  --brand-beige: #f5efea;
  --brand-white: #fffdfc;
  --brand-black: #111111;
  --btn-primary: #5a1024;
  --btn-primary-dark: #3b0714;
  --btn-shadow: 0 2px 10px rgba(59, 7, 20, 0.18);
}

/* ===== KEYFRAMES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: var(--btn-shadow);
  }

  50% {
    box-shadow: 0 6px 0 var(--btn-primary-dark), 0 12px 32px rgba(222, 67, 101, 0.45);
  }
}

@keyframes cartBounce {

  0%,
  100% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.25);
  }

  60% {
    transform: scale(0.95);
  }
}

@keyframes topBarGradient {

  0%,
  100% {
    background: linear-gradient(90deg, #ecd2db 0%, #e7e0da 50%, #ecd2db 100%);
  }

  50% {
    background: linear-gradient(90deg, #e7e0da 0%, #ecd2db 50%, #e7e0da 100%);
  }
}

@keyframes aboutFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

html {
  min-height: 100%;
  height: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  min-height: 100%;
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--ivory-100, #f5efea);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: clip;
  max-width: 100%;
}

body>section:last-of-type {
  flex: 1;
}

body>.top-bar,
body>.header,
body>section,
body>footer {
  position: relative;
  z-index: 2;
}

/* Header must stay above page sections for account dropdown */
body>.top-bar {
  z-index: 200;
}

body>.header {
  z-index: 100;
}

/* Mobile: avoid overlaps and simplify header */
@media (max-width: 520px) {
  body>.top-bar {
    display: none !important;
  }

  /* Hide long email text; show profile icon instead */
  #userEmail {
    display: none !important;
  }

  .account-top {
    position: relative;
    padding-left: 34px;
    min-height: 28px;
  }

  .account-top::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background: url("../images/user.png") center / contain no-repeat;
    opacity: 0.95;
  }
}

body.page-cart {
  background: var(--ivory-100, #f5efea);
}

h1,
h1.catalog-title,
h2,
h3,
.about-title,
.catalog-title {
  font-family: var(--font-heading);
}

.catalog-title--sub {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: 600;
}


/* КОНТЕЙНЕР */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


/* HEADER */

.header {
  background: var(--ivory-100, #f5efea);
  padding: 15px 0;
  border-bottom: 1px solid rgba(183, 86, 117, 0.1);
  animation: fadeIn 0.5s ease-out;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.account {
  position: relative;
  cursor: pointer;
}

.account-top {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 30px;
  z-index: 10000;
  /* всегда выше любых backdrop/sidebars */
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(183, 86, 117, 0.15);
  padding: 10px;
  min-width: 150px;
  pointer-events: auto !important;
  /* чтобы клики никогда не терялись */
}

.account-menu a {
  display: block;
  padding: 8px;
  text-decoration: none;
  color: black;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.account-menu a:hover {
  background: var(--brand-light-pink);
  color: var(--brand-dusty-rose);
  transform: translateY(-1px);
  box-shadow: 0 6px 0 var(--btn-primary-dark), 0 12px 24px rgba(222, 67, 101, 0.25);
}

.account-menu a:active {
  transform: translateY(0);
  box-shadow: 0 2px 0 var(--btn-primary-dark), 0 6px 16px rgba(222, 67, 101, 0.18);
}

.account-menu a:focus-visible {
  outline: 2px solid var(--brand-dusty-rose);
  outline-offset: 2px;
}


/* ЛОГОТИП */

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo img {
  height: 60px;
  animation: fadeIn 0.8s ease-out;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.03);
}


/* КАТЕГОРИИ */

.categories {
  position: relative;
}

.categories-btn {
  background: var(--btn-primary);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--btn-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.categories-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--btn-primary-dark), 0 12px 28px rgba(222, 67, 101, 0.4);
}

.categories-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--btn-primary-dark), 0 4px 12px rgba(222, 67, 101, 0.3);
}

.dropdown {
  position: absolute;
  top: 40px;
  left: 0;
  z-index: 1000;
  background: white;
  box-shadow: 0 8px 24px rgba(183, 86, 117, 0.15);
  border-radius: 12px;
  padding: 10px 0;
  width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.categories:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: black;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown a:hover {
  background: var(--brand-light-pink);
  color: var(--brand-dusty-rose);
}

/* ИКОНКИ */

.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-icons img {
  width: 28px;
  height: 28px;
}


/* КОРЗИНА */

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--btn-primary);
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.cart-count.cart-bounce {
  animation: cartBounce 0.5s ease;
}


/* HERO */

.hero {
  height: 85vh;
  background: #e05a78;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content h1 {
  font-size: 70px;
  color: white;
  letter-spacing: 5px;
  margin-bottom: 20px;
}

.hero-content p {
  color: white;
  font-size: 20px;
  margin-bottom: 30px;
}

.order-btn {
  background: #b75675;
  color: white;
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.order-btn:hover {
  background: #636834;
}

/* SIDEBAR */

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  /* Важно: чтобы backdrop не перекрывал клики по всей странице,
     если по какой-то причине он остаётся открытым. Контент выше (z-index: 2). */
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s ease;
}

.sidebar-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: #ffffff;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 8px 24px rgba(183, 86, 117, 0.18), 10px 0 26px rgba(222, 67, 101, 0.18);
  padding: 20px 16px;
  overflow-y: auto;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
  z-index: 1000;
  display: block;
}

.sidebar.is-open {
  left: 0;
  box-shadow: 0 10px 28px rgba(183, 86, 117, 0.22), 14px 0 34px rgba(222, 67, 101, 0.22);
}

.sidebar a {
  display: block;
  margin: 6px 0;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--brand-black);
  font-size: 18px;
  opacity: 0;
  transform: translateX(-12px);
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.sidebar.is-open a {
  animation: fadeInUp 0.4s ease forwards;
}

.sidebar.is-open a:nth-child(2) {
  animation-delay: 0.05s;
}

.sidebar.is-open a:nth-child(3) {
  animation-delay: 0.1s;
}

.sidebar.is-open a:nth-child(4) {
  animation-delay: 0.15s;
}

.sidebar.is-open a:nth-child(5) {
  animation-delay: 0.2s;
}

.sidebar.is-open a:nth-child(6) {
  animation-delay: 0.25s;
}

.sidebar.is-open a:nth-child(7) {
  animation-delay: 0.3s;
}

.sidebar.is-open a:nth-child(8) {
  animation-delay: 0.35s;
}

.sidebar.is-open a:nth-child(9) {
  animation-delay: 0.4s;
}

.sidebar.is-open a:nth-child(10) {
  animation-delay: 0.45s;
}

.sidebar.is-open a:nth-child(11) {
  animation-delay: 0.5s;
}

.sidebar a:hover {
  background: var(--brand-light-pink);
  color: var(--brand-dusty-rose);
  transform: translateX(3px);
}

.category-seasonal-notice {
  max-width: 640px;
  margin: 48px auto 64px;
  padding: 0 20px;
  text-align: center;
  font-size: 18px;
  line-height: 1.55;
  color: #4b5563;
  font-family: var(--font-body);
}

.category-info-notice {
  max-width: 720px;
  margin: 0 auto 22px;
}

.category-info-notice[hidden],
.category-info-notice.is-hidden {
  display: none !important;
}

.close-btn {
  background: none;
  border: none;
  font-size: 34px;
  cursor: pointer;
  color: var(--brand-black);
  margin-bottom: 14px;
}

/* TOP BAR */

.top-bar {
  background: var(--wine-900, #3b0714);
  color: #f5efea;
  font-size: 13px;
  padding: 7px 0;
  border-bottom: none;
  position: relative;
  z-index: 60;
}

.top-bar-inner {
  --top-bar-center-nudge: 20px; /* левее геометрического центра — под ось логотипа */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.2;
}

.top-left {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(50% - 220px);
  padding-right: 6px;
  font-size: 13px;
  line-height: 1.3;
}

.top-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% - var(--top-bar-center-nudge)), -50%);
  z-index: 2;
  display: flex;
  gap: 18px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.top-center .top-item {
  pointer-events: auto;
}

.top-right {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
  gap: 15px;
}

/* Top-bar items (pickup/delivery) */
.top-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.top-time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1px;
  opacity: 0.95;
}

/* Crisp icons (works on all OS) */
.top-center [data-i18n="top.pickup"],
.top-center [data-i18n="top.delivery"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-center [data-i18n="top.pickup"]::before,
.top-center [data-i18n="top.delivery"]::before {
  content: "";
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  opacity: 0.9;
}

/* REVIEWS carousel */
.reviews {
  padding: 32px 0 12px;
}

.reviews--in-about {
  padding-top: 18px;
}

.reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reviews-controls {
  display: inline-flex;
  gap: 10px;
}

.reviews-cta {
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .86);
  color: #111;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 26px rgba(183, 86, 117, 0.10);
}

.reviews-cta:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .95);
}

.reviews-arrow {
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: var(--btn-primary);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}

.reviews-arrow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--btn-primary-dark), 0 12px 28px rgba(222, 67, 101, 0.4);
}

.reviews-arrow:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--btn-primary-dark), 0 4px 12px rgba(222, 67, 101, 0.3);
}

.reviews-track {
  margin-top: 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(360px, 85vw);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.reviews-track::-webkit-scrollbar {
  height: 10px;
}

.reviews-track::-webkit-scrollbar-thumb {
  background: rgba(183, 86, 117, 0.25);
  border-radius: 999px;
}

.review-card {
  scroll-snap-align: start;
  background: radial-gradient(1200px 200px at 0% 0%, rgba(222, 67, 101, 0.08), transparent 40%),
    rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 26px rgba(183, 86, 117, 0.12);
  position: relative;
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.review-author {
  display: flex;
  align-items: center;
  min-width: 0;
}

.review-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-stars {
  color: #f59e0b;
  font-size: 14px;
  white-space: nowrap;
}

.review-text {
  color: #222;
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  line-clamp: 6;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-source {
  margin-top: 10px;
  font-size: 12px;
  color: #666;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.review-source a {
  color: var(--btn-primary-dark);
  text-decoration: none;
  font-weight: 700;
}

.review-form {
  margin-top: 16px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(183, 86, 117, 0.10);
}

.review-form__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-form__title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
}

.review-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .9);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.review-drawer {
  margin-top: 12px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition: max-height .25s ease, opacity .2s ease, transform .25s ease;
}

.review-drawer.is-open {
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
}

.review-drawer .review-form {
  margin-top: 0;
}

.review-form__grid {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 10px;
}

.review-form input,
.review-form select,
.review-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .12);
  outline: none;
  background: #fff;
}

.review-form textarea {
  margin-top: 10px;
  min-height: 90px;
  resize: vertical;
}

.reviews-submit {
  margin-top: 12px;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 12px 14px;
  background: var(--btn-primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
}

.review-captcha {
  margin: 4px 0 10px;
}

.review-captcha__turnstile {
  min-height: 65px;
}

.review-captcha__math-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #444;
}

.review-captcha__math-input {
  width: 100%;
  max-width: 140px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

.review-form__msg {
  margin-top: 10px;
  font-size: 13px;
  color: #333;
}

@media (max-width: 520px) {
  .review-form__grid {
    grid-template-columns: 1fr;
  }

  .reviews-controls {
    gap: 8px;
  }

  .reviews-cta {
    padding: 0 12px;
  }
}

.top-center [data-i18n="top.pickup"]::before {
  /* clock */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23F5EFEA' d='M12 22a10 10 0 1 1 0-20a10 10 0 0 1 0 20Zm0-18a8 8 0 1 0 0 16a8 8 0 0 0 0-16Zm1 9h4v2h-6V7h2v6Z'/%3E%3C/svg%3E");
}

.top-center [data-i18n="top.delivery"]::before {
  /* truck */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23F5EFEA' d='M3 7a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1h2.59A2 2 0 0 1 21 8.59V16a2 2 0 0 1-2 2h-1.17a3 3 0 0 1-5.66 0H10.83a3 3 0 0 1-5.66 0H5a2 2 0 0 1-2-2V7Zm14 3v6h2V9.41L17.59 10H17ZM6.5 19a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3Zm9 0a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3Z'/%3E%3C/svg%3E");
}

.language {
  cursor: pointer;
}

.language-dropdown-wrap {
  position: relative;
  display: inline-block;
  z-index: 210;
}

/* Header language placeholder is mobile-only */
.language-wrap {
  display: none;
}

@media (max-width: 768px) {
  .language-wrap {
    display: inline-flex !important;
    align-items: center !important;
  }
}

.language-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  color: var(--brand-black);
  text-decoration: none;
}

.language-btn:visited {
  color: var(--brand-black);
}

.language-btn:active,
.language-btn:focus {
  color: var(--brand-black);
}

.top-bar .language-btn,
.top-bar .language-btn:visited,
.top-bar .language-btn:active,
.top-bar .language-btn:focus,
.top-bar .language-current,
.top-bar .language-current-full {
  color: #f5efea;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  bottom: auto;
  right: 0;
  margin-top: 6px;
  z-index: 220;
  background: linear-gradient(180deg, #ffffff 0%, #fff7fb 100%);
  border: 1px solid rgba(183, 86, 117, 0.2);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(183, 86, 117, 0.22);
  min-width: 140px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.language-dropdown button {
  display: block;
  width: 100%;
  padding: 11px 16px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: #2c2c2c;
  transition: background 0.2s ease, color 0.2s ease;
}

.language-dropdown button:hover {
  background: #f6dde6;
  color: #b75675;
}

.language-dropdown button[aria-current="true"] {
  background: #ecd2db;
  color: #b75675;
  font-weight: 600;
}

/* CATALOG */

.catalog {
  padding: 60px 0;
  background: var(--brand-beige);
  position: relative;
  overflow: hidden;
}

.catalog--compact {
  padding: 30px 0;
  background: var(--brand-beige);
}

.home-categories {
  padding: 30px 0 70px 0;
  background: var(--brand-beige);
  position: relative;
  overflow: hidden;
}

.about {
  padding: 0 0 80px;
  background-color: var(--brand-beige);
  background: linear-gradient(to bottom, rgba(236, 210, 219, 0) 0%, rgba(231, 224, 218, 0.55) 45%, rgba(236, 210, 219, 0.9) 100%);
  position: relative;
  overflow: hidden;
}

/* Floating flowers — decorative background, must NOT block UI (pointer-events: none) */
.flowers-canvas-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none !important;
  z-index: 3;
  overflow: hidden;
  isolation: isolate;
}

.flowers-canvas-wrap * {
  pointer-events: none !important;
}

.flowers-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 20% 50%, rgba(236, 210, 219, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

/* Hero photo - letterbox style like screenshot */
.about-hero-wrap {
  margin-top: 24px;
}

.about-hero {
  width: 100%;
  aspect-ratio: 4 / 1;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.about-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content - titles cascade */
.about-content {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

.about-title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.about-tagline {
  font-size: 22px;
  line-height: 1.4;
  color: #333;
  margin-bottom: 16px;
}

.about-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
}

.about-quality {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  margin-top: 16px;
}

/* Social */
.about-social-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.about-social {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.about-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--brand-dusty-rose);
  text-decoration: none;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.about-social-link:hover {
  color: var(--brand-rose);
  background: rgba(236, 210, 219, 0.3);
  transform: translateY(-2px);
}

.about-social-icon {
  width: 24px;
  height: 24px;
}

.about-social-label {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin-top: 16px;
}

.about-follow-btn {
  display: inline-block;
  margin: 20px auto 0;
  padding: 14px 32px;
  background: var(--btn-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: var(--btn-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.about-follow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--btn-primary-dark), 0 12px 28px rgba(222, 67, 101, 0.4);
}

.about-follow-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--btn-primary-dark), 0 4px 12px rgba(222, 67, 101, 0.3);
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 768px) {
  .about-hero {
    aspect-ratio: 3 / 1;
  }

  .about-title {
    font-size: 36px;
  }

  .about-tagline {
    font-size: 18px;
  }

  .about-desc,
  .about-quality {
    font-size: 14px;
  }
}

.impressum-content {
  margin-top: 30px;
  max-width: 600px;
}

.impressum-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
  color: #333;
}

.impressum-content a {
  color: var(--brand-dusty-rose);
  text-decoration: underline;
}

.impressum-content a:hover {
  color: var(--brand-mauve);
}

.legal-content {
  margin-top: 30px;
  max-width: 700px;
}

.legal-content h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: #000;
}

.legal-content h3:first-of-type {
  margin-top: 0;
}

.legal-content p,
.legal-content ul {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 14px;
  color: #333;
}

.legal-content ul {
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--brand-dusty-rose);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--brand-mauve);
}

/* Payment Methods (Zahlungsarten) */
.payment-page {
  padding-bottom: 60px;
}

.shipping-page {
  padding-bottom: 60px;
}

.payment-intro {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  max-width: 600px;
  margin: -8px 0 8px 0;
}

.payment-security {
  font-size: 14px;
  color: #666;
  margin-bottom: 32px;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.payment-card {
  background: var(--brand-white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.payment-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.payment-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--brand-beige);
  border-radius: 12px;
}

.payment-card-icon img {
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
}

.payment-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.payment-card-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

@media (max-width: 600px) {
  .payment-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  .payment-card {
    padding: 22px;
  }

  .payment-intro,
  .payment-security {
    font-size: 15px;
  }
}

/* FAQ Accordion */
.faq-accordion {
  margin-top: 30px;
  max-width: 900px;
  background: var(--brand-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--brand-black);
  cursor: pointer;
  user-select: none;
  transition: background .2s;
}

.faq-question:hover {
  background: rgba(183, 86, 117, .04);
}

.faq-question::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-left: 12px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  transition: transform .25s;
}

.faq-item.open .faq-question::after {
  transform: rotate(-135deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease-out;
  font-size: 15px;
  line-height: 1.65;
  color: #444;
  padding: 0 20px;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 20px 18px 20px;
}

/* Мои заказы — empty state */
.catalog-title--left {
  text-align: left;
}

.orders-empty {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background: var(--brand-white);
  border-radius: 12px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.orders-empty-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-black);
  margin-bottom: 12px;
}

.orders-empty-text {
  font-size: 16px;
  color: var(--brand-black);
  line-height: 1.6;
  margin-bottom: 24px;
  opacity: .85;
}

.orders-empty-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--brand-dusty-rose);
  color: var(--brand-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  transition: background .2s;
}

.orders-empty-btn:hover {
  background: var(--brand-mauve);
}


@media (max-width: 768px) {
  .about {
    padding: 60px 16px 60px;
  }

  .about-title {
    font-size: 32px;
  }

  .about-tagline {
    font-size: 16px;
  }

  .about-carousel-wrap {
    margin: 40px -24px 50px;
  }

  .about-carousel-item {
    width: 160px;
    height: 160px;
  }
}

.more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 280px;
  padding: 16px 44px;
  border-radius: 999px;
  border: none;
  background: var(--btn-primary);
  color: #ffffff;
  font-size: 18px;
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .2px;
  transition: transform .15s ease, box-shadow .15s ease;
  animation: pulseGlow 3s ease-in-out infinite;
}

.more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--btn-primary-dark), 0 14px 32px rgba(222, 67, 101, 0.4);
  animation: none;
}

.more-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--btn-primary-dark), 0 4px 16px rgba(222, 67, 101, 0.3);
}

.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  align-items: stretch;
  overflow: visible;
}

.home-categories {
  opacity: 1;
  transform: none;
}

.home-categories.is-visible {
  opacity: 1;
  transform: none;
}

.home-cat-card {
  display: block;
  position: relative;
  width: 100%;
  max-width: none;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  height: auto;
  aspect-ratio: 4 / 5;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
  opacity: 1;
  transform: none;
}

.home-categories.is-visible .home-cat-card {
  opacity: 1;
  transform: none;
}

.home-categories.is-visible .home-cat-card:nth-child(1) {
  transition-delay: 0.1s;
}

.home-categories.is-visible .home-cat-card:nth-child(2) {
  transition-delay: 0.2s;
}

.home-categories.is-visible .home-cat-card:nth-child(3) {
  transition-delay: 0.3s;
}

.home-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .35s ease;
  filter: saturate(1.05);
}

.home-cat-card:hover img {
  transform: scale(1.05);
}

.home-cat-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 16px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .3px;
  color: #fff;
  background: linear-gradient(to top, rgba(183, 86, 117, 0.85), rgba(201, 159, 171, 0.4));
  transform: translateY(0);
  transition: transform 0.35s ease, background 0.35s ease;
}

.home-cat-card:hover .home-cat-label {
  transform: translateY(-4px);
  background: linear-gradient(to top, rgba(222, 67, 101, 0.9), rgba(183, 86, 117, 0.5));
}

@media (max-width: 900px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .home-cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .home-cat-card {
    height: auto;
  }
}

@media (max-width: 520px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

.catalog-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  text-align: left;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
  transition: box-shadow .18s ease, border-color .25s ease;
  border: 2px solid transparent;
  opacity: 1;
  transform: none;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.catalog.is-visible .product-card {
  opacity: 1;
  transform: none;
}

.catalog.is-visible .product-card:nth-child(1) {
  transition-delay: 0.05s;
}

.catalog.is-visible .product-card:nth-child(2) {
  transition-delay: 0.1s;
}

.catalog.is-visible .product-card:nth-child(3) {
  transition-delay: 0.15s;
}

.catalog.is-visible .product-card:nth-child(4) {
  transition-delay: 0.2s;
}

.catalog.is-visible .product-card:nth-child(5) {
  transition-delay: 0.25s;
}

.catalog.is-visible .product-card:nth-child(6) {
  transition-delay: 0.3s;
}

.catalog.is-visible .product-card:nth-child(7) {
  transition-delay: 0.35s;
}

.catalog.is-visible .product-card:nth-child(8) {
  transition-delay: 0.4s;
}

.catalog.is-visible .product-card:nth-child(9) {
  transition-delay: 0.45s;
}

.catalog.is-visible .product-card:nth-child(10) {
  transition-delay: 0.5s;
}

.catalog.is-visible .product-card:nth-child(11) {
  transition-delay: 0.55s;
}

.catalog.is-visible .product-card:nth-child(12) {
  transition-delay: 0.6s;
}

.product-card:hover {
  transform: none;
  box-shadow: 0 14px 34px rgba(222, 67, 101, 0.18);
  border-color: rgba(236, 210, 219, 0.8);
}

.product-card-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f3f3;
  margin-bottom: 12px;
  aspect-ratio: 8 / 5;
}

.product-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 0;
  display: block;
  transform: scale(1);
  transition: transform .25s ease;
}

.product-card:hover img {
  transform: scale(1.03);
}

.product-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  backdrop-filter: blur(6px);
  text-align: center;
}

.product-badge--in {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #2f6f3e;
}

.product-badge--out {
  background: rgba(201, 75, 110, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: white;
}

.fav-star {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: color .2s, background .2s, transform .2s;
  z-index: 2;
}

.fav-star:hover {
  color: #b75675;
  background: #fff;
  transform: scale(1.08);
}

.fav-star--active {
  color: #b75675;
}

.product-left--with-fav {
  position: relative;
}

.product-gallery {
  width: 100%;
  outline: none;
}

.product-gallery-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  background: #f3f3f3;
}

.product-gallery-main img,
.product-gallery-main #productImage {
  box-shadow: none;
  border-radius: 0;
}

.product-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-gallery-nav svg {
  width: 22px;
  height: 22px;
}

.product-gallery-nav--prev {
  left: 12px;
}

.product-gallery-nav--next {
  right: 12px;
}

.product-gallery-main:hover .product-gallery-nav:not(.is-hidden),
.product-gallery-main:focus-within .product-gallery-nav:not(.is-hidden) {
  opacity: 1;
  pointer-events: auto;
}

.product-gallery-nav:hover {
  transform: translateY(-50%) scale(1.04);
}

.product-gallery-nav.is-hidden {
  display: none;
}

.product-gallery-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.product-gallery-thumbs.is-hidden {
  display: none;
}

.product-gallery-thumb {
  flex: 0 0 auto;
  width: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f3f3;
  cursor: pointer;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.product-gallery-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  box-shadow: none;
  border-radius: 0;
}

.product-gallery-thumb.is-active {
  border-color: #b75675;
}

.product-gallery-thumb:not(.is-active) {
  opacity: 0.72;
}

.product-gallery-thumb:hover,
.product-gallery-thumb:focus-visible {
  opacity: 1;
  border-color: #de9aad;
}

.product-fav-star-wrap {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.fav-star--page {
  width: 44px;
  height: 44px;
}

.fav-star--page svg {
  width: 26px;
  height: 26px;
}

.favorites-empty {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background: var(--brand-white);
  border-radius: 12px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.favorites-empty-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-black);
  margin-bottom: 12px;
}

.favorites-empty-text {
  font-size: 16px;
  color: var(--brand-black);
  line-height: 1.6;
  margin-bottom: 24px;
  opacity: .85;
}

.favorites-empty-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--brand-dusty-rose);
  color: var(--brand-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  transition: background .2s;
}

.favorites-empty-btn:hover {
  background: var(--brand-mauve);
}

/* Профиль */
.profile-desc {
  margin-top: -10px;
  margin-bottom: 24px;
  font-size: 15px;
  color: #555;
}

.profile-form {
  max-width: 500px;
  background: var(--brand-white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.profile-field {
  margin-bottom: 20px;
}

.profile-field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
}

.profile-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
}

.profile-field input:focus {
  outline: none;
  border-color: var(--brand-dusty-rose);
}

.profile-save-btn {
  margin-top: 8px;
  padding: 14px 32px;
  background: var(--btn-primary);
  color: var(--brand-white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}

.profile-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--btn-primary-dark), 0 12px 28px rgba(222, 67, 101, 0.4);
}

.profile-save-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--btn-primary-dark), 0 4px 12px rgba(222, 67, 101, 0.3);
}

/* Checkout */
.checkout-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
}

@media (max-width: 768px) {
  .checkout-inner {
    grid-template-columns: 1fr;
  }
}

.checkout-summary {
  background: var(--brand-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.checkout-summary h3,
.checkout-form h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.checkout-list {
  margin-bottom: 16px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.checkout-item--addon {
  padding-left: 16px;
  font-size: 13px;
  color: #555;
}

.checkout-total {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-dusty-rose);
}

.checkout-form {
  background: var(--brand-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.checkout-hint {
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
}

.checkout-calendar-wrap {
  margin-bottom: 16px;
}

.checkout-calendar-wrap .delivery-calendar-wrap {
  max-width: 100%;
}

.checkout-calendar-wrap .delivery-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.checkout-calendar-wrap .cal-nav-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.checkout-calendar-wrap .cal-month-title {
  font-weight: 600;
  font-size: 16px;
}

.checkout-calendar-wrap .cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.checkout-calendar-wrap .cal-weekday {
  text-align: center;
  font-size: 12px;
  color: #666;
  font-weight: 600;
}

.checkout-calendar-wrap .cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.checkout-calendar-wrap .cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
}

.checkout-calendar-wrap .cal-day--empty {
  background: transparent;
}

.checkout-calendar-wrap .cal-day--past {
  background: #f0f0f0;
  color: #aaa;
}

.checkout-calendar-wrap .cal-day--disabled {
  background: #f5f5f5;
  color: #bbb;
}

.checkout-calendar-wrap .cal-day--selectable {
  background: #f5f5f5;
  cursor: pointer;
}

.checkout-calendar-wrap .cal-day--selectable:hover {
  background: #e8e8e8;
}

.checkout-calendar-wrap .cal-day--selected {
  background: #b75675;
  color: white;
  font-weight: 600;
}

.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.time-slot-btn {
  padding: 10px 16px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.time-slot-btn:hover {
  border-color: #b75675;
}

.checkout-no-slots {
  margin: 0;
  font-size: 14px;
  color: #c33;
}

.time-slot-btn--active {
  background: #b75675;
  color: white;
  border-color: #b75675;
}

.checkout-submit-btn {
  margin-top: 16px;
  width: 100%;
  padding: 14px;
  background: var(--btn-primary);
  color: var(--brand-white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}

.checkout-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--btn-primary-dark), 0 12px 28px rgba(222, 67, 101, 0.4);
}

.checkout-submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--btn-primary-dark), 0 4px 12px rgba(222, 67, 101, 0.3);
}

/* Delivery/Pickup toggle */
.delivery-pickup-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.delivery-pickup-btn {
  flex: 1;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid #ddd;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.delivery-pickup-btn:hover {
  border-color: var(--brand-dusty-rose);
  color: var(--brand-dusty-rose);
}

.delivery-pickup-btn.is-active,
.delivery-pickup-btn--active {
  background: var(--btn-primary) !important;
  border-color: var(--btn-primary) !important;
  color: #fff !important;
}

.delivery-pickup-btn.is-active:hover,
.delivery-pickup-btn--active:hover {
  background: var(--btn-primary-dark) !important;
  border-color: var(--btn-primary-dark) !important;
  color: #fff !important;
}

/* Delivery section */
.delivery-section {
  margin-top: 20px;
  margin-bottom: 24px;
}

.delivery-map-wrap {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  position: relative;
}

.delivery-map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px;
  background: #f5f5f5;
  color: #666;
  font-size: 14px;
  text-align: center;
}

.delivery-map {
  height: 280px;
  min-height: 280px;
  width: 100%;
  min-width: 200px;
  position: relative;
  z-index: 1;
  background: #e8e8e8;
  cursor: crosshair;
}

.delivery-result {
  font-size: 14px;
}

.delivery-status {
  color: #666;
}

.delivery-cost-line {
  margin: 4px 0;
}

.delivery-free {
  font-size: 12px;
  color: #22c55e;
  margin-top: 4px;
}

.delivery-office-marker {
  width: 16px;
  height: 16px;
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.checkout-subtotal-line,
.checkout-delivery-line {
  font-size: 14px;
  margin-top: 6px;
}

.checkout-total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  font-weight: 700;
  font-size: 18px;
}

.checkout-page .catalog-title {
  margin-bottom: 8px;
}

.checkout-page .checkout-inner {
  max-width: 980px;
  margin: 0 auto;
}

.checkout-section {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0ebe8;
}

.checkout-section:last-of-type {
  border-bottom: none;
}

.checkout-section__title {
  font-size: 17px;
  margin: 0 0 8px;
  color: #3b2f32;
}

.checkout-section__hint {
  font-size: 13px;
  color: #6b5c60;
  margin: 0 0 12px;
  line-height: 1.4;
}

.checkout-hint--guest {
  padding: 10px 12px;
  background: #fdf8f6;
  border-radius: 10px;
  border: 1px solid #f0e4e0;
}

.checkout-pickup-note {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #f0faf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  text-align: left;
}

.checkout-pickup-note strong {
  display: block;
  font-size: 16px;
  color: #166534;
  margin-bottom: 6px;
}

.checkout-pickup-note p {
  margin: 0;
  font-size: 14px;
  color: #3f6212;
  line-height: 1.4;
}

.checkout-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.checkout-legal {
  margin: 14px 0 8px;
}

.checkout-legal__label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}

.address-fields-grid {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px 14px;
}

.address-field--wide {
  grid-column: 1 / -1;
}

@media (max-width: 520px) {
  .address-fields-grid {
    grid-template-columns: 1fr;
  }
}

.profile-address-title {
  font-size: 16px;
  margin: 8px 0 12px;
  color: #3b2f32;
}

.profile-address-grid {
  margin-bottom: 8px;
}

.req {
  color: var(--brand-dusty-rose);
  font-weight: 700;
}

.delivery-map-wrap--invalid {
  border-color: #e57373;
  box-shadow: 0 0 0 2px rgba(229, 115, 115, 0.25);
}

.delivery-status--error {
  color: #b91c1c;
  font-weight: 600;
}

.checkout-time-field .time-slots {
  margin-top: 4px;
}

.checkout-auth-gate {
  margin-top: 16px;
  padding: 22px 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fdf8f6 0%, #f8efe9 100%);
  border: 1px solid #ecd9d2;
  text-align: center;
  box-shadow: 0 4px 20px rgba(183, 86, 117, 0.08);
}

.checkout-auth-gate__icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}

.checkout-auth-gate__title {
  margin: 0 0 8px;
  font-size: 18px;
  color: #3b2f32;
}

.checkout-auth-gate__text {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.45;
  color: #6b5c60;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.checkout-auth-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.checkout-auth-gate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 12px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.checkout-auth-gate__btn--primary {
  background: var(--btn-primary);
  color: #fff;
  box-shadow: var(--btn-shadow);
}

.checkout-auth-gate__btn--primary:hover {
  transform: translateY(-2px);
  color: #fff;
}

.checkout-auth-gate__btn--outline {
  background: #fff;
  color: var(--brand-dusty-rose);
  border: 2px solid var(--brand-dusty-rose);
}

.checkout-auth-gate__btn--outline:hover {
  background: #fff5f7;
  color: var(--brand-dusty-rose);
}

@media (max-width: 480px) {
  .checkout-auth-gate__actions {
    flex-direction: column;
  }
  .checkout-auth-gate__btn {
    width: 100%;
  }
}

/* Checkout success */
.page-checkout-success {
  background: #faf7f5;
}

.checkout-success-section {
  padding: 32px 0 56px;
}

.checkout-success-container {
  display: flex;
  justify-content: center;
}

.checkout-success-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 36px 32px 32px;
  text-align: center;
  background: var(--brand-white);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(59, 47, 50, 0.08);
  border: 1px solid #f0e8e4;
}

.checkout-success-icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
}

.checkout-success-icon {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.checkout-success-icon--loader {
  display: flex;
  border: 4px solid #f0e0da;
  border-top-color: var(--btn-primary);
  font-size: 0;
  animation: checkout-success-spin 0.85s linear infinite;
}

.checkout-success-card.is-success .checkout-success-icon--loader,
.checkout-success-card.is-error .checkout-success-icon--loader {
  display: none;
}

.checkout-success-card.is-success .checkout-success-icon--ok {
  display: flex;
  background: #dcfce7;
  color: #15803d;
}

.checkout-success-card.is-error .checkout-success-icon--err {
  display: flex;
  background: #fee2e2;
  color: #b91c1c;
}

@keyframes checkout-success-spin {
  to {
    transform: rotate(360deg);
  }
}

.checkout-success-heading {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 700;
  color: #3b2f32;
  line-height: 1.2;
}

.checkout-success-status {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.5;
  color: #5c4f52;
}

.checkout-success-card.is-success .checkout-success-status {
  color: #166534;
}

.checkout-success-card.is-error .checkout-success-status {
  color: #b91c1c;
}

.checkout-success-details {
  margin: 0 0 24px;
  padding: 16px 18px;
  text-align: left;
  background: #fdf8f6;
  border-radius: 14px;
  border: 1px solid #f0e4e0;
}

.checkout-success-meta {
  margin: 0;
}

.checkout-success-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #efe5e0;
}

.checkout-success-meta-row:last-child {
  border-bottom: none;
}

.checkout-success-meta dt {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #7a6b6f;
}

.checkout-success-meta dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #3b2f32;
  text-align: right;
}

.checkout-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.checkout-success-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.checkout-success-btn--primary {
  background: var(--btn-primary);
  color: #fff;
  box-shadow: var(--btn-shadow);
}

.checkout-success-btn--primary:hover {
  transform: translateY(-2px);
  color: #fff;
}

.checkout-success-btn--outline {
  background: #fff;
  color: var(--brand-dusty-rose);
  border: 2px solid var(--brand-dusty-rose);
}

.checkout-success-btn--outline:hover {
  background: #fff8f9;
  color: var(--brand-dusty-rose);
}

.checkout-success-hint {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #7a6b6f;
}

.footer--compact .footer-sub {
  padding: 16px 0;
}

.footer--compact .footer-sub-inner {
  justify-content: center;
  text-align: center;
  color: #888;
  font-size: 13px;
}

@media (max-width: 560px) {
  .checkout-success-card {
    padding: 28px 20px 24px;
    border-radius: 16px;
  }
  .checkout-success-heading {
    font-size: 22px;
  }
  .checkout-success-actions {
    flex-direction: column;
  }
  .checkout-success-btn {
    width: 100%;
  }
}

/* Список заказов */
.orders-list {
  margin-top: 24px;
}

.order-card {
  background: var(--brand-white);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.order-number {
  font-weight: 700;
}

.order-date {
  font-size: 14px;
  color: #666;
}

.order-card-body p {
  margin: 4px 0;
  font-size: 14px;
}

.order-total {
  margin-top: 12px !important;
  font-weight: 700;
  color: var(--brand-dusty-rose);
}

.order-again-btn {
  margin-top: 12px;
  padding: 10px 18px;
  background: var(--btn-primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}

.order-again-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--btn-primary-dark), 0 10px 24px rgba(222, 67, 101, 0.4);
}

.order-again-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--btn-primary-dark), 0 4px 12px rgba(222, 67, 101, 0.3);
}

.product-card h3 {
  font-size: 16px;
  line-height: 1.25;
  margin: 6px 0 8px 0;
}

.product-card .price {
  font-size: 20px;
  margin: 10px 0;
  color: #b75675;
}

.product-meta {
  margin-top: 2px;
  font-size: 13px;
  opacity: .78;
}

.add-cart {
  background: var(--btn-primary);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  box-shadow: var(--btn-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}

.add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--btn-primary-dark), 0 12px 28px rgba(222, 67, 101, 0.4);
}

.add-cart:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--btn-primary-dark), 0 4px 12px rgba(222, 67, 101, 0.3);
}

.login-btn {
  background: var(--btn-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: var(--btn-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--btn-primary-dark), 0 10px 24px rgba(222, 67, 101, 0.4);
}

.login-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--btn-primary-dark), 0 4px 12px rgba(222, 67, 101, 0.3);
}

#userEmail {
  cursor: pointer !important;
}

.admin-home-btn {
  display: inline-block;
  background: var(--btn-primary);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: var(--btn-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}

.admin-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--btn-primary-dark), 0 12px 28px rgba(222, 67, 101, 0.4);
}

.admin-home-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--btn-primary-dark), 0 4px 12px rgba(222, 67, 101, 0.3);
}

.admin-nav {
  margin-bottom: 20px;
}

.admin-buttons {
  display: flex;
  gap: 10px;
}

.admin-buttons button {
  background: var(--btn-primary);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: var(--btn-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}

.admin-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--btn-primary-dark), 0 8px 20px rgba(222, 67, 101, 0.35);
}

.admin-buttons button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--btn-primary-dark), 0 4px 10px rgba(222, 67, 101, 0.3);
}

.product-card {
  display: block;
  text-decoration: none;
  color: black;
}

/* ===== страница товара ===== */

/* PRODUCT PAGE */

.product-page {
  display: flex;
  gap: 60px;
  max-width: 1100px;
  margin: 50px auto;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

.product-left {
  width: min(100%, 520px);
  max-width: 520px;
  flex-shrink: 0;
}

/* Те же пропорции, что у карточки каталога (8:5) — один снимок, одинаковая обрезка */
.product-left img,
#productImage {
  width: 100%;
  aspect-ratio: 8 / 5;
  height: auto;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  background: #f3f3f3;
}

@media (max-width: 520px) {
  .product-page {
    flex-direction: column;
    gap: 18px;
    margin: 18px auto;
    padding: 0 14px;
  }

  .product-left,
  .product-right {
    width: 100%;
  }

  .product-left {
    display: block;
  }

  .product-left img,
  #productImage {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .product-gallery-nav:not(.is-hidden) {
    opacity: 1;
    pointer-events: auto;
    width: 36px;
    height: 36px;
  }

  .product-gallery-thumb {
    width: 64px;
  }

  .addons {
    gap: 10px;
  }

  .addon {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .color-select {
    width: 100%;
    max-width: none;
  }

  .addon--color {
    grid-template-columns: 1fr;
  }

  .addon span {
    min-width: 0;
    white-space: normal;
  }

  .buy-section {
    flex-wrap: wrap;
  }

  .buy-section .buy-btn {
    flex: 1 1 auto;
    min-width: 0;
  }
}

.product-right {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.product-price {
  font-size: 28px;
  color: #c94b6e;
  font-weight: bold;
  margin: 10px 0 20px;
}

/* addons */

.addons {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.addon {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  column-gap: 12px;
  background: #f8f8f8;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #eee;
}

.addon span {
  font-size: 14px;
}

.addon span:first-child {
  min-width: 0;
}

.addon span:nth-child(2) {
  font-weight: 600;
  white-space: nowrap;
}

.addon--stacked {
  grid-template-columns: 1fr auto;
}

.addon--color {
  grid-template-columns: 1fr minmax(160px, 220px);
  align-items: center;
}

.addon-select {
  min-width: 150px;
  height: 34px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 4px 10px;
  background: #fff;
}

.color-select {
  min-width: 180px;
  max-width: 220px;
  height: 40px;
  border: 2px solid #d5d5d5;
  border-radius: 10px;
  padding: 0 36px 0 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.color-select:hover,
.color-select:focus {
  outline: none;
  border-color: #b75675;
  box-shadow: 0 0 0 3px rgba(183, 86, 117, 0.15);
}

.color-select option {
  font-weight: 600;
  padding: 8px;
}

.color-opt--white,
.color-select--white {
  background-color: #fff;
  color: #2d2d2d;
  border-color: #c8c8c8;
}

.color-opt--soft-pink,
.color-select--soft-pink {
  background-color: #f6dde6;
  color: #8b3a55;
  border-color: #e8b4c8;
}

.color-opt--gray,
.color-select--gray {
  background-color: #efefef;
  color: #4a4a4a;
  border-color: #bdbdbd;
}

.color-opt--red,
.color-select--red {
  background-color: #f6d7dc;
  color: #8b2139;
  border-color: #e8a0ad;
}

.color-opt--beige,
.color-select--beige {
  background-color: #efe5d9;
  color: #5c4a32;
  border-color: #d4c4ab;
}

.color-opt--pink,
.color-select--pink {
  background-color: #f2d6ea;
  color: #8b3a6e;
  border-color: #e8b4d4;
}

.color-opt--blue,
.color-select--blue {
  background-color: #dbefff;
  color: #1a4d7a;
  border-color: #9ec9eb;
}

.addon-check-wrap {
  display: inline-flex;
  align-items: center;
}

.addon input[type="number"] {
  width: 50px;
  padding: 5px;
  border-radius: 6px;
  border: 1px solid #ddd;
  text-align: center;
}

.addon input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--btn-primary);
  cursor: pointer;
  justify-self: end;
}

.addon-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 50%;
  background: #de4365;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: help;
  position: relative;
  flex-shrink: 0;
  vertical-align: middle;
  overflow: hidden;
  line-height: 1;
  white-space: nowrap;
}

.addon-help::after {
  content: "";
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .addon-help:hover::after,
  .addon-help:focus-visible::after {
    content: attr(data-tooltip);
    display: block;
    position: fixed;
    left: 16px;
    right: 16px;
    top: 50%;
    width: auto;
    max-width: none;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff7fb;
    border: 1px solid rgba(183, 86, 117, 0.25);
    box-shadow: 0 12px 32px rgba(183, 86, 117, 0.28);
    color: #333;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: break-word;
    transform: translateY(-50%);
    z-index: 10001;
    pointer-events: none;
  }
}

.addon-help.is-open::after {
  content: attr(data-tooltip);
  display: block;
  position: fixed;
  left: 16px;
  right: 16px;
  top: 50%;
  width: auto;
  max-width: none;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff7fb;
  border: 1px solid rgba(183, 86, 117, 0.25);
  box-shadow: 0 12px 32px rgba(183, 86, 117, 0.28);
  color: #333;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: break-word;
  transform: translateY(-50%);
  z-index: 10001;
  pointer-events: auto;
}

.addon-card-text-wrap {
  margin-top: 8px;
}

.addon-card-text-wrap label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #444;
}

.addon-card-text-wrap textarea {
  width: 100%;
  min-height: 84px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  resize: vertical;
}

/* buy + product legal notices */

.product-buy-wrap {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-buy-notices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-buy-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #f5f5f5;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
}

.product-buy-notice[hidden],
#productPremiumRibbonNotice.is-hidden,
#productPeoniesNotice.is-hidden {
  display: none !important;
}

.product-buy-notice__icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #1a1a1a;
  line-height: 0;
}

.product-buy-notice__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #333;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.buy-section {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.buy-section input {
  width: 60px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
  text-align: center;
}

.buy-btn {
  background: var(--btn-primary);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: var(--btn-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  flex: 1;
  min-width: 160px;
}

/* buy-btn--secondary removed: both buttons are primary now */

.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--btn-primary-dark), 0 12px 28px rgba(222, 67, 101, 0.4);
}

.buy-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--btn-primary-dark), 0 4px 12px rgba(222, 67, 101, 0.3);
}

.total {
  margin-top: 15px;
  font-size: 20px;
  font-weight: bold;
}

/* FOOTER */

.footer {
  margin-top: auto;
}

.footer-main {
  background: linear-gradient(180deg, var(--brand-mauve) 0%, #ecd2db 100%);
  color: var(--brand-black);
  padding: 50px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-brand {
  text-align: center;
}

.footer-brand a {
  display: inline-block;
  text-decoration: none;
}

.footer-brand-main {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--brand-black);
  line-height: 1.1;
  margin-bottom: 4px;
}

.footer-brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 8px;
  color: #333;
  text-transform: uppercase;
}

.footer-brand img {
  display: block;
  width: 200px;
  height: 80px;
  object-fit: contain;
}

.footer-col h4.footer-heading {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0 0 14px 0;
  padding: 0;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--brand-black);
}

.footer-col a,
.footer-col span {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--brand-black);
  text-decoration: none;
  margin-bottom: 8px;
  line-height: 1.4;
}

.footer-col a {
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.footer-col a:hover {
  color: var(--btn-primary);
  text-decoration: underline;
}

.footer-icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.2em;
  margin-right: 6px;
  fill: var(--brand-dusty-rose);
}

.footer-brand a {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.footer-brand a:hover {
  text-decoration: none;
  opacity: 0.9;
}

.footer-sub {
  background: linear-gradient(90deg, var(--brand-dusty-rose) 0%, #c99fab 100%);
  color: var(--brand-black);
  padding: 18px 0;
}

.footer-sub-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-sub-left p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--brand-black);
  margin: 0 0 8px 0;
}

.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--brand-black);
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

.footer-payments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-payment-icon {
  height: 48px;
  width: 72px;
  display: block;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-sub-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ========= Mobile header overrides (FINAL) =========
   Placed at end to avoid later overrides/cascade issues. */
@media (max-width: 768px) {
  body>.top-bar {
    display: none !important;
  }
}

@media (max-width: 520px) {
  #userEmail {
    display: none !important;
  }

  .account-top {
    position: relative !important;
    padding-left: 34px !important;
    min-height: 28px !important;
  }

  .account-top::before {
    content: "" !important;
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    width: 18px !important;
    height: 18px !important;
    transform: translateY(-50%) !important;
    /* Inline SVG profile icon (no external file needed) */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b75675' d='M12 12a4.5 4.5 0 1 0-4.5-4.5A4.5 4.5 0 0 0 12 12Zm0 2c-4.4 0-8 2.2-8 5v1h16v-1c0-2.8-3.6-5-8-5Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
    opacity: 0.95 !important;
  }
}

/* ========= Phone layout tweaks ========= */
@media (max-width: 520px) {

  /* Smaller logo on phone */
  .logo img {
    height: 38px !important;
  }

  /* Make product cards full width on phone */
  .catalog-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .product-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
}

/* ========= Mobile hamburger + language beside it ========= */
@media (max-width: 520px) {

  /* Turn categories button into hamburger */
  .categories-btn {
    width: 46px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    font-size: 0 !important;
    /* hide text */
    line-height: 0 !important;
    position: relative !important;
  }

  .categories-btn::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 18px !important;
    height: 2px !important;
    background: #fff !important;
    transform: translate(-50%, -50%) !important;
    box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff !important;
    border-radius: 2px !important;
  }

  /* Language selector: show next to burger (compact) */
  .header-inner {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .categories {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .language-wrap {
    display: inline-flex !important;
    align-items: center !important;
  }

  .language-dropdown-wrap {
    margin: 0 !important;
  }

  .language-btn {
    padding: 10px 12px !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
  }

  /* On phone, show only short label (DE/EN/RU) */
  .language-current-full {
    display: none !important;
  }
}

@media (max-width: 520px) {

  /* Prevent overlap: logo should not be absolutely positioned on phone */
  .logo {
    position: static !important;
    left: auto !important;
    transform: none !important;
  }

  /* keep header layout stable */
  .header-inner {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .header-icons {
    gap: 10px !important;
  }

  .logo a,
  .logo {
    justify-self: center !important;
  }
}

/* ========== Auth page (auth.html) ========== */
body.page-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
  min-height: 100vh;
  background: var(--brand-beige);
  position: relative;
}

body.page-auth>.auth-back {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--btn-primary);
  box-shadow: var(--btn-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.page-auth>.auth-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--btn-primary-dark), 0 12px 28px rgba(222, 67, 101, 0.4);
}

body.page-auth>.auth-back:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--btn-primary-dark), 0 4px 12px rgba(222, 67, 101, 0.3);
}

.page-auth .auth-card {
  width: min(520px, 100%);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(183, 86, 117, 0.16);
  padding: 36px 32px 32px;
}

.page-auth .auth-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-black);
  text-align: center;
  margin: 0 0 28px;
  line-height: 1.25;
}

.page-auth .auth-msg {
  display: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff2f2;
  color: #991b1b;
  font-size: 14px;
  line-height: 1.35;
}

.page-auth .auth-msg.is-info {
  background: linear-gradient(90deg, #fff5f7, #fce8ec);
  color: var(--brand-dusty-rose);
  border: 1px solid rgba(183, 86, 117, 0.2);
}

.page-auth .auth-resend {
  display: none;
  width: 100%;
  margin: 0 0 16px;
  padding: 11px 16px;
  border-radius: 50px;
  border: 2px solid rgba(183, 86, 117, 0.35);
  background: var(--brand-white);
  color: var(--brand-dusty-rose);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.page-auth .auth-resend:hover {
  background: var(--brand-light-pink);
  border-color: var(--brand-dusty-rose);
}

.page-auth .auth-field {
  position: relative;
  margin-bottom: 22px;
}

.page-auth .auth-field input {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(183, 86, 117, 0.35);
  padding: 12px 40px 12px 4px;
  font-size: 16px;
  font-family: var(--font-body);
  background: transparent;
  outline: none;
  color: var(--brand-black);
}

.page-auth .auth-field input:focus {
  border-bottom-color: var(--brand-dusty-rose);
  border-bottom-width: 2px;
  padding-bottom: 11px;
}

.page-auth .auth-field input::placeholder {
  color: #888;
}

.page-auth .auth-eye {
  position: absolute;
  right: 0;
  bottom: 10px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
  color: var(--brand-mauve);
  line-height: 0;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.page-auth .auth-eye:hover {
  color: var(--brand-dusty-rose);
  background: rgba(183, 86, 117, 0.08);
}

.page-auth .auth-btn-primary {
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  background: var(--btn-primary);
  box-shadow: var(--btn-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.page-auth .auth-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--btn-primary-dark), 0 12px 28px rgba(222, 67, 101, 0.4);
}

.page-auth .auth-btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--btn-primary-dark), 0 4px 12px rgba(222, 67, 101, 0.3);
}

.page-auth .auth-btn-google {
  width: 100%;
  margin-top: 14px;
  padding: 12px 18px;
  border-radius: 50px;
  border: 2px solid rgba(183, 86, 117, 0.25);
  background: var(--brand-white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.page-auth .auth-btn-google:hover {
  background: linear-gradient(90deg, #fff5f7, #fce8ec);
  border-color: var(--brand-dusty-rose);
  box-shadow: 0 4px 16px rgba(183, 86, 117, 0.12);
}

.page-auth .auth-btn-google svg {
  flex-shrink: 0;
}

.page-auth .auth-footer {
  text-align: center;
  margin: 26px 0 0;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  font-family: var(--font-body);
}

.page-auth .auth-footer a {
  color: var(--brand-dusty-rose);
  text-decoration: none;
  font-weight: 600;
}

.page-auth .auth-footer a:hover {
  text-decoration: underline;
}

.page-auth .auth-legal {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  font-size: 13px;
  line-height: 1.65;
  font-family: var(--font-body);
}

.page-auth .auth-legal a {
  color: #1565c0;
  text-decoration: underline;
  font-weight: 500;
}

.page-auth .auth-legal a:hover {
  color: #0d47a1;
}

.page-auth .auth-legal-sep {
  color: #999;
  margin: 0 4px;
  user-select: none;
}

@media (max-width: 520px) {
  body.page-auth {
    padding-top: 72px;
  }

  body.page-auth>.auth-back {
    left: 16px;
    right: 16px;
    width: max-content;
    max-width: calc(100% - 32px);
  }

  .page-auth .auth-card {
    padding: 28px 22px 26px;
  }
}

/* ========== Cart page ========== */
.page-cart .cart-section {
  background: #e7e0da !important;
}

.cart-container {
  max-width: 900px;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
}

.cart-item img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
}

.cart-title {
  flex: 1;
  min-width: 0;
  font-weight: bold;
}

.cart-title small {
  display: block;
  margin-top: 6px;
  font-weight: normal;
  color: #555;
  line-height: 1.35;
}

.cart-price {
  flex-shrink: 0;
  min-width: 64px;
  text-align: right;
}

.cart-qty {
  flex-shrink: 0;
  width: 56px;
}

.cart-item .remove-btn {
  flex-shrink: 0;
}

.cart-total {
  text-align: right;
  font-size: 22px;
  margin-top: 20px;
}

.page-cart .checkout-btn,
.page-cart .cart-checkout-btn {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 20px 0 0 auto;
  padding: 14px 24px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  background: var(--btn-primary);
  color: var(--brand-white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}

.page-cart .checkout-btn:hover,
.page-cart .cart-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--btn-primary-dark), 0 12px 28px rgba(222, 67, 101, 0.4);
  color: var(--brand-white);
}

.page-cart .checkout-btn:active,
.page-cart .cart-checkout-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--btn-primary-dark), 0 4px 12px rgba(222, 67, 101, 0.3);
}

/* ========== Product description box ========== */
.product-desc-box {
  margin: 12px 0 18px;
  padding: 12px 14px;
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 10px;
}

.product-desc-box__title {
  font-weight: bold;
  margin-bottom: 8px;
}

.product-desc-box__text {
  margin: 6px 0 10px;
  font-size: 14px;
  line-height: 1.45;
}

.product-spec-grid {
  display: grid;
  grid-template-columns: minmax(100px, 140px) 1fr;
  gap: 4px 10px;
  font-size: 14px;
}

/* ========== Mobile polish (all public pages) ========== */
@media (max-width: 768px) {
  .catalog {
    padding: 36px 0;
  }

  .catalog--compact {
    padding: 28px 0;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .catalog-title,
  h1.catalog-title {
    font-size: 1.35rem;
    line-height: 1.25;
    padding-left: 0;
    padding-right: 0;
  }

  section.catalog > .container > h1.catalog-title {
    font-size: 1.05rem;
    line-height: 1.3;
    margin-bottom: 24px;
  }

  .delivery-cost-line,
  .delivery-result {
    font-size: 12px;
  }

  .checkout-delivery-line {
    font-size: 13px;
  }

  .checkout-summary,
  .checkout-form {
    padding: 18px 16px;
  }

  .delivery-pickup-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .delivery-pickup-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 120px;
    text-align: center;
  }

  .delivery-map {
    height: 220px;
    min-height: 200px;
  }

  .checkout-submit-btn {
    width: 100%;
    box-sizing: border-box;
  }

  .checkout-auth-gate__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .checkout-auth-gate__btn {
    width: 100%;
    box-sizing: border-box;
  }

  .profile-form-grid {
    grid-template-columns: 1fr !important;
  }

  .legal-content,
  .impressum-content {
    max-width: none;
    font-size: 15px;
  }

  .legal-content h3 {
    font-size: 17px;
  }
}

@media (max-width: 520px) {
  .cart-item {
    flex-wrap: wrap;
    gap: 10px;
  }

  .cart-item img {
    width: 72px;
    height: 72px;
  }

  .cart-title {
    flex: 1 1 calc(100% - 88px);
    order: 1;
  }

  .cart-price {
    order: 2;
    width: auto;
    margin-left: auto;
  }

  .cart-qty {
    order: 3;
  }

  .cart-item .remove-btn {
    order: 4;
    width: 100%;
    margin-top: 4px;
  }

  .page-cart .checkout-btn {
    max-width: none;
  }

  .product-spec-grid {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .product-spec-grid > div:nth-child(odd) {
    margin-top: 8px;
    font-weight: 600;
  }

  .addons .addon {
    flex-direction: column;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .addons select,
  .addons input[type="text"] {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
  }

  .buy-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .buy-section #quantity {
    width: 100%;
    max-width: 120px;
    box-sizing: border-box;
  }

  .buy-section .buy-btn {
    width: 100%;
    box-sizing: border-box;
  }

  .checkout-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  #ordersList > div {
    padding: 14px 12px;
    overflow-wrap: anywhere;
  }

  body.page-admin {
    overflow-x: auto;
  }

  body.page-admin .container {
    min-width: 0;
  }
}