:root {
    --primary-color: #00cba9;
    --primary-hover: #00b395;
    --secondary-color: #2c3e50;
    --light-bg: #f8f9fa;
    --hero-gradient: linear-gradient(180deg, #e6e6fa 0%, #ffffff 100%);
    --text-color: #333;
    --sale-color: #00cba9;
    --product-img-height: 180px;
    --product-card-min-height: 340px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif; /* Cleaner font like screenshot */
    color: var(--text-color);
    background-color: #fff;
    margin: 0;
    padding: 0;
}

/* Navbar */
.navbar {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: none; /* Screenshot looks clean */
}

.navbar-brand {
    font-weight: 800;
    color: #333 !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.nav-link {
    color: #333 !important;
    font-weight: 600;
    margin: 0 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #dcd6f7 0%, #a6c1ee 100%); /* Soft purple/blue gradient */
    padding: 60px 0 80px;
    text-align: center;
    color: #333;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.hero-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 30px;
    border: none;
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    font-size: 0.95rem;
}

/* Section Header */
.section-header {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: capitalize;
    margin-bottom: 30px;
    border-radius: 4px;
}

/* Product Card */
.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
    min-height: var(--product-card-min-height);
    display: flex;
    flex-direction: column;
}

.row > [class*="col-"] {
    min-width: 0;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-img-wrapper {
    position: relative;
    padding: 16px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: var(--product-img-height);
}

.product-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}

.product-body {
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 44px;
}

.product-title a {
    color: #333;
    transition: color 0.2s;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-price {
    margin-bottom: 15px;
    font-weight: 700;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
    font-size: 0.9rem;
}

.new-price {
    color: var(--primary-color);
    font-size: 1rem;
}

.btn-purchase {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 8px 0;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background-color 0.3s;
    margin-top: auto; /* Push to bottom */
}

.btn-purchase:hover {
    background-color: var(--primary-hover);
    color: white;
}

/* Product Detail Page Adjustments */
.product-image-container {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
}

.product-info h1 {
    font-size: 1.8rem;
    color: #333;
}

/* Related products: enforce 2-card layout without changing markup */
.product-details-container .row.mt-5.pt-5.border-top > .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (max-width: 576px) {
    :root {
        --product-img-height: 140px;
        --product-card-min-height: 280px;
    }
    .row.row-cols-2 > * {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .row.g-4 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
    .product-title {
        font-size: 0.85rem;
        min-height: 36px;
    }
    .new-price {
        font-size: 0.95rem;
    }
    .btn-purchase {
        font-size: 0.8rem;
        padding: 7px 0;
    }
}
