:root {
    /* Сучасна кольорова палітра */
    --accent-color: #007aff; 
    --accent-hover: #005bb5;
    --success-color: #34c759; 
    --danger-color: #ff3b30; 
    --warning-color: #ff9500; 
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --bg-main: #f5f5f7;
    --bg-card: #ffffff;
    --border-radius-main: 16px;
    --border-radius-sm: 8px;
    --font-main: 'Manrope', 'IBM Plex Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body.site-wrapper-v2 {
    font-family: var(--font-main);
    background: var(--bg-main);
    max-width: 480px;
    margin: 0 auto;
    color: var(--text-main);
    padding-top: 50px; 
    padding-bottom: 90px; 
    box-shadow: 0 0 20px rgba(0,0,0,0.05); 
    background-color: #fff;
}

/* --- Хедер та Навігація --- */
header.top-header-bar {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid rgba(0,0,0,0.05);
    max-width: 480px;
    margin: 0 auto;
}

.top-header-bar .nav-links-list {
    display: flex;
    overflow-x: auto;
    padding: 12px 10px;
    gap: 15px;
}

.top-header-bar .nav-links-list::-webkit-scrollbar {
    display: none;
}

.nav-links-list li {
    list-style: none;
}

.nav-links-list li a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.3s ease;
    padding-bottom: 4px;
}

.nav-links-list li a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* --- Загальні стилі секцій --- */
section {
    background: var(--bg-card);
    margin-bottom: 12px;
    padding: 24px 20px;
    border-radius: var(--border-radius-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

h2, .section-heading, .heading-reviews {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 800;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 5px;
}

/* --- Галерея та Слайдер --- */
.main-slide {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-main);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.thumbnails, .thumbnails-bottom {
    margin-top: 10px;
}

.thumbnails .item img,
.thumbnails-bottom .item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
    opacity: 0.7;
}

.thumbnails .item img.active,
.thumbnails-bottom .item img.active {
    border-color: var(--accent-color);
    opacity: 1;
    transform: scale(0.95);
}

/* --- Заголовок, Ціни та Бейджі --- */
.headline-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-main);
    text-align: left;
}

.offer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-discount { background: var(--danger-color); color: #fff; }
.tag-hit { background: var(--warning-color); color: #fff; }
.tag-urgent { background: #ffe5e5; color: var(--danger-color); }

.price-block-wrapper {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-top: 5px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.old-val {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 20px;
    font-weight: 500;
}

.new-val {
    color: var(--danger-color);
    font-size: 32px;
    font-weight: 900;
}

/* --- Кнопки Замовлення --- */
.action-btn-fixed, .submit-action-btn, .action-btn-more {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    padding: 18px 20px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 6px 15px rgba(0, 122, 255, 0.3);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.1s, box-shadow 0.1s;
    text-decoration: none;
}

.action-btn-fixed:active, .submit-action-btn:active, .action-btn-more:active {
    transform: translateY(2px);
    box-shadow: 0 2px 5px rgba(0, 122, 255, 0.3);
}

/* --- Відео --- */
.video-presentation {
    margin-top: 10px;
}
.iframe-box iframe {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- Переваги (Список з галочками) --- */
.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefits-list li {
    position: relative;
    padding-left: 35px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
    color: #333;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: -2px;
    background: var(--success-color);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* --- Блок Інформації (Опис) --- */
.text-content-wrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.text-content-wrap img {
    width: 100%;
    border-radius: var(--border-radius-main);
    margin: 5px 0;
}

.text-content-wrap p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

/* --- Таблиця Характеристик --- */
.data-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.data-grid img {
    border-radius: var(--border-radius-main);
    margin-bottom: 15px;
}
.data-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eaeaea;
    font-size: 15px;
}
.data-row:last-child {
    border-bottom: none;
}
.data-row span:first-child {
    color: var(--text-muted);
    flex: 1;
    padding-right: 15px;
}
.data-row span:last-child {
    color: var(--text-main);
    font-weight: 700;
    text-align: right;
    flex: 1;
}

/* --- Кроки замовлення --- */
.path-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.path-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fdfdfd;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}
.num-circle {
    background: var(--accent-color);
    color: #fff;
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 900;
}
.path-item p {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

/* --- Форма замовлення --- */
.secure-order-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
}
.secure-order-form input {
    padding: 18px 20px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    outline: none;
    transition: border 0.3s;
    font-family: var(--font-main);
}
.secure-order-form input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* --- Фіксований блок внизу --- */
.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 12px 0;
}
.bar-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
}
.sticky-bottom-bar .action-btn-fixed {
    padding: 14px 20px;
    font-size: 18px;
}

/* --- Футер --- */
.site-footer {
    padding: 30px 20px;
    background: #222;
    color: #aaa;
    font-size: 13px;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 0;
    border-radius: 20px 20px 0 0;
}
.site-footer strong {
    color: #fff;
    font-size: 15px;
}
.site-footer .footer-contacts-box {
    margin-bottom: 10px;
}
.site-footer a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}
.site-footer a:hover {
    color: #fff;
}
/* --- Блок Відгуків --- */
.buyers-feedback {
    padding: 30px 20px;
    background: #fff;
    border-radius: var(--border-radius-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 12px;
}
.heading-reviews {
    font-size: 26px;
    margin-bottom: 15px;
}
.rating-summary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 16px;
}
.rating-summary a {
    text-decoration: none;
}
.stars-val {
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 5px;
}
.stars-val::before {
    content: "★";
    color: #ffb400;
    font-size: 22px;
}
.total-votes {
    color: var(--text-muted);
}

.feedback-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #eaeaea;
}
.client-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-weight: 700;
}

/* Ховаємо системну кнопку і робимо CSS-зірочки */
.star-rating-box input {
    display: none;
}
.r-wrapper {
    color: #ffb400;
    font-size: 16px;
    letter-spacing: 2px;
}
.r-wrapper i { font-style: normal; }
.r-wrapper i.fa-star::before { content: "★"; }

.verified-buyer {
    font-size: 13px;
    color: var(--success-color);
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.verified-buyer i { font-style: normal; }
.verified-buyer .fa-check-circle::before { content: "✔"; }

.msg-body {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 15px;
}

.photo-wrapper.grid-imgs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.photo-wrapper.grid-imgs img {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.post-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
}

.store-reply {
    margin-top: 15px;
    padding: 15px;
    background: #e5f9ed;
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
}
.reply-title {
    color: var(--success-color);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.reply-title i { font-style: normal; }
.reply-title .fa-reply::before { content: "↳"; font-size: 16px; }

.reply-body {
    font-size: 14px;
    line-height: 1.4;
    color: #222;
}

.load-more-container {
    margin-top: 20px;
}
.photo-wrapper.single-img img {
    width: 100%;
    max-width: 300px;
    height: auto !important; /* Повертає правильні пропорції */
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Виводить галерею (fslightbox) поверх фіксованої шапки сайту */
.fslightbox-container {
    z-index: 999999 !important; 
}
/* --- Кастомна Галерея (Lightbox) --- */
.custom-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999; /* Поверх усіх шапок і кнопок */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.custom-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.custom-lightbox-overlay.active .custom-lightbox-img {
    transform: scale(1);
}

.custom-lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    z-index: 1000000;
    background: none;
    border: none;
    padding: 10px;
    outline: none;
}