/* Main Styles */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #f8f9fc;
    --text-color: #2c3e50;
    --card-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    --accent-color: #e74c3c;
    --accent-light: #f5b7b1;
    --success-color: #2ecc71;
    --light-bg: #f5f8fa;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
}

/* Navbar */
.navbar {
    background-color: white;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary-color);
}

/* Store Cards */
.store-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow);
    border: none;
    overflow: hidden;
}

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

.store-image {
    height: 200px;
    object-fit: cover;
}

.store-card .card-body {
    padding: 1.5rem;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    height: 100%;
    background-color: white;
}

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

.product-image {
    height: 180px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 1.5rem;
}

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

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

.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);
}

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

.section-title {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-input {
    padding-left: 2.5rem;
    border-radius: 2rem;
    border: 1px solid #e3e6f0;
}

/* Cart Sidebar */
.cart-sidebar {
    height: 100vh;
    width: 0;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1050;
    background-color: white;
    overflow-x: hidden;
    transition: 0.5s;
    box-shadow: -5px 0px 25px rgba(0, 0, 0, 0.1);
    padding-top: 60px;
}

.cart-sidebar.active {
    width: 400px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.cart-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.cart-item {
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 0;
    margin-bottom: 0.5rem;
}

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

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

.cart-quantity {
    width: 40px;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

/* Banner */
.banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 2rem 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Categories Section */
.categories-section {
    margin-bottom: 3rem;
}

.category-box {
    transition: all 0.3s ease;
    background-color: white;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    border: 2px solid transparent;
}

.category-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.1);
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.category-badge {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid #e3e6f0;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 600;
}

.category-badge:hover, .category-badge.active {
    background-color: var(--primary-color);
    color: white;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-color);
}

/* Badges */
.store-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(255, 193, 7, 0.9);
    color: #212529;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Footer */
.footer {
    background-color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    box-shadow: 0 -0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.social-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}