/* Selection Cards */
.selection-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.selection-card {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 300px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.selection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #719a4b;
}

.selection-card.active {
    border-color: #719a4b;
    background-color: #f9fff5;
    box-shadow: 0 0 0 2px #719a4b inset;
}

.selection-card img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.selection-card:hover img {
    transform: scale(1.05);
}

.selection-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

/* Amazon View */
.amazon-view {
    display: none;
    border-top: 1px solid #eee;
    padding-top: 40px;
    margin-bottom: 40px;
}

.amazon-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
}

/* Image Section Layout */
.amazon-img-col {
    flex: 1;
    min-width: 350px;
    max-width: 500px;
    display: flex;
    gap: 15px;
}

.amazon-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 60px;
}

.amazon-thumb {
    width: 60px;
    height: 60px;
    border: 1px solid #a2a6ac;
    border-radius: 4px;
    cursor: pointer;
    object-fit: contain;
    padding: 2px;
    transition: all 0.2s;
}

.amazon-thumb:hover,
.amazon-thumb.active {
    border-color: #e77600;
    box-shadow: 0 0 3px 2px rgba(228, 121, 17, 0.5);
}

.amazon-main-image {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amazon-main-image img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 4px;
}

.amazon-details-col {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.amazon-title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 500;
    color: #0F1111;
    margin-bottom: 10px;
}

.amazon-rating {
    color: #ffa41c;
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.amazon-price-block {
    margin-bottom: 15px;
}

.amazon-price {
    font-size: 28px;
    color: #B12704;
    font-weight: 500;
}

.amazon-price-label {
    font-size: 14px;
    color: #565959;
    vertical-align: top;
    margin-right: 5px;
}

.amazon-stock {
    color: #007600;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 500;
}

.amazon-features {
    margin-top: 15px;
    padding-left: 20px;
}

.amazon-features li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #0F1111;
    line-height: 1.5;
}

.amazon-link {
    display: inline-block;
    margin-top: 20px;
    color: #007185;
    text-decoration: none;
    font-size: 14px;
}

.amazon-link:hover {
    color: #c7511f;
    text-decoration: underline;
}

/* Accordion Styles */
.amazon-description-accordion {
    width: 100%;
    margin-top: 30px;
    border-top: 1px solid #eee;
}

.accordion-header {
    padding: 15px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #007185;
    user-select: none;
}

.accordion-header:hover {
    color: #c7511f;
    text-decoration: underline;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    border-bottom: 1px solid #eee;
}

.accordion-content.open {
    max-height: 1500px;
    /* Sufficiently large value */
    transition: max-height 0.5s ease-in;
}

#amz-description-text {
    padding: 15px 0;
    color: #333;
    line-height: 1.6;
}

#amz-description-text h3,
#amz-description-text h4 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #333;
}

#amz-description-text ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

#amz-description-text li {
    margin-bottom: 5px;
}

/* Form Visibility */
#personal-info-container {
    display: none;
}

.fade-in {
    animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .selection-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .amazon-container {
        flex-direction: column;
    }

    .amazon-img-col {
        flex-direction: column-reverse;
        /* Thumbnails below on mobile */
        align-items: center;
        min-width: 100%;
        width: 100%;
    }

    .amazon-thumbnails {
        flex-direction: row;
        width: 100%;
        margin-top: 10px;
        overflow-x: auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 10px;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    /* Hide scrollbar for Chrome, Safari and Opera */
    .amazon-thumbnails::-webkit-scrollbar {
        display: none;
    }

    /* Hide scrollbar for IE, Edge and Firefox */
    .amazon-thumbnails {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .amazon-thumb {
        flex-shrink: 0;
    }

    .amazon-details-col {
        text-align: left;
    }
}