/* ============================================
   BOUTIQUE STYLES - Amazones du Bénin
   ============================================ */

:root {
    --primary: #8BC34A;
    --primary-dark: #7CAC3A;
    --primary-light: #C5E1A5;
    --secondary: #FFC107;
    --dark: #212529;
    --gray: #6c757d;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--light-bg);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */

.products-section {
    padding: 40px 0 80px;
}

.filters-bar {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    transition: var(--transition);
}

.filters-bar:hover {
    box-shadow: var(--shadow-md);
}

.filters-bar .form-select,
.filters-bar .form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    font-weight: 500;
    transition: var(--transition);
}

.filters-bar .form-select:focus,
.filters-bar .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(139, 195, 74, 0.15);
}

.input-group-text {
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 12px 0 0 12px;
}

.input-group .form-control {
    border-left: none;
    border-right: none;
    border-radius: 0;
    border: 2px solid #e9ecef;
    border-left: none;
}

.search-btn {
    border-radius: 0 12px 12px 0 !important;
    padding: 12px 20px;
    font-weight: 600;
    border: none;
}

.search-btn:hover {
    transform: none !important;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-badges .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.product-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 3rem;
}

.no-image p {
    font-size: 1rem;
    margin-top: 12px;
}

.quick-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 12px;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .quick-actions {
    opacity: 1;
}

.quick-actions .btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
    border: none;
}

.quick-actions .btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.old-price {
    font-size: 0.9rem;
    color: var(--gray);
    text-decoration: line-through;
}

.current-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.discount-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.stock-status i {
    font-size: 1.1rem;
}

.add-to-cart-btn {
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    margin-top: auto;
}

.add-to-cart-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 6rem;
    color: var(--gray);
    opacity: 0.3;
    margin-bottom: 24px;
}

.empty-state h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 8px;
}

.footer a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}

.social-links .btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.7);
}

.contact-info i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .products-section {
        padding: 20px 0 40px;
    }
    
    .filters-bar {
        padding: 16px;
    }
    
    .filters-bar .col-md-4 {
        margin-bottom: 12px;
    }
    
    .filters-bar .col-md-4:last-child {
        margin-bottom: 0;
    }
    
    .input-group {
        flex-wrap: nowrap !important;
    }
    
    .search-btn span {
        display: none;
    }
    
    .search-btn {
        padding: 12px 16px;
    }
    
    .product-image {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .product-card {
        margin-bottom: 20px;
    }
    
    .filters-bar .row > div {
        margin-bottom: 12px;
    }
    
    .filters-bar .row > div:last-child {
        margin-bottom: 0;
    }
}

/* ============================================
   UTILITIES
   ============================================ */

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* Scrollbar Custom */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}