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

html {
    scroll-behavior: smooth;
}

body {
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    padding: 1rem 0;
}

.header, .footer {
    background: #007acc;
    color: white;
    padding: 1rem 0;
    text-align: center;
}

.header nav a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.header nav a:hover {
    text-decoration: underline;
}

.hero {
    background: #e0f0ff;
    text-align: center;
    padding: 2rem 0;
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1rem;
    color: #555;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.product-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-card h3 {
    margin: 0.5rem 0 0.2rem;
    font-size: 1.1rem;
    color: #222;
}

.product-card p {
    margin: 0.3rem 0;
    font-weight: 600;
    color: #007acc;
    font-size: 1rem;
}

.product-card .description {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.add-to-cart-btn {
    background: #007acc;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.add-to-cart-btn:hover {
    background: #005fa3;
}

.add-to-cart-btn:focus {
    outline: 2px solid #005fa3;
    outline-offset: 2px;
}

.cart {
    background: white;
    margin: 2rem auto;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cart h2 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    text-align: center;
}

#cart-items {
    list-style: none;
    margin-bottom: 0.5rem;
    padding: 0;
}

#cart-items li {
    margin: 0.3rem 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.3rem;
    font-size: 0.95rem;
}

#total-price {
    text-align: center;
    font-weight: 700;
    margin: 0.5rem 0;
    font-size: 1rem;
}

#checkout-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: block;
    margin: 0.5rem auto;
    font-size: 0.95rem;
}

#checkout-btn:hover {
    background: #1e7e34;
}

#checkout-btn:focus {
    outline: 2px solid #1e7e34;
    outline-offset: 2px;
}

.footer {
    font-size: 0.9rem;
    margin-top: 2rem;
}

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    height: 220px;
}

.carousel-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: none;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    cursor: pointer;
}

.carousel-img.active {
    display: block;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 50%;
    z-index: 2;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(0,0,0,0.8);
}

.prev-btn:focus, .next-btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideIn 0.8s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.store-update {
    font-size: 0.95rem;
    color: #e0f0ff;
    margin-top: 0.3rem;
    letter-spacing: 0.5px;
    text-align: center;
}

.greeting-banner {
    background: #e0f0ff;
    color: #007acc;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin: 1rem auto;
    max-width: 600px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeSlideIn 0.8s ease forwards;
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-left: 0.5rem;
}

.remove-btn:hover {
    background: #b02a37;
    transform: scale(1.05);
}
