/* Variables */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffe66d;
    --text-color: #2d3436;
    --light-gray: #f8f9fa;
    --border-radius: 8px;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Global Styles */
body {
    color: var(--text-color);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

/* Navigation */
.navbar {
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    font-weight: 600;
    color: var(--primary-color) !important;
}

.nav-link {
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Carousel */
#heroCarousel {
    margin-bottom: 2rem;
}

#heroCarousel .carousel-item {
    height: 500px;
    background-color: #000;
}

#heroCarousel img {
    object-fit: cover;
    filter: brightness(0.7);
}

#heroCarousel .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 50%;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: white;
}

.feature-card h3 {
    margin: 1rem 0;
    color: var(--text-color);
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Product Cards */
.product-card {
    transition: var(--transition);
    animation: fadeIn 0.6s ease-out;
    border: none;
    box-shadow: var(--box-shadow);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.product-card .card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-card .price-container {
    font-size: 1.1rem;
    font-weight: 500;
}

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

.cart-items .card {
    transition: var(--transition);
}

.cart-items .card:hover {
    box-shadow: var(--box-shadow);
}

.cart-item img {
    height: 100px;
    object-fit: cover;
}

.quantity-controls .btn {
    padding: 0.25rem 0.5rem;
}

.quantity-input {
    width: 60px !important;
    text-align: center;
}

/* Toast Notifications */
.toast-container {
    z-index: 1050;
}

.toast {
    opacity: 0.95;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
}

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

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

/* Footer */
footer {
    background-color: var(--light-gray);
    margin-top: auto;
}

footer h5 {
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

footer a {
    color: var(--text-color);
    transition: var(--transition);
}

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

/* Cart Offcanvas Styles */
.cart-item-mini {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.cart-item-mini:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-item-mini .card-body {
    padding: 0.5rem;
}

.cart-item-mini .card-title {
    font-size: 0.9rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.cart-item-mini .card-text {
    font-size: 0.8rem;
}

.cart-item-mini img {
    border-radius: 0.375rem 0 0 0.375rem;
}

/* Cart count badge animation */
.cart-count {
    transition: all 0.3s ease;
}

.cart-count.updated {
    transform: scale(1.2);
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #heroCarousel .carousel-item {
        height: 300px;
    }

    #heroCarousel .carousel-caption {
        padding: 1rem;
    }

    #heroCarousel h2 {
        font-size: 1.5rem;
    }

    .product-card .card-img-top {
        height: 150px;
    }
}