.beer-quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.beer-quiz-header {
    text-align: center;
    margin-bottom: 2rem;
}

.beer-quiz-header h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    white-space: nowrap;
}

.beer-quiz-header p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.5;
}

.quiz-question {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.quiz-question h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.quiz-answers {
    display: grid;
    gap: 1rem;
}

.quiz-answer {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.answer-description {
    font-size: 0.9rem;
    color: #666;
    display: block;
    line-height: 1.4;
}

.quiz-answer:hover {
    background: #e9ecef;
}

.quiz-answer input[type="radio"] {
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
}

.answer-text {
    font-size: 1.1rem;
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.quiz-navigation button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-prev {
    background: #6c757d;
    color: white;
}

.quiz-next, .quiz-submit {
    background: #ffc107;
    color: #333;
}

.quiz-navigation button:hover {
    opacity: 0.9;
}

/* Center the first next button */
.quiz-question:first-child .quiz-navigation {
    justify-content: center;
}

.quiz-question:first-child .quiz-prev {
    display: none;
}

.quiz-results {
    margin-top: 2rem;
}

.quiz-results h2 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
}

.recommendations-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .recommendations-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.product-image {
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    position: relative;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.product-info h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #222;
    font-weight: 600;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.price {
    margin-bottom: 0;
    font-weight: bold;
    font-size: 1.1rem;
    color: #444;
}

.food-pairing-images {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.food-pairing-images img {
    display: inline-block;
    margin: 0 5px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.product-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.product-meta span {
    background: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #555;
}

.view-product {
    flex: 1;
    min-width: 120px;
    margin: 0.25rem;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.view-product:first-of-type {
    background-color: rgba(224, 229, 235, 0.6);
    color: #000;
}

.view-product:first-of-type:hover {
    opacity: 0.9;
    color: #000;
    text-decoration: none;
}

.view-product:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

@media (max-width: 480px) {
    .product-info {
        gap: 0.5rem;
    }
    .view-product {
        width: 100%;
        margin: 0.25rem 0;
    }
}

.loading, .error {
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
}

.loading {
    color: #666;
}

.error {
    color: #dc3545;
}

.validation-message {
    color: #dc3545;
    padding: 10px;
    margin-top: 15px;
    border-left: 3px solid #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 0 4px 4px 0;
    font-size: 0.9rem;
}