/* ==========================================================================
   vidguky.com.ua - Сучасна дизайн-система платформи відгуків України
   ========================================================================== */

:root {
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;

    /* Колірна палітра Дія (Diia Design System) */
    --color-primary: #0A0D14;
    --color-primary-hover: #1F2937;
    --color-primary-light: #EAE6FF;
    --color-primary-dark: #000000;

    --color-accent-gold: #F59E0B;
    --color-accent-amber: #D97706;
    --color-accent-yellow: #FBBF24;

    --color-success: #059669;
    --color-success-bg: #D8F5E9;
    --color-success-border: #A7F3D0;

    --color-danger: #EF4444;
    --color-danger-bg: #FEF2F2;
    --color-danger-border: #FECACA;

    --color-text-main: #0A0D14;
    --color-text-muted: #64748B;
    --color-text-subtle: #94A3B8;

    --color-bg-body: #F4F5F8;
    --color-bg-card: #FFFFFF;
    --color-bg-card-hover: #FFFFFF;
    --color-bg-subtle: #ECEEF2;
    --color-border: #E5E7EB;
    --color-border-focus: #0A0D14;

    /* Тіні у стилі Дія */
    --shadow-sm: 0 2px 8px 0 rgba(10, 13, 20, 0.03);
    --shadow-md: 0 6px 16px -2px rgba(10, 13, 20, 0.04);
    --shadow-lg: 0 12px 32px -4px rgba(10, 13, 20, 0.06);
    --shadow-xl: 0 24px 48px -12px rgba(10, 13, 20, 0.10);
    --shadow-card-hover: 0 16px 36px -4px rgba(10, 13, 20, 0.08), 0 4px 12px -2px rgba(10, 13, 20, 0.04);

    /* Радіуси Дія */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Анімації */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Базові стилі */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-sans);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    line-height: 1.5;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

/* Контейнер */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ==========================================================================
   Шапка (Navbar)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition-normal);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-badge {
    background: #0A0D14;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(10, 13, 20, 0.16);
    position: relative;
    overflow: hidden;
}

.logo-badge::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #00C49F;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--color-text-main);
    line-height: 1.1;
}

.logo-title span {
    color: #0A0D14;
}

.logo-subtitle {
    font-size: 0.725rem;
    color: var(--color-text-muted);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Меню розділів сайту в шапці (Дія стиль) */
.header-sections-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.header-nav-item:hover {
    background-color: #EAECEF;
    color: #0A0D14;
}

.header-nav-item.active {
    background-color: #0A0D14;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(10, 13, 20, 0.15);
}

.nav-item-icon {
    font-size: 1rem;
    line-height: 1;
}

/* Пошук у шапці */
.header-search {
    flex: 1;
    max-width: 460px;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper svg {
    position: absolute;
    left: 14px;
    color: var(--color-text-subtle);
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 42px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-subtle);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Випадаючий список пошуку (Autocomplete у стилі Дія) */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    max-height: 440px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    padding: 8px;
}

.search-dropdown.active {
    display: block;
    animation: fadeIn 150ms ease;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-fast);
}

.search-result-item:hover {
    background-color: var(--color-bg-subtle);
}

.search-result-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #f1f5f9;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Групування у випадаючому списку автокомпліту */
.search-dropdown-group-title {
    padding: 8px 14px 6px 14px;
    background: #f8fafc;
    font-size: 0.725rem;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-border-subtle);
    border-top: 1px solid var(--color-border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-dropdown-group-title:first-child {
    border-top: none;
}

.search-dropdown-group-count {
    font-size: 0.7rem;
    background: #e2e8f0;
    color: #475569;
    padding: 1px 6px;
    border-radius: 999px;
    font-weight: 700;
}

/* Секції груп на сторінці пошуку */
.search-group-section {
    margin-bottom: 3.5rem;
    scroll-margin-top: 2rem;
}

.search-group-header-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.search-group-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.search-group-icon {
    font-size: 1.85rem;
    line-height: 1;
}

.search-group-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin: 0;
}

.search-group-count-badge {
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 3px 10px;
    border-radius: 999px;
}

.search-group-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.search-group-filter-link {
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.search-group-filter-link:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
}

/* Навігаційні кнопки шапки */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--color-text-main);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: var(--color-primary);
    background-color: var(--color-primary-light);
}

.btn-add-review-nav {
    background: #0A0D14;
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(10, 13, 20, 0.15);
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.btn-add-review-nav:hover {
    background: #1F2937;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(10, 13, 20, 0.22);
}

/* Мобільне меню */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--color-text-main);
}

/* ==========================================================================
   Hero Секція Головної Сторінки
   ========================================================================== */
.hero-section {
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.06) 0%, rgba(248, 250, 252, 0) 60%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.05) 0%, rgba(248, 250, 252, 0) 50%);
    padding: 4rem 0 3.5rem;
    border-bottom: 1px solid var(--color-border);
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #bfdbfe;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

.hero-pill-badge {
    background: #2563eb;
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.725rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.hero-title-accent {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 680px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Великий пошуковий блок в Hero */
.hero-search-box {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-full);
    padding: 6px 8px 6px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    transition: all var(--transition-fast);
    max-width: 640px;
    margin: 0 auto 2rem;
}

.hero-search-box:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 12px 30px -5px rgba(37, 99, 235, 0.2);
}

.hero-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.05rem;
    outline: none;
    padding: 8px 12px;
}

.hero-search-btn {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.hero-search-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    transform: scale(1.02);
}

/* Картки трьох головних розділів у Hero */
.hero-sections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 960px;
    margin: 2.25rem auto 0;
    text-align: left;
}

.hero-section-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.15rem 1.25rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.hero-section-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.1);
    border-color: var(--color-primary);
}

.hero-section-card-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.hero-section-card-body {
    flex: 1;
    min-width: 0;
}

.hero-section-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1.2;
}

.hero-section-card-desc {
    font-size: 0.775rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin-top: 3px;
}

.hero-section-card-arrow {
    color: var(--color-primary);
    font-weight: 800;
    font-size: 1.2rem;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.hero-section-card:hover .hero-section-card-arrow {
    transform: translateX(4px);
}

@media (max-width: 860px) {
    .hero-sections-grid {
        grid-template-columns: 1fr;
    }
}

/* Статистика Hero */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1rem;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 0.825rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ==========================================================================
   Секції сайту & Заголовки
   ========================================================================== */
.section-py {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: gap var(--transition-fast);
}

.section-link:hover {
    gap: 10px;
}

/* ==========================================================================
   Категорії (Сітка карток)
   ========================================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}

.category-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    border-color: #93c5fd;
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.category-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform var(--transition-bounce);
}

.category-card:hover .category-icon-wrapper {
    transform: scale(1.1);
    background: #dbeafe;
}

.category-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.25rem;
}

.category-count {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Товари (Картки товарів)
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
    border-color: #cbd5e1;
}

.product-thumb-link {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 70%;
    background: #fff;
    overflow: hidden;
}

.product-thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.product-card:hover .product-thumb-img {
    transform: scale(1.05);
}

.product-badge-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 0.725rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.product-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text-main);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7em;
}

.product-card-title a:hover {
    color: var(--color-primary);
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef3c7;
    color: #92400e;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.rating-count {
    font-size: 0.825rem;
    color: var(--color-text-muted);
}

.product-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price-label {
    font-size: 0.725rem;
    color: var(--color-text-muted);
}

.product-price-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text-main);
}

.product-stores-badge {
    font-size: 0.75rem;
    color: #0369a1;
    background: #e0f2fe;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

/* ==========================================================================
   Відгуки (Стрічка відгуків & Картки)
   ========================================================================== */
.reviews-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.review-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: flex-start;
    transition: all var(--transition-fast);
}

.review-card:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

.review-card-sidebar {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--color-border);
    padding-right: 1.5rem;
}

.review-subject-header {
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--color-border);
}

.review-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
}

.author-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-city {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--color-success-bg);
    color: #065f46;
    border: 1px solid var(--color-success-border);
    font-size: 0.725rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--color-text-subtle);
}

.review-store-badge {
    font-size: 0.75rem;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 2px 8px;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.review-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.review-pros-cons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0.875rem;
}

.pros-box,
.cons-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.875rem;
    line-height: 1.45;
    padding: 8px 12px;
    border-radius: var(--radius-md);
}

.pros-box {
    background-color: var(--color-success-bg);
    color: #065f46;
    border-left: 3px solid var(--color-success);
}

.cons-box {
    background-color: var(--color-danger-bg);
    color: #991b1b;
    border-left: 3px solid var(--color-danger);
}

.pros-icon,
.cons-icon {
    font-weight: 800;
    font-size: 1rem;
}

.review-comment {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 0.85rem;
}

.review-customer-photos {
    margin: 0.85rem 0 1.25rem 0;
    padding: 0.75rem 1rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
}

.review-photos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.review-photo-item {
    width: 76px;
    height: 76px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    display: block;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    background: #fff;
}

.review-photo-item:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary);
}

.review-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-footer {
    margin-top: auto;
    padding-top: 0.875rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-usage-tag {
    font-size: 0.775rem;
    color: var(--color-text-muted);
}

/* Кнопки корисності відгуку */
.review-voting {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vote-label {
    font-size: 0.775rem;
    color: var(--color-text-muted);
}

.vote-btn {
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 4px 10px;
    font-size: 0.775rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.vote-btn:hover {
    background: #e2e8f0;
}

.vote-btn.active-yes {
    background: var(--color-success-bg);
    color: #047857;
    border-color: var(--color-success-border);
}

.vote-btn.active-no {
    background: var(--color-danger-bg);
    color: #b91c1c;
    border-color: var(--color-danger-border);
}

/* ==========================================================================
   Магазини (Каталог магазинів України)
   ========================================================================== */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.store-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition-normal);
}

.store-card:hover {
    border-color: #93c5fd;
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.store-logo-wrapper {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.store-logo-img {
    max-height: 48px;
    max-width: 140px;
    object-fit: contain;
}

.store-card-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.35rem;
}

.store-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.75rem;
}

.store-card-desc {
    font-size: 0.825rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.store-card-btn {
    width: 100%;
    padding: 8px 16px;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-main);
    transition: all var(--transition-fast);
    text-align: center;
}

.store-card:hover .store-card-btn {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ==========================================================================
   Сторінка товару (Product Detail)
   ========================================================================== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.825rem;
    color: var(--color-text-muted);
    padding: 1.25rem 0;
    flex-wrap: wrap;
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.product-gallery {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    max-height: 480px;
}

.product-main-img {
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.product-gallery:hover .product-main-img {
    transform: scale(1.03);
}

.product-info-col {
    display: flex;
    flex-direction: column;
}

.product-brand-tag {
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.product-page-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text-main);
    margin-bottom: 1rem;
}

.product-rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.product-price-range-box {
    background: var(--color-primary-light);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-range-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.price-range-num {
    font-size: 1.65rem;
    font-weight: 800;
    color: #1e3a8a;
}

.product-actions-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-open-review-modal {
    flex: 1;
    background: #0A0D14;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 14px rgba(10, 13, 20, 0.15);
}

.btn-open-review-modal:hover {
    background: #1F2937;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(10, 13, 20, 0.22);
}

/* Таблиця характеристик */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.specs-table tr {
    border-bottom: 1px solid var(--color-border);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 10px 0;
}

.specs-label {
    color: var(--color-text-muted);
    width: 40%;
    font-weight: 500;
}

.specs-value {
    color: var(--color-text-main);
    font-weight: 600;
}

/* ==========================================================================
   Таблиця "Де купити" (Пропозиції магазинів)
   ========================================================================== */
.offers-section {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.offers-table {
    width: 100%;
    border-collapse: collapse;
}

.offers-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.775rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border);
    letter-spacing: 0.05em;
}

.offers-table td {
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.offers-table tr:last-child td {
    border-bottom: none;
}

.offer-store-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.offer-store-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    padding: 2px;
}

.offer-store-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text-main);
}

.offer-price-cell {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-main);
}

.offer-old-price {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: var(--color-text-subtle);
    font-weight: normal;
    display: block;
}

.offer-delivery-note {
    font-size: 0.825rem;
    color: var(--color-text-muted);
}

.btn-buy-store {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-primary);
    color: white;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-buy-store:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}

/* ==========================================================================
   Аналітика рейтингу (Гістограма оцінок)
   ========================================================================== */
.rating-breakdown-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
    align-items: center;
}

.rating-big-score {
    text-align: center;
    border-right: 1px solid var(--color-border);
    padding-right: 2rem;
}

.score-num {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-text-main);
    letter-spacing: -0.03em;
}

.score-stars {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}

.score-total-reviews {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.recommend-tag {
    margin-top: 0.75rem;
    background: var(--color-success-bg);
    color: #065f46;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    display: inline-block;
}

/* Смужки розподілу оцінок */
.bars-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.bar-row:hover {
    background-color: var(--color-bg-subtle);
}

.bar-star-label {
    width: 40px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bar-track {
    flex: 1;
    height: 8px;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--color-accent-gold);
    border-radius: var(--radius-full);
    transition: width 0.6s ease-out;
}

.bar-count {
    width: 45px;
    text-align: right;
    font-weight: 600;
}

/* Фільтри відгуків на сторінці товару */
.reviews-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-pills-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 6px 14px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.filter-pill:hover {
    background: var(--color-bg-subtle);
    color: var(--color-text-main);
}

.filter-pill.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ==========================================================================
   Модальне вікно (Додати відгук)
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-backdrop.open {
    display: flex;
    animation: fadeIn 200ms ease;
}

.modal-dialog {
    background: #fff;
    width: 100%;
    max-width: 620px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-main);
}

.modal-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-subtle);
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--color-text-main);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
}

/* Форма додавання відгуку */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 0.4rem;
}

.form-label span.req {
    color: var(--color-danger);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    background-color: #fff;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Інтерактивні зірочки форми */
.interactive-stars-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.interactive-star {
    font-size: 1.75rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 150ms ease, transform 150ms ease;
    user-select: none;
}

.interactive-star:hover {
    transform: scale(1.2);
}

.interactive-star.filled {
    color: var(--color-accent-gold);
}

.rating-text-hint {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-left: 8px;
}

.btn-submit-review {
    width: 100%;
    background: #0A0D14;
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(10, 13, 20, 0.15);
    transition: all var(--transition-fast);
}

.btn-submit-review:hover {
    background: #1F2937;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(10, 13, 20, 0.22);
}

/* ==========================================================================
   Сторінка Каталогу & Фільтри
   ========================================================================== */
.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
}

.catalog-sidebar {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: fit-content;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-group {
    margin-bottom: 1.5rem;
}

.sidebar-group-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-text-main);
    padding: 6px 10px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.filter-item a:hover {
    background: var(--color-bg-subtle);
    color: var(--color-primary);
}

.filter-item.active a {
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 700;
}

.catalog-header-bar {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.catalog-count-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.sort-select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.sort-select {
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
    font-size: 0.875rem;
}

/* ==========================================================================
   Футер (Footer)
   ========================================================================== */
.site-footer {
    margin-top: auto;
    background: #0f172a;
    color: #94a3b8;
    padding: 4rem 0 2rem;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand-title {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 340px;
    margin-bottom: 1.25rem;
}

.footer-heading {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.ua-flag-accent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
}

/* ==========================================================================
   Анімації та адаптивність
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header-search {
        display: none;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .rating-breakdown-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .rating-big-score {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding-right: 0;
        padding-bottom: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .phone-header-grid {
        grid-template-columns: 1fr !important;
    }

    .shop-header-grid {
        grid-template-columns: 1fr !important;
    }

    .review-card {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        padding: 1.25rem !important;
    }

    .review-card-sidebar {
        border-right: none !important;
        border-bottom: 1px solid var(--color-border) !important;
        padding-right: 0 !important;
        padding-bottom: 1rem !important;
    }
}

/* ==========================================================================
   СТИЛІ ДЛЯ 4 ОКРЕМИХ ШАБЛОНІВ КАРТОК У СІТЦІ ТА СИНХРОНІЗАЦІЇ ЦІН
   ========================================================================== */

/* 1. Загальні елементи карток */
.btn-card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.825rem;
    font-weight: 700;
    color: #0A0D14;
    background: #F4F5F8;
    border: 1px solid #E5E7EB;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-card-action:hover {
    background: #0A0D14;
    color: #fff;
    border-color: #0A0D14;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 13, 20, 0.15);
}

/* 2. Шаблон товару (card-type-product) */
.card-type-product .card-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 0.5rem;
}

.card-type-tag.tag-product {
    font-size: 0.725rem;
    font-weight: 700;
    color: #1d4ed8;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.card-shop-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-shop-link:hover {
    background: #d1fae5;
}

.product-card-pricing-block {
    margin-bottom: 0.75rem;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.product-store-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.store-price-val {
    font-weight: 800;
    color: #15803d;
    background: #dcfce7;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.product-reviews-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.reviews-price-val {
    font-weight: 800;
    color: var(--color-text-main);
    font-size: 0.9rem;
}

.no-price {
    font-size: 0.775rem;
    color: var(--color-text-subtle);
    font-weight: normal;
}

/* 3. Шаблон інтернет-магазину (card-type-shop) */
.card-type-shop {
    border-top: 3px solid #059669;
}

.shop-card-header {
    position: relative;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.5rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-border);
}

.shop-logo-container {
    width: 100px;
    height: 70px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease;
}

.shop-card-header:hover .shop-logo-container {
    transform: scale(1.05);
}

.shop-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.shop-type-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 2px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.shop-domain-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.825rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.shop-perks-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.shop-perk-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.725rem;
    font-weight: 600;
    color: #0369a1;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 3px 8px;
    border-radius: 6px;
}

.shop-action {
    width: 100%;
    justify-content: center;
    background: #ecfdf5;
    color: #065f46;
}

.shop-action:hover {
    background: #059669;
    color: #fff;
}

/* 4. Шаблон OLX Продавця (card-type-olx) */
.card-type-olx {
    border-top: 3px solid #0d9488;
}

.olx-card-top {
    padding: 1.25rem;
    background: #f0fdfa;
    border-bottom: 1px solid #ccfbf1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.olx-avatar-link {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #0d9488;
    display: block;
    box-shadow: 0 3px 8px rgba(13, 148, 136, 0.2);
    transition: transform 0.2s ease;
}

.olx-card-top:hover .olx-avatar-link {
    transform: scale(1.06);
}

.olx-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.olx-badge-pill {
    font-size: 0.725rem;
    font-weight: 800;
    color: #002f34;
    background: #ccfbf1;
    border: 1px solid #5eead4;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.olx-location-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.825rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.olx-delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f766e;
    background: #ccfbf1;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.olx-action {
    width: 100%;
    justify-content: center;
    background: #f0fdfa;
    color: #0f766e;
}

.olx-action:hover {
    background: #0d9488;
    color: #fff;
}

/* 5. Шаблон Instagram Продавця (card-type-instagram) */
.card-type-instagram {
    border-top: 3px solid #e1306c;
}

.instagram-card-top {
    padding: 1.25rem;
    background: linear-gradient(135deg, #fdf2f8 0%, #fff1f2 100%);
    border-bottom: 1px solid #fce7f3;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.instagram-avatar-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(225, 48, 108, 0.25);
    transition: transform 0.2s ease;
}

.instagram-card-top:hover .instagram-avatar-wrapper {
    transform: scale(1.06);
}

.instagram-avatar-link {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    background: #fff;
    padding: 2px;
}

.instagram-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.instagram-badge-pill {
    font-size: 0.725rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(45deg, #e1306c, #833ab4);
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(225, 48, 108, 0.25);
}

.instagram-handle-meta {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e1306c;
    margin-bottom: 0.75rem;
}

.instagram-perks-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.ig-perk-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.725rem;
    font-weight: 600;
    color: #9d174d;
    background: #fce7f3;
    padding: 3px 8px;
    border-radius: 6px;
}

.instagram-action {
    width: 100%;
    justify-content: center;
    background: #fdf2f8;
    color: #be185d;
}

.instagram-action:hover {
    background: #e1306c;
    color: #fff;
}

/* 6. Анімація кнопки оновлення цін */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.sync-icon {
    transition: transform 0.3s ease;
}

.btn-sync-price:hover .sync-icon {
    transform: rotate(180deg);
}