@import './common.css';
@import './forms.css';

.d-flex-space {
    display: flex;
    justify-content: space-between;
}

.custom-owl-block button,
.custom-owl-block input[type='button'] {
    background-color: transparent;
    border: none;
    margin: 0 1rem;
}

.custom-owl-block .owl-next-btn,
.custom-owl-block .owl-prev-btn {
    background: url('../img/next-active.svg') no-repeat;
    width: 23px;
    height: 20px;
    transform: rotate(0);
}

.custom-owl-block button.owl-prev-btn {
    background-image: url('../img/next-active.svg');
    transform: rotate(180deg);
    height: 22px;
}

.custom-owl-block button.owl-prev-btn.disabled,
.custom-owl-block button.owl-next-btn.disabled {
    background: url('../img/disabled-arrow-prev.svg') no-repeat;
    height: 20px;
    width: 23px;
    transform: rotate(0);
}

.custom-owl-block button.owl-next-btn.disabled {
    background: url('../img/disabled-arrow-next.svg') no-repeat;
}

.wrapper-gallery {
    position: relative;
    font-family: 'Tajawal';
}

.preloader-gallery {
    position: absolute;
    top: 0;
    height: 450px;
    width: 100%;
    background: url('../img/ajax-loader.gif') no-repeat center center rgba(255, 255, 255, 0.95);
    opacity: 1;
    display: none;
    z-index: 15;
    transition: width 0.35s ease-in-out;
    overflow: hidden;
    margin: auto;
}

.pinkrays-container {
    margin: 0 auto var(--size40);
    min-height: calc(100vh - 446px);
}

.zoom-box {
    display: flex;
    gap: var(--size10);
    flex-direction: column;
    width: 34rem;
    min-height: 45rem;
}

.product-box {
    display: flex;
    gap: var(--size40);
    position: relative;
}

.preview-box {
    max-width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-box img,
.preview-box video {
    width: 100%;
    object-fit: cover;
}

.preview-box video {
    aspect-ratio: 1;
}

.product-box.gap-md {
    gap: var(--size20);
}

.product-details {
    width: 100%;
    position: relative;
}

.product-details h2 {
    line-height: 1.25;
}

.product-details h2,
.product-details .old-rate,
.product-details .new-rate,
.product-details .price-block {
    font-family: 'Tajawal-Medium';
}

.product-details .price-block {
    display: flex;

    align-items: center;
    padding: 5px;
}

.product-details .old-rate {
    text-decoration: line-through;
    margin-right: 0.5rem;
    line-height: 26px;
}

.product-details .new-rate {
    font-family: 'Tajawal-Bold';
}

.product-details label {
    margin-bottom: var(--size);
    font-family: 'Tajawal-Medium';
}

.product-details .qnty-block {
    display: flex;
    align-items: center;
}

.product-details .quantity-box {
    font-family: 'Tajawal';
    border: 0.1rem solid var(--base);
    width: fit-content;
    border-radius: 6px;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-details .quantity-box input[type='text'].qnty-input {
    padding: 0.4rem 1rem;
    background: transparent padding-box;
    text-align: center;
    max-width: 5rem;
    font-size: var(--size16);
    border: 0;
}

.product-details .quantity-box .qnty-type {
    border: none;
    padding: 0.2rem 1rem;
    font-size: 1rem;
    min-height: 40px;
}

.product-details .quantity-box .qnty-type {
    background-color: transparent;
}

.product-details .quantity-box .qnty-type:hover {
    color: black;
}

.prod-left {
    color: var(--error);
    display: flex;
    margin-left: var(--size40);
    font-family: 'Tajawal-Bold';
    font-size: var(--size16);
}

:root {
    --transition-fast: 0.1s;
}

.product-details .form-row {
    font-family: 'Tajawal-Medium';
    margin-bottom: var(--size30);
}

.product-details .form-row textarea {
    width: calc(100% - 30%);
    font-size: var(--size16);
    height: 90px;
}

.radio-heading,
.product-details .form-row label {
    font-family: 'Tajawal-Medium';
    color: var(--base);
    margin-bottom: var(--size10);
    float: inherit;
}

.pinkrays-radio-group {
    font-family: 'Tajawal';
    margin-top: var(--size10);
    margin-bottom: var(--size28);
    min-width: fit-content;
}

.pinkrays-radio-group input[type='radio'] {
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
    position: absolute;
    height: 1px;
    width: 1px;
}

.pinkrays-radio-group label {
    user-select: none;
    border: 0.1rem solid var(--base);
    cursor: pointer;
    background-color: transparent;
    color: var(--base);
    border-radius: 22px;
    display: inline-block;
    margin: 0 0.5rem 0.2rem 0;
    padding: 0.6rem 1rem;
    letter-spacing: 0.1rem;
    text-align: center;
    min-width: 60px;
    transition: all 0.1ms;
}

.pinkrays-radio-group .disabled {
    background-color: #0000001a;
    border: 1px #808080;
    cursor: not-allowed;
    pointer-events: none;
}

.pinkrays-radio-group label:last-of-type {
    margin-right: 0;
}

.pinkrays-radio-group input[type='radio']:checked + label,
.pinkrays-radio-group input[type='radio']:hover:not(:checked) + label {
    background-color: var(--base);
    color: #fff;
}

.product_owl_slide.owl-carousel {
    display: none;
}

.tab-content {
    font-family: 'Tajawal';
    margin-bottom: 4rem !important;
    border-bottom: 1px solid rgba(200, 200, 230);
}

.nav-pills {
    border-bottom: 1px solid rgba(200, 200, 230);
}

.tab-content button {
    font-family: 'Tajawal-Medium';
}

.accordion-button:focus {
    border-color: none;
    box-shadow: 0 0 0 0.2rem rgba(1, 1, 1, 0.25);
}

.accordion-item {
    background-color: transparent;
    border-radius: 0;
    border: 0;
}

.accordion-body {
    font-family: 'Tajawal';
    font-size: var(--size16);
    line-height: 1.2;
}

.accordion-body .title {
    margin-bottom: var(--size20);
}

.nav-tabs .nav-link {
    font-family: 'Tajawal';
    padding: 1rem 0;
    margin-right: 2rem;
    color: var(--base);
    font-size: var(--size18);
}

.accordion-button:not(.collapsed),
.accordion-button:is(.collapsed) {
    background-color: transparent;
    border-bottom: 0.1rem solid var(--base);
    color: var(--base);
}

.accordion-button:focus {
    border-color: transparent !important;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    font-family: 'Tajawal';
    background-color: transparent;
    color: var(--base);
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 4px solid var(--base);
}

.nav-tabs .nav-link.active,
.tab-pane h3 {
    font-family: 'Tajawal-Bold';
}

.tab-pane h3 {
    font-size: var(--size18);
}

.accordion-button::after {
    background: url(../img/plus.svg) no-repeat;
}

.accordion-button:not(.collapsed)::after {
    background: url(../img/minus.svg) no-repeat;
    width: 17px;
    height: 2px;
}

.form-section input[type='text'] {
    border: 0.1rem solid var(--base);
    border-radius: 6px;
    padding: 16px;
    background-color: transparent;
    font-size: var(--size16);
    border-radius: 0.3rem;
    padding: 0.5rem 0.8rem;
    width: 100%;
}

.accordion-body .size-chart {
    width: fit-content;
    overflow-x: auto;
    margin: var(--size10) 0;
}

.accordion-body h2.size-title {
    font-family: 'Amrcanan';
}

.accordion-body .size-chart-table {
    table-layout: fixed;
    border-collapse: collapse;
    border-style: hidden;
    margin: 0;
    text-align: center;
}

.accordion-body .size-chart-table th,
.accordion-body .size-chart-table td {
    padding: 10px;
    border: 1px solid black;
}

@media (min-width: 320px) {
    .radio-heading,
    .product-details .form-row label,
    .cards_carousel .cards .card-content .rate,
    .cards_carousel .cards .card-content .discount,
    .cards_carousel .cards .card-content .title a {
        font-size: var(--size14);
    }

    .accordion-body {
        padding: 2rem 1.25rem;
        font-size: var(--size14);
    }

    .accordion-body .size-chart-table {
        margin: 0 auto;
    }

    .form-section {
        width: 100%;
    }

    .section__title {
        text-align: center;
        justify-content: center;
        margin-bottom: 20px;
        font-family: 'Tajawal-Medium';
    }

    .tab-content > .tab-pane {
        display: block;
        opacity: 1;
    }

    .zoom-box {
        display: none;
    }

    .product-box {
        flex-direction: column;
        gap: var(--size20);
    }

    .fancybox-gallery {
        display: flex;
        width: 100%;
    }

    .product_owl_slide.owl-carousel {
        display: grid;
    }

    .product-details {
        padding: 0; /* 14 jan changes**/
    }

    .product-details .qnty-block {
        align-items: center;
    }

    .product-details .form-row textarea {
        width: 100%;
    }

    .preview-box {
        display: none;
    }

    .custom-owl-block {
        display: none;
    }

    .cards_carousel .cards figure {
        max-height: 270px;
    }

    .pinkrays-radio-group label {
        padding-top: 0.8rem;
        font-size: var(--size14);
    }

    .accordion-body .size-chart {
        max-width: 320px;
    }
}

@media (min-width: 767.99px) {
    .radio-heading,
    .product-details .form-row label,
    .cards_carousel .cards .card-content .rate,
    .cards_carousel .cards .card-content .discount,
    .cards_carousel .cards .card-content .title a {
        font-size: var(--size18);
    }

    .accordion-body {
        font-size: var(--size16);
        padding: 2rem 0;
    }

    .pinkrays-radio-group label {
        padding: 0.6rem 1rem;
        font-size: var(--size16);
    }

    .section__title {
        justify-content: space-between;
        margin-bottom: 50px;
        font-family: 'Tajawal-Bold';
    }

    .custom-owl-block {
        display: flex;
        align-items: center;
    }

    .cards_carousel .cards figure {
        max-height: 275px;
    }

    .product_owl_slide figure {
        max-height: 460px;
    }

    .product-box {
        flex-direction: row;
        gap: var(--size40);
    }

    .tab-content > .tab-pane {
        display: none;
    }

    .tab-content > .active {
        display: block;
        opacity: 1;
    }

    .form-section {
        width: 100%;
    }

    .accordion-body .size-chart {
        max-width: fit-content;
    }
}

@media (min-width: 1200px) {
    .form-section {
        width: calc(100% - 140px);
    }

    .checkout-warpper,
    .order-details-wrapper {
        width: 800px;
    }

    .fancybox-gallery {
        display: none;
    }

    .zoom-box,
    .maginifyPreview,
    .preview-box {
        display: flex;
    }

    .cards_carousel .cards figure {
        max-height: 390px;
    }

    .accordion-body .size-chart-table {
        margin: 0;
    }

    .accordion-body .size-chart {
        max-width: fit-content;
    }
}
