/* Сетка товаров в результате */
.quiz-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0;
}

@media screen and (max-width: 600px) {
    .quiz-products-grid {
        grid-template-columns: repeat(2, 153px);
        justify-content: center;
        gap: 15px;
    }
}

/* Карточка товара */
.quiz-product-card {
    background: transparent;
    overflow: hidden;
    transition: transform 0.3s ease;
    background: #5F5F5F;
    border-radius: 20px;
}

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

.quiz-product-image {
    width: 100%;
    position: relative;
    padding-bottom: 100%;
    background: #1a1a1a;
    overflow: hidden;
    border-radius: 20px;
}

.quiz-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quiz-product-info {
    padding: 12px;
}

.quiz-product-name {
    font-family: "Buyan", sans-serif;
    font-weight: 700;
    font-size: 25px;
    color: #fff;
    line-height: 120%;
    margin: 0 0 9px 0;
    min-height: calc(25px * 1.2 * 2);
}

@media screen and (max-width: 600px) {
    .quiz-product-name {
        font-size: 16px;
        min-height: calc(16px * 1.2 * 2);
        margin-bottom: 3px;
    }

    .quiz-product-image {
        border-radius: 14px;
    }

    .quiz-product-info {
        padding: 9px;
    }
}


/* Варианты товара */
.quiz-product-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 40px;
}

.quiz-product-variant {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #3a3a3a;
    border: 2px solid #555;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media screen and (max-width: 600px) {
    .quiz-product-variants {
        min-height: 20px;
        margin-bottom: 8px;
        gap: 3px;
    }

    .quiz-product-variant {
        padding: 4px 8px;
        font-size: 10px;
    }
}

.quiz-product-variant:hover {
    border-color: #D4A574;
}

.quiz-product-variant.active {
    background: #D4A574;
    border-color: #D4A574;
    color: #000;
}

/* Контейнер для цен */
.quiz-product-prices {
    margin-bottom: 16px;
}

@media screen and (max-width: 600px) {
    .quiz-product-prices {
        margin-bottom: 0;
    }
}

.quiz-product-price-item {
    display: none;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.quiz-product-price-item.active {
    display: flex;
}

.quiz-product-old-price {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 120%;
    text-decoration: line-through;
    color: #A2A2A2;
}

.quiz-product-current-price {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 120%;
    color: #FFFFFF;
}

@media screen and (max-width: 600px) {
    .quiz-product-current-price, .quiz-product-old-price {
        font-size: 14px;
        margin-bottom: 9px;
    }
}

.quiz-product-button {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(264.11deg, #FFE9C8 -4.53%, #FFD9AD 18.44%, #FFDDB5 51.46%, #FFDDB5 76.6%, #FFCC8F 111.92%);    border: none;
    border-radius: 12px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #584D3E;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 128%;
    height: 51px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 600px) {
    .quiz-product-button {
        height: 30px;
        font-size: 9px;
        border-radius: 10px;
    }
}

.quiz-product-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
}

.quiz-product-button:disabled,
.quiz-product-button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.5);
    color: #fff;
    height: 51px;
    border-radius: 12px;
}

.quiz-product-button:disabled:hover,
.quiz-product-button[disabled]:hover {
    transform: none;
    box-shadow: none;
}
