﻿/* ====== سلايدر ====== */
.slider-section .slide-inner {
    position: relative;
    width: 100%;
    height: 230px;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
    transition: .3s ease-in-out;
}

.slider-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease-in-out;
}

.slider-section .slide-inner:hover img {
    transform: scale(1.05);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
    color: #fff;
}

    .slide-caption h2 {
        font-size: 1.1rem;
        margin: 0 0 4px;
        font-weight: 600;
    }

/* ====== بطاقات المنتجات ====== */
.product-card {
    transition: .3s ease-in-out;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

    .product-card img {
        height: 220px;
        object-fit: contain;
    }

/* ====== الإعلانات ====== */
.ad-section {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.ad-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff9800;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
}

.ad-section img.ad-image {
    width: 100%;
    object-fit: cover;
    height: 220px;
}

/* ====== استجابة ====== */
@media (max-width: 576px) {
    .slider-section .slide-inner {
        height: 170px;
    }

    .slide-caption h2 {
        font-size: .9rem;
    }
}

@media (min-width: 768px) {
    .ad-section img.ad-image {
        height: 320px;
    }
}

@media (min-width: 1200px) {
    .ad-section img.ad-image {
        height: 420px;
    }
}
