/* Miss E-Commerce - Main Stylesheet */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
}

/* Hero Banner */
.hero-banner {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.product-card .card-img-top {
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Category Cards */
.category-card .card {
    transition: all 0.3s ease;
}

.category-card:hover .card {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    margin: 0 auto;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46a1);
    transform: translateY(-1px);
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Cart Badge */
#cart-count {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    font-size: 0.7rem;
}

.nav-link {
    position: relative;
}

/* Hover Shadow */
.hover-shadow:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-banner {
        height: 300px;
    }
    
    .hero-banner h1 {
        font-size: 1.75rem;
    }
    
    .hero-banner .lead {
        font-size: 1rem;
    }
}

/* RTL Support */
[dir="rtl"] .me-1, [dir="rtl"] .me-2, [dir="rtl"] .me-3 {
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .ms-1, [dir="rtl"] .ms-2, [dir="rtl"] .ms-3, [dir="rtl"] .ms-auto {
    margin-right: 0.25rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .dropdown-menu-end {
    right: auto !important;
    left: 0 !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .input-group > .form-control {
    border-radius: 0;
}

[dir="rtl"] .input-group > .btn {
    border-radius: 0.375rem 0 0 0.375rem;
}

[dir="rtl"] .input-group > .form-control:first-child {
    border-radius: 0 0.375rem 0.375rem 0;
}
