/* Product detail page (Figma) */

.product-page {
    direction: rtl;
}

.product-hero-section {
    position: relative;
    padding: 8px 0 40px;
    margin-bottom: 8px;
    overflow: hidden;
}

.product-hero-section__bg {
    position: absolute;
    inset: 0;
    background-color: #f8f9fc;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.2;
}

.product-hero-section__container {
    position: relative;
    z-index: 1;
    max-width: 1560px;
}

.product-page .product.page {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin-top: 0 !important;
    padding: 0;
}

.product-page .breadcrumb-container {
    margin-bottom: 16px;
}

/* Gallery */
.product-page .product-gallery {
    padding: 20px 16px 16px;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    background: transparent;
    border-radius: 0px;
}

.product-page .product-gallery-carousel {
    border-radius: 24px;
    overflow: hidden;
    min-height: 360px;
    background: #fff;
    border: 1px solid #E4E7EC;
    box-shadow: 0px 4px 8px -2px #1018281A;
    margin-right: 18px;
}

.product-page .product-gallery-carousel .item img {
    max-height: 420px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

.product-page .product-thumbnails {
    position: static !important;
}

.product-page .product-thumbnails img {
    border: 1px solid #D0D5DD;
    border-radius: 16px;
}

.product-page .product-thumbnails .owl-item {
    padding: 4px;
}

.product-page .product-thumbnails img {
    border: 2px solid #eaecf0;
    border-radius: 14px;
    padding: 6px;
    background: #fff;
}

.product-page .product-thumbnails .current img,
.product-page .product-thumbnails .active img {
    border-color: #7f56d9;
}

/* Hero info (left column) */
.product-page .product-info-column {
    padding-top: 8px;
    padding-left: 12px;
}

.product-page .product-info-breadcrumb .breadcrumb-container {
    width: 100%;
    height: auto;
    float: none;
    background: transparent;
    box-shadow: none;
    border: 0;
    margin: 0 0 22px;
    padding: 0;
    line-height: 1.6;
    text-align: right;
}

.product-page .product-info-breadcrumb .js-breadcrumb {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

.product-page .product-info-breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.product-page .product-info-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    float: none !important;
    content: "‹" !important;
    color: #d0d5dd;
    padding: 0 8px !important;
    font-size: 16px;
    line-height: 1;
}

.product-page .product-info-breadcrumb .breadcrumb-link {
    font-size: 13px;
    font-weight: 500;
    color: #98a2b3;
    text-decoration: none;
}

.product-page .product-info-breadcrumb .breadcrumb-link:hover {
    color: #6941c6;
}

.product-page .product-info {
    padding: 0;
    border: 0;
}

.product-page .product-info-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    direction: rtl;
}

.product-page .product-info-head__titles {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
}

.product-page .product-info-head__buy {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    direction: rtl;
}

.product-page .product .product-title,
.product-page .product-title {
    height: auto;
    overflow: visible;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.55;
    font-weight: 800;
    color: #1d2939;
    margin: 0 0 6px;
}

.product-page .product-title-en,
.product-page span.product-title-en {
    display: block;
    height: auto;
    font-size: 14px;
    font-weight: 400;
    color: #667085;
    margin: 0;
}

.product-page .product-info .ui-gradient-divider--tabs {
    margin: 18px 0 20px;
}

.product-page .product ul.gallery-options,
.product-page .gallery-options {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    direction: ltr;
    float: none;
    width: auto;
}

.product-page .product ul.gallery-options li,
.product-page .gallery-options li {
    margin: 0;
    z-index: 2;
    position: relative;
}

.product-page .product ul.gallery-options a,
.product-page .product ul.gallery-options button,
.product-page .gallery-options a,
.product-page .gallery-options button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #eaecf0;
    background: #ffffff;
    color: #98a2b3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    position: static;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    cursor: pointer;
}

.product-page .gallery-options .favorites,
.product-page .gallery-options .favorites i,
.product-page .product .favorites {
    color: #7f56d9 !important;
    border-color: #d6bbfb !important;
    background: #f9f5ff !important;
}

.product-page .product-info-head .product-seller-row.price {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    text-align: left;
}

.product-page .product-info-head .product-discount-percent {
    margin: 0 0 4px;
    font-size: 12px;
    color: #f04438;
    text-align: left;
}

.product-page .product-info-head .product-seller-price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 2px;
    direction: rtl;
    width: auto;
}

.product-page .product-info-head #p-old-price {
    display: block;
    position: static;
    order: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #98a2b3 !important;
    margin: 0;
    padding: 0;
    text-align: left;
    text-decoration: line-through;
    white-space: nowrap;
}

.product-page .product-info-head #p-old-price:empty {
    display: none;
}

.product-page .product-info-head #p-online-price,
.product-page .product-info-head .product-price-unit {
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 800;
    color: #42307d !important;
    line-height: 1.3;
    float: none;
    text-align: left;
    white-space: nowrap;
}

.product-page .product-info-head .product-price-unit:empty {
    display: none;
}

.product-page .product-info-head__buy .product-rating {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 8px 0 0;
    direction: ltr;
    float: none;
}

.product-page .product-info-head .rating-stars-container {
    width: 88px;
    height: 18px;
    margin: 0;
}

.product-page .product-info-head .rating-stars-container i {
    font-size: 14px;
    margin: 0 1px;
}

.product-page .product-info-head .rating-stars i {
    color: #7f56d9;
}

.product-page .product-info-head .rating-background i {
    color: #e4e7ec;
}

.product-page .product-info-head .product-rating-reviews {
    font-size: 12px;
    color: #98a2b3;
    text-decoration: none !important;
    white-space: nowrap;
    border: 0;
}

.product-page .product-info .product-attributes > .row {
    display: block;
    margin: 0;
}

.product-page .product-info .product-attributes > .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: none;
    float: none;
    padding: 0;
}

.product-page .product-params {
    margin-top: 20px;
    padding-top: 0;
    border-top: 0;
}

.product-page .product-params-title {
    display: block;
    margin: 0 0 12px;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1d2939;
}

.product-page .product-params-title::before {
    content: none;
}

.product-page .product-params ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.product-page .product-params ul li:not(.product-params-more-handler) {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
    padding: 8px 14px;
    border: 1px solid #eaecf0;
    border-radius: 999px;
    background: #ffffff;
    font-size: 13px;
    line-height: 1.6;
    color: #344054;
    margin: 0;
    position: static;
    white-space: normal;
}

.product-page .product-params ul li::before {
    content: none;
}

.product-page .product-params ul li.hidden {
    display: none;
}

.product-page .product-params ul li span:first-child {
    color: #667085;
}

.product-page .product-params ul li a {
    color: #344054;
    font-weight: 600;
    text-decoration: none;
    float: none;
    width: auto !important;
}

.product-page .product-params ul li.product-params-more-handler {
    display: flex;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
}

.product-page .product-params .more-attr-button {
    color: #6941c6;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.product-page .product-intro-snippet {
    margin-top: 4px;
}

.product-page .product-intro-snippet__title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1d2939;
}

.product-page .product-intro-snippet__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
    color: #475467;
    text-align: right;
    overflow-wrap: anywhere;
}

.product-page .product-info .product-config,
.product-page .product-info .product-config-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    float: none;
}

.product-page .product-info .product-seller-row.guarantee {
    float: none;
    width: auto;
    margin: 14px 0 0;
    padding: 0;
    border: 0;
    text-align: right;
}

.product-page .cart-form > .mt-3 {
    margin-top: 22px !important;
    float: right;
    width: 100%;
}

.product-page #add-product-to-cart-btn,
.product-page #notifiy-availability-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    direction: rtl;
    width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    border-radius: 16px;
    border: 0;
    background: #6941c6;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    overflow: hidden;
    box-shadow: none;
}

.product-page #add-product-to-cart-btn::before,
.product-page #notifiy-availability-btn::before {
    content: none;
}

.product-page #add-product-to-cart-btn i,
.product-page #notifiy-availability-btn i {
    position: static;
    font-size: 20px;
    color: #ffffff !important;
    line-height: 1;
}

.product-page #add-product-to-cart-btn:hover,
.product-page #notifiy-availability-btn:hover {
    background: #53389e;
    color: #ffffff;
}

.product-page .product-config-wrapper select.form-control {
    border-radius: 12px;
    border-color: #eaecf0;
}

/* Tabs + sticky buy */
.product-detail-tabs-section {
    margin-top: 24px;
    padding-bottom: 48px;
}

.product-detail-tabs-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    direction: rtl;
    flex-direction: row-reverse;
}

.product-sticky-buy-card {
    flex: 0 0 300px;
    max-width: 300px;
    position: sticky;
    top: 100px;
    background: #ffffff;
    border: 1px solid #E4E7EC;
    border-radius: 22px;
    box-shadow: 0px 1px 2px 0px #1018280F;
    padding: 18px 16px 16px;
    box-sizing: border-box;
}

.product-sticky-buy-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    direction: rtl;
}

.product-sticky-buy-card__thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    object-fit: contain;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    background: #fff;
    padding: 4px;
}

.product-sticky-buy-card__title {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 700;
    color: #1d2939;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-sticky-buy-card__prices {
    margin: 14px 0 16px;
    text-align: left;
    direction: ltr;
}

.product-sticky-buy-card__prices del {
    display: block;
    font-size: 13px;
    color: #98a2b3;
    margin-bottom: 4px;
}

.product-sticky-buy-card__prices .sticky-online-price {
    font-size: 22px;
    font-weight: 800;
    color: #42307d;
}

.product-sticky-buy-card__submit {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    background: #42307d;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.product-sticky-buy-card__submit:hover {
    background: #36226f;
}

.product-detail-tabs-main {
    flex: 1 1 auto;
    min-width: 0;
}

.product-detail-tabs-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: 0;
    padding: 4px 14px;
    list-style: none;
    background: #f2f4f7;
    border-radius: 16px 16px 0 0;
}

.product-detail-tabs-nav__item {
    margin: 0;
}

.product-detail-tabs-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #667085;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.product-detail-tabs-nav__btn:hover {
    color: #6941c9;
}

.product-detail-tabs-nav__btn.is-active {
    color: #6941c9;
    font-weight: 700;
    box-shadow: inset 0 -2px 0 0 #7f56d9;
    border-radius: 12px 12px 0 0;
}

.product-detail-tab-section-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #42307d;
    display: none;
}

.product-detail-tab-subsection {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #f2f4f7;
}

.product-detail-tab-subsection__title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #42307d;
}

.product-detail-tabs-main > .ui-gradient-divider--tabs {
    margin: 0;
    border-radius: 0;
}

.product-detail-tab-panels {
    background: #ffffff;
    border-top: 0;
    overflow: auto;
    padding: 16px 0
}

.product-detail-tab-panel {
    display: none;
}

.product-detail-tab-panel.is-active {
    display: block;
}

.product-detail-tab-panel .sticky-tab-finder {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.product-detail-tab-panel .desc-content,
.product-detail-tab-panel article,
.product-detail-tab-panel .params-list {
    font-size: 14px;
    line-height: 1.85;
    color: #475467;
}

.product-page .params-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid #E3E8EF;
    border-radius: 8px;
    overflow: hidden;
}

.product-page .params-list-item {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #E3E8EF;
    margin: 0 !important;
}

.product-page .params-list-item:nth-child(even) {
    background: #f9fafb;
}

.product-page .params-list-item:last-child {
    border-bottom: 0;
}

.product-page .params-list-key,
.product-page .params-list-value {
    flex: 1 1 50%;
    box-sizing: border-box;
}

.product-page .params-list-key span {
    color: #667085;
    font-weight: 500;
    background-color: #F8FAFC !important; 
}

.product-page .params-list-value span {
    color: #344054;
    font-weight: 600;
    padding: 6px 8px 6px 6px;
    background-color: #F8FAFC !important; 
}

.product-page .params-list-key{
    padding-left: 0px !important;
    padding-right: 0px !important;
    margin-bottom: 0px !important;
}

.product-page .params-title {
    font-size: 15px;
    font-weight: 700;
    color: #42307d;
    margin: 0 0 12px;
    display: none;
}

/* Comments tab */
.product-comments-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.product-comments-toolbar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid #eaecf0;
    background: #ffffff;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.product-comments-toolbar__btn:hover {
    border-color: #d0d5dd;
    color: #6941c9;
    text-decoration: none;
}

.product-page .comment-body {
    position: relative;
    display: block;
    margin: 0 0 16px;
    padding: 22px 20px 18px;
    border: 1px solid #eef2f6;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.04);
    overflow: hidden;
}

.product-page .comment-body::before {
    content: "\201C";
    position: absolute;
    top: 8px;
    right: 16px;
    font-size: 56px;
    line-height: 1;
    color: #d6bbfb;
    font-family: Georgia, serif;
    pointer-events: none;
}

.product-page .comment-body .col-lg-4,
.product-page .comment-body .col-lg-8 {
    max-width: 100%;
    flex: 0 0 100%;
    padding: 0;
}

.product-page .comment-body .article {
    padding-top: 28px;
    text-align: center;
}

.product-page .comment-body .article p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.9;
    color: #475467;
}

.product-page .comment-body .aside {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    gap: 12px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #f2f4f7;
}

.product-page .comment-body .cell-name {
    font-size: 13px;
    font-weight: 600;
    color: #667085;
}

.product-page .comments-summary {
    margin-bottom: 20px;
}

.product-page .comments-summary-note .parent-btn {
    display: none;
}

.product-page .comments-headline {
    display: none;
}

.product-page #stickyNavbar {
    display: none !important;
}

@media (max-width: 991px) {
    .product-page .product-hero-section__container {
        padding-left: 0;
        padding-right: 0;
    }

    .product-page article.product.page {
        overflow: visible;
    }

    .product-page .product-gallery {
        display: block;
        padding: 0;
    }

    .product-page .product-thumbnails {
        display: none !important;
    }

    .product-page .product-gallery-carousel {
        width: 100%;
        margin: 0;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        min-height: 280px;
    }

    .product-page .product-gallery-carousel .item img {
        width: 100%;
        max-height: 460px;
    }

    .product-page .product-info-column {
        padding: 16px 16px 0;
    }

    .product-detail-tabs-section {
        padding: 0 16px 108px;
    }

    .product-detail-tabs-layout {
        flex-direction: column;
    }

    .product-detail-tabs-nav {
        display: none;
    }

    .product-detail-tab-panel {
        display: block !important;
        margin-bottom: 28px;
    }

    .product-detail-tab-section-title {
        display: block;
    }

    .product-sticky-buy-card {
        position: fixed;
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1002;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        box-shadow: 0 -6px 18px rgba(16, 24, 40, 0.08);
    }

    .product-sticky-buy-card__head,
    .product-sticky-buy-card > .ui-gradient-divider {
        display: none;
    }

    .product-sticky-buy-card__prices {
        flex: 1 1 auto;
        margin: 0;
        text-align: right;
        direction: rtl;
    }

    .product-sticky-buy-card__prices del:empty {
        display: none;
    }

    .product-sticky-buy-card__submit {
        flex: 0 0 auto;
        width: auto;
        min-width: 148px;
        margin: 0;
    }
}

@media (max-width: 767px) {
    .product-page .product-info-head {
        flex-direction: column;
    }

    .product-page .product-info-head {
        gap: 16px;
    }

    .product-page .product-info-head__buy {
        align-items: flex-start;
        width: 100%;
    }

    .product-page .product-info-head .product-seller-price-info,
    .product-page .product-info-head__buy .product-rating,
    .product-page .gallery-options {
        justify-content: flex-start;
    }

    .product-page .product-info-column {
        padding-left: 15px;
    }
}

.single-product .product .product-gallery::before {
    content: none;
}

.single-product .product .product-gallery::after {
    content: none;
}