/* --- ЗАГАЛЬНІ СЕКЦІЇ --- */
.home-section {
    margin-bottom: 60px;
}

/* --- 1. БАНЕР (Адаптивний під розмір відео) --- */
.hero-banner-section {
    margin: 100px auto 40px;
    width: 100%;
    max-width: 1600px;
}

.hero-banner-wrap {
    width: 100%;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    line-height: 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-video-bg {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Відео видно повністю без обрізки */
}

/* --- 2. ТОВАР ДНЯ (Горизонтальна картка) --- */
.daily-sale-section {
    margin-bottom: 60px;
}

.sale-card-horizontal {
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.sale-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    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: 20px; /* Простір між назвою, ціною та кнопкою */
}

.sale-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
}

.sale-price-block {
    display: flex;
    flex-direction: column;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.new-price {
    font-size: 2.8rem;
    color: var(--accent);
    font-weight: 900;
}

.sale-timer {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(249, 115, 22, 0.1);
    padding: 10px 20px;
    border-radius: 12px;
    display: inline-block;
    width: fit-content;
}

/* СТИЛЬНА КНОПКА ПРИДБАТИ (ВИПРАВЛЕНО) */
.btn-accent {
    background: var(--accent);
    color: white !important;
    padding: 18px 35px; /* Більше відступів для об'єму */
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-accent:hover {
    transform: translateY(-3px);
    background: var(--accent-hover);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
}

/* --- 3. КАТЕГОРІЇ --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.category-card {
    padding: 30px 15px;
    text-align: center;
    text-decoration: none !important;
    color: var(--text-main) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.category-icon {
    width: 45px;
    height: 45px;
    color: var(--accent);
    margin-bottom: 12px;
}

.category-card:hover {
    border-color: var(--accent);
    background: rgba(249, 115, 22, 0.05);
    transform: translateY(-5px);
}

/* --- 4. ТОВАРИ --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.view-all-btn {
    color: var(--accent) !important;
    font-weight: 700;
    text-decoration: none !important;
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    transition: var(--transition);
}

.view-all-btn:hover {
    border-color: var(--accent);
    background: rgba(249, 115, 22, 0.1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    padding: 15px;
}

.product-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    overflow: hidden;
    background: #111;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-name {
    font-weight: 600;
    color: var(--text-main) !important;
    text-decoration: none !important;
    display: block;
    margin: 15px 0 10px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
}

/* --- МОБІЛЬНА АДАПТАЦІЯ --- */
@media (max-width: 992px) {
    .sale-content-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .sale-details {
        align-items: center;
    }
}

@media (max-width: 600px) {
    .hero-banner-section { margin-top: 80px; }
    .new-price { font-size: 2rem; }
    .sale-timer { font-size: 1.6rem; }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .btn-accent {
        width: 100%;
    }
}
