:root {
    --primary: #0d6efd;
    --secondary: #212529;
    --success: #198754;
    --danger: #dc3545;
    --dark: #212529;
    --light: #f8f9fa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f5f5f5; }

.bg-gradient-primary { background: linear-gradient(135deg, #0d6efd, #0a58ca); }
.bg-gradient-success { background: linear-gradient(135deg, #198754, #157347); }
.bg-gradient-dark { background: linear-gradient(135deg, #212529, #1a1e21); }

.navbar { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.navbar .nav-link { font-weight: 500; padding: 0.5rem 1rem; border-radius: 8px; transition: all 0.2s; }
.navbar .nav-link:hover, .navbar .nav-link.active { background: rgba(255,255,255,0.1); }
.navbar .dropdown-menu { margin-top: 8px; border-radius: 12px; }

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    height: 100%;
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.product-card .product-image { position: relative; overflow: hidden; }
.product-card .product-image img { transition: transform 0.5s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-card .product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s;
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.btn-action {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #333;
}
.btn-action:hover { background: var(--primary); color: #fff; }
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.discount-badge-lg {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--danger);
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
}
.out-of-stock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-title a { transition: color 0.2s; }
.product-title a:hover { color: var(--primary) !important; }

.category-card {
    transition: all 0.3s;
    cursor: pointer;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--primary) !important;
}
.category-card:hover .category-icon i { transform: scale(1.1); }
.category-icon i { transition: transform 0.3s; }

.offer-card { min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform 0.3s; }
.offer-card:hover { transform: scale(1.02); }

.breadcrumb { background: transparent; padding: 0; }
.breadcrumb a { color: var(--primary); text-decoration: none; }

.cart-item:last-child { border-bottom: none !important; }

.hero-slider-section { margin: 0; }

.section-header { border-left: 4px solid var(--primary); padding-left: 15px; }

.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 5px; }
.star-rating input { display: none; }
.star-rating label { cursor: pointer; font-size: 24px; color: #ddd; transition: color 0.2s; }
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: #ffc107; }

.carousel-caption { bottom: 40px; }

.payment-option { cursor: pointer; transition: all 0.2s; }
.payment-option:hover { border-color: var(--primary); }
.payment-option.border-primary { background: rgba(13,110,253,0.05); }

.quantity-control .form-control:focus { box-shadow: none; }
.quantity-control button:focus { box-shadow: none; }

.hover-primary { transition: color 0.2s; }
.hover-primary:hover { color: var(--primary) !important; }

#backToTop { opacity: 0; visibility: hidden; transition: all 0.3s; }
#backToTop.show { opacity: 1; visibility: visible; }

footer a:hover { color: var(--primary) !important; }

.newsletter-form .input-group { max-width: 400px; }

.alert { border-radius: 12px; }

.cart-badge { font-size: 10px; }
