/**
 * LebanonStocks - Homepage Styles
 * 
 * Extracted from: templates/index.html
 * Date: March 17, 2026
 */

/* Main Homepage Styles */
        :root {
            --primary-color: #007bff;
            --secondary-color: #007bff;
            --accent-color: #8bc34a;
            --text-color: #333;
            --light-bg: #f8f9fa;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        /* Contact Bar */
        .contact-bar {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 10px 0;
            font-size: 0.9rem;
        }

        .contact-bar i {
            color: var(--accent-color);
        }

        /* Navigation */
        .navbar {
            background: white !important;
            box-shadow: 0 2px 20px rgba(0,0,0,0.1);
            padding: 1rem 0;
        }

        .navbar-brand {
            font-weight: 700;
            font-size: 1.5rem;
            color: var(--primary-color) !important;
        }

        .navbar-nav .nav-link {
            color: var(--text-color) !important;
            font-weight: 500;
            margin: 0 0.5rem;
            transition: all 0.3s ease;
        }

        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link.active {
            color: var(--primary-color) !important;
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            padding: 100px 0;
            text-align: center;
        }

        .hero h1 {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
        }

        .hero .lead {
            font-size: 1.3rem;
            margin-bottom: 2rem;
        }

        .btn-light {
            background: white;
            color: var(--primary-color);
            border: 2px solid white;
            font-weight: 600;
        }

        .btn-outline-light {
            border: 2px solid white;
            font-weight: 600;
        }

        /* Section Titles */
        .section-title {
            text-align: center;
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 3rem;
            position: relative;
        }

        .section-title::after {
            content: '';
            display: block;
            width: 60px;
            height: 3px;
            background: var(--accent-color);
            margin: 1rem auto;
        }

        /* Categories */
        .category-card {
            transition: all 0.3s ease;
            cursor: pointer;
            border: 1px solid #e9ecef;
            background: white;
            border-radius: 15px;
            height: 100%;
        }

        .category-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1) !important;
            border-color: #007bff;
        }

        .category-card .card-body {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 140px;
            padding: 1.5rem;
        }

        .category-icon {
            height: 48px;
            width: 48px;
            object-fit: contain;
            border-radius: 8px;
            margin-bottom: 1rem;
            background: #fff;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .category-card i {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .category-card .card-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            text-align: center;
            color: var(--text-color);
        }

        .category-card .product-count {
            font-size: 0.85rem;
            color: #6c757d;
            text-align: center;
        }

        .category-card .product-count i {
            color: #6c757d;
            font-size: 0.85rem !important;
            margin-bottom: 0 !important;
        }

        /* Clickable category cards styling */
        a .card:hover h5 {
            color: var(--primary-color) !important;
        }

        a .card {
            transition: all 0.3s ease;
        }

        /* Products */
        .product-card {
            border: none;
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.3s ease;
            height: 100%;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        }

        .product-card img {
            height: 250px;
            object-fit: cover;
            width: 100%;
        }

        .badge-category {
            position: absolute;
            top: 15px;
            left: 15px;
            background: var(--accent-color);
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .price {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--primary-color);
        }

        .btn-whatsapp {
            background: #25d366;
            color: white;
            border: none;
        }

        .btn-whatsapp:hover {
            background: #1da851;
            color: white;
        }

        .btn-details {
            background: var(--primary-color);
            color: white;
            border: none;
        }

        .btn-details:hover {
            background: var(--secondary-color);
            color: white;
        }

        /* Carousel Controls Styling */
        .product-card .carousel-control-prev,
        .product-card .carousel-control-next {
            width: 30px;
            height: 30px;
            background: rgba(0,0,0,0.5);
            border-radius: 50%;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0;
            transition: all 0.3s ease;
        }

        .product-card:hover .carousel-control-prev,
        .product-card:hover .carousel-control-next {
            opacity: 1;
        }

        .product-card .carousel-control-prev {
            left: 10px;
        }

        .product-card .carousel-control-next {
            right: 10px;
        }

        .product-card .carousel-control-prev-icon,
        .product-card .carousel-control-next-icon {
            background-size: 50%;
        }

        .product-card .carousel-indicators {
            bottom: 10px;
            margin: 0;
        }

        .product-card .carousel-indicators button {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            margin: 0 3px;
            background: rgba(255,255,255,0.7);
            border: none;
            opacity: 0.7;
        }

        .product-card .carousel-indicators button.active {
            background: white;
            opacity: 1;
        }

        /* Price Section Styling */
        .price-section {
            border-top: 1px solid #eee;
            padding-top: 1rem;
        }

        /* Featured Product */
        .featured-product {
            background: white;
            border-radius: 20px;
            padding: 2rem;
            margin: 3rem 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        /* Stats */
        .stats-counter {
            background: var(--light-bg);
            padding: 60px 0;
        }

        .stat-number {
            font-size: 3rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }

        .stat-number + div {
            font-size: 1.1rem;
            color: #666;
            font-weight: 500;
        }

        /* Footer */
        .footer {
            background: var(--primary-color);
            color: white;
            padding: 50px 0 20px;
        }

        .footer h4 {
            color: var(--accent-color);
            margin-bottom: 1.5rem;
        }

        .social-icons a {
            display: inline-block;
            width: 40px;
            height: 40px;
            background: var(--accent-color);
            color: white;
            text-align: center;
            line-height: 40px;
            border-radius: 50%;
            margin-right: 10px;
            transition: all 0.3s ease;
        }

        .social-icons a:hover {
            background: white;
            color: var(--primary-color);
        }

        .map-container {
            border-radius: 10px;
            overflow: hidden;
            height: 200px;
        }

        .map-container iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        .copyright {
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 20px;
            margin-top: 30px;
            color: rgba(255,255,255,0.8);
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2.5rem;
            }

            .hero .lead {
                font-size: 1.1rem;
            }

            .section-title {
                font-size: 2rem;
            }

            .category-card {
                margin-bottom: 1rem;
            }

            .stat-number {
                font-size: 2rem;
            }
        }

        .loading-spinner {
            display: none;
            text-align: center;
            padding: 2rem;
        }

        .no-products {
            text-align: center;
            padding: 3rem;
            color: #666;
        }

/* ========================== */
/* Additional Homepage Styles */
/* ========================== */
    .sticky-whatsapp-btn {
        position: fixed;
        bottom: 32px;
        right: 32px;
        z-index: 9999;
        background: #25d366;
        color: #fff;
        border-radius: 32px;
        box-shadow: 0 4px 16px rgba(44,85,48,0.12);
        padding: 12px 24px 12px 18px;
        display: flex;
        align-items: center;
        font-size: 1.2rem;
        font-weight: 600;
        text-decoration: none;
        transition: box-shadow 0.2s, background 0.2s;
    }
    .sticky-whatsapp-btn:hover {
        background: #128c7e;
        box-shadow: 0 8px 32px rgba(44,85,48,0.18);
        color: #fff;
    }
    .sticky-whatsapp-btn i {
        font-size: 1.6rem;
        margin-right: 10px;
    }
    .sticky-whatsapp-label {
        font-size: 1rem;
        font-weight: 500;
        letter-spacing: 0.5px;
    }
    @media (max-width: 600px) {
        .sticky-whatsapp-btn {
            right: 16px;
            bottom: 16px;
            padding: 10px 16px 10px 12px;
            font-size: 1rem;
        }
        .sticky-whatsapp-btn i {
            font-size: 1.2rem;
            margin-right: 8px;
        }
        .sticky-whatsapp-label {
            font-size: 0.95rem;
        }
    }
