/* ========================================
   Cabinet ANL - Boutique Juridique Page
   ======================================== */

:root {
    --primary-dark-blue: #1a365d;
    --secondary-dark-blue: #2d3748;
    --gold: #d4af37;
    --light-gold: #f7e98e;
    --white: #ffffff;
    --text-dark: #2d3748;
    --text-light: #718096;
    --product-blue: #1a365d;
    --product-red: #8B0000;
    --product-green: #006400;
}

/* Boutique Hero Section */
.boutique-hero {
    background-color: #f8f9fa;
    padding: 4rem 0 2rem;
    text-align: center;
    color: var(--primary-dark-blue);
}

.boutique-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-dark-blue);
}

.boutique-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--primary-dark-blue);
    opacity: 0.8;
}

/* Search Bar */
.search-bar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.search-input {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
    background-color: var(--secondary-dark-blue);
    color: var(--white);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-button {
    background-color: var(--gold);
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    color: var(--primary-dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.search-button svg {
    width: 20px;
    height: 20px;
}

.search-button:hover {
    background-color: var(--light-gold);
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.filter-item svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
}

.filter-item:hover,
.filter-item.active {
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--gold);
}

/* Product Listings */
.product-listings {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--primary-dark-blue);
    color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

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

.product-card-blue {
    background-color: var(--product-blue);
}

.product-card-red {
    background-color: var(--product-red);
}

.product-card-green {
    background-color: var(--product-green);
}

.product-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.product-icon svg {
    width: 60px;
    height: 60px;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-title small {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 0.3rem;
    color: rgba(255, 255, 255, 0.8);
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.add-to-cart-btn {
    background-color: var(--gold);
    color: var(--primary-dark-blue);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: auto;
}

.add-to-cart-btn:hover {
    background-color: var(--light-gold);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .boutique-title {
        font-size: 2.5rem;
    }

    .boutique-subtitle {
        font-size: 1rem;
    }

    .search-bar-container {
        flex-direction: column;
        border-radius: 0;
        box-shadow: none;
    }

    .search-input {
        border-radius: 8px 8px 0 0;
        padding: 0.8rem 1rem;
    }

    .search-button {
        border-radius: 0 0 8px 8px;
        padding: 0.8rem 1rem;
    }

    .category-filters {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-item {
        font-size: 1rem;
        padding: 0.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .boutique-title {
        font-size: 2rem;
    }

    .product-card {
        padding: 1.5rem;
        min-height: 250px;
    }

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

    .product-price {
        font-size: 1.5rem;
    }
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

/* Product Description */
.product-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-subtitle {
    font-size: 0.8rem;
    color: var(--light-gold);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Panier flottant */
.floating-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.floating-cart.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-dark-blue);
    color: var(--white);
}

.cart-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.close-cart {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-cart:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cart-items {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    margin-top: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.item-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: var(--primary-dark-blue);
}

.item-price {
    margin: 0;
    font-weight: 600;
    color: var(--gold);
    font-size: 0.9rem;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.quantity {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}

.remove-btn {
    width: 25px;
    height: 25px;
    border: 1px solid #dc3545;
    background: #dc3545;
    color: var(--white);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #c82333;
    border-color: #bd2130;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--gray-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark-blue);
}

.checkout-btn {
    width: 100%;
    background: var(--gold);
    color: var(--white);
    border: none;
    padding: 0.875rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-btn:hover:not(:disabled) {
    background: var(--light-gold);
    transform: translateY(-2px);
}

.checkout-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Bouton panier flottant */
.cart-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--primary-dark-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.cart-toggle:hover {
    background: var(--secondary-dark-blue);
    transform: scale(1.1);
}

.cart-toggle.animate {
    animation: cartBounce 0.3s ease;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.cart-toggle svg {
    width: 24px;
    height: 24px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid var(--white);
}

/* Responsive pour le panier */
@media (max-width: 768px) {
    .floating-cart {
        width: 100%;
        right: -100%;
    }
    
    .cart-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }
    
    .cart-toggle svg {
        width: 20px;
        height: 20px;
    }
}
