:root {
    --primary-color: #2563eb;
    --secondary-color: #1e293b;
    --accent-color: #f59e0b;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* Navbar */
.navbar {
    background-color: #fff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Custom Background Colors */
.bg-orange {
    background-color: #fd7e14 !important;
    color: white !important;
}

.bg-purple {
    background-color: #6f42c1 !important;
    color: white !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: white;
    padding: 4rem 0;
    border-radius: 1rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section::after {
    content: '';
    position: absolute;
    right: -5%;
    bottom: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

/* Product Card */
.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
    position: relative;
}

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

.product-image-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background-color: #f1f5f9;
    overflow: hidden;
}

.product-image-wrapper img,
.product-image-wrapper .placeholder-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.placeholder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #cbd5e1;
}

.card-body {
    padding: 1.25rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Price Styling */
.price-wrapper {
    min-height: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.product-price.discounted {
    color: #16a34a; /* Green */
}

.old-price {
    font-size: 0.875rem;
    text-decoration: line-through;
    color: var(--text-muted);
    margin-bottom: -0.25rem;
}

.btn-add-cart {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    width: 100%;
    transition: background-color 0.2s;
    font-weight: 500;
}

.btn-add-cart:hover {
    background-color: var(--text-dark);
}

.btn-add-cart:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
}

/* Badges */
.badge-stock {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #dc2626;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

/* Footer */
footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
}

@media (max-width: 992px) {
    .hero-section {
        min-height: 420px;
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 340px;
        padding: 2.5rem 0;
    }
    .hero-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    .hero-section p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 280px;
        padding: 2rem 0;
        border-radius: 0.75rem;
    }
    .hero-section h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    .hero-section p {
        font-size: 0.95rem;
    }
}