/* store/style.css */
:root {
    --primary: #2980b9;
    --secondary: #2c3e50;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    /* You might want to include this font or standard sans */
}

body {
    background-color: var(--light);
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background: var(--white);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

nav a {
    text-decoration: none;
    color: var(--secondary);
    margin-left: 20px;
    font-weight: 500;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: white;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1589939705384-5185137a7f0f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background: #3498db;
}

/* Sections */
section {
    padding: 60px 5%;
}

h2.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary);
    font-size: 2em;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #eee;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 5px;
}

.product-info .price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.product-info button {
    width: 100%;
    padding: 10px;
    background: var(--secondary);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.product-info button:hover {
    background: var(--primary);
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    padding: 20px;
    flex-direction: column;
}

.cart-modal.open {
    display: flex;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.cart-total {
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: right;
}

.checkout-btn {
    background: #25D366;
    /* WhatsApp Green */
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    margin-top: 20px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    text-align: center;
    padding: 40px;
    margin-top: 50px;
}

.socials a {
    color: white;
    margin: 0 10px;
    font-size: 1.5em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .cart-modal {
        width: 100%;
    }
}