:root {
    --bg-color: #F4F8FB;
    --primary-blue: #062B4F;
    --medium-blue: #0A6FAE;
    --light-blue: #DFF4FF;
    --accent-orange: #FF8A00;
    --whatsapp-green: #25D366;
    --text-dark: #1F2933;
    --text-light: #ffffff;
    --border-color: #E2E8F0;
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
}

header {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-light);
}

.search-container {
    flex-grow: 1;
    margin: 0 2rem;
    max-width: 500px;
}

.search-container input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    background: var(--accent-orange);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-weight: bold;
    transition: background 0.3s;
}

.cart-icon:hover {
    background: #e67e00;
}

#cart-count {
    background: var(--text-light);
    color: var(--accent-orange);
    border-radius: 50%;
    padding: 0.1rem 0.5rem;
    font-size: 0.9rem;
}

.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--medium-blue));
    color: var(--text-light);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--whatsapp-green);
    color: var(--text-light);
}

.btn-success:hover {
    background-color: #20b858;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--medium-blue);
    color: var(--medium-blue);
}

.btn-outline:hover {
    background-color: var(--medium-blue);
    color: var(--text-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.categories {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    scrollbar-width: none; /* Firefox */
}

.categories::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.category-btn {
    white-space: nowrap;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    background-color: var(--light-blue);
    color: var(--primary-blue);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.category-btn.active, .category-btn:hover {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.product-price span {
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
}

.product-action {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.quantity-input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
}

.add-to-cart {
    flex-grow: 1;
    background: var(--medium-blue);
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: var(--primary-blue);
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--card-bg);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-modal.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.cart-overlay.open {
    display: block;
}

.cart-header {
    padding: 1.5rem;
    background: var(--primary-blue);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 0.2rem;
}

.cart-item-price {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-qty-btn {
    background: var(--light-blue);
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--primary-blue);
    font-weight: bold;
}

.remove-item {
    color: #ef4444;
    cursor: pointer;
    font-size: 0.8rem;
    background: none;
    border: none;
}

.cart-footer {
    padding: 1.5rem;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: bold;
}

.form-control {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.btn-checkout {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

footer {
    background: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .search-container {
        margin: 0;
        width: 100%;
    }
    .hero h1 {
        font-size: 2rem;
    }
}
