/*
  ========================================
  Minimalist & Natural Theme Redesign
  ========================================
*/

:root {
    /* -- Нова натуральна палітра -- */
    --text-color: #3a3d36;       /* Глибокий, темний оливково-сірий для тексту */
    --background: #f4f1e9;     /* Світлий, теплий кремовий фон */
    --surface: #ffffffa8;        /* Чисто біла поверхня для контрастних блоків */
    --accent-color: #7b8266;   /* Приглушений, природний зелений для акцентів */
    --accent-dark: #6a7058;    /* Темніший відтінок зеленого для ховерів */
    --border-color: #7b826637;   /* Теплий бежевий для рамок та розділювачів */

    /* -- Типографія (залишаємо як є, вона пасує) -- */
    --heading-font: 'Cormorant Garamond', serif;
    --body-font: 'Satoshi', sans-serif;
}

* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: #fff0;
}

html { 
    scroll-behavior: smooth; 
}

body {
    background-color: var(--background);
    color: var(--text-color);
    font-family: var(--body-font);
    margin: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
}

.container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 1rem 2rem;
    padding-top: 130px;
}

.main-content {
    flex-grow: 1;
}
:root { --plyr-color-main: #7b8266; }
.fancybox__container { --fancybox-bg: rgba(20, 22, 25, 0.9); }
.payment-options-wrapper h3 {
    font-family: var(--body-font);
    font-weight: 400;
    text-align: center;
    font-size: medium;
}
/*
  ========================================
  Структура сторінки товару
  ========================================
*/

.product-layout {
    display: grid;
    grid-template-columns: 6fr 5fr;
    gap: 5rem;
    align-items: start;
}

.gallery-column {
    position: sticky;
    top: 120px;
    min-width: 0;
}

.info-column {
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
}

/*
  ========================================
  Інформація про товар
  ========================================
*/

.product-header { 
    margin-bottom: 1.5rem; 
}

.product-header .category { 
    color: var(--accent-color); 
    font-weight: 500; 
}

.product-header h1 {
    font-family: var(--heading-font);
    font-size: 4.5rem;
    line-height: 1;
    margin: 0.5rem 0;
}

.product-features {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
    width: 100px;
}

.feature-item .icon {
    font-size: 32px;
    color: var(--text-color);
    line-height: 1;
}

/*
  ========================================
  Акордеон
  ========================================
*/

.accordion-item { 
    border-bottom: 1px solid var(--border-color); 
}

.accordion-button {
    width: 100%; 
    background: none; 
    border: none; 
    text-align: left;
    padding: 1.5rem 0; 
    font-family: var(--heading-font); 
    font-size: 1.5rem;
    cursor: pointer; 
    display: flex; 
    justify-content: space-between;
    align-items: center; 
    color: var(--text-color);
}

.accordion-button::after {
    content: '+'; 
    font-family: var(--body-font); 
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-button.active::after { 
    transform: rotate(45deg); 
}

.accordion-panel {
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s ease-out;
    color: #555; 
    font-size: 0.95rem; 
    line-height: 1.8;
}

.accordion-panel p { 
    margin-top: 0; 
}

.accordion-panel ul { 
    list-style-position: inside; 
    padding-left: 0; 
}

/*
  ========================================
  Блок дій (ціна, кнопки) - МІНІМАЛІСТИЧНИЙ
  ========================================
*/

.action-block {
    margin-top: 1.5rem; 
    padding: 2rem; 
    background: var(--surface);
    border: 1px solid var(--border-color); 
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.action-block .price-container {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.75rem;
    position: relative;
    padding-bottom: 2px;
}

.action-block .price {
    font-size: 2.5rem; 
    font-family: var(--heading-font); 
    margin: 0;
    margin-top: 5px;
}

/* -- Спрощена анімація ціни -- */
.action-block .price span {
    display: inline-block;
    transition: opacity 0.3s ease-in-out;
}

.action-block .price.is-updating span {
    opacity: 0;
}

/* -- Спрощена стара ціна -- */
.action-block .old-price {
    font-size: 1.5rem;
    color: #999;
    font-family: var(--heading-font);
    text-decoration: line-through; /* Замість псевдо-елемента */
}

.action-block .old-price::after {
    content: ''; /* Видаляємо стару лінію */
}

.actions-wrapper {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    justify-content: space-between;
}

.production-time-info {
    font-family: var(--body-font);
    display: flex;
    justify-content: center;
    font-size: 1rem;
}

.quantity-selector button {
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: background-color 0.2s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-selector button:hover {
    background-color: #f0ebe5;
}

.quantity-selector input {
    width: 40px;
    height: 44px;
    text-align: center;
    border: none;
    font-family: var(--body-font);
    font-size: 1.1rem;
    font-weight: 700;
    background: transparent;
    color: var(--text-color);
    pointer-events: none;
}

/* -- Мінімалістична кнопка -- */
.action-block .btn {
    width: 100%; 
    padding: 12px 15px;
    background: var(--accent-color);
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-family: var(--body-font);
    font-size: 1.1rem; 
    cursor: pointer;
    transition: background-color 0.2s ease;
    letter-spacing: 0.5px;
    /* box-shadow: 0 4px 15px -5px var(--accent-color); -- ВИДАЛЕНО */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.action-block .btn .bx {
    font-size: 1.3em;
}

.action-block .btn:hover {
    background: var(--accent-dark);
    /* transform: translateY(-3px); -- ВИДАЛЕНО */
    /* box-shadow: 0 8px 20px -5px var(--accent-dark); -- ВИДАЛЕНО */
}

/*
  ========================================
  Галерея
  ========================================
*/

.gallery-main-image {
    aspect-ratio: 7/5;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    position: relative;
    border: 1px solid var(--border-color);
}

.gallery-main-image.is-dragging { 
    cursor: grabbing; 
}

.gallery-main-image a { 
    display: block; 
    width: 100%; 
    height: 100%; 
}

.gallery-main-image img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-thumbs .thumb-item {
    height: 100px; 
    cursor: pointer; 
    opacity: 0.6;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    border-radius: 8px; 
    border: 2px solid transparent; 
    overflow: hidden;
}

.gallery-thumbs .thumb-item:hover { 
    opacity: 1; 
}

.gallery-thumbs .thumb-item.active {
    opacity: 1; 
    border-color: var(--accent-color);
}

.gallery-thumbs .thumb-item img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
}

/*
  ========================================
  Кнопка відео та інші елементи
  ========================================
*/
.video-play-button {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.75rem;
    width: 100%; 
    margin-top: 1.5rem; 
    padding: 1rem;
    border: 1px solid var(--border-color); 
    background-color: var(--surface);
    color: var(--text-color); 
    border-radius: 12px; 
    font-size: 1.1rem;
    font-weight: 700; 
    text-decoration: none; 
    transition: background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.video-play-button:hover {
    background: #f8f6f2; /* Ледь помітний ховер */
    border-color: var(--accent-dark);
    /* transform: translateY(-3px); -- ВИДАЛЕНО */
    /* box-shadow: 0 8px 20px rgba(0,0,0,0.07); -- ВИДАЛЕНО */
}

.video-play-button .bx { 
    font-size: 1.5em; 
}

.other-models { 
    margin-top: 2rem; 
}

.other-models h3 { 
    font-family: var(--heading-font); 
    font-size: 1.5rem; 
}

.other-models-list a {
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--border-color); 
    text-decoration: none;
    color: var(--text-color); 
    transition: background-color 0.2s ease;
    border-radius: 8px;
}

.other-models-list a:hover { 
    background: #f8f6f2; 
}

.other-models-list img { 
    width: 50px; 
    height: 50px; 
    object-fit: cover; 
    border-radius: 50%; 
}
.other-models-list h4 { font-family: var(--body-font); font-weight: 500; margin: 0; }
.other-models-list p { font-size: 0.9rem; color: #777; margin: 0; }
.other-models-list .model-price-wrapper { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; }
.other-models-list .model-price { font-weight: 500; }
.other-models-list .old-price-small { font-size: 0.8rem; color: #999; text-decoration: line-through;}
.other-models-list .old-price-small::after { content: ''; }

/*
  ========================================
  Хедер
  ========================================
*/

.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0rem 2rem; 
    background-color: rgba(244, 241, 233, 0.85); /* Оновлений колір фону */
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.4s ease-in-out, background-color 0.3s ease;
}

.header--hidden { 
    transform: translateY(-101%); 
}

.logo {
    font-family: var(--heading-font); 
    font-size: 2rem;
    color: var(--text-color); 
    text-decoration: none;
}
.logo img {
    width: 220px;
}
.phone-btn {
    display: inline-flex; align-items: center; gap: 0.75rem;
    background-color: var(--accent-color); 
    color: white; 
    padding: 0.75rem 1.5rem;
    border-radius: 8px; 
    font-family: var(--body-font); 
    font-weight: 700;
    font-size: 1rem; 
    text-decoration: none; 
    transition: background-color 0.2s ease;
}

.phone-btn:hover {
    background-color: var(--accent-dark);
    /* transform: translateY(-2px); -- ВИДАЛЕНО */
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.1); -- ВИДАЛЕНО */
}

.phone-btn .bx { 
    font-size: 1.2em; 
}

/*
  ========================================
  Інші секції та Футер
  ========================================
*/

.product-story-section {
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}
.product-story-section h2 { font-family: var(--heading-font); font-size: 3rem; margin-bottom: 2rem; color: var(--text-color); }
.product-story-section .story-content { max-width: 800px; margin: 0 auto; text-align: left; }
.product-story-section p { font-size: 1.1rem; line-height: 1.9; color: #555; margin-bottom: 1.5rem; }

.site-footer {
    background-color: #e6e2da; /* Трохи темніший за фон, але з тієї ж палітри */
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    color: #555;
}

.site-footer .container { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--text-color); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--accent-color); }
.copyright { font-size: 0.9rem; color: #888; margin: 0; }

/*
 ========================================
 Музичний плеєр для сторінки товару
 ========================================
*/
.products-music-player-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--surface);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.products-music-player-container .products-track-info {
    text-align: center;
}

.products-music-player-container .products-track-title {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.products-music-player-container .products-track-artist {
    font-size: 0.9rem;
    color: #777;
}

.products-music-player-container .products-player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.products-control-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.products-control-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.products-progress-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.products-progress-container span {
    font-size: 0.85rem;
    color: #777;
    min-width: 35px;
    text-align: center;
}

#products-progress-bar {
    flex-grow: 1;
    height: 6px;
    background-color: #e0dcd7;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

#products-progress {
    height: 100%;
    width: 0%;
    background-color: var(--accent-color);
    border-radius: 3px;
    transition: width 0.1s linear;
}/*
  ========================================
  Перемикач оплати
  ========================================
*/

.payment-options-title {
    margin-bottom: 10px;
    font-size: 16px;
}
.payment-options-switcher {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.payment-options-switcher input[type="radio"] {
    display: none;
}
.payment-options-switcher .option-item {
    flex: 1;
    min-width: 180px;
}
.payment-options-switcher label {
    display: block;
    padding: 12px 15px;
    text-align: center;
    cursor: pointer;
    color: #444;
    transition: all 0.2s ease;
    border-left: 1px solid var(--border-color);
    background: #fff;
}
.payment-options-switcher .option-item:first-child label {
    border-left: none;
}
.payment-options-switcher label:hover {
    background-color: #f8f6f2;
}
.payment-options-switcher input[type="radio"]:checked + label {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}
.payment-options-switcher label strong {
    display: block;
    font-size: 1.1em;
    margin-top: 2px;
}
.price-container .old-price {
    position: absolute;
    left: 30%;
    bottom: 40px;
}
.products-player-controls-btn {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
}

/*
  ========================================
  Анімації та Адаптивність
  ========================================
*/

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 1200px) {
    .product-layout { grid-template-columns: 1fr; gap: 1rem;}
    .gallery-column { position: static; height: auto; }
    .product-header h1 { font-size: 4rem; }
}

@media (max-width: 768px) {
    .container { padding: 5rem 1.5rem 3rem 1.5rem; }
    .header { padding: 0rem 1rem; }
    .logo { font-size: 1.75rem;}
    .logo img {
        width: 150px;
    }
    .phone-btn { padding: 0.6rem 1rem; font-size: 0.9rem; }
    .product-header h1 { font-size: 3rem; }
    .accordion-button { font-size: 1.3rem; }
    .product-header { margin-bottom: 1rem; }
    .actions-wrapper { grid-template-columns: 1fr; }
    .quantity-selector { flex-grow: 1; justify-content: space-between;}
    .action-block .btn { flex-grow: 2; }
    .product-story-section { padding: 3rem 0; margin-top: 2rem; }
    .product-story-section h2 { font-size: 2.2rem; }
    
    .gallery-thumbs {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        grid-template-columns: none; 
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .gallery-thumbs::-webkit-scrollbar {
        display: none;
    }
    .gallery-thumbs .thumb-item {
        flex-shrink: 0;
        width: 100px;
    }
    .price-container .old-price {
        left: 20%;
        bottom: 38px;
    }
    .player-controls {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .phone-btn span { display: none; }
    .phone-btn { gap: 0; padding: 0.75rem; }
    .product-header h1 { font-size: 2.5rem; }
    .container { padding: 5rem 1rem 2rem 1rem; }
    .product-features { flex-wrap: wrap; justify-content: center; }
    .feature-item { flex-basis: calc(50% - 1rem); }
}

#add_payment_method #payment, .woocommerce-cart #payment, .woocommerce-checkout #payment {
    background: none !important;
}
button#place_order {
    width: 100%;
    padding: 12px 15px !important;
    background: var(--accent-color) !important;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    letter-spacing: 0.5px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.75rem !important;
    font-weight: 400 !important;
}
#add_payment_method #payment div.payment_box::before, .woocommerce-cart #payment div.payment_box::before, .woocommerce-checkout #payment div.payment_box::before {
    display: none !important;
}
#add_payment_method #payment div.payment_box, .woocommerce-cart #payment div.payment_box, .woocommerce-checkout #payment div.payment_box {
    background-color: #ffffff00 !important;
}


















/* ==========================================================================
   Vertical Slider Component
   ========================================================================== */

.c-slider-container {
    height: 100svh;
    overflow: hidden;
    position: relative;
    background-color: var(--background);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: pan-y;
}

.c-slider-container.is-dragging {
    cursor: grabbing;
}

.c-slider__track {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.c-slider__item {
    flex-shrink: 0;
    width: 100%;
    height: 100svh; /* Кожен слайд займає повну висоту екрана */
    display: flex;
    align-items: center;   /* Вертикальне центрування */
    justify-content: center; /* Горизонтальне центрування */
    position: relative;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    padding: 2rem; /* Додано загальний падінг */
}

.c-slider__item.is-active {
    opacity: 1;
}

/* ==========================================================================
   Slide Content Layout
   ========================================================================== */

.c-slide-layout {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center; /* Змінено для вертикального центрування колонок */
    justify-content: center;
    gap: 2rem;
}

.c-slide-layout__media-column {
    flex: 1; /* Змінено для гнучкості */
    display: flex;
    align-items: center; /* Змінено для центрування зображення */
    justify-content: center;
    height: 100%;
}

.c-slide__image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
}

.c-slide-layout__content-column {
    flex: 1; /* Змінено для гнучкості */
    padding-left: 2rem;
    color: var(--text-color);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px; /* Обмеження ширини для кращої читабельності */
}

.c-slide__title {
    font-family: var(--heading-font);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.c-slide__description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem; /* Збільшено відступ */
    color: #555;
}

/* ==========================================================================
   Product & Actions
   ========================================================================== */

.c-product-price {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-family: var(--heading-font);
    font-size: 2.2rem;
    color: var(--text-color);
}

.c-product-price del {
    font-family: var(--body-font);
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
}

.c-product-price ins {
    text-decoration: none;
}

.c-slide__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem; /* Додано відступ знизу */
}

.c-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 8px;
    font-family: var(--body-font);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    font-weight: 500;
}

.c-button--primary {
    background-color: var(--accent-color);
    color: white;
    font-size: 1.1rem;
}

.c-button--primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

.c-button--primary .bx {
    font-size: 1.2em;
}

.c-button--icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    font-size: 2rem;
    box-shadow: 0 0 0 rgba(0,0,0,0);
    animation: pulse-icon-inline 1.5s infinite alternate;
    flex-shrink: 0;
    padding: 0;
}

.c-button--icon:hover {
    background-color: var(--accent-dark);
    transform: scale(1.1);
}

@keyframes pulse-icon-inline {
    0% { box-shadow: 0 0 0 0px rgba(123, 130, 102, 0.7); }
    100% { box-shadow: 0 0 0 15px rgba(123, 130, 102, 0); }
}















.c-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap; /* Prevent text wrapping in buttons */
}

.c-button--primary {
    background-color: var(--accent-color);
    color: white;
    border: 1px solid var(--accent-color);
}

.c-button--primary:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
}

.c-button--icon {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0; /* Prevent shrinking */
}

.c-button--icon:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* Pulsing animation for video buttons */
@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(123, 130, 102, 0.7); /* accent-color with transparency */
    }
    70% {
        box-shadow: 0 0 0 10px rgba(123, 130, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(123, 130, 102, 0);
    }
}

.c-button--icon.c-button--video-pulse {
    animation: pulse-animation 2s infinite; /* Apply animation */
}


/* ==========================================================================
    Cards Grid
    ========================================================================== */
.c-cards-grid {
    display: flex;
    flex-wrap: wrap; /* Allow cards to wrap to the next line */
    gap: 40px; /* Spacing between cards */
    width: 100%;
    justify-content: center; /* Center cards if less than two in a row */
    padding-bottom: 20px;
    padding-top: 20px;
}

.c-card-item {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1 1 calc(50% - 20px); /* Two cards per row considering gap */
    min-width: 300px; /* Minimum width for card to prevent excessive squeezing */
    box-sizing: border-box;
}
a.c-button.c-button--primary {
    width: 100%;
}
.c-card-item__media {
    width: 100%;
    height: auto; /* Fixed height for image */
    overflow: hidden;
    border-bottom: 1px solid var(--border-color); /* Separator between image and content */
}

.c-card-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop image to fill container */
    display: block;
}

.c-card-item__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allow content to take available space */
}

.c-card-item__title {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.c-card-item__description {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1.25rem;
    flex-grow: 1; /* Allow description to expand */
    overflow-y: auto; /* Add scroll if description is too long */
    max-height: 120px; /* Limit description height */
    padding-right: 5px; /* For scrollbar */
}

.c-product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.25rem;
}

.c-card-item__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: auto; /* Push actions to the bottom of the card */
    margin-bottom: 1rem; /* Spacing from audio player */
}

/* ==========================================================================
    Audio Player Component (integrated into card)
    ========================================================================== */
.c-audio-player {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color); /* Separator for audio player */
    margin-top: auto; /* Push player to the bottom of the card */
}

.c-audio-player__details {
    text-align: center;
}

.c-audio-player__title {
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.c-audio-player__artist {
    font-size: 0.8rem;
    color: #777;
}

.c-audio-player__controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.c-audio-player__button {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 38px; /* Smaller buttons for audio player in card */
    height: 38px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.c-audio-player__button:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.c-audio-player__button.c-audio-player__play-toggle {
    font-size: 1.8rem; /* Slightly larger play button */
}

.c-audio-player__progress-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-grow: 1; /* Progress bar takes available space */
}

.c-audio-player__progress-container span {
    font-size: 0.75rem;
    color: #777;
    min-width: 30px;
    text-align: center;
}

.c-audio-player__progress-bar {
    flex-grow: 1;
    height: 5px;
    background-color: #e0dcd7;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.c-audio-player__progress {
    height: 100%;
    width: 0%;
    background-color: var(--accent-color);
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* ==========================================================================
    Responsive Adjustments
    ========================================================================== */
@media (max-width: 992px) {
    .c-card-item {
        flex: 1 1 calc(100% - 20px); /* One card per row on tablets */
        max-width: 500px; /* Max width constraint */
    }
}

@media (max-width: 768px) {
    .c-cards-grid {
        gap: 30px;
        padding: 20px 20px;
    }
    .c-card-item {
        flex: 1 1 100%; /* One card per row on mobile */
        max-width: 100%;
    }
    .c-card-item__title {
        font-size: 1.6rem;
    }
    .c-card-item__description {
        font-size: 0.9rem;
        max-height: 100px; /* Potentially smaller height for description */
    }
    .c-product-price {
        font-size: 1.5rem;
    }
    .c-button {
        padding: 0.65rem 1.2rem;
        font-size: 0.9rem;
    }
    .c-button--icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    .c-button--icon.c-button--video-pulse {
        animation: none; /* Disable pulsing on mobile for better performance */
    }
    .c-audio-player__button {
        width: 35px;
        height: 35px;
        font-size: 1.4rem;
    }
    .c-audio-player__button.c-audio-player__play-toggle {
        font-size: 1.6rem;
    }
    .c-audio-player__progress-container span {
        font-size: 0.7rem;
    }
}

/* Custom scrollbar for Webkit browsers */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}
main#primary {
    display: flex;
    justify-content: center;
    padding-top: 80px;
    padding-left: 30px;
    padding-right: 30px;
}
@media (max-width: 768px) {
    main#primary {
        padding-top: 50px;
        padding-right: 0;
        padding-left: 0;
    }
    .container-descripton {
        padding: 20px;
    }
}
a.email-link {
    color: #3a3d36;
    text-decoration: none;
    font-size: 18px;
}
.email-link a:hover { color: var(--accent-color); }

h2.c-card-item__title a {
    text-decoration: none;
    color: #3a3d36;
}






/* Subscribe Button */
.subscribe-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.subscribe-button:hover {
    background-color: var(--accent-dark);
}


/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden; /* Hidden by default */
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
    z-index: 1200;
}

.popup-overlay.visible {
    visibility: visible;
    opacity: 1;
}

/* Popup Content */
.popup-content {
    background-color: #ffffffdb;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.popup-overlay.visible .popup-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8em;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: var(--accent-dark);
}

.popup-content h2 {
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.popup-content p {
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Form Styling */
.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.subscribe-form input[type="email"] {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    color: var(--text-color);
    background-color: var(--background);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.subscribe-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(123, 130, 102, 0.2); /* Soft green glow */
}

.subscribe-form button[type="submit"] {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.subscribe-form button[type="submit"]:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

.subscribe-form button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.privacy-note {
    font-size: 0.85em;
    color: var(--text-color);
    margin-top: 20px;
    opacity: 0.8;
}



/* Floating Icon Button */
.ns-floating-icon {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #6a7058; /* You can use your var(--accent-color) */
    color: white;
    border-radius: 50%;
    display: flex; /* Changed from 'none' by default to 'flex' for visibility */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.2s ease-in-out, background-color 0.2s;
}

.ns-floating-icon:hover {
    transform: scale(1.1);
    background-color: #6a70589e; /* A darker shade for hover, e.g., var(--accent-dark) */
}

/* The SVG icon inside the button */
.ns-floating-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor; /* Inherits the 'color' from the parent */
}
/* Promo Code Display Box */
.ns-promo-code-display {
    display: none; /* Hidden by default, shown by JavaScript */
    margin-top: 20px;
    padding: 15px 20px;
    border: 2px dashed #0073e6; /* Or your var(--accent-color) */
    background-color: #f0f7ff; /* A light blue background */
    border-radius: 8px;
    font-size: 1.4em;
    font-weight: 700;
    color: #005bb5; /* Or your var(--accent-dark) */
    letter-spacing: 1px;
    text-align: center;
}
.also {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0rem 2rem;
}
@media (max-width: 768px) {
    .also {
        padding: 0;
    }
}