﻿
/* Base Mobile-First Styles */
:root {
    --primary-color: #13357B;
    --secondary-color: #E23A2E;
    --accent-color: #FFD700;
    --light-gray: #F8F9FA;
    --dark-gray: #343A40;
    --white: #FFFFFF;
    --black: #000000;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    overflow-x: hidden;
}

/* Product Card Styles */
.product-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 16px;
    background: var(--white);
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }

.product-image-container {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--secondary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
}

.reduced-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-left: 8px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding: 8px 0;
}

.action-btn {
    flex: 1;
    text-align: center;
    padding: 8px;
    color: var(--dark-gray);
    font-size: 0.8rem;
    transition: color 0.3s;
}

    .action-btn:hover {
        color: var(--primary-color);
    }

    .action-btn i {
        display: block;
        margin-bottom: 4px;
        font-size: 1.2rem;
    }

.btn-like.active i {
    color: var(--secondary-color) !important;
}

/* Carousel Styles */
.carousel-item {
    height: 60vh;
    min-height: 300px;
}

    .carousel-item img {
        height: 100%;
        object-fit: cover;
    }

.carousel-caption {
    bottom: 20%;
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    padding: 15px;
}

/* Section Headers */
.section-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-title {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial-item {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.profile-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

/* Responsive Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* About Section */
.about-section {
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('img/pattern.png');
    background-size: cover;
    padding: 2rem;
    border-radius: 12px;
}

/* Responsive Adjustments */
@media (min-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .carousel-caption {
        bottom: 30%;
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .carousel-item {
        height: 70vh;
    }

    .carousel-caption {
        bottom: 40%;
    }
}

@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .carousel-item {
        height: 80vh;
    }
}

/* Utility Classes */
.rounded-pill {
    border-radius: 50px !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: #0d2a5a;
        border-color: #0d2a5a;
    }

.text-primary {
    color: var(--primary-color) !important;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadein {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.products-carousel {
    padding: 10px 0;
}

    .products-carousel .owl-stage {
        display: flex;
        padding: 20px 0;
    }

    .products-carousel .product-card {
        margin: 0 10px;
        width: auto;
        min-width: 200px;
    }

.owl-nav-custom {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.owl-prev-custom,
.owl-next-custom {
    background: transparent !important;
    color: black !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.owl-prev-custom {
    margin-left: -20px;
}

.owl-next-custom {
    margin-right: -20px;
}

    .owl-prev-custom:hover,
    .owl-next-custom:hover {
        background: var(--secondary-color) !important;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .owl-prev-custom {
        margin-left: -10px;
    }

    .owl-next-custom {
        margin-right: -10px;
    }
}









.category-section {
    background-color: #fff;
    margin: 20px 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Style du carrousel */
.category-carousel {
    position: relative;
    padding: 0 30px; /* Espace pour les boutons de navigation */
}

.swiper-container {
    overflow: hidden;
    padding: 15px 0; /* Espacement vertical */
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    flex-shrink: 0;
    width: auto;
    padding: 0 8px;
}

/* Style des éléments de catégorie */
.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px; /* Taille de base */
}

.category-img-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #f5f5f5;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

    .category-img-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.category-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Boutons de navigation */
.swiper-button-next, .swiper-button-prev {
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    color: #333;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .swiper-button-next::after, .swiper-button-prev::after {
        font-size: 1rem;
        font-weight: bold;
    }

/* Responsive design */
@media (min-width: 576px) {
    .category-item {
        width: 110px;
    }

    .category-img-container {
        width: 90px;
        height: 90px;
    }

    .category-name {
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .category-item {
        width: 120px;
    }

    .category-img-container {
        width: 100px;
        height: 100px;
    }

    .category-name {
        font-size: 1rem;
    }
}

@media (min-width: 992px) {
    .category-item {
        width: 130px;
    }

    .category-img-container {
        width: 110px;
        height: 110px;
    }
}

@media (min-width: 1200px) {
    .category-item {
        width: 140px;
    }

    .category-img-container {
        width: 120px;
        height: 120px;
    }
}

/* Effet hover */
@media (hover: hover) {
    .category-item:hover .category-img-container {
        transform: scale(1.05);
        border-color: lightcoral;
        box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    }

    .category-item:hover .category-name {
        color: #13357B;
    }
}

