/* --- ФІЛЬТРИ --- */
.filters-section {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 10px 20px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
}
.filters-section::-webkit-scrollbar { display: none; }

.filter-btn {
    background: var(--white);
    border: 1px solid #e1e4e8;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    margin-right: 8px;
    transition: 0.2s;
}
.filter-btn.active {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

/* --- СІТКА ТОВАРІВ --- */
.catalog {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

/* --- КАРТКА ТОВАРУ (<a>) --- */
a.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent; /* Прибирає синє виділення на Android */
}

a.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* ПЛАШКА (Hit/Top) */
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff3b30;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

/* ЗОБРАЖЕННЯ */
.card-img-wrap {
    height: 240px;
    background: #f8f9fa;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

/* ОПИС КАРТКИ */
.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 6px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--dark);
    line-height: 1.4;
}

.card-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ФУТЕР КАРТКИ (ЦІНА + КНОПКА) */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: auto;
}

.price-box {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.price-old {
    font-size: 12px;
    text-decoration: line-through;
    color: #999;
    font-weight: 500;
}

.price-current {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
}

.price-current span {
    font-size: 14px;
    font-weight: 600;
}

.btn-fake {
    background: var(--dark);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

a.card:hover .btn-fake {
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

/* --- МОБІЛЬНА АДАПТАЦІЯ (MEDIA QUERIES) --- */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card-img-wrap { height: 160px; }
    .card-body { padding: 12px; }
    .card-title { font-size: 14px; height: 40px; overflow: hidden; }
    .card-desc { display: none; }
    .card-footer { padding-top: 10px; }
    .btn-fake { padding: 8px 16px; font-size: 12px; }
    .price-current { font-size: 16px; }
    .price-old { font-size: 11px; }
}
/* --- ФУТЕР --- */
footer {
    background-color: #111; /* Майже чорний */
    color: #777;
    padding: 50px 0 30px;
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Блок з логотипами доставки */
.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Щоб на мобільному переносились */
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.trust-icon {
    height: 40px; /* Розмір логотипів */
    width: auto;
    filter: grayscale(100%) opacity(0.5); /* Робимо сірими */
    transition: 0.3s;
}

.trust-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* При наведенні логотипи "оживають" */
.trust-item:hover .trust-icon {
    filter: grayscale(0%) opacity(1);
}

.trust-item:hover .trust-text {
    color: #fff;
}

/* Посилання на документи */
.legal-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.legal-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    border-bottom: 1px solid transparent;
}

.legal-links a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.copyright {
    font-size: 12px;
    color: #444;
}