/* ==========================================================================
   v2.css — Оптимізовані стилі під TikTok Ads (Mobile First)
   ========================================================================== */
:root {
    --brand: #c8561d;
    --brand-hover: #b04612;
    --brand-gradient: linear-gradient(135deg, #e65c00 0%, #f9d423 100%);
    --cta-gradient: linear-gradient(135deg, #d33c16 0%, #ff6b35 100%);
    --cta-shadow: 0 8px 24px rgba(211, 60, 22, 0.35);

    --ink: #16202e;
    --ink-muted: #5a6679;
    --ink-light: #8e9bb0;

    --bg: #ffffff;
    --bg-page: #0f141c;
    --bg-soft: #f8fafc;
    --bg-accent: #fdf6f0;

    --green: #10b981;
    --green-bg: #ecfdf5;
    --red: #ef4444;
    --red-bg: #fef2f2;

    --border: #e2e8f0;
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --radius-pill: 999px;
}

body.v2-body {
    background: var(--bg-page);
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 75px; /* місце під липку панель */
}

.v2-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    overflow-x: hidden;
}

/* ==========================================================================
   Верхня панель довіри
   ========================================================================== */
.v2-top-bar {
    background: #1e293b;
    color: #f1f5f9;
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
}
.v2-top-bar span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   Hero Секція
   ========================================================================== */
.v2-hero {
    padding: 18px 16px 20px;
    text-align: center;
}

.v2-season-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 12px;
}

.v2-title {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.v2-subtitle {
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink-muted);
    margin-bottom: 12px;
    padding: 0 4px;
}

.v2-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.v2-rating .v2-stars {
    color: #f59e0b;
    letter-spacing: 1px;
}

.v2-hero-img-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background: #f1f5f9;
    margin-bottom: 16px;
}
.v2-hero-img-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.v2-sale-bubble {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: #ffffff;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(239,68,68,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}
.v2-sale-bubble span:first-child {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* ==========================================================================
   Блок ціни
   ========================================================================== */
.v2-price-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 16px;
}

.v2-price-row {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}

.v2-old-price {
    font-size: 18px;
    color: var(--ink-light);
    text-decoration: line-through;
    font-weight: 600;
}

.v2-new-price {
    font-size: 34px;
    font-weight: 800;
    color: #d93829;
    line-height: 1;
}

.v2-save-tag {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.v2-timer-box {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    font-size: 13px;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.v2-timer-box b {
    color: #c2410c;
}

/* ==========================================================================
   Кнопки CTA (Call-to-Action)
   ========================================================================== */
.v2-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    background: var(--cta-gradient);
    color: #ffffff !important;
    text-decoration: none !important;
    border: none;
    border-radius: var(--radius);
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--cta-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
    animation: v2Pulse 2.5s infinite;
}

@keyframes v2Pulse {
    0% { transform: scale(1); box-shadow: var(--cta-shadow); }
    50% { transform: scale(1.02); box-shadow: 0 10px 28px rgba(211, 60, 22, 0.5); }
    100% { transform: scale(1); box-shadow: var(--cta-shadow); }
}

.v2-btn-primary:active {
    transform: scale(0.98);
}

.v2-trust-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-muted);
}
.v2-trust-badges span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   Секція: Порівняння «Без тента vs З тентом»
   ========================================================================== */
.v2-section {
    padding: 24px 16px;
    border-top: 8px solid #f1f5f9;
}

.v2-sec-head {
    text-align: center;
    margin-bottom: 18px;
}
.v2-sec-title {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 4px;
}
.v2-sec-sub {
    font-size: 13px;
    color: var(--ink-muted);
}

.v2-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.v2-comp-card {
    border-radius: var(--radius-sm);
    padding: 12px 10px;
    font-size: 13px;
    line-height: 1.35;
}
.v2-comp-bad {
    background: var(--red-bg);
    border: 1px solid #fecaca;
}
.v2-comp-bad h4 {
    color: #b91c1c;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.v2-comp-bad li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 14px;
    color: #7f1d1d;
}
.v2-comp-bad li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: 800;
    font-size: 11px;
}

.v2-comp-good {
    background: var(--green-bg);
    border: 1px solid #bbf7d0;
}
.v2-comp-good h4 {
    color: #15803d;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.v2-comp-good li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 14px;
    color: #14532d;
}
.v2-comp-good li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 800;
    font-size: 12px;
}

.v2-worth-banner {
    background: #fff7ed;
    border: 1px dashed #f97316;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    text-align: center;
    font-size: 13px;
    color: #9a3412;
}
.v2-worth-banner b {
    color: #c2410c;
    font-size: 14px;
}

/* ==========================================================================
   Секція: Фото деталей та переваг
   ========================================================================== */
.v2-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.v2-feature-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.v2-feature-item img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
}
.v2-feature-item .v2-feat-text {
    padding: 10px;
}
.v2-feature-item h5 {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 3px;
    color: var(--ink);
}
.v2-feature-item p {
    font-size: 11px;
    color: var(--ink-muted);
    line-height: 1.3;
}

/* ==========================================================================
   Сумісність та розміри
   ========================================================================== */
.v2-compatibility {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-top: 14px;
}
.v2-comp-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 8px;
}
.v2-comp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.v2-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.v2-chip.yes {
    color: #15803d;
    border-color: #86efac;
    background: #f0fdf4;
}
.v2-chip.no {
    color: #b91c1c;
    border-color: #fca5a5;
    background: #fef2f2;
}

/* ==========================================================================
   Відгуки (Компактні)
   ========================================================================== */
.v2-review-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.v2-rev-user {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.v2-rev-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 5px;
}
.v2-rev-tag {
    font-size: 11px;
    color: #10b981;
    font-weight: 600;
}
.v2-rev-text {
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.4;
}

/* ==========================================================================
   Компактний FAQ
   ========================================================================== */
.v2-faq-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
}
.v2-faq-item summary {
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.v2-faq-item summary::-webkit-details-marker {
    display: none;
}
.v2-faq-item summary::after {
    content: "+";
    font-size: 18px;
    color: var(--brand);
    font-weight: 700;
}
.v2-faq-item[open] summary::after {
    content: "–";
}
.v2-faq-content {
    padding: 0 14px 12px;
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.4;
}

/* ==========================================================================
   Форма замовлення (Статична та в Pop-up)
   ========================================================================== */
.v2-form-card {
    background: #ffffff;
    border: 2px solid #fed7aa;
    border-radius: var(--radius);
    padding: 18px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.v2-form-title {
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4px;
    text-transform: uppercase;
}
.v2-form-sub {
    font-size: 13px;
    color: var(--ink-muted);
    text-align: center;
    margin-bottom: 16px;
}

.v2-field {
    margin-bottom: 12px;
    position: relative;
}
.v2-field input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #cbd5e1;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    color: var(--ink);
    transition: border-color 0.2s;
}
.v2-field input:focus {
    border-color: var(--brand);
    background: #ffffff;
    outline: none;
}
.v2-field.invalid input {
    border-color: #ef4444 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    animation: v2-shake 0.35s ease-in-out;
}
@keyframes v2-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.v2-field-error {
    display: none;
    font-size: 12px;
    color: #ef4444;
    font-weight: 600;
    margin-top: 4px;
    padding-left: 4px;
}
.v2-field.invalid .v2-field-error {
    display: block;
}

.v2-legal-text {
    font-size: 11px;
    color: var(--ink-light);
    text-align: center;
    margin-top: 10px;
    line-height: 1.3;
}
.v2-legal-text a {
    color: var(--ink-muted);
}

/* ==========================================================================
   Липка панель внизу (Fixed Sticky Bar)
   ========================================================================== */
.v2-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    z-index: 99;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.v2-sticky-inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.v2-sticky-price {
    display: flex;
    flex-direction: column;
}
.v2-sticky-old {
    font-size: 12px;
    text-decoration: line-through;
    color: var(--ink-light);
    line-height: 1;
}
.v2-sticky-new {
    font-size: 22px;
    font-weight: 800;
    color: #d93829;
    line-height: 1.1;
}
.v2-sticky-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    animation: none; /* без пульсації, щоб не дратувати при скролі */
}

/* ==========================================================================
   Модальне вікно (Pop-up швидкого замовлення)
   ========================================================================== */
.v2-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 20, 28, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.v2-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.v2-modal-sheet {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 20px 20px 0 0;
    padding: 22px 18px 24px;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.v2-modal-overlay.active .v2-modal-sheet {
    transform: translateY(0);
}

.v2-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: var(--ink-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-footer {
    padding: 24px 16px 20px;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--ink-light);
    text-align: center;
    line-height: 1.6;
}
.v2-footer-links {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 12px;
}
.v2-footer-links a {
    color: var(--ink-muted);
}
