/* =========================================
   1. ОСНОВНИ НАСТРОЙКИ И ЦВЕТОВЕ
   ========================================= */
   .ingredients-band, .original-cards {
    --card-shadow: 0 24px 70px rgba(91, 54, 56, 0.15);
    --card-heading: var(--heading-font);
    padding: clamp(58px, 8vw, 96px) 0;
    font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
  }
  
  .ingredients-band {
    background:
      linear-gradient(180deg, rgba(255, 253, 251, 0.92), rgba(248, 241, 237, 0.72)),
      linear-gradient(115deg, rgba(146, 168, 140, 0.12), transparent 46%);
  }
  
  /* =========================================
     2. КОНТЕЙНЕРИ И ЗАГЛАВИЯ (LAYOUT)
     ========================================= */
  .original-section-shell { 
    width: min(1560px, calc(100% - 48px)); 
    margin: 0 auto; 
  }
  
  /* Пълен обхват на екрана с 2vw отстояние (адаптивно) */
  .ingredients-band .original-section-shell,
  .reviews-section .original-section-shell {
    max-width: 100%;
    width: 100vw;
    padding-left: 2vw;
    padding-right: 2vw;
    margin: 0;
    box-sizing: border-box; /* Предотвратява хоризонтален скрол от падинга */
  }
  
  /* Връщаме заглавията и стрелките в нормалните им граници */
  .ingredients-heading,
  .carousel-controls {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .ingredients-heading { margin-bottom: clamp(28px, 5vw, 48px); }
  
  .ingredients-heading h2 {
    margin: 0;
    max-width: 760px;
    color: #6d3942;
    font-family: var(--card-heading);
    font-size: clamp(2rem, 4.6vw, 4rem);
    font-weight: 700;
    line-height: 1.08;
  }
  
  /* =========================================
     3. КАРОСЕЛ (ВЪРТЕЛЕЖКА) И БЛЪР ЕФЕКТ
     ========================================= */
  .ingredients-band .carousel-track, .original-cards .carousel-track {
    display: flex;
    flex-flow: row nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    gap: 18px;
    align-items: stretch;
    scroll-snap-type: none;
    scroll-behavior: auto;
    border-radius: 0;
    padding: 24px 0 70px;
    margin: -24px 0 -70px;
    overscroll-behavior-x: contain;
    overflow-anchor: none;
  }
  
  .ingredients-band .carousel-track::-webkit-scrollbar,
  .original-cards .carousel-track::-webkit-scrollbar { display: none; }
  
  /* Блър ефектът в краищата */
  .ingredients-band .herb-track, .reviews-section .review-track {
    --edge-fade: clamp(18px, 4vw, 64px);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--edge-fade), #000 calc(100% - var(--edge-fade)), transparent);
    mask-image: linear-gradient(to right, transparent, #000 var(--edge-fade), #000 calc(100% - var(--edge-fade)), transparent);
  }
  
  .ingredients-band .herb-track {
    /* Fingers may fling the herbs sideways; autoplay resumes once the track is quiet. */
    touch-action: pan-x pan-y;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    cursor: grab;
  }
  .ingredients-band .herb-track:active { cursor: grabbing; }
  
  /* =========================================
     4. ДИЗАЙН НА КАРТИТЕ
     ========================================= */
  .ingredient-card, .original-cards .review-card {
    flex: 0 0 calc((100% - 36px) / 3);
    min-width: 0;
    max-width: 450px; /* Таван на големината за билките на десктоп */
    min-height: 240px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 18px;
    background: rgba(255, 253, 251, 0.84);
    box-shadow: var(--card-shadow);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  
  /* Билки */
  .ingredient-card {
    display: grid;
    grid-template-columns: minmax(96px, 0.42fr) minmax(0, 1fr);
    gap: clamp(16px, 1.5vw, 24px);
    align-items: stretch;
  }
  .ingredient-card img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
  .ingredient-card div { display: grid; align-content: center; padding: 26px 20px 26px 0; }
  .ingredient-card h3 {
    margin: 0 0 12px;
    color: #6d3942;
    font-family: var(--card-heading);
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 1.08;
  }
  
  .ingredient-card p, .original-cards .review-card blockquote {
    margin: 0;
    color: #725f62;
    font: inherit;
    font-size: 0.98rem;
  }
  
  /* Мнения */
  .original-cards .review-card {
    display: grid;
    align-content: center;
    gap: 18px;
    text-align: left;
  }
  .original-cards .review-card p { margin: 0; }
  .original-cards .review-author {
    color: #6d3942;
    font: 700 clamp(1.35rem, 2.4vw, 2rem)/1.08 var(--card-heading);
  }
  
  /* =========================================
     5. СПЕЦИФИКИ ЗА СЕКЦИЯТА С МНЕНИЯ (REVIEWS)
     ========================================= */
  .reviews-section .review-track { overflow-x: hidden; gap: 24px; }
  
  .reviews-section.original-cards .review-card {
    /* Оправяме прекаленото разпъване: */
    flex: 0 0 auto; 
    width: 75vw; /* Заема по-голямата част от екрана... */
    max-width: 650px; /* ...но спира да расте при 650 пиксела на десктоп */
    min-height: 280px;
    padding: clamp(28px, 5vw, 64px);
  }
  
  .reviews-section.original-cards .review-card blockquote {
    color: var(--rose);
    font: 700 clamp(24px, 2.6vw, 34px)/1.4 var(--card-heading);
    text-align: left;
  }
  .reviews-section.original-cards .review-author {
    text-align: right;
    font: 400 16px/1.6 Montserrat, ui-sans-serif, system-ui, sans-serif;
    color: var(--muted);
  }
  .reviews-section .review-card .eyebrow { font-size: 10px; letter-spacing: .1em; }
  
  /* Бутони и контроли */
  .round-button { position: relative; z-index: 10; }
  .round-button * { pointer-events: none; }
  .herbs-playback { display: flex; justify-content: flex-end; margin-top: 22px; }
  .subtle-pause {
    min-height: 44px; padding: 8px 16px; border: 0;
    background: transparent; color: var(--muted);
    font-size: 12px; text-decoration: none;
  }
  .subtle-pause:hover { color: var(--rose); font-weight: 600; }
  
  /* =========================================
     6. АДАПТИВНОСТ (MOBILE RESPONSIVE)
     ========================================= */
  @media (max-width: 1050px) {
    .ingredient-card { flex-basis: calc((100% - 18px) / 2); }
  }
  
  @media (max-width: 620px) {
    .ingredient-card { 
      flex-basis: 100%; 
      max-width: none; 
      grid-template-columns: 1fr; 
      grid-template-rows: auto 1fr; /* extra card height goes to the text, not the photo */
      align-content: start;
    }
    /* Same frame for every herb photo; the photo is cropped, never stretched. */
    .ingredient-card img { display: block; height: auto; aspect-ratio: 16 / 10; min-height: 0; object-fit: cover; }
    .ingredient-card div { align-content: start; padding: 0 clamp(20px, 6vw, 28px) clamp(22px, 6vw, 30px); }
    
    .reviews-section .review-track { gap: 12px; }
    .reviews-section.original-cards .review-card { 
      width: 85vw; /* На телефон картите с мнения стават малко по-широки */
      padding: 24px 20px; 
    }
  }

/* =========================================
   7. МОБИЛЕН СУАЙП ЗА МНЕНИЯТА (ПОД 768px)
   ========================================= */
   @media (max-width: 768px) {
    /* Phone: arrows and the counter stay visible alongside native swipe (owner decision 06.11.2026). */
    .reviews-section .carousel-controls {
      display: flex !important;
    }
    
    /* Отключваме скролирането и включваме "магнитно" прилепване */
    .reviews-section .review-track {
      overflow-x: auto !important; /* Това отключва плъзгането */
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
    }
    
    /* Гарантира, че при суайп картата винаги застава идеално центрирана */
    .reviews-section.original-cards .review-card {
      scroll-snap-align: center; 
    }
  }

/* Carousel headings and controls share the page gutter on tablets and phones
   (the track itself stays full-bleed). Desktop above 768px is unchanged. */
@media (max-width: 768px) {
  .ingredients-heading, .carousel-controls { padding-inline: calc(24px - 2vw); }
}
@media (max-width: 620px) {
  .ingredients-heading, .carousel-controls { padding-inline: calc(18px - 2vw); }
}

/* Owner request 10.11.2026: the whole "Вашите истории с Vitala" section is smaller
   (about two thirds): less padding, smaller heading, narrower cards, smaller quotes. */
.reviews-section.original-cards { padding: clamp(40px, 5.5vw, 64px) 0; }
.reviews-section .ingredients-heading { margin-bottom: clamp(18px, 3vw, 30px); }
.reviews-section .ingredients-heading h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.reviews-section.original-cards .review-card {
  max-width: 460px;
  min-height: 190px;
  padding: clamp(22px, 3.2vw, 40px);
  gap: 12px;
}
.reviews-section.original-cards .review-card blockquote { font-size: clamp(19px, 1.8vw, 24px); }
.reviews-section.original-cards .review-author { font-size: 14px; }
@media (max-width: 620px) {
  .reviews-section.original-cards .review-card { width: 80vw; min-height: 0; padding: 20px 18px; }
  .reviews-section.original-cards .review-card blockquote { font-size: 18px; }
}

/* 13.11.2026 (owner's designer): smaller herb cards and photos on phones. */
@media (max-width: 620px) {
  .ingredient-card { flex-basis: 70vw; max-width: 290px; }
  .ingredient-card img { aspect-ratio: 16 / 9; }
  .ingredient-card h3 { font-size: 1.35rem; }
  .ingredient-card p { font-size: 14px; }
}

/* 13.11.2026 (owner): tablets use the stacked phone layout too (photo on top, text below). */
@media (min-width: 621px) and (max-width: 1050px) {
  .ingredient-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; }
  .ingredient-card img { display: block; height: auto; aspect-ratio: 16 / 10; min-height: 0; object-fit: cover; }
  .ingredient-card div { align-content: start; padding: 0 clamp(20px, 3vw, 28px) clamp(22px, 3vw, 30px); }
}

/* 13.11.2026: verified customer reviews (owner chose design A + popup form 1). */
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px 24px; width: min(1160px, calc(100% - 36px)); margin: 0 auto 28px; }
.reviews-head h2 { margin: 0; }
.reviews-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.reviews-summary strong { color: var(--ink); }
.review-stars { display: inline-flex; gap: 2px; margin: 0; color: #e3cdc2; font-size: 18px; line-height: 1; letter-spacing: 0; }
.review-stars .on { color: var(--clay); }
.reviews-thanks { margin: 0; color: var(--sage); font-weight: 600; }
.reviews-empty, .reviews-note { width: min(1160px, calc(100% - 36px)); margin: 0 auto; color: var(--muted); }
.reviews-empty { font-size: 17px; }
.reviews-note { margin-top: 22px; font-size: 13px; line-height: 1.55; }
.reviews-section.original-cards .review-card--long blockquote { font: 400 17px/1.65 Montserrat, ui-sans-serif, system-ui, sans-serif; color: #4a3e40; }
.review-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.reviews-section.original-cards .review-meta .review-author { text-align: left; color: var(--rose); font: 700 22px/1.1 var(--card-heading); }
.review-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: #eef1ea; color: #3f513c; font-size: 12px; line-height: 1.3; }
.review-badge::before { content: "✓"; font-weight: 700; }
.review-badge--gifted { background: #f8ece4; color: #7a4a33; }
.review-badge--gifted::before { content: "♡"; }
.review-date { color: var(--muted); font-size: 12px; }

.review-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); box-sizing: border-box; padding: 34px; border: 0; border-radius: 18px; background: var(--white); color: var(--ink); font-family: Montserrat, ui-sans-serif, system-ui, sans-serif; box-shadow: var(--shadow); }
.review-dialog::backdrop { background: rgba(47, 39, 40, .55); }
.review-dialog h2 { margin: 0 44px 14px 0; color: var(--rose); font: 700 clamp(28px, 4vw, 36px)/1.1 var(--heading-font); }
.review-dialog p { margin: 0 0 16px; line-height: 1.6; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--cream); color: var(--rose); font-size: 26px; line-height: 1; cursor: pointer; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.dialog-actions--stack { flex-direction: column; align-items: stretch; }
.dialog-actions--stack .button { width: 100%; box-sizing: border-box; }
.dialog-hint { color: var(--muted); font-size: 13px; }
.review-dialog fieldset { margin: 0 0 18px; padding: 0; border: 0; }
.review-dialog legend { margin-bottom: 8px; padding: 0; font-weight: 600; font-size: 14px; }
.review-rating-stars { display: flex; gap: 4px; }
.review-rating-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.review-rating-stars label { display: grid; place-items: center; width: 44px; height: 44px; color: #e3cdc2; font-size: 34px; line-height: 1; cursor: pointer; }
.review-rating-stars input:focus-visible + label { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 8px; }
.review-rating-stars:has(input:nth-of-type(1):checked) label:nth-of-type(-n+1),
.review-rating-stars:has(input:nth-of-type(2):checked) label:nth-of-type(-n+2),
.review-rating-stars:has(input:nth-of-type(3):checked) label:nth-of-type(-n+3),
.review-rating-stars:has(input:nth-of-type(4):checked) label:nth-of-type(-n+4),
.review-rating-stars:has(input:nth-of-type(5):checked) label:nth-of-type(-n+5),
.review-rating-stars:has(label:nth-of-type(1):hover) label:nth-of-type(-n+1),
.review-rating-stars:has(label:nth-of-type(2):hover) label:nth-of-type(-n+2),
.review-rating-stars:has(label:nth-of-type(3):hover) label:nth-of-type(-n+3),
.review-rating-stars:has(label:nth-of-type(4):hover) label:nth-of-type(-n+4),
.review-rating-stars:has(label:nth-of-type(5):hover) label:nth-of-type(-n+5) { color: var(--clay); }
.review-field { display: grid; gap: 8px; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.review-field textarea { box-sizing: border-box; width: 100%; padding: 14px 16px; border: 1px solid rgba(109, 57, 66, .25); border-radius: 12px; background: var(--white); color: var(--ink); font: 400 15px/1.55 Montserrat, ui-sans-serif, system-ui, sans-serif; resize: vertical; }
.review-counter { display: flex; justify-content: space-between; color: var(--muted); font-weight: 400; font-size: 12px; }
.review-name label, .review-consent { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; font-size: 14px; line-height: 1.5; }
.review-name input, .review-consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--rose); flex: none; }
.field-error { color: #a12d2d; font-size: 13px; }
.review-dialog .field-error { margin: 0 0 12px; }
@media (max-width: 620px) {
  .reviews-head { flex-direction: column; align-items: flex-start; }
  .review-dialog { padding: 26px 20px; }
  .dialog-actions .button { flex: 1 1 auto; min-width: 0; }
}
