/**
 * Divine Boutique 2 - Styles personnalisés
 */

/* =====================================================
   Variables CSS
===================================================== */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --warning-color: #ffc107;
    --success-color: #198754;
    --danger-color: #dc3545;
    --text-color: #212529;
    --text-muted: #6c757d;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.3s ease;
}

/* =====================================================
   Typography
===================================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* =====================================================
   Layout
===================================================== */
.min-vh-75 {
    min-height: 75vh;
}

/* =====================================================
   Components
===================================================== */

/* Product Card */
.product-card {
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.product-card .card-img-top {
    transition: var(--transition);
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Hover Lift Effect */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* =====================================================
   Buttons
===================================================== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.btn-dark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-dark:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* =====================================================
   Forms
===================================================== */
.form-control,
.form-select {
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(15, 52, 96, 0.25);
}

/* =====================================================
   Navbar
===================================================== */
.navbar {
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
}

/* =====================================================
   Hero Section
===================================================== */
.hero-section {
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

/* =====================================================
   Footer
===================================================== */
footer {
    background-color: var(--primary-color);
}

footer a:hover {
    color: var(--warning-color) !important;
}

/* =====================================================
   Badges
===================================================== */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* =====================================================
   Cards
===================================================== */
.card {
    border-radius: var(--border-radius);
}

/* =====================================================
   Price
===================================================== */
.price .text-danger {
    font-size: 1.1em;
}

.price .text-decoration-line-through {
    font-size: 0.9em;
}

/* =====================================================
   Quantity Input
===================================================== */
.qty-input {
    width: 50px;
    text-align: center;
}

/* =====================================================
   Loading States
===================================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* =====================================================
   Responsive
===================================================== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .product-card .card-body {
        padding: 0.75rem;
    }
    
    .product-card h6 {
        font-size: 0.9rem;
    }
}

/* =====================================================
   Utilities
===================================================== */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

/* =====================================================
   RTL Support (Arabic)
===================================================== */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .ms-1, [dir="rtl"] .ms-2, [dir="rtl"] .ms-3 {
    margin-right: inherit !important;
    margin-left: 0 !important;
}

[dir="rtl"] .me-1, [dir="rtl"] .me-2, [dir="rtl"] .me-3 {
    margin-left: inherit !important;
    margin-right: 0 !important;
}

