@import "../bootstrap/variables";

.product-show-thumbnail-card {
    width: 100%;
    height: 672px;

    @media (max-width: $screen-sm-max) {
        height: 336px;
    }
}


.product-show {


    &__has-video-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border: 4px solid var(--white);
        background-color: rgba(255, 255, 255, 0.30);
        backdrop-filter: blur(10px);
    }

    &__slide-images-card {
        width: 100%;
        padding-bottom: 8px;
        overflow-x: auto;

        .product-show__slide-image-item {
            width: 120px;
            min-width: 120px;
            height: 120px;

            @media (max-width: $screen-sm-max) {
                width: 100px;
                min-width: 100px;
                height: 100px;
            }
        }
    }

    &__special-offer-card {
        height: 91px;

        .time-counter-down {
            width: 116px;
        }

        .rtl & {
            right: auto;
            left: 20px;
        }
    }

    &__selectable-specification-item {
        label {
            border: 1px solid var(--gray-400);
            color: var(--gray-500);

            &:hover {
                background-color: var(--gray-100);
            }
        }

        input {
            position: absolute;
            visibility: hidden;
            opacity: 0;

            &:checked {
                & ~ label {
                    border: 1px solid var(--primary);
                    color: var(--primary);
                }
            }
        }
    }

    &__quantity-card {
        min-width: 153px;
        height: 64px;

        button, input {
            background-color: transparent;
            border: 0;
            padding: 0;
            margin: 0;
        }

        button {
            width: 32px;
            height: 48px;
        }

        input {
            width: 68px;
            height: 48px;
            padding: 4px 8px;
            text-align: center;
            -moz-appearance: textfield;

            &::-webkit-outer-spin-button,
            &::-webkit-inner-spin-button {
                -webkit-appearance: none;
                margin: 0;
            }
        }
    }


    &-tabs-card {

        &__mask {
            position: absolute;
            inset: 8px;
            bottom: -8px;
            border-radius: 12px;
            opacity: 0.5;
            background: var(--white);
        }

        .navbar-item {
            height: 61px;
        }

        &__items {
            @media (max-width: $screen-sm-max) {
                overflow-x: auto;
            }
        }
    }

    &__description {
        color: var(--gray-500);

        p {
            color: var(--gray-500);
        }

        img, video, iframe {
            max-width: 100% !important;
        }

        li {
            list-style: inherit;
        }
    }

    &__specification-item {

        .specification-item-name {
            width: 200px;
            min-width: 200px;
        }

        .specification-item-value {
            span {
                margin-top: 12px;

                &:first-child {
                    margin-top: 0;
                }
            }
        }
    }
}


.product-seller-card {

    &__mask {
        position: absolute;
        inset: 8px;
        bottom: -8px;
        border-radius: 16px;
        opacity: 0.5;
        background: var(--white);
        z-index: 1;
    }

    &__secondary-img {
        width: 308px;
        height: 316px;
        bottom: 0;
        top: -40px;
        margin-bottom: -40px;
    }

    &__details {
        width: calc(100% - 332px);

        &-about {
            height: 84px;
            overflow: hidden;
        }
    }

    &__profile-btn {
        position: absolute;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        width: 221px;
        height: 56px;
        border-radius: 48px;
        border: 8px solid var(--white);
        background-color: var(--primary);

        &:hover {
            background-color: var(--primary-hover);
        }
    }

    @media (max-width: $screen-sm-max) {
        &__secondary-img {
            width: 100%;
            top: 0;
            margin-bottom: 0;
        }

        &__details {
            width: 100%;
        }
    }
}


.product-files-separator-with-circles {
    position: absolute;
    top: -24px;
    left: 48px;
    z-index: 6;

    .rtl & {
        left: auto;
        right: 48px;
    }

    &:after {
        content: "";
        width: 2px;
        height: 12px;
        border-left: 2px dashed var(--gray-200);
        position: absolute;
        top: 4px;
        left: 4px;
    }

    .circle-top, .circle-bottom {
        position: absolute;
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background-color: var(--gray-100);
        border: 1px solid var(--gray-200);
        z-index: 5;
    }

    .circle-top {
        top: -7px;
    }

    .circle-bottom {
        bottom: -27px;
    }
}

.product-files-thumbnail {
    position: relative;
    top: -32px;
    margin-bottom: -24px;
}
