/**
 * Page Home CSS - Electro Theme
 * Dual Slider: Main (product + text) + Offer Products
 */

/* =====================
   Hero Slider Section - Uses advanced --hero-bg variable
   ===================== */
.hero-slider-section {
    background: var(--hero-bg, var(--secondary-color, #1a1a2e));
}

.hero-slider-main {
    position: relative;
    height: 480px;
    overflow: hidden;
}

/* Slide Content */
.slide-content {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-bg-blur {
    filter: blur(5px);
    transform: scale(1.05);
}

.slide-bg-blur::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.slide-default {
    background: var(--bg-light, #f8f9fa);
}

.slide-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 0;
}

/* Product Image in Slide */
.slide-product-image {
    text-align: center;
}

.slide-product-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Text Content */
.slide-text-content {
    padding: 20px;
}

.slide-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 15px;
}

.slide-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.2;
}

.slide-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
}

.slide-btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--primary-color, #f60);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.slide-btn:hover {
    background: var(--primary-color-dark, #e55a00);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 102, 0, 0.4);
}

/* Slider Navigation */
.slider-nav-container {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-nav-btn {
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav-btn:hover {
    background: var(--primary-color, #f60);
    border-color: var(--primary-color, #f60);
    color: white;
}

/* =====================
   Hero Sidebar - Offer Products
   ===================== */
.hero-sidebar {
    height: 480px;
    background: var(--dark-color, #1a1a2e);
    position: relative;
    overflow: hidden;
}

.hero-sidebar .carousel,
.hero-sidebar .carousel-inner,
.hero-sidebar .carousel-item {
    height: 100%;
}

/* Offer Product Card */
.offer-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    text-align: center;
    color: white;
}

/* Badges */
.offer-badges {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.badge-save {
    background: var(--primary-color, #f60);
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-special {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-color, #f60);
}

/* Product Image */
.offer-product-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.offer-product-image img {
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

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

/* Product Info */
.offer-product-info {
    padding-top: 10px;
}

.offer-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--primary-color, #f60);
    margin-bottom: 10px;
}

.offer-product-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-product-name a {
    color: white;
    text-decoration: none;
}

.offer-product-name a:hover {
    color: var(--primary-color, #f60);
}

/* Prices */
.offer-prices {
    margin-bottom: 15px;
}

.price-old {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    margin-right: 10px;
}

.price-current {
    color: var(--primary-color, #f60);
    font-size: 1.3rem;
    font-weight: 700;
}

/* Add to Cart Button */
.offer-add-btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color, #f60);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.offer-add-btn:hover {
    background: var(--primary-color-dark, #ff8c00);
    color: white;
    transform: translateY(-2px);
}

/* Offer Slider Controls */
.offer-slider-controls {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 5;
}

.offer-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.offer-nav-btn:hover {
    background: var(--primary-color, #f60);
    border-color: var(--primary-color, #f60);
    color: white;
}

/* Sidebar Promo (when no products) */
.sidebar-promo {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    color: white;
}

.sidebar-promo i {
    color: var(--primary-color, #f60);
    margin-bottom: 15px;
}

.sidebar-promo h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.sidebar-promo p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

/* =====================
   Section Styles
   ===================== */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color, #f60);
}

/* =====================
   Category Cards - Uses advanced --categories-bg variable
   ===================== */
.category-card {
    background: var(--categories-bg, var(--bg-white, white));
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color, #f60);
}

.category-card h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.category-card span {
    font-size: 0.85rem;
    color: #999;
}

/* =====================
   Services Bar
   ===================== */
.services-bar .col-6,
.services-bar .col-md-3 {
    padding: 10px;
}

.services-bar h6 {
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.services-bar p {
    font-size: 0.75rem;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 1199px) {
    .slide-title {
        font-size: 2.2rem;
    }

    .slide-product-image img {
        max-height: 300px;
    }
}

@media (max-width: 991px) {

    .hero-slider-main,
    .slide-content,
    .hero-sidebar {
        height: 400px;
    }

    .slide-title {
        font-size: 1.8rem;
    }

    .slide-product-image img {
        max-height: 250px;
    }
}

@media (max-width: 767px) {

    .hero-slider-main,
    .slide-content {
        height: 320px;
    }

    .slide-title {
        font-size: 1.5rem;
    }

    .slide-subtitle {
        font-size: 0.75rem;
    }

    .slide-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .services-bar .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .services-bar .ms-4 {
        margin-left: 0 !important;
        margin-top: 10px;
    }

    .services-bar h6 {
        font-size: 0.8rem;
    }

    .services-bar p {
        display: none;
    }

    .slider-nav-container {
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 575px) {

    .hero-slider-main,
    .slide-content {
        height: 280px;
    }

    .slide-inner {
        padding: 20px 15px;
    }

    .slide-title {
        font-size: 1.3rem;
    }

    .category-card {
        padding: 20px 15px;
    }

    .category-card i {
        font-size: 1.8rem;
    }

    .category-card h5 {
        font-size: 0.9rem;
    }

    .slider-nav-btn {
        width: 38px;
        height: 38px;
    }
}