body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f8f6f0, #fefefe);
    color: #2c2c2c;
}

header {
    background: linear-gradient(135deg, #6b5b73, #7d8471);
    color: white;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(107, 91, 115, 0.2);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    text-align: center;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    padding: 1rem;
}

/* Mobile responsive - 3 items per row */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    /* Hide descriptions on mobile */
    .product-card .description {
        display: none;
    }

    /* Fix quantity controls for mobile */
    .quantity-controls {
        display: flex;
        align-items: center;
        gap: 5px;
        margin-top: 8px;
        justify-content: center;
    }

    .quantity-btn {
        background: #f0f0f0;
        border: none;
        padding: 4px 8px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 0.9em;
        min-width: 24px;
        height: 24px;
    }

    .quantity-input {
        width: 35px;
        text-align: center;
        padding: 2px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 0.8em;
        height: 20px;
    }
}

/* Tablet responsive - 4 items per row */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    overflow: hidden !important;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 100%;
}

/* Mobile responsive card sizing */
@media (max-width: 768px) {
    .product-card {
        padding: 0.5rem;
        min-height: 160px;
    }
}

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

.product-card img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: block !important;
    max-width: 100% !important;
    max-height: 150px !important;
    overflow: hidden;
}

/* Mobile responsive image sizing */
@media (max-width: 768px) {
    .product-card img {
        height: auto !important;
        max-height: 120px !important;
    }
}

.product-card h3 {
    margin: 0 0 0.25rem 0;
    color: #6b5b73;
    font-size: 0.9rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .product-card h3 {
        font-size: 0.8rem;
        margin: 0 0 0.2rem 0;
    }
}

.product-card .description {
    color: #666;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
    font-size: 0.75rem;
    flex-grow: 1;
}

.product-card .price {
    font-size: 0.9rem;
    font-weight: bold;
    color: #2e7d32;
    margin: 0;
    margin-top: auto;
}

@media (max-width: 768px) {
    .product-card .description {
        font-size: 0.65rem;
        margin: 0 0 0.2rem 0;
    }

    .product-card .price {
        font-size: 0.8rem;
    }
}

.no-products {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
} 