:root {
    /* Palette */
    --bg-body: #f5f5f5;
    --bg-white: #ffffff;
    --text-main: #221f1f;
    --text-secondary: #797878;
    --brand-green: #1a6fc4;
    --brand-green-hover: #155fa8;
    --brand-blue: #1a6fc4;
    --accent-orange: #ff9900;
    --border-color: #e9e9e9;
    --success: #1a6fc4;
    --radius-sm: 4px;
    --radius-md: 8px;
    --container-width: 1060px;
    --header-height: 60px;
}

/* Reset & Base */
* { box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }
html { overflow-x: hidden; }
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 0;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.top-header {
    background: var(--text-main);
    color: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    height: auto;
    min-height: var(--header-height);
}
.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.logo {
    font-size: 22px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.logo span { color: var(--brand-green); }

/* Mobile Catalog Btn (New) */
.mobile-cat-btn {
    display: none; /* Desktop hidden */
    color: white;
    font-size: 24px;
    padding: 4px;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    background: white;
    border-radius: 4px;
    display: flex;
    height: 40px;
    overflow: hidden;
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9e9e9;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 4px;
}
.search-dropdown.active { display: block; }

.sd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    transition: background 0.1s;
}
.sd-item:last-child { border-bottom: none; }
.sd-item:hover { background: #f9f9f9; }
.sd-img { width: 40px; height: 40px; object-fit: contain; border: 1px solid #eee; border-radius: 4px; background: #fff; }
.sd-info { flex: 1; }
.sd-title { font-size: 13px; font-weight: 500; color: var(--text-main); line-height: 1.2; margin-bottom: 2px; }
.sd-price { font-size: 13px; font-weight: 700; color: var(--text-main); }
.sd-btn { font-size: 11px; color: var(--brand-green); background: #eff6ff; padding: 4px 8px; border-radius: 4px; font-weight: 600; }

.search-input {
    flex: 1;
    border: none;
    padding: 0 16px;
    font-size: 16px;
}
.search-btn {
    background: var(--brand-green);
    color: white;
    border: none;
    width: 60px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-actions {
    display: flex;
    gap: 20px;
}
.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
    opacity: 0.9;
}
.action-item i { font-size: 20px; margin-bottom: 4px; }

/* View All Button (Desktop) */
.btn-catalog-header {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 0 16px;
    height: 40px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: all 0.2s;
}
.btn-catalog-header:hover { background: rgba(255,255,255,0.1); }

/* Breadcrumbs */
.breadcrumbs {
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.breadcrumbs span { margin: 0 6px; color: #ccc; }

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    margin-bottom: 40px;
}
.main-content {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-color);
    min-width: 0;
    overflow: hidden;
}
.buy-box-wrapper {
    min-width: 0;
    align-self: start;
}
.product-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
}
h1 {
    font-size: 26px;
    margin: 0 0 12px 0;
    font-weight: 700;
    line-height: 1.3;
}
.rating-sku {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 10px;
}
.stars { color: var(--accent-orange); display: flex; align-items: center; gap: 2px; }
.reviews-count { color: var(--brand-blue); border-bottom: 1px dotted; margin-left: 8px; cursor: pointer;}
.sku { color: var(--text-secondary); font-size: 12px; background: #f0f0f0; padding: 4px 8px; border-radius: 4px; }

/* Gallery */
.gallery-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

/* --- Головне фото --- */
.main-img-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 615px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    user-select: none;
}
.main-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 0.18s ease;
    display: block;
}
.main-img.fade { opacity: 0; }

/* Стрілки головного фото */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.92);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}
.gallery-arrow:hover { background: white; box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.gallery-arrow--prev { left: 10px; }
.gallery-arrow--next { right: 10px; }

/* Лічильник */
.gallery-counter {
    position: absolute;
    bottom: 10px;
    right: 14px;
    background: rgba(0,0,0,0.45);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    pointer-events: none;
}

/* --- Рядок мініатюр --- */
.thumbs-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}
.thumbs-viewport {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}
.thumbs {
    display: flex;
    flex-direction: row;
    gap: 7px;
    transition: transform 0.25s ease;
    will-change: transform;
}
.thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    object-fit: cover;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fafafa;
}
.thumb:hover { border-color: #aaa; }
.thumb.active {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 2px var(--brand-green);
}

/* Стрілки мініатюр */
.thumbs-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 72px;
    background: #f2f2f2;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 17px;
    color: var(--text-main);
    transition: background 0.15s;
    -webkit-appearance: none;
    appearance: none;
}
.thumbs-arrow:hover { background: #e8e8e8; }
.thumbs-arrow:disabled { opacity: 0.3; cursor: default; }

/* Specs */
.short-specs h3 { font-size: 16px; margin-bottom: 12px; }
.spec-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-tag {
    background: #f0f8ff;
    color: #0c4a6e;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #bae6fd;
}

/* Buy Box & Timer */
.buy-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 80px;
}

.timer-box {
    background: #fff0f0;
    border: 1px solid #ffcccc;
    color: #e02b2b;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.timer-box i { font-size: 18px; }

.stock-status {
    color: var(--success);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.price-block { margin-bottom: 24px; }
.old-price {
    font-size: 16px;
    color: var(--text-secondary);
    text-decoration: line-through;
}
.current-price {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}
.current-price span { font-size: 20px; font-weight: 500; }

.btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--brand-green);
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: background 0.2s;
    gap: 8px;
    -webkit-appearance: none;
    appearance: none;
}
.btn-buy:active { transform: scale(0.98); }

/* Seller */
.seller-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
}
.seller-icon {
    font-size: 20px;
    color: var(--text-secondary);
    min-width: 24px;
    text-align: center;
}
.seller-text strong { display: block; color: var(--text-main); font-weight: 600; }
.seller-text p { color: var(--text-secondary); font-size: 13px; margin: 2px 0 0 0; }

/* Tabs */
.content-section {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow: hidden;
}
.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: #fafafa;
    overflow-x: auto; 
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.tab-btn {
    padding: 16px 24px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}
.tab-btn.active {
    color: var(--brand-green);
    border-bottom-color: var(--brand-green);
    background: white;
}
.tab-content { padding: 32px; display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Specs Table */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(odd) { background: #f9f9f9; }
.specs-table td {
    padding: 12px 16px;
    font-size: 15px;
    border-bottom: 1px solid #eee;
}
.specs-table td:first-child { color: var(--text-secondary); width: 45%; }
.specs-table td:last-child { font-weight: 500; }

/* Checkout Form */
#checkout-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.checkout-grid-old-removed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}
.form-control {
    width: 100%;
    padding: 0 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    height: 50px;
    transition: all 0.2s ease;
    background: #fdfdfd;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}
.form-control:focus { 
    border-color: var(--brand-green); 
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26, 111, 196, 0.12);
}

/* Footer */
footer {
    background: #f5f5f5;
    padding: 40px 0 20px;
    border-top: 1px solid #e9e9e9;
    margin-top: 40px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

/* === Mobile Sticky Footer (Updated) === */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #eee;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.08);
    z-index: 999;
    display: none;
    flex-direction: column; /* Stack timer and buttons */
    padding-bottom: max(0px, env(safe-area-inset-bottom));
}

.ms-timer {
    background: #fff0f0;
    color: #e02b2b;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 4px 0;
    border-bottom: 1px solid #ffcccc;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}
.ms-timer i { font-size: 14px; }

.ms-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
}

.ms-price { font-size: 22px; font-weight: 700; color: var(--text-main); line-height: 1; }
.ms-btn {
    flex: 1;
    background: var(--brand-green);
    color: white;
    text-align: center;
    padding: 14px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(26, 111, 196, 0.35);
}

/* === MOBILE OPTIMIZATION === */
@media (max-width: 980px) {
    .container { padding: 0 16px; }
    .header-grid { gap: 12px; padding-bottom: 6px; }
    
    .search-bar { order: 3; width: 100%; max-width: 100%; margin-top: 0; height: 44px; }
    
    /* Header Changes */
    .user-actions { display: none; }
    .mobile-cat-btn { display: block; margin-left: auto; color: white; } /* Show catalog icon */
    .logo { margin-right: 0; }
    
    .product-grid { display: block; }
    .buy-box-wrapper { display: none; }
    .mobile-sticky-bar { display: flex; }
    
    .main-content { padding: 0; border: none; background: transparent; }
    .product-header { border-bottom: none; padding-bottom: 0; margin-bottom: 20px; }
    .content-section { border-radius: 0; border-left: none; border-right: none; margin-left: -16px; margin-right: -16px; width: auto; }
    
    /* Mobile Form Fix */
    #checkout-section { padding: 20px; margin-bottom: 24px; border: 1px solid #eee; }
    #checkout-section h2 { font-size: 18px; margin-bottom: 16px; }
    
    .main-img-container { height: 280px; }
    .thumb { width: 62px; height: 62px; }
    .thumbs-arrow { height: 62px; width: 28px; font-size: 15px; }
    
    .tab-content { padding: 20px 16px; }
    .tabs-nav { padding-left: 16px; padding-right: 16px; }

    h1 { font-size: 22px; }
    .seller-row { background: white; padding: 12px; border-radius: 8px; border: 1px solid #eee; }
}

@media (max-width: 480px) {
    .main-img-container { height: 360px; }
    .gallery-arrow { width: 34px; height: 34px; font-size: 17px; }
    .thumb { width: 56px; height: 56px; }
    .thumbs-arrow { height: 56px; width: 26px; }
    .rating-sku { flex-direction: column; align-items: flex-start; gap: 8px; }
    .sku { margin-left: 0; }
}

/* ============================================================
   ЕЛЕКТРОНАБОРИ — КОНФІГУРАТОР
   ============================================================ */

/* --- Крок-лейбл --- */
.sel-group {
    margin-bottom: 18px;
}
.sel-group-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-green);
    color: white;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

/* --- Кнопки вибору (сітка 2 + 1 широка) --- */
.motor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.battery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* --- Базова кнопка вибору --- */
.sel-btn {
    position: relative;
    background: #f7f7f7;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 10px 10px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
    overflow: hidden;
}
.sel-btn:hover {
    border-color: #aaa;
    background: #f0f0f0;
}
.sel-btn.active {
    border-color: var(--brand-green);
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(26,111,196,0.2);
}
.sel-btn--wide {
    grid-column: 1 / -1; /* займає всю ширину */
}
.sel-main {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 3px;
}
.sel-hint {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.3;
}
.bat-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-green);
    margin-top: 4px;
}

/* --- Бейджі --- */
.badge-hit {
    display: inline-block;
    background: #1565c0;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.badge-hit--sm {
    font-size: 11px;
    padding: 2px 7px;
}
.badge-yellow {
    display: inline-block;
    background: #f59e0b;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.badge-yellow--sm {
    font-size: 11px;
    padding: 2px 7px;
}

/* --- Ціна --- */
#price-display {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

/* --- Додаткові опції --- */
.addons-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}
.addon-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.addon-item:hover { border-color: #ccc; background: #f5f5f5; }
.addon-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--brand-green);
}
.addon-item--warning {
    border-color: #f59e0b;
    background: #fffbeb;
}
.addon-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.addon-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}
.addon-name b { color: var(--brand-green); }
.addon-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}
.addon-desc em { color: #d97706; font-style: normal; font-weight: 600; }

/* --- Корпусний акумулятор — розширений блок --- */
.addon-item--corp {
    background: #f0faf4;
    border-color: #b6e2c8;
}
.addon-item--corp:hover { border-color: var(--brand-green); background: #e6f7ed; }
.addon-item--corp .addon-name {
    font-size: 15px;
    font-weight: 600;
}
.corp-benefits {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0 6px;
}
.corp-benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.4;
}
.corp-benefit i {
    font-size: 18px;
    color: var(--brand-green);
    flex-shrink: 0;
}
.addon-item--corp .addon-desc {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
}

/* --- Підказка вибору --- */
.select-prompt {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 10px 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.select-prompt i { font-size: 18px; color: var(--accent-orange); }

/* --- Попередження у формі --- */
.checkout-warning {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #7c5300;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkout-warning i { font-size: 18px; flex-shrink: 0; }

/* ============================================================
   БЛОК "СКЛАД НАБОРУ" — КІТ-КАРТКИ
   ============================================================ */
.kit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0 24px;
}
.kit-card {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 18px 16px;
}
.kit-card h4 {
    margin: 10px 0 6px;
    font-size: 15px;
    color: var(--text-main);
}
.kit-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}
.kit-icon {
    font-size: 30px;
    color: #555;
}
.kit-icon--green { color: var(--brand-green); }
.kit-icon--orange { color: var(--accent-orange); }
.kit-icon--blue { color: var(--brand-blue); }

.trust-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.trust-banner-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.trust-banner-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.trust-banner-item strong {
    font-size: 15px;
    color: var(--text-main);
}
.trust-banner-item span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================================
   ПРАЙС-ЛИСТ "НАБОРИ ЗБЕРИ САМ"
   ============================================================ */
.pricelist-block {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}
.pricelist-header {
    background: #f5f5f5;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}
.pricelist-motor-badge {
    font-size: 15px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    color: white;
}
.pricelist-badge--gray  { background: #607d8b; }
.pricelist-badge--green { background: var(--brand-green); }
.pricelist-badge--blue  { background: #1565c0; }
.pricelist-hint {
    font-size: 13px;
    color: var(--text-secondary);
}
.pricelist-items { padding: 0; }
.pricelist-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-bottom: 1px solid #f5f5f5;
    flex-wrap: wrap;
}
.pricelist-row:last-child { border-bottom: none; }
.pricelist-row--hit   { background: #f0f8ff; }
.pricelist-row--yellow { background: #fffbeb; }
.pl-ah {
    font-weight: 700;
    font-size: 16px;
    min-width: 42px;
    color: var(--text-main);
}
.pl-range {
    font-size: 14px;
    color: var(--text-secondary);
    flex: 1;
}
.pl-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
}

/* ============================================================
   CTA — ШАПКА
   ============================================================ */
.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-green);
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.2s;
}
.header-cta-btn:hover { background: var(--brand-green-hover); color: white; }
.header-cta-btn i { font-size: 16px; }

/* ============================================================
   CTA — БАНЕРИ
   ============================================================ */
.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, #1a6fc4 0%, #0f4e94 100%);
    border-radius: var(--radius-md);
    padding: 22px 28px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.cta-banner--dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
.cta-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cta-banner-title {
    font-size: 19px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}
.cta-banner-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}
.cta-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--brand-green);
    font-size: 16px;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 6px;
    white-space: nowrap;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    flex-shrink: 0;
}
.cta-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    color: var(--brand-green);
}
.cta-banner-btn:active { transform: scale(0.98); }
.cta-banner-btn--white {
    background: white;
    color: #1a1a2e;
}
.cta-banner-btn--white:hover { color: #1a1a2e; }

@media (max-width: 640px) {
    .cta-banner { padding: 18px 16px; flex-direction: column; align-items: flex-start; gap: 14px; border-radius: 0; margin-left: -16px; margin-right: -16px; }
    .cta-banner-btn { width: 100%; justify-content: center; }
    .cta-banner-title { font-size: 17px; }
    .header-cta-btn { font-size: 13px; padding: 8px 13px; }
    .header-cta-btn i { display: none; }
}

/* ============================================================
   ВІДЕООГЛЯД
   ============================================================ */
.video-section {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}
.video-section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.video-section-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}
.video-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}
.video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

@media (max-width: 980px) {
    .video-section { border-radius: 0; border-left: none; border-right: none; margin-left: -16px; margin-right: -16px; padding: 20px 16px; }
}

/* ============================================================
   ВІДГУКИ — ОКРЕМА СЕКЦІЯ
   ============================================================ */
.reviews-section {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 28px 20px;
    margin-bottom: 24px;
}
.reviews-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}
.reviews-section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
}
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}
.reviews-avg {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}
.reviews-total {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Сітка відгуків */
.reviews-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.reviews-extra {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Картка відгуку (новий стиль) */
.review-card--new {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
    padding: 20px 0;
    background: transparent;
    box-shadow: none;
}
.review-card--new:last-child { border-bottom: none; }

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-green);
    color: white;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.reviewer-avatar--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.reviewer-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.reviewer-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-main);
}
.review-date {
    font-size: 12px;
    color: #bbb;
}
.stars--sm {
    color: var(--accent-orange);
    font-size: 13px;
    display: flex;
    gap: 1px;
}
.review-kit-badge {
    background: #f0f0f0;
    color: #555;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
    align-self: flex-start;
    margin-top: 2px;
}
.review-text {
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.65;
    margin: 0 0 12px 0;
}

/* Фото у відгуку */
.review-photos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.review-photo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: opacity 0.2s;
}
.review-photo:hover { opacity: 0.85; }

/* Кнопка показати більше */
.reviews-toggle-wrap {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
}
.reviews-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid var(--brand-green);
    color: var(--brand-green);
    font-size: 15px;
    font-weight: 600;
    padding: 11px 28px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.reviews-toggle-btn:hover {
    background: var(--brand-green);
    color: white;
}
.reviews-toggle-btn i {
    font-size: 18px;
    transition: transform 0.3s;
}
.reviews-toggle-btn.open i {
    transform: rotate(180deg);
}

@media (max-width: 980px) {
    .reviews-section { padding: 20px 16px 16px; border-radius: 0; border-left: none; border-right: none; margin-left: -16px; margin-right: -16px; }
    .review-photo { width: 76px; height: 76px; }
}

/* ============================================================
   ФОРМА — КОНФІГУРАТОР ВСЕРЕДИНІ
   ============================================================ */
.checkout-heading {
    font-size: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-config-block {
    background: #f8fdf9;
    border: 2px solid #bfdbfe;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.form-step-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Ціна у формі */
.form-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 2px solid var(--brand-green);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
}
.form-price-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}
.form-price-total {
    font-size: 26px;
    font-weight: 700;
    color: var(--brand-green);
}

/* Підказка у формі */
.config-error-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff0f0;
    border: 2px solid #ffb3b3;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 600;
    color: #c0392b;
    animation: shake 0.4s ease;
}
.config-error-msg i { font-size: 22px; flex-shrink: 0; }
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}

.form-select-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px 0 4px;
}
.form-select-hint i { color: var(--accent-orange); font-size: 18px; }

/* Розділювач між конфігуратором і даними */
.form-divider {
    height: 1px;
    background: #e9e9e9;
    margin: 24px 0;
}

/* Submit кнопка з ціною */
.submit-price-badge {
    background: rgba(255,255,255,0.25);
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 17px;
    font-weight: 700;
    margin-left: 6px;
}

/* checkout-grid: 2 колонки для полів вводу на десктопі */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
@media (max-width: 600px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .form-config-block { padding: 16px 14px; }

    /* Ціна у формі — вертикально */
    .form-price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 14px;
    }
    .form-price-label { font-size: 13px; }
    .form-price-total { font-size: 24px; }

    /* Кнопка submit — текст і ціна в колонку */
    .btn-buy--submit {
        flex-direction: column;
        gap: 2px;
        font-size: 17px;
        padding: 14px 12px;
    }
    .submit-price-badge {
        font-size: 20px;
        margin-left: 0;
        padding: 0;
        background: none;
    }
}

/* ============================================================
   MOBILE FIX — BUY BOX ВИДИМИЙ НА МОБІЛЬНОМУ
   ============================================================ */
@media (max-width: 980px) {
    .buy-box-wrapper { display: block !important; }
    .buy-box {
        position: static !important;
        margin-top: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
        border-top: 4px solid var(--brand-green);
    }
    .battery-grid { grid-template-columns: 1fr 1fr; }
    .sel-btn { padding: 14px 8px 10px; }
    .sel-main { font-size: 17px; }
}

/* ============================================================
   НОВИЙ ФУТЕР
   ============================================================ */
.site-footer {
    background: #000;
    color: #fff;
    padding: 60px 0 60px;
    margin-top: 60px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-logo span { color: var(--brand-green); }

.footer-descr {
    color: #999;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
    border-bottom: 1px solid transparent;
}
.footer-links a:hover {
    color: var(--brand-green);
    border-bottom-color: rgba(26, 111, 196, 0.3);
}

.footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #ccc;
}
.footer-contacts i {
    font-size: 20px;
    color: var(--brand-green);
    margin-top: 2px;
}
.footer-contacts a {
    color: inherit;
    text-decoration: none;
}
.footer-contacts a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 13px;
}

@media (max-width: 980px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 40px 0 130px; /* Достатньо місця для mobile-sticky-bar */
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-col h4 {
        margin-bottom: 16px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
