/* Custom CSS for Bella Bags */

:root {
    --primary-color: #6c63ff;
    --secondary-color: #f8f9fa;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --dark-color: #343a40;
}

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

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 800px;
    margin-bottom: 0;
}

.hero-slide {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-bg-1 {
    background-image: url('https://images.unsplash.com/photo-1713425887916-111e58eba679?q=80&w=2670&auto=format&fit=crop&ixlib=rb-4.1.0');
}

.hero-bg-2 {
    background-image: url('https://images.unsplash.com/photo-1665832101771-4117b2947b2f?q=80&w=3431&auto=format&fit=crop&ixlib=rb-4.1.0');
}

.hero-bg-3 {
    background-image: url('https://plus.unsplash.com/premium_photo-1661265883815-3afe2811fc26?q=80&w=2670&auto=format&fit=crop&ixlib=rb-4.1.0');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-slide .container {
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
        min-height: 600px;
    }
    
    .hero-slide {
        height: 80vh;
        min-height: 600px;
    }
    
    .hero-slide h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-slide p {
        font-size: 1.1rem;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Product Cards */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #5a52d5;
    border-color: #5a52d5;
    transform: translateY(-1px);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
}

.sidebar .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(108, 99, 255, 0.1);
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(108, 99, 255, 0.1);
}

/* Admin Sidebar */
.sidebar.bg-dark .nav-link {
    color: rgba(255, 255, 255, 0.75);
}

.sidebar.bg-dark .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar.bg-dark .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Tables */
.table th {
    border-top: none;
    font-weight: 600;
    color: var(--dark-color);
}

/* Status Badges */
.status-pending {
    background-color: var(--warning-color);
    color: #000;
}

.status-paid {
    background-color: var(--info-color);
}

.status-processing {
    background-color: var(--primary-color);
}

.status-shipped {
    background-color: #6f42c1;
}

.status-completed {
    background-color: var(--success-color);
}

.status-cancelled {
    background-color: var(--danger-color);
}

/* Cart Item */
.cart-item {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

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

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.375rem;
}

/* Checkout Steps */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 2rem;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 100%;
    width: 4rem;
    height: 2px;
    background-color: #dee2e6;
}

.step.active:not(:last-child)::after {
    background-color: var(--primary-color);
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step.active .step-number {
    background-color: var(--primary-color);
    color: white;
}

.step-title {
    font-size: 0.875rem;
    color: #6c757d;
}

.step.active .step-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        padding: 0;
    }
    
    .checkout-steps {
        flex-direction: column;
    }
    
    .step {
        margin: 1rem 0;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Form Validation */
.is-invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    color: var(--danger-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Price Display */
.price {
    font-weight: 600;
    color: var(--primary-color);
}

.price-original {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.875rem;
}

/* Wishlist Heart */
.wishlist-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background: white;
    transform: scale(1.1);
}

.wishlist-btn.active {
    color: var(--danger-color);
}

/* Product Image Carousel */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.thumbnail-img {
    transition: all 0.3s ease;
}

.thumbnail-img:hover {
    transform: scale(1.05);
    border-color: #6c63ff !important;
}

/* Footer */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: white !important;
}