/* [SECTION] Product */

.product {
    width: 100%;
    
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);

    padding: var(--space-xl) var(--space-m) var(--space-xxxl) var(--space-m);
}

/* Product -> Gallery */

.product__gallery {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: var(--space-m);

    position: relative;
}

.product__media-slider {
    width: 100%;
}

.product__thumbs-slider {
    width: 100%;

    background-color: #fce6d7;
}

.product__gallery:hover > .product__thumbs-slider {
    opacity: 1;
}

.product__media-wrapper {
    display: flex;

    cursor: pointer;

    overflow: hidden;
}

.product__media {
    width: 100%;

    object-fit: cover;
}

/* Product -> Body */

.product__body {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.product__top {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: var(--space-m);
}

.product__header {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
}

.product__bottom {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-m);
}

.price__wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.product__price--former {
    font-size: var(--font-size-xs);

    text-decoration: line-through;
}

.purchase__response-message {
    display: none;
}

.purchase__response-message._active {
    display: block;
}

.product__quantity {
    width: 100%;
}

.purchase__btns {
    width: 100%;

    display: flex;
    gap: var(--space-m);
}

.cart__btn {
    width: 48px;
    height: 48px;

    border: 1px solid var(--color-01);

    background-color: var(--color-01);

    display: flex;
    align-items: center;
    justify-content: center;
    
    cursor: pointer;

    transition: var(--transition-01);
    -webkit-transition: var(--transition-01);
}

.cart__btn:hover {
    border-color: var(--color-02);

    background-color: var(--color-02);
}

.cart__btn-icon {
    width: 18px;
}

.purchase__btn {
    width: calc(100% - var(--space-m) - 48px);
}

/* [SECTION] Info */

.info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);

    padding: var(--space-xxxl) var(--space-m);
}

.products-details__sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-m);
}

.info__btn {
    text-transform: uppercase;

    position: relative;

    transition: var(--transition-01);
    -webkit-transition: var(--transition-01);
}

.info__btn:hover {
    color: var(--color-02);
}

.info__btn::after {
    content: "";

    width: 100%;
    height: 1px;

    background-color: var(--color-01);

    opacity: 0;

    position: absolute;

    bottom: 0;
    left: 0;

    transition: var(--transition-01);
    -webkit-transition: var(--transition-01);
}

.info__btn:hover::after {
    background-color: var(--color-02);
}

.info__btn._active::after {
    opacity: 1;
}

.info__wrapper {
    display: none;
}

.info__wrapper._active {
    display: block;
}

/* [SECTION] Similar products */

.similar-products {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: var(--space-xl);

    padding: var(--space-xxxl) calc(var(--space-m) - var(--space-xl) / 2);
}

/* Similar products -> Header */

.sp__header {
    padding: 0 calc(var(--space-xl) / 2);
}

@media (max-width: 1280px) {
    
}

@media (max-width: 1024px) {
    /* [SECTION] Product */

    .product {
        display: flex;
        flex-direction: column;
    }

    .product__thumbs-slider {
        width: 100%;

        background-color: unset;

        opacity: unset;

        padding: unset;

        margin: unset;

        position: unset;
    }
}

@media (max-width: 768px) {
    
}

@media (max-width: 480px) {
    
}