/* ========== General ========== */
:root {
    --primary: #0d6efd;
    --dark: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ========== Login Page ========== */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.login-card {
    border-radius: 16px;
    overflow: hidden;
}

.login-btn {
    border-radius: 10px;
    padding: 12px;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

.divider-text {
    position: relative;
}

.divider-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

.divider-text span {
    position: relative;
    z-index: 1;
}

.brand-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: linear-gradient(135deg, #e8f0fe, #f0e8fe);
    border-radius: 50%;
}

/* ========== Hero Section ========== */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-title {
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Features ========== */
.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.feature-box {
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

/* ========== Category Cards ========== */
.category-card {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
}

/* ========== Product Cards ========== */
.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.product-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.add-to-cart-btn {
    border-radius: 8px;
    padding: 8px 20px;
    transition: all 0.3s;
    font-weight: 600;
}

.add-to-cart-btn:hover {
    transform: scale(1.05);
}

.add-to-cart-btn.added {
    background-color: #198754 !important;
    border-color: #198754 !important;
}

.star-rating {
    color: #ffc107;
}

.star-rating .empty {
    color: #dee2e6;
}

/* ========== Cart Page ========== */
.cart-item-card {
    border-radius: 12px;
    transition: transform 0.2s;
}

.cart-item-card:hover {
    transform: translateX(5px);
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* ========== Success Animation ========== */
.success-animation i {
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========== Toast ========== */
.toast {
    border-radius: 10px;
}

/* ========== Navbar ========== */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cart-count {
    font-size: 0.7rem;
    padding: 2px 6px;
    position: relative;
    top: -8px;
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ========== RESPONSIVE: Mobile (< 576px) ========== */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .min-vh-75 {
        min-height: 60vh;
    }

    .product-img-wrapper {
        height: 180px;
    }

    .login-card .card-body {
        padding: 1.5rem !important;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .feature-box h6 {
        font-size: 0.85rem;
    }

    .category-card {
        padding: 1rem !important;
    }

    .category-card i {
        font-size: 2rem !important;
    }

    .category-card h5 {
        font-size: 1rem;
    }

    .cart-item-card .row {
        text-align: center;
    }

    .cart-item-card img {
        max-height: 70px !important;
    }
}

/* ========== RESPONSIVE: Tablet (576px - 991px) ========== */
@media (min-width: 576px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .min-vh-75 {
        min-height: 65vh;
    }

    .product-img-wrapper {
        height: 200px;
    }
}

/* ========== RESPONSIVE: Laptop+ (992px+) ========== */
@media (min-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .product-img-wrapper {
        height: 240px;
    }
}

/* ========== Footer ========== */
footer a:hover {
    color: #fff !important;
}