/* MEDIA PHONE Custom Styles */

/* General Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

a {
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #c41e3a;
    border-color: #c41e3a;
}

.btn-primary:hover {
    background-color: #a01829;
    border-color: #8b1523;
}

/* Header & Navigation */
.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.navbar-brand {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

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

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 15px;
}

.product-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.brand {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
}

.specs {
    margin-bottom: 10px;
}

.spec {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
}

.price {
    margin-bottom: 10px;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 14px;
    margin-right: 5px;
}

.current-price {
    font-weight: bold;
    font-size: 18px;
    color: #212529;
}

.availability {
    font-size: 14px;
    margin-bottom: 15px;
}

.availability.en_stock {
    color: #28a745;
}

.availability.en_arrivage {
    color: #ffc107;
}

.availability.epuise {
    color: #dc3545;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Categories Section */
.categories {
    padding: 40px 0;
}

.category-card {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-card:hover {
    background: #e9ecef;
    transform: translateY(-5px);
}

.category-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

/* Footer */
footer {
    background-color: #212529;
}

footer h5 {
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

footer h5:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: #c41e3a;
}

/* Filter Sidebar */
.filter-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

/* Contact Page */
.map-container {
    height: 400px;
    margin-bottom: 30px;
}

.contact-info i {
    width: 25px;
    color: #c41e3a;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 250px;
    z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .product-image {
        height: 150px;
    }
    
    /* Better button sizing on tablet */
    .btn-sm {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .d-flex.flex-column.gap-2 {
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Optimize buttons for touch on mobile */
    .btn {
        min-height: 38px;
    }
    
    .btn-sm {
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
        min-height: 36px;
    }
    
    /* Stack buttons vertically */
    .d-flex.flex-column.gap-2 {
        gap: 0.5rem;
    }
    
    .d-flex.flex-column.gap-2 .btn {
        width: 100%;
    }
    
    /* Product card optimizations */
    .product-info {
        padding: 10px;
    }
    
    .product-info h4 {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .current-price {
        font-size: 16px;
    }
    
    /* Normal section padding */
    section {
        padding: 2rem 0;
    }
    
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}
