/* --- 1. СЛАЙДЕР БАНЕРІВ (АДАПТИВНИЙ) --- */
.hero-banner-section {
    margin: 40px auto 40px; 
    width: 100%;
    max-width: 1600px;
}

#heroSlider.hero-banner-wrap {
    width: 100%;
    display: grid;
    position: relative;
    overflow: hidden; 
    border-radius: 24px;
    margin-bottom: 40px;
    background: transparent; /* Ніякого чорного фону */
    border: none; /* Прибираємо рамку, щоб не було порожніх ліній */
    box-shadow: none; /* Прибираємо тінь, яка створювала ефект "чорного ящика" */
    /* min-height ВИДАЛЕНО назавжди, контейнер стискається разом з банером */
}

.hero-slide {
    grid-area: 1 / 1;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.hero-video-bg {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* --- ЗАГАЛЬНІ СЕКЦІЇ --- */
.home-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff; 
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.emoji { font-size: 1.6rem; }

.view-all-btn {
    color: var(--accent, #f97316) !important;
    font-weight: 700;
    text-decoration: none !important;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    transition: 0.3s;
}

.view-all-btn:hover {
    border-color: var(--accent, #f97316);
    background: rgba(249, 115, 22, 0.1);
}

/* --- 2. ТОВАР ДНЯ --- */
.daily-sale-section {
    margin-bottom: 60px;
}

.sale-card-horizontal {
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sale-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent, #f97316);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 10;
}

.sale-content-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.sale-image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.sale-image img {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 15px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.sale-details {
    display: flex;
    flex-direction: column;
    gap: 10px; 
}

.sale-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 10px;
    margin-top: 0;
}

.sale-price-block-large {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 15px;
}

.old-price-large {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.4rem;
}

.new-price-large {
    font-size: 3rem;
    font-weight: 900;
}

.sale-timer {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent, #f97316);
    background: rgba(249, 115, 22, 0.1);
    padding: 10px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    width: fit-content;
}

.btn-accent-large {
    background: var(--accent, #f97316);
    color: white !important;
    padding: 20px 40px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    width: fit-content;
}

.btn-accent-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

/* --- 3. СІТКА ТА КАРТКИ ТОВАРІВ --- */
.rz-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
    gap: 20px; 
}

.product-card-rz {
    position: relative; 
    padding: 15px; 
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex; 
    flex-direction: column; 
    transition: 0.3s;
}

.product-card-rz:hover { 
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); 
    border-color: rgba(255,255,255,0.15); 
    transform: translateY(-3px); 
}

/* Бейджі */
.rz-badges { 
    position: absolute; 
    top: 12px; 
    left: 12px; 
    display: flex; 
    flex-direction: row; 
    flex-wrap: wrap; 
    gap: 6px; 
    z-index: 10; 
    pointer-events: none; 
}

.rz-badges .badge { 
    position: static !important; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px; 
    margin: 0 !important;
    border-radius: 6px; 
    font-size: 0.75rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    line-height: 1;
    white-space: nowrap;
}

.rz-badges .badge-yellow { background: #ffa900; color: #000 !important; }
.rz-badges .badge-red { background: #f84147; color: #fff !important; }

/* Кнопки дій зверху праворуч */
.rz-actions-top-right {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.rz-action-btn {
    background: rgba(0, 0, 0, 0.3); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255,255,255,0.5); 
    cursor: pointer; 
    transition: 0.2s;
    backdrop-filter: blur(4px);
}

.rz-action-btn:hover { 
    background: rgba(255, 255, 255, 0.1);
    color: #fff; 
}

.rz-action-btn.is-active { 
    fill: var(--accent, #f97316); 
    color: var(--accent, #f97316); 
    border-color: var(--accent, #f97316);
}
.rz-favorite-btn.is-active { fill: #f84147; color: #f84147; border-color: #f84147; }

/* Зображення та текст */
.rz-image-wrap { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 180px; 
    margin-bottom: 15px; 
    margin-top: 10px; 
}
.rz-image-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }

.rz-title {
    font-size: 0.95rem; 
    color: #fff; 
    text-decoration: none; 
    line-height: 1.4;
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden;
    word-break: break-word; 
    height: 2.8em; 
    margin-bottom: 8px; 
    transition: 0.2s;
}
.rz-title:hover { color: var(--accent, #f97316); }
.rz-rating { color: #ffa900; font-size: 0.9rem; margin-bottom: 10px; }

/* Блок ціни, статусу та кошика */
.rz-price-cart-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    margin-bottom: 10px; 
    margin-top: auto; 
}
.rz-price-block { display: flex; flex-direction: column; }
.rz-old-price { color: rgba(255, 255, 255, 0.4); font-size: 0.9rem; text-decoration: line-through; margin-bottom: 2px; }
.rz-current-price { font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.rz-current-price.red-price { color: #f84147; }

.rz-stock-status { font-size: 0.85rem; color: #10b981; font-weight: 500; }
.rz-stock-status.out-of-stock { color: rgba(255, 255, 255, 0.4); }

/* Кнопка кошика */
.rz-cart-btn {
    background: var(--accent, #f97316); 
    border: none; 
    border-radius: 12px; 
    width: 44px; 
    height: 44px;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    color: white;
    cursor: pointer; 
    transition: 0.2s;
}
.rz-cart-btn:hover { background: #ea580c; transform: scale(1.05); }

/* Пагінація */
.catalog-pagination { display: flex; justify-content: center; margin-top: 40px; margin-bottom: 20px;}
.btn-load-more {
    background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 40px; border-radius: 12px; font-weight: 600; cursor: pointer; transition: 0.2s;
}
.btn-load-more:hover { background: rgba(255,255,255,0.1); border-color: var(--accent, #f97316); color: var(--accent, #f97316); }

/* --- МОБІЛЬНА АДАПТАЦІЯ --- */
@media (max-width: 992px) {
    .sale-content-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .sale-details {
        align-items: center;
    }
    .btn-accent-large {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .hero-banner-section { margin-top: 60px; margin-bottom: 20px; }
    #heroSlider.hero-banner-wrap {
        border-radius: 12px;
        margin-bottom: 0;
    }
    .section-header { flex-direction: column; gap: 10px; align-items: flex-start; }
    
    .rz-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card-rz { padding: 12px; }
    .rz-image-wrap { height: 130px; }
    .rz-current-price { font-size: 1.3rem; }
    .rz-cart-btn { width: 36px; height: 36px; border-radius: 8px;}
    .rz-title { font-size: 0.85rem; }
    
    .new-price-large { font-size: 2rem; }
    .sale-timer { font-size: 1.6rem; }
    .sale-card-horizontal { padding: 20px; }
    .rz-action-btn { width: 30px; height: 30px; }
    .rz-action-btn svg { width: 16px; height: 16px; }
}