.root {
    display: flex;
    flex: 0 0 auto;
    width: 360px;
    height: 540px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    background-color: var(--color-bg-base-light);
    transition: background-color 0.3s ease-in-out;
    text-decoration: none;
    cursor: pointer;
}

.root:hover {
    background-color: var(--color-bg-neutral-light);
}

.productInfo {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    align-self: stretch;
    padding: var(--spacing-32) var(--spacing-32) var(--spacing-16) var(--spacing-32);
}

.title {
    color: var(--color-text-primary);
}

.price {
    color: var(--color-text-secondary);
}

.buttonContainerDesktop {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    gap: var(--spacing-12);
    transition: opacity 0.3s ease-in-out;
    cursor: default;
    padding: var(--spacing-16) var(--spacing-32) var(--spacing-32) var(--spacing-32);
    opacity: 1;
}

.hoverableButtons {
    opacity: 0;
}

.root:hover .hoverableButtons {
    opacity: 1;
}

.buttonContainerMobile {
    display: none;
}

.productImage {
    display: block;
    max-width: 360px;
    max-height: 376px;
}

@media (width <= 768px) {
    .root {
        width: 280px;
        height: 436px;
        background-color: var(--color-bg-base-light);
    }

    .root:hover {
        background-color: var(--color-bg-base-light);
    }

    .productInfo {
        padding: var(--spacing-32) var(--spacing-24) var(--spacing-24) 9px;
    }

    .buttonContainerDesktop {
        display: none;
    }

    .buttonContainerMobile {
        display: flex;
        justify-content: center;
        align-items: center;
        align-self: stretch;
        gap: var(--spacing-12);
        transition: opacity 0.3s ease-in-out;
        cursor: default;
        opacity: 1;
        padding: 9px var(--spacing-24) var(--spacing-32) var(--spacing-24);
    }

    .productImage {
        max-width: 280px;
        max-height: 292px;
    }
}
