@font-face {
  font-family: 'Simbal';
  src: url('../fonts/Simbal-Regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  --color-primary: #a81c44;
  --color-primary-dark: #8a1738;
  --color-accent: #cc1939;
  --color-pink: #ffe9e9;
  --color-pink-light: #fff5f5;
  --color-text: #333333;
  --color-muted: #484848;
  --color-white: #ffffff;
  --font-body: 'Simbal', Georgia, 'Times New Roman', serif;
  --font-display: 'Simbal', Georgia, 'Times New Roman', serif;
  --font-display-weight: 400;
  --container: 1200px;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(168, 28, 68, 0.08);
  --shadow-md: 0 8px 30px rgba(168, 28, 68, 0.12);
  --shadow-lg: 0 16px 48px rgba(168, 28, 68, 0.14);
  --transition: 0.25s ease;
  --transition-slow: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}
@media (hover: hover) {
  a:hover {
    color: var(--color-primary-dark);
  }
  a:not(.btn):not(.btn-primary):not(.btn-outline):not(.btn-home):not(.btn-home-mobile):not(.btn-order-submit):not(.btn-hero-audio):not(.logo):not(.header-cart-mobile):not(.hero-book-link):not(.product-thumb):not(.product-thumb-video):not(.carousel-btn):not(.tab-btn):not(.accordion-header):not(.menu-toggle):not(.qty-minus):not(.qty-plus):not(.carousel-dot):not(.econt-type-btn):not(.econt-search-item):not(.cookie-banner button):hover {
    transform: translateY(-1px);
  }
}

.container,
.site-wrap {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
  padding-inline: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: white;
}
.skip-link:focus { left: 0; }

.site-header {
  background: #fff;
  border-bottom: 1px solid rgba(168, 28, 68, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.is-scrolled {
  background: #fff;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  gap: 0.75rem;
  position: relative;
}

.logo { flex-shrink: 0; line-height: 0; }
.logo picture { display: block; line-height: 0; }
.logo img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 140px;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.header-social-mobile {
  display: none;
  align-items: center;
  gap: 0.35rem;
}
.header-social-mobile img { width: 32px; height: 32px; display: block; background: transparent; border-radius: 0; }
.header-cart-mobile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: var(--color-primary);
  text-decoration: none;
}
.header-cart-mobile.is-active { color: var(--color-primary-dark); }
.header-cart-icon {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("../images/cart-basket-icon.png") center / contain no-repeat;
  mask: url("../images/cart-basket-icon.png") center / contain no-repeat;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-primary);
  font-size: 1.05rem;
}
.main-nav a:hover,
.main-nav a.active { color: var(--color-primary-dark); font-weight: 600; }

.cart-link { position: relative; }
.cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--color-primary);
  color: white;
  font-size: 0.7rem;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, sans-serif;
}
.cart-count:empty,
.cart-count[data-count="0"] { display: none; }

.social-links { display: flex; gap: 0.5rem; align-items: center; }
.social-links a { line-height: 0; background: transparent; }
.social-links img { width: 36px; height: 36px; display: block; background: transparent; border-radius: 0; object-fit: contain; }

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Hero banner */
.hero-banner {
  background: linear-gradient(135deg, #ffe9e9 0%, #fff8f8 45%, #ffe3ea 100%);
  padding: 1.5rem 0 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(168, 28, 68, 0.06), transparent 45%),
              radial-gradient(circle at 80% 70%, rgba(168, 28, 68, 0.05), transparent 40%);
  pointer-events: none;
}
.hero-banner img {
  margin-inline: auto;
  max-width: 100%;
  width: min(710px, 100%);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 20px rgba(168, 28, 68, 0.12));
}

/* Hero section */
.hero-section {
  padding: 2rem 0 2.5rem;
  background: linear-gradient(180deg, #fff 0%, #fffafa 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-text p { margin: 0 0 1.25rem; font-size: 1.05rem; }
.hero-text strong { color: var(--color-primary); }
.hero-actions { display: none; }
.hero-image { text-align: center; }
.book-showcase {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.book-showcase::after {
  content: '';
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  height: 18px;
  background: radial-gradient(ellipse, rgba(168, 28, 68, 0.22), transparent 72%);
  border-radius: 50%;
  z-index: 0;
  animation: shadowPulse 4.5s ease-in-out infinite;
}
.hero-image .book-cover {
  position: relative;
  z-index: 1;
  max-width: 500px;
  width: 100%;
  margin-inline: auto;
  animation: bookFloat 5s ease-in-out infinite;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid var(--color-primary);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  text-decoration: none;
  text-align: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn-block { width: 100%; }
.btn-primary {
  background: #a81c44;
  color: white;
  border-color: transparent;
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: #8a1738;
    border-color: transparent;
    color: white;
  }
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-pink);
}

.book-cover {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Carousel */
@keyframes carousel-btn-pulse-round {
  0%, 100% {
    opacity: 0.92;
    transform: translateY(-50%) scale(1);
    box-shadow: 0 4px 14px rgba(168, 28, 68, 0.12);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(168, 28, 68, 0.24);
  }
}

@keyframes carousel-btn-pulse-chevron {
  0%, 100% {
    opacity: 0.88;
    transform: scale(1);
    box-shadow: 0 3px 12px rgba(168, 28, 68, 0.14);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(168, 28, 68, 0.24);
  }
}

.carousel-section { padding: 2.5rem 0; }
.carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  background: #fff;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(168, 28, 68, 0.08);
}
.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.carousel-slide img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  object-fit: contain;
  background: #fff;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.95);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(168, 28, 68, 0.16);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  animation: none;
}
.carousel-btn:hover,
.carousel-btn:focus-visible {
  animation: none;
}
@media (hover: hover) and (pointer: fine) {
  .carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 6px 18px rgba(168, 28, 68, 0.18);
  }
}
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 0.75rem;
  padding: 0 0.5rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.carousel-dot.active { background: var(--color-primary); }

/* Feature sections */
.feature-section {
  padding: 2.5rem 0;
}
.feature-section:nth-child(even) {
  background: linear-gradient(180deg, var(--color-pink-light) 0%, #fff 100%);
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.feature-grid.reverse .feature-image { order: -1; }
.feature-grid.reverse .feature-text { order: 1; }

.feature-text h2 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.feature-text p { margin: 0; color: var(--color-muted); }
.feature-image {
  overflow: hidden;
  border-radius: calc(var(--radius) + 2px);
}
.feature-image img {
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-md);
  width: 100%;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
@media (hover: hover) {
  .feature-image:hover img {
    transform: scale(1.04);
    box-shadow: var(--shadow-lg);
  }
  .footer-about img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
  }
}

/* Page content */
.page-hero {
  background: var(--color-pink);
  padding: 2.5rem 0;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
}
.page-content {
  padding: 3rem 0;
  max-width: 800px;
}
.page-content p { margin: 0 0 1.25rem; }
.page-content ul { padding-left: 1.25rem; }
.page-content li { margin-bottom: 0.75rem; }
.page-content h2 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 400;
  margin: 2rem 0 1rem;
}
.page-cta { margin-top: 2rem; }
.learn-more-hub { max-width: 960px; }
.learn-more-intro { font-size: 1.05rem; }
.learn-more-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0 0;
}
.learn-more-card {
  display: block;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.learn-more-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(168, 28, 68, 0.08);
}
.learn-more-card h2 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}
.learn-more-card p {
  margin: 0 0 0.75rem;
  color: #555;
  line-height: 1.5;
}
.learn-more-card-cta {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.95rem;
}
.blog-hub-intro {
  margin: 0 0 1.5rem;
  color: #555;
  max-width: 42rem;
  line-height: 1.55;
}
.blog-card-title,
.blog-article-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.5rem;
}
.blog-card-logo {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 12px;
}
.blog-article-title .blog-card-logo {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 14px;
}
.page-hero--blog-media {
  padding-bottom: 0.75rem;
}
.page-hero--blog-media .blog-article-title {
  margin-bottom: 0;
}
.blog-card-date,
.blog-meta-date {
  display: block;
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: #888;
}
.blog-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}
.blog-kicker a {
  color: var(--color-primary);
  text-decoration: none;
}
.blog-sources {
  margin: 2rem 0 1.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
}
.blog-sources h2 {
  margin-top: 0;
  font-size: 1.15rem;
}
.blog-sources ul {
  margin: 0 0 0.75rem;
}
.blog-source-pub {
  color: #777;
}
.blog-sources-note {
  margin: 0;
  font-size: 0.88rem;
  color: #666;
}
.blog-video {
  margin: 0 0 1.5rem;
}
.blog-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 10px;
  background: #111;
}
.blog-video-link {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
}
.blog-video-link a {
  color: var(--color-primary);
}
.blog-hero-image {
  margin: 0 0 1.5rem;
}
.blog-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.faq-list .faq-item { margin-bottom: 0.75rem; }
.faq-list .accordion-body p { margin: 0; }

@media (min-width: 700px) {
  .learn-more-grid { grid-template-columns: 1fr 1fr; }
}


/* Product page */
.product-section { padding: 3rem 0; }
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.product-gallery-main {
  overflow: hidden;
  border-radius: var(--radius);
  line-height: 0;
}
.product-gallery-stage {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: transparent;
  box-shadow: var(--shadow-md);
}
.product-gallery-main img,
.product-gallery > img,
.product-gallery #main-product-image {
  border-radius: var(--radius);
  box-shadow: none;
}
.product-gallery-stage > img {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  display: none;
  background: transparent;
  object-fit: unset;
}
.product-gallery-stage > img.is-shown {
  display: block;
}
.product-gallery-stage > img[hidden],
#main-product-image[hidden] {
  display: none !important;
}
.product-gallery-video {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #111;
}
.product-gallery-video[hidden] {
  display: none !important;
}
.product-native-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #111;
}
.product-video-sound {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 20, 0.72);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.product-video-sound:hover,
.product-video-sound:focus-visible {
  background: rgba(168, 28, 68, 0.92);
  outline: none;
}
.product-video-sound-icon {
  width: 24px;
  height: 24px;
  display: block;
}
.product-video-sound:not(.is-unmuted) .product-video-sound-icon--muted {
  animation: product-sound-muted-hint 2.4s ease-in-out infinite;
}
.product-video-sound.is-unmuted .product-video-sound-icon--muted,
.product-video-sound:not(.is-unmuted) .product-video-sound-icon--on {
  animation: none;
}
@keyframes product-sound-muted-hint {
  0%, 100% {
    color: #fff;
    opacity: 1;
  }
  50% {
    color: #f4a4b8;
    opacity: 0.82;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-video-sound:not(.is-unmuted) .product-video-sound-icon--muted {
    animation: none;
    color: #f4a4b8;
  }
}
.product-video-sound .product-video-sound-icon--on {
  display: none;
}
.product-video-sound.is-unmuted .product-video-sound-icon--muted {
  display: none;
}
.product-video-sound.is-unmuted .product-video-sound-icon--on {
  display: block;
}
.product-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.product-thumbs img,
.product-thumb-video {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: none;
  transform: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  padding: 0;
  background: transparent;
}
.product-thumb-video {
  position: relative;
  display: inline-flex;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
  background-color: #f3e6ea;
  background-image: url("../images/video-thumb.png");
  background-size: cover;
  background-position: center;
}
.product-thumb-video img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  border: none;
  border-radius: 0;
  pointer-events: none;
  display: block;
}
.product-thumb-video-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
}
.product-thumb-video-badge svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.product-thumbs img:hover,
.product-thumb-video:hover {
  transform: none;
}
.product-thumbs img.active,
.product-thumb-video.active {
  border-color: var(--color-primary);
}
.product-info h1 {
  font-family: var(--font-body);
  color: var(--color-primary);
  font-size: clamp(1.35rem, 3.8vw, 2rem);
  font-weight: 400;
  margin: 0 0 1rem;
  line-height: 1.25;
  white-space: nowrap;
  letter-spacing: -0.015em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
}
.product-feature-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.product-feature-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.5;
}
.product-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}
.product-feature-list strong {
  color: var(--color-primary-dark);
  font-weight: 600;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  position: relative;
}
.product-actions .btn.is-checkout {
  animation: product-checkout-in 0.25s ease;
}
/* Поръчай: flat brand pill */
#add-to-cart:not(.is-checkout) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: auto;
  min-width: 0;
  padding: 0.62rem 1.45rem;
  border-radius: 999px;
  border: none;
  background: #a81c44;
  color: #fff;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-shadow: none;
  box-shadow: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease;
  transform: none;
  animation: none;
  filter: none;
}
@media (hover: hover) and (pointer: fine) {
  #add-to-cart:not(.is-checkout):hover {
    background: #8a1738;
    color: #fff;
  }
}
.cart-added-toast {
  display: block;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.5rem);
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 20;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(168, 28, 68, 0.35);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.cart-added-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
@keyframes product-checkout-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.price-block { margin-bottom: 1.5rem; }
.price-old {
  text-decoration: line-through;
  color: var(--color-primary);
  font-size: 1.45rem;
  font-weight: 500;
  margin-right: 0.75rem;
  opacity: 0.85;
}
.price-current {
  color: var(--color-primary);
  font-size: 1.75rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.price-bgn { font-size: 0.95rem; color: var(--color-muted); display: block; margin-top: 0.25rem; }
.quantity-control {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.5rem;
}
.quantity-control button {
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-primary);
  background: white;
  color: var(--color-primary);
  font-size: 1.25rem;
  cursor: pointer;
  font-family: inherit;
}
.quantity-control button:first-child { border-radius: 6px 0 0 6px; }
.quantity-control button:last-child { border-radius: 0 6px 6px 0; }
.quantity-control input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: 2px solid var(--color-primary);
  border-left: none;
  border-right: none;
  font-family: inherit;
  font-size: 1rem;
}
.product-tabs { margin-top: 3rem; border-top: 1px solid #eee; padding-top: 2rem; }
.tab-buttons { display: flex; gap: 0; border-bottom: 2px solid #eee; margin-bottom: 1.5rem; }
.tab-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-muted);
}
.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Cart */
.cart-section { padding: 3rem 0; }

body[data-page="koshnica"] .page-hero {
  padding: 0.85rem 0;
}
body[data-page="koshnica"] .scroll-top {
  display: none !important;
}
body[data-page="koshnica"] .page-hero h1 {
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
}
body[data-page="koshnica"] .cart-section {
  padding: 1rem 0 2.5rem;
}
body[data-page="koshnica"] .cart-table {
  margin-bottom: 1.15rem;
}
body[data-page="koshnica"] .checkout-layout {
  margin-top: 0;
}
.cart-section.is-order-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 220px);
  padding: 2rem 0 4rem;
}
.cart-section.is-order-success .site-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.checkout-form.order-success-view {
  margin-top: 0;
  max-width: 520px;
  width: 100%;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
.cart-table th,
.cart-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.cart-table img { width: 80px; border-radius: 6px; }
.cart-product { display: flex; align-items: center; gap: 1rem; }
.cart-line-price { display: none; }
.cart-empty { text-align: center; padding: 3rem; color: var(--color-muted); }
.cart-summary {
  background: var(--color-pink-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  max-width: 400px;
  margin: 0;
  position: static;
}
.checkout-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: sticky;
  top: 6rem;
  align-self: start;
}
.btn-order-submit {
  width: 100%;
  padding: 1rem 2.15rem;
  font-size: 1.12rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  text-shadow: none;
  background: #a81c44;
  color: #fff;
  box-shadow: none;
  filter: none;
  animation: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .btn-order-submit:hover {
    background: #8a1738;
  }
}
.btn-order-submit:disabled {
  animation: none;
  opacity: 0.72;
  cursor: not-allowed;
}
@keyframes btn-order-pulse {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      inset 0 -3px 6px rgba(90, 12, 36, 0.28),
      0 5px 0 #6e102c,
      0 10px 22px rgba(168, 28, 68, 0.32),
      0 0 0 0 rgba(168, 28, 68, 0.28);
    transform: none;
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      inset 0 -3px 6px rgba(90, 12, 36, 0.28),
      0 5px 0 #6e102c,
      0 14px 30px rgba(168, 28, 68, 0.42),
      0 0 0 9px rgba(168, 28, 68, 0.12);
    transform: none;
  }
}
@keyframes btn-order-shadow-pulse {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      inset 0 -3px 6px rgba(90, 12, 36, 0.28),
      0 5px 0 #6e102c,
      0 10px 22px rgba(168, 28, 68, 0.32),
      0 0 0 0 rgba(168, 28, 68, 0.28);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      inset 0 -3px 6px rgba(90, 12, 36, 0.28),
      0 5px 0 #6e102c,
      0 14px 30px rgba(168, 28, 68, 0.42),
      0 0 0 9px rgba(168, 28, 68, 0.12);
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn-order-submit,
  #add-to-cart,
  .carousel-btn {
    animation: none;
  }
}
.cart-summary-note {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 1rem 0 0;
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(420px, 100%);
  gap: 2.25rem;
  align-items: start;
  margin-top: 1rem;
}
.checkout-layout-main {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  min-width: 0;
}
.econt-shipping-block {
  margin: 0.5rem 0 0.75rem;
  max-width: none;
}

/* Checkout – slightly larger scale */
#checkout-layout .form-group {
  margin-bottom: 1.2rem;
}
#checkout-layout .form-group label {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}
#checkout-layout .form-group input,
#checkout-layout .form-group textarea,
#checkout-layout .form-group select {
  padding: 0.78rem 0.95rem;
  font-size: 1.08rem;
  border-radius: 8px;
}
#checkout-layout .form-row {
  gap: 1.15rem;
}
#checkout-layout .econt-title {
  font-size: 1.05rem;
}
#checkout-layout .econt-header {
  margin-bottom: 0.65rem;
}
#checkout-layout .econt-type-toggle {
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
#checkout-layout .econt-type-btn {
  min-height: 58px;
  padding: 0.9rem 1.15rem;
  font-size: 1.12rem;
  border-radius: 10px;
}
#checkout-layout .econt-type-label {
  font-size: 1.12rem;
}
#checkout-layout .econt-logo {
  height: 26px;
}
#checkout-layout .econt-logo svg {
  height: 26px;
}
#checkout-layout .econt-type-btn.active.is-selected,
#checkout-layout .econt-type-toggle.is-locked .econt-type-btn.active {
  padding: calc(0.9rem - 1px) calc(1.15rem - 1px);
}
#checkout-layout .econt-fields {
  gap: 0.65rem;
}
#checkout-layout .econt-search-input {
  padding: 0.85rem 2.25rem 0.85rem 1rem;
  font-size: 1.08rem;
  border-radius: 8px;
}
#checkout-layout .econt-num-row input {
  padding: 0.85rem 1rem;
  font-size: 1.08rem;
  border-radius: 8px;
}
#checkout-layout .econt-search-item strong {
  font-size: 1.05rem;
}
#checkout-layout .econt-search-empty {
  padding: 0.85rem;
  font-size: 0.98rem;
}
#checkout-layout .cart-summary {
  padding: 1.75rem;
  max-width: 420px;
}
#checkout-layout .cart-line {
  font-size: 1.05rem;
}
#checkout-layout .cart-line-total {
  font-size: 1.15rem;
}
#checkout-layout .cart-summary-note {
  font-size: 0.98rem;
}
.cart-summary-mobile { margin-left: 0; max-width: none; }
.cart-summary .total {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 1rem 0;
}
.cart-summary-rows { display: grid; gap: 0.5rem; }
.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  font-size: 0.95rem;
}
#cart-shipping-note.is-calculating {
  color: var(--color-primary);
}
.cart-line-total {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(168, 28, 68, 0.15);
  font-size: 1.1rem;
  color: var(--color-primary);
}
.checkout-form { margin-top: 0; max-width: none; }
.checkout-form h2 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 400;
}

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-size: 0.95rem; }
.form-group label .required { color: var(--color-accent); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(168, 28, 68, 0.38);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: #222222;
  caret-color: #000000 !important;
  color-scheme: light;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group select {
  cursor: pointer;
}

.form-group input:not([type="hidden"]):not([readonly]),
.form-group textarea {
  cursor: text;
}

.form-group input:not([readonly]):focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(168, 28, 68, 0.62);
}

.form-group select:focus {
  cursor: pointer;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-message {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: none;
}
.form-message.success { display: block; background: #d4edda; color: #155724; }
.form-message.error { display: block; background: #f8d7da; color: #721c24; }
.form-message.info { display: block; background: #e8f4fd; color: #0c5460; }

.order-success-panel {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #f8fff9;
  border: 1px solid #c3e6cb;
  border-radius: 12px;
  width: 100%;
  margin: 0 auto;
}
.order-success-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #28a745;
  color: #fff;
  font-size: 2rem;
  line-height: 4rem;
  font-weight: 700;
}
.order-success-panel h2 {
  margin: 0 0 0.75rem;
  color: var(--color-primary, #7a2038);
}
.order-success-panel p {
  margin: 0 0 0.75rem;
  color: var(--color-muted, #484848);
}
.order-success-id {
  display: none !important;
}
.order-success-panel .btn {
  margin-top: 1.25rem;
}

/* Econt shipping */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.econt-block {
  position: relative;
  margin: 0.5rem 0 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.econt-header {
  margin-bottom: 0.5rem;
}

.econt-title {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 600;
}

.econt-type-toggle {
  display: flex;
  flex-direction: row;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.econt-type-toggle.is-locked {
  gap: 0;
}

.econt-type-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
  min-height: 54px;
  padding: 0.78rem 1rem;
  border: 1px solid #d5dbe3;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--color-text);
  transition:
    border-color 0.22s ease,
    border-width 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease,
    background-color 0.22s ease;
}

.econt-type-btn[hidden] {
  display: none !important;
}

.econt-type-btn:hover:not(.is-selected) {
  border-color: #b8c0cb;
  background: #fafbfc;
}

.econt-type-btn:active {
  transform: scale(0.985);
}

.econt-type-label {
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 600;
}

.econt-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 24px;
  line-height: 0;
}

.econt-logo svg {
  height: 24px;
  width: auto;
  display: block;
}

.econt-type-btn.active.is-selected,
.econt-type-toggle.is-locked .econt-type-btn.active {
  border: 2px solid #234182;
  background: #eef3ff;
  color: #234182;
  padding: calc(0.78rem - 1px) calc(1rem - 1px);
}

.econt-type-toggle.is-locked .econt-type-btn.is-selected {
  cursor: pointer;
}

.econt-type-hint {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--color-muted);
  text-align: center;
}

.econt-type-hint.is-hidden {
  display: none;
}

.econt-fields {
  display: grid;
  gap: 0.5rem;
}

.econt-fields.is-collapsed {
  display: none;
}

.econt-fields.is-expanded {
  display: grid;
  animation: econt-fields-in 0.28s ease;
}

@keyframes econt-fields-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.econt-secondary-wrap {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  min-height: 0;
}

.econt-panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s ease;
}

.econt-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 2;
}

.econt-panel.is-leaving {
  opacity: 0;
  transform: translateY(-4px);
  z-index: 1;
}

.econt-num-row input {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(168, 28, 68, 0.38);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: #222222;
  caret-color: #000000 !important;
  color-scheme: light;
  cursor: text;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.econt-num-row input:focus {
  outline: none;
  border-color: rgba(168, 28, 68, 0.62);
  box-shadow: 0 0 0 3px rgba(168, 28, 68, 0.1);
}

.econt-address-extra {
  margin-top: 0.65rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.32s ease, opacity 0.24s ease, margin 0.24s ease;
}

.econt-panel-address.is-active .econt-address-extra {
  max-height: 120px;
  opacity: 1;
  overflow: visible;
}

.econt-num-row {
  margin: 0;
  gap: 0.65rem;
}

.econt-num-row .form-group {
  margin-bottom: 0;
}

.econt-search-wrap {
  position: relative;
}

.econt-search-wrap.is-dropdown-open {
  z-index: 45;
}

.econt-search-wrap::after {
  content: '▾';
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.econt-search-input {
  width: 100%;
  padding: 0.72rem 2rem 0.72rem 0.85rem;
  border: 1px solid rgba(168, 28, 68, 0.38);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.econt-search-input::-webkit-search-cancel-button,
.econt-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.econt-search-input::placeholder {
  color: #aaa;
}

.econt-search-input:focus {
  outline: none;
  border-color: rgba(168, 28, 68, 0.62);
  box-shadow: 0 0 0 3px rgba(168, 28, 68, 0.1);
  cursor: text;
}

.econt-search-input:not([readonly]):not(:disabled) {
  cursor: text;
}

.econt-search-input.has-selection {
  cursor: pointer;
}

.econt-search-input:disabled {
  background: #f5f5f5;
  color: var(--color-muted);
  cursor: not-allowed;
}

.econt-search-input[readonly]:not(:disabled) {
  background: #fff;
  color: inherit;
  cursor: pointer;
}

.econt-autofill-trap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.econt-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.econt-picker-modal[hidden] {
  display: none !important;
}

.econt-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 32, 0.45);
}

.econt-picker-sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  height: min(92vh, calc(100dvh - 20px));
  max-height: calc(100dvh - 20px);
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.econt-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem 0.65rem;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.econt-picker-head strong {
  font-size: 1.05rem;
  color: var(--color-text);
}

.econt-picker-close {
  border: none;
  background: #f3f4f6;
  color: #444;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.econt-picker-search-wrap {
  padding: 0.75rem 1rem 0.5rem;
  flex-shrink: 0;
}

.econt-picker-search {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  background: #fff;
}

.econt-picker-search:focus {
  outline: none;
  border-color: #999;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}

.econt-picker-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0 1rem;
}

.econt-picker-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
}

.econt-picker-item:active {
  background: #f5f9ff;
}

.econt-picker-item strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.3;
  word-break: break-word;
}

.econt-picker-item small {
  display: block;
  margin-top: 0.2rem;
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.35;
  word-break: break-word;
}

body.econt-picker-open {
  overflow: hidden;
}

.econt-search-dropdown {
  position: absolute;
  z-index: 46;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 280px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  animation: econtDropdownIn 0.18s ease;
}

.econt-search-dropdown.is-portal {
  position: fixed !important;
  z-index: 10050 !important;
  top: auto;
  left: auto;
  right: auto;
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(168, 28, 68, 0.28);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

#checkout-layout .econt-search-dropdown {
  border-color: rgba(168, 28, 68, 0.22);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

#checkout-layout .econt-search-dropdown.is-portal {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

@media (min-width: 901px) {
  #checkout-section,
  .checkout-form,
  .econt-shipping-block,
  .econt-block,
  .econt-fields,
  .econt-field,
  .econt-secondary-wrap {
    overflow: visible;
  }

  body.econt-desktop-dropdown-open {
    overflow-x: hidden;
  }
}

@keyframes econtDropdownIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.econt-search-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.econt-search-item:hover { background: #f5f9ff; }
.econt-search-item strong { display: block; font-size: 0.95rem; }
.econt-search-item small { display: block; color: var(--color-muted); margin-top: 0.15rem; }
.econt-search-empty { padding: 0.75rem; color: var(--color-muted); font-size: 0.9rem; }
.econt-error { color: #b00020; font-size: 0.95rem; }
.econt-loading { color: var(--color-muted); font-size: 0.95rem; padding: 0.5rem 0; }
.econt-loading-inline { color: var(--color-muted); font-size: 0.9rem; margin: 0; padding: 0.65rem 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  .econt-type-btn,
  .econt-panel,
  .econt-address-extra,
  .econt-search-dropdown {
    transition: none;
    animation: none;
  }
  .econt-type-btn:active { transform: none; }
}
.payment-method-info {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  background: #f3f3f3;
  border-radius: 6px;
}
.payment-method-info p { margin: 0; }
.payment-hint { color: var(--color-muted); font-size: 0.9rem; margin-top: 0.25rem !important; }

/* Footer info section */
.footer-info {
  background: var(--color-pink);
  padding: 2.5rem 0 1rem;
}
.footer-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  text-align: center;
}
.footer-info h2 {
  font-family: var(--font-body);
  color: #a81c44;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.footer-info h3,
.footer-info h4,
.footer-info h5 {
  font-family: var(--font-body);
  font-weight: 500;
  margin: 0.5rem 0;
}
.footer-info h3 a {
  color: #a81c44;
}
.footer-info h5 a {
  color: var(--color-muted);
  display: inline-block;
}
.footer-info h5 a:hover {
  color: var(--color-text);
}
.footer-info a { text-decoration: none; }
.footer-info .email {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-muted);
  font-size: 1rem;
  margin-top: 0.75rem;
}
.footer-info .email a {
  color: var(--color-muted);
  display: inline-block;
}
.footer-info .email a:hover {
  color: var(--color-text);
}

.accordion-item {
  border: 6px groove #ddd;
  border-radius: 8px;
  margin: 0 auto 0.5rem;
  background: #fff;
  max-width: 100%;
}
.footer-info .accordion-item {
  border: 1px solid #a81c44;
  border-radius: 18px;
  background: #ffe9e9;
  box-shadow: 0 4px 14px rgba(168, 28, 68, 0.08);
  overflow: hidden;
}
.footer-info .accordion-item.open {
  background: #ffe1e6;
}
.accordion-header {
  width: 100%;
  padding: 0.85rem 1rem;
  background: none;
  border: none;
  text-align: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
  display: flex;
  align-items: center;
}
.accordion-header::after { display: none; }
.footer-info .accordion-header {
  transition: background var(--transition), color var(--transition);
}
.footer-info .accordion-header:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--color-primary-dark);
}
.footer-info .accordion-body {
  padding: 0 1rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}
.footer-info #contact-form .form-group label {
  color: var(--color-text);
}
.footer-info #contact-form .form-group input,
.footer-info #contact-form .form-group textarea {
  background: #fff;
  border: 1px solid rgba(168, 28, 68, 0.18);
  border-radius: 12px;
  box-shadow: none;
}
.footer-info #contact-form .form-group input:focus,
.footer-info #contact-form .form-group textarea:focus {
  outline: none;
  border-color: rgba(168, 28, 68, 0.4);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(168, 28, 68, 0.1);
}
.footer-info #contact-form .btn-primary {
  background: #a81c44;
  color: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: none;
}
@media (hover: hover) {
  .footer-info #contact-form .btn-primary:hover {
    background: #8a1738;
    transform: none;
    box-shadow: none;
  }
}
.accordion-body { display: none; padding: 0 1rem 1rem; }
.accordion-item.open .accordion-body { display: block; }

.footer-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  justify-items: center;
  align-items: center;
  max-width: 120px;
  margin: 0.75rem auto 0;
}
.footer-social img { width: 53px; height: 53px; display: block; background: transparent; border-radius: 0; }

.footer-about {
  background: var(--color-pink-light);
  padding: 0.75rem 0 1.25rem;
  text-align: center;
}
.footer-about img {
  margin: 0 auto;
  max-width: 260px;
  width: auto;
  height: auto;
  display: block;
}
.footer-about p {
  max-width: 700px;
  margin: 0 auto 1rem;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-muted);
}

.footer-logo-row {
  text-align: center;
  padding: 0.75rem 0 1.25rem;
  max-width: 320px;
  margin: 0 auto;
}

.footer-logo-row img {
  width: auto;
  max-width: 260px;
  height: auto;
  margin-inline: auto;
  display: block;
}

.footer-welcome {
  background: #a81c44;
  padding: 1.5rem 0;
  text-align: center;
}

.footer-welcome p {
  max-width: 700px;
  margin: 0 auto;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 90;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--color-primary-dark); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 380px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  z-index: 200;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.cookie-banner p { font-size: 0.9rem; margin: 0 0 1rem; color: var(--color-muted); }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-buttons button {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
}
.cookie-accept { background: #0056a7; color: white; border: none; }
.cookie-reject { background: white; border: 1px solid #0056a7; color: #0056a7; }

/* Animations & scroll reveals */
@keyframes bookFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shadowPulse {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.85; transform: translateX(-50%) scale(1.08); }
}

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

.reveal,
.reveal-left,
.reveal-right,
.reveal-scale,
.img-reveal {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal { transform: translateY(28px); }
.reveal-left { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal-scale { transform: scale(0.94); }
.img-reveal { transform: translateY(22px) scale(0.97); }

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible,
.img-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.product-gallery-main img,
.product-gallery > img,
.product-gallery #main-product-image {
  box-shadow: none;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: unset;
  transform: none;
  transform-origin: center center;
  backface-visibility: hidden;
}
.product-gallery-main img:not([hidden]),
.product-gallery > img:not([hidden]),
.product-gallery #main-product-image:not([hidden]) {
  display: block;
}

@media (hover: hover) {
  .product-gallery-main:hover .product-gallery-stage {
    box-shadow: var(--shadow-lg);
  }
}

.footer-about img {
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.scroll-top {
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(168, 28, 68, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .img-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-image .book-cover,
  .book-showcase::after {
    animation: none;
  }

  .feature-image:hover img,
  .product-gallery-main:hover img,
  .product-gallery > img:hover,
  .footer-about img:hover {
    transform: none;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .product-grid,
  .footer-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Hero: текст → снимка → бутон (като оригинала) */
  .hero-text .btn-desktop { display: none; }
  .hero-actions {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
  }
  .hero-actions .btn { min-width: 200px; }

  /* Features: винаги снимка, после текст */
  .feature-grid.reverse .feature-image,
  .feature-grid.reverse .feature-text,
  .feature-grid .feature-image,
  .feature-grid .feature-text {
    order: unset;
  }
  .feature-image { order: 1 !important; }
  .feature-text {
    order: 2 !important;
    text-align: center;
    max-width: 520px;
    margin-inline: auto;
  }

  .feature-section { padding: 1.75rem 0; }
  .page-content { padding: 2rem 0; }
  .product-section { padding: 2rem 0; }
  .cart-section { padding: 2rem 0; }
  .footer-info { padding: 2rem 0; }
  .footer-about { padding: 2rem 0; }
  .footer-about img { max-width: min(320px, 85%); }

  .menu-toggle { display: block; }
  .header-social-mobile { display: flex; }
  .logo img {
    height: 42px;
    max-height: 42px;
    max-width: min(132px, 38vw);
  }
  .main-nav .cart-link--menu { display: none !important; }
  .header-cart-icon {
    width: 32px;
    height: 32px;
  }
  .header-cart-mobile .cart-count {
    top: -5px;
    right: -7px;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Closed menu must be fully gone — Safari/iOS can still paint sticky+absolute children */
  .main-nav:not(.open),
  .main-nav[hidden] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: fixed !important;
    top: -100vh !important;
    left: -100vw !important;
    right: auto !important;
    bottom: auto !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    z-index: -1 !important;
  }
  .main-nav.open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: absolute !important;
    top: calc(100% + 0.45rem) !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    width: min(19.75rem, calc(100vw - 1.25rem)) !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 101 !important;
    transform-origin: top right;
    background: #fff;
    border: 1px solid rgba(168, 28, 68, 0.14);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(40, 10, 20, 0.12);
  }
  .main-nav a {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
  }
  /* Header already shows socials on mobile — hide duplicates so they cannot leak */
  .main-nav .social-links {
    display: none !important;
  }

  .form-row { grid-template-columns: 1fr; }
  .form-row.econt-num-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .econt-panel-address.is-active .econt-address-extra {
    max-height: 110px;
    overflow: visible;
  }

  .cart-summary { margin-left: 0; max-width: none; }
  .checkout-layout {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    gap: 1.25rem;
  }
  .checkout-sidebar {
    display: contents;
    position: static;
    max-width: none;
  }
  #checkout-layout .cart-summary,
  .checkout-sidebar .cart-summary {
    order: -1;
    width: 100%;
  }
  body[data-page="koshnica"] #checkout-layout .cart-summary,
  body[data-page="koshnica"] .checkout-sidebar .cart-summary {
    order: 2;
  }
  body[data-page="koshnica"] .btn-order-submit {
    order: 1;
  }
  body[data-page="koshnica"] .footer-info,
  body[data-page="koshnica"] .footer-about,
  body[data-page="koshnica"] .site-footer {
    display: none !important;
  }
  .checkout-layout-main {
    order: 0;
    width: 100%;
  }
  .btn-order-submit {
    order: 1;
    position: sticky;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    margin-top: 0.25rem;
    box-shadow: none;
  }

  .btn-order-submit.is-hidden-for-econt {
    display: none !important;
  }

  .tab-buttons { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tab-btn {
    flex: 1 0 auto;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .product-actions .btn { flex: 1 1 100%; }

  .footer-info-grid > div { text-align: center; }
  .footer-social { justify-content: center; }
  .footer-info .email { word-break: break-all; }
}

@media (max-width: 768px) {
  body { font-size: 14px; line-height: 1.5; }

  .site-wrap {
    width: 100%;
    max-width: 100%;
    padding-inline: 1rem;
    box-sizing: border-box;
  }

  .logo img {
    height: 40px;
    max-height: 40px;
    max-width: min(126px, 36vw);
  }
  .header-inner { padding: 0.5rem 0; }
  .header-social-mobile img { width: 28px; height: 28px; }
  .header-cart-icon {
    width: 28px;
    height: 28px;
  }
  .menu-toggle {
    width: 2.45rem;
    height: 2.45rem;
    min-width: 2.45rem;
    min-height: 2.45rem;
    padding: 0;
    font-size: 1.05rem;
    border-width: 1px;
    border-radius: 12px;
  }
  .main-nav a {
    font-size: 1rem;
    padding: 0.82rem 0.95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .page-content {
    max-width: 100%;
    padding-inline: 0;
  }

  .hero-banner { padding: 0.65rem 0 0.5rem; }
  .hero-banner img { width: 82%; max-width: 260px; }

  .hero-section { padding: 1rem 0 1.25rem; }
  .hero-grid { gap: 1.25rem; }
  .hero-text p { font-size: 0.92rem; margin-bottom: 0.65rem; }
  .hero-image .book-cover { max-width: min(280px, 88vw); }
  .hero-actions { margin-top: 0.5rem; }
  .hero-actions .btn { min-width: 0; font-size: 0.9rem; padding: 0.6rem 1.35rem; }

  .btn { font-size: 0.9rem; padding: 0.55rem 1rem; }

  .carousel-section { padding: 0.65rem 0; }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }
  .carousel-btn.prev { left: 4px; }
  .carousel-btn.next { right: 4px; }

  .carousel-dots {
    margin-top: 0.5rem;
    gap: 8px;
  }
  .carousel-dot {
    width: 8px;
    height: 8px;
    position: relative;
  }
  .carousel-dot::before {
    content: '';
    position: absolute;
    inset: -12px;
  }

  .feature-section { padding: 1.1rem 0; }
  .feature-grid { gap: 1rem; }
  .feature-text h2 { font-size: 1.15rem; margin-bottom: 0.45rem; }
  .feature-text p { font-size: 0.88rem; line-height: 1.45; }
  .feature-image img { max-width: 300px; margin-inline: auto; }

  .page-hero { padding: 1.1rem 0; }
  .page-hero h1 { font-size: 1.35rem; }
  .page-content { padding: 1.25rem 0; }

  .product-section { padding: 1.25rem 0; }
  .product-grid { gap: 1.25rem; }
  .product-info h1 {
    font-size: clamp(0.92rem, 4.1vw, 1.15rem);
    white-space: nowrap;
    letter-spacing: -0.02em;
  }
  .price-current { font-size: 1.2rem; }
  .price-old { font-size: 1.1rem; }
  .product-thumbs img,
  .product-thumb-video {
    width: 56px;
    height: 56px;
  }
  .product-thumb-video {
    flex: 0 0 56px;
  }
  .product-thumb-video img {
    width: 100%;
    height: 100%;
  }

  .footer-info { padding: 1.25rem 0; }
  .footer-info h2 { font-size: 1.1rem; }
  .footer-info h3 { font-size: 1rem; }
  .footer-info .email { font-size: 0.95rem; }
  .footer-about { padding: 1.25rem 0; }
  .footer-about img { max-width: 220px; }
  .footer-about p { font-size: 0.88rem; }
  .footer-social img { width: 34px; height: 34px; }
  .site-footer { font-size: 0.82rem; padding: 1rem; }

  .cookie-banner { padding: 0.85rem; }
  .cookie-banner h2 { font-size: 0.95rem; }
  .cookie-banner p { font-size: 0.82rem; }

  /* Кошница – компактни карти на телефон */
  .cart-table thead { display: none; }
  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td { display: block; width: 100%; }
  .cart-table tr {
    background: var(--color-pink-light);
    border-radius: var(--radius);
    padding: 1rem 1rem 0.85rem;
    margin-bottom: 1rem;
    border: none;
    box-shadow: var(--shadow);
  }
  .cart-table td {
    padding: 0.35rem 0;
    border: none;
    text-align: left;
  }
  .cart-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-muted);
    margin-bottom: 0.2rem;
  }
  .cart-table td:first-child {
    padding-bottom: 0.75rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px dashed rgba(168, 28, 68, 0.15);
  }
  .cart-table td:first-child::before { display: none; }
  .cart-table td:last-child::before { display: none; }
  .cart-table td:last-child {
    text-align: center;
    padding-top: 0.85rem;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(168, 28, 68, 0.1);
  }
  .cart-product {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
  }
  .cart-table img { width: 88px; }
  .cart-product a { font-size: 0.98rem; line-height: 1.35; }

  /* Кошница – по-компактно само на страницата koshnica */
  body[data-page="koshnica"] .page-hero {
    padding: 0.55rem 0;
  }
  body[data-page="koshnica"] .page-hero h1 {
    font-size: 1.25rem;
  }
  body[data-page="koshnica"] .cart-section {
    padding: 0.65rem 0 calc(0.25rem + env(safe-area-inset-bottom, 0px));
  }
  body[data-page="koshnica"] .cart-table {
    margin-bottom: 0.5rem;
  }
  body[data-page="koshnica"] .cart-table tr {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "product"
      "actions";
    gap: 0.15rem;
    padding: 0.5rem 0.65rem 0.45rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 10px rgba(168, 28, 68, 0.08);
  }
  body[data-page="koshnica"] .cart-table td {
    padding: 0;
  }
  body[data-page="koshnica"] .cart-table td::before {
    display: none;
  }
  body[data-page="koshnica"] .cart-table td:first-child {
    grid-area: product;
    margin: 0;
    padding: 0;
    border-bottom: none;
  }
  body[data-page="koshnica"] .cart-table td[data-label="Цена"] {
    display: none !important;
  }
  body[data-page="koshnica"] .cart-table td[data-label="Количество"] {
    grid-area: actions;
    align-self: center;
  }
  body[data-page="koshnica"] .cart-line-total-cell {
    display: none !important;
  }
  body[data-page="koshnica"] .cart-qty-price-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    flex-wrap: nowrap;
    min-height: 36px;
  }
  body[data-page="koshnica"] .cart-line-price {
    display: inline-flex;
    align-items: center;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
    margin-left: 0.45rem;
    padding-left: 0.35rem;
    line-height: 1;
  }
  body[data-page="koshnica"] .cart-product {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 0.65rem;
    padding-left: 0.1rem;
  }
  body[data-page="koshnica"] .cart-product a {
    font-size: 0.82rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    align-self: center;
  }
  body[data-page="koshnica"] .cart-table img {
    width: 88px;
    max-width: 32vw;
    height: auto;
    flex-shrink: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  body[data-page="koshnica"] .quantity-control {
    transform: none;
    flex-shrink: 0;
    margin-bottom: 0;
  }
  body[data-page="koshnica"] .checkout-layout {
    gap: 0.65rem;
  }
  body[data-page="koshnica"] .checkout-layout-main {
    gap: 0.45rem;
  }
  body[data-page="koshnica"] .econt-shipping-block {
    margin: 0.2rem 0 0.3rem;
  }
  body[data-page="koshnica"] #checkout-layout .form-group {
    margin-bottom: 0.5rem;
  }
  body[data-page="koshnica"] #checkout-layout .form-group label {
    margin-bottom: 0.22rem;
    font-size: 0.9rem;
  }
  body[data-page="koshnica"] #checkout-layout .form-group input,
  body[data-page="koshnica"] #checkout-layout .form-group textarea,
  body[data-page="koshnica"] #checkout-layout .form-group select {
    padding: 0.58rem 0.78rem;
    font-size: 16px;
  }
  body[data-page="koshnica"] #checkout-layout .form-row {
    gap: 0.45rem;
  }
  body[data-page="koshnica"] .econt-block {
    margin-top: 0;
  }
  body[data-page="koshnica"] #checkout-layout .econt-header {
    margin-bottom: 0.3rem;
  }
  body[data-page="koshnica"] #checkout-layout .econt-title {
    font-size: 0.95rem;
  }
  body[data-page="koshnica"] #checkout-layout .econt-type-toggle {
    gap: 0.55rem;
    margin-bottom: 0.55rem;
  }
  body[data-page="koshnica"] #checkout-layout .econt-type-btn {
    min-height: 52px;
    padding: 0.72rem 0.95rem;
    font-size: 1.05rem;
  }
  body[data-page="koshnica"] #checkout-layout .econt-type-label {
    font-size: 1.05rem;
  }
  body[data-page="koshnica"] #checkout-layout .econt-fields {
    gap: 0.35rem;
  }
  body[data-page="koshnica"] #checkout-layout .econt-search-input {
    padding: 0.58rem 2rem 0.58rem 0.82rem;
    font-size: 16px;
  }
  body[data-page="koshnica"] #checkout-layout .econt-num-row input {
    padding: 0.58rem 0.78rem;
    font-size: 16px;
  }
  body[data-page="koshnica"] .econt-address-extra {
    margin-top: 0.3rem;
  }
  body[data-page="koshnica"] .econt-num-row {
    gap: 0.4rem;
  }
  body[data-page="koshnica"] #checkout-layout .cart-summary {
    padding: 0.65rem 0.85rem;
    box-shadow: 0 2px 10px rgba(168, 28, 68, 0.08);
    margin-top: 0.35rem;
  }
  body[data-page="koshnica"] .cart-summary-rows {
    gap: 0.28rem;
  }
  body[data-page="koshnica"] #checkout-layout .cart-line {
    font-size: 0.88rem;
    gap: 0.5rem;
  }
  body[data-page="koshnica"] #checkout-layout .cart-line-total {
    margin-top: 0.25rem;
    padding-top: 0.45rem;
    font-size: 1rem;
  }
  body[data-page="koshnica"] #checkout-layout .cart-summary-note {
    font-size: 0.75rem;
    margin: 0.45rem 0 0;
    line-height: 1.35;
  }
  body[data-page="koshnica"] .btn-order-submit {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    bottom: env(safe-area-inset-bottom, 0px);
    margin-bottom: 0;
  }

  /* Econt – по-удобно на телефон */
  .econt-type-toggle,
  #checkout-layout .econt-type-toggle {
    flex-direction: column;
    gap: 0.65rem;
  }
  .econt-type-btn,
  #checkout-layout .econt-type-btn {
    flex: none;
    width: 100%;
    min-height: 56px;
    padding: 0.85rem 1rem;
    font-size: 1.08rem;
  }
  .econt-type-label,
  #checkout-layout .econt-type-label {
    font-size: 1.08rem;
  }
  .econt-logo,
  #checkout-layout .econt-logo {
    height: 24px;
  }
  .econt-logo svg,
  #checkout-layout .econt-logo svg {
    height: 24px;
  }
  body[data-page="koshnica"] .econt-type-toggle,
  body[data-page="koshnica"] #checkout-layout .econt-type-toggle {
    gap: 0.35rem;
  }
  body[data-page="koshnica"] .econt-type-btn,
  body[data-page="koshnica"] #checkout-layout .econt-type-btn {
    min-height: 52px;
    padding: 0.72rem 0.95rem;
  }
  .econt-block { margin-top: 0.25rem; }
  body[data-page="koshnica"] .econt-block { margin-top: 0; }

  /* Econt mobile: sheet picker — no page jump */
  .econt-fields,
  .econt-secondary-wrap,
  .econt-panel,
  .econt-panel.is-active,
  .econt-search-wrap,
  .econt-shipping-block,
  .checkout-form,
  .checkout-layout-main,
  #checkout-layout {
    overflow: visible !important;
  }

  .econt-panel,
  .econt-panel.is-active,
  .econt-panel.is-leaving {
    transform: none;
  }

  .econt-search-input[readonly]:not(:disabled) {
    cursor: pointer;
  }

  .econt-search-dropdown {
    display: none !important;
  }

  .econt-search-item {
    padding: 0.85rem 0.75rem;
    min-height: 44px;
  }

  .econt-search-item strong,
  .econt-search-item small {
    white-space: normal;
    word-break: break-word;
  }

  .product-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .product-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .accordion-header { font-size: 1rem; padding: 1rem 0.85rem; }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    max-width: none;
  }
  .cookie-buttons { flex-direction: column; }
  .cookie-buttons button { width: 100%; }

  .scroll-top {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
  }

  .quantity-control { max-width: 130px; }
  .form-group input,
  .form-group textarea,
  .form-group select { font-size: 16px; }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  .site-wrap { padding-inline: 0.85rem; }
  .hero-banner img { width: 88%; max-width: 240px; }
  .hero-image .book-cover { max-width: min(240px, 78vw); }
  .feature-image img { max-width: min(260px, 88vw); }
  .footer-about img { max-width: min(220px, 75vw); }
  .page-hero h1 { font-size: 1.25rem; }
  .btn-order-submit { font-size: 1.05rem; padding: 0.95rem 1.5rem; }
}

/* Product page – леко стягане на мобилно, без да се смалява съдържанието */
@media (max-width: 900px) {
  body[data-page="product"] .product-section {
    padding-top: 0.75rem;
    padding-bottom: 1.5rem;
  }

  body[data-page="product"] .product-grid {
    gap: 1rem;
  }

  body[data-page="product"] .product-gallery-stage {
    max-width: min(300px, 78vw);
    width: 100%;
    margin-inline: auto;
  }

  body[data-page="product"] #main-product-image {
    max-width: none;
    max-height: none;
    width: 100%;
    height: auto;
    margin-inline: 0;
    object-fit: unset;
  }

  body[data-page="product"] #main-product-image[hidden] {
    display: none !important;
  }

  body[data-page="product"] .product-thumbs {
    margin-top: 0.75rem;
    justify-content: center;
  }

  body[data-page="product"][data-draft="1"] .product-thumbs {
    justify-content: flex-start;
  }

  body[data-page="product"] .product-info h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(0.82rem, 4.1vw, 1.08rem);
    white-space: nowrap !important;
    letter-spacing: -0.03em;
  }

  body[data-page="product"] .price-block {
    margin-bottom: 1rem;
  }

  body[data-page="product"] .product-info > p {
    margin-bottom: 0.85rem;
  }

  body[data-page="product"] .product-feature-list {
    margin-bottom: 1rem;
  }

  body[data-page="product"] .product-feature-list li {
    font-size: 0.92rem;
  }

  body[data-page="product"] .quantity-control {
    margin-bottom: 1rem;
  }
}

@media (min-width: 901px) {
  .logo img { height: 56px; max-width: 140px; max-height: 56px; }
  .hero-text .btn-desktop { display: inline-flex; }
  .header-actions { display: none; }
  .main-nav { margin-left: auto; }
}
