* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Desktop: 3 columns */
    gap: 22px;
    max-width: 1100px;
    margin: 60px auto;
    padding: 20px;
}

.card {
    background: #111;
    border-radius: 20px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 0 25px rgba(255,215,0,0.08);
}

.stock-counter {
    font-size: 14px;
    font-weight: bold;
    color: #FFD700;
    margin: 10px 0;
    text-transform: uppercase;
}

.flavor-container {
    background: rgba(255, 215, 0, 0.1); 
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 12px;
    margin: 15px 0;
    text-align: left;
}

.flavor-title {
    font-size: 11px;
    color: #FFD700;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flavor-list {
    color: #FFD700;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
}

.image-slider {
    position: relative;
}

.image-slider img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid #FFD700;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: rgba(0,0,0,0.65);
    color: #FFD700;
    border: 2px solid #FFD700;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav.prev { left: 10px; }
.nav.next { right: 10px; }

.name {
    font-size: 18px;
    font-weight: 600;
    margin: 12px 0;
}

.prices {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-line {
    background: #fff;
    color: #000;
    border: 2px solid #FFD700;
    border-radius: 14px;
    padding: 8px 14px;
    margin: 6px 0;
    width: 130px;
    font-weight: 600;
}

.message-btn {
    display: block;
    margin: 18px auto 0;
    background: #FFD700;
    color: #000;
    padding: 14px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr); /* Tablets: 2 columns */
    }
}

@media (max-width: 768px) {
    .grid {
        display: block;
        height: 100vh;
        padding: 0;
        scroll-snap-type: y mandatory;
    }
    .card {
        height: 100vh;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-radius: 0;
    }
}