/* Dark overlay on title-bar / page-header hero images so white heading and
   breadcrumb text stays readable regardless of how bright the background
   photo is. The theme's own :before already covers the full area and sits
   behind the content (z-index:1 on .pbmit-title-bar-content), we just give
   it a tinted background. */
.pbmit-title-bar-wrapper:before {
    background-color: rgba(var(--pbmit-blackish-color-rgb), 0.6);
    background-image: linear-gradient(180deg, rgba(var(--pbmit-blackish-color-rgb), 0.45) 0%, rgba(var(--pbmit-blackish-color-rgb), 0.7) 100%) !important;
}

/* Same dark overlay treatment applied to the homepage hero slider so its
   headings/buttons stay legible on top of bright product photography,
   consistent with the title-bar hero overlay used on the other pages. */
.pbmit-slider-one .pbmit-slider-item {
    position: relative;
    background-color: rgba(var(--pbmit-blackish-color-rgb), 0.35);
}

.pbmit-slider-one .pbmit-slider-item:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-image: linear-gradient(180deg, rgba(var(--pbmit-blackish-color-rgb), 0.45) 0%, rgba(var(--pbmit-blackish-color-rgb), 0.7) 100%);
    pointer-events: none;
}

.pbmit-slider-one .pbmit-slider-item > .container {
    position: relative;
    z-index: 1;
}

.pbmit-portfolio-filter-button {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.pbmit-portfolio-filter-button li {
    display: inline-block;
}

.pbmit-portfolio-filter-button li a {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid #ddd;
    border-radius: 30px;
    color: var(--pbmit-blackish-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.pbmit-portfolio-filter-button li.active a,
.pbmit-portfolio-filter-button li a:hover {
    background-color: var(--pbmit-global-color);
    border-color: var(--pbmit-global-color);
    color: #fff;
}

.pbmit-portfolio-style-1 .pbminfotech-post-item {
    border-radius: 15px;
    overflow: hidden;
}

.pbmit-portfolio-style-1 .pbmit-featured-wrapper img {
    height: 350px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}

.pbmit-portfolio-style-1 .pbminfotech-post-item:hover .pbmit-featured-wrapper img {
    transform: scale(1.05);
}

.pbmit-portfolio-style-1 .pbminfotech-box-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.pbmit-portfolio-style-1 .pbmit-port-cat a {
    color: var(--pbmit-global-color);
    font-size: 13px;
    text-decoration: none;
}

.pbmit-portfolio-style-1 .pbmit-portfolio-title a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.pbmit-portfolio-style-1 .pbmit-featured-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

/* Header spacing: add breathing room between header buttons/links */
.pbmit-logo-button-area {
    gap: 25px;
}

.pbmit-right-box {
    gap: 25px;
}

.site-navigation ul.navigation > li > a {
    margin: 0 26px !important;
}

.pbmit-breadcrumb-inner .sep {
    padding: 0 10px;
}

/* RTL logo box: flush to the page's outer (right) edge, like the LTR template's
   box sits flush-left. The theme's own decorative "sticky corner" SVG pieces are
   designed to blend into an adjacent solid-color panel (e.g. the content directly
   below/beside the box) — since our header sits on a photographic hero image with
   no matching panel, those pieces would just float as disconnected artifacts, so
   we hide them and rely on the box's own real border-radius instead. Only the
   corner touching the page edge (top-right) stays sharp; the other three are
   rounded for a soft "floating card" look. */
html[dir="rtl"] .header-style-1 .pbmit-main-header-area > .container-fluid {
    padding: 0 0 0 20px;
}

html[dir="rtl"] .header-style-1 .site-branding {
    border-radius: 20px 0 20px 20px;
    margin-right: 0;
    margin-left: 20px;
    overflow: hidden;
}

html[dir="rtl"] .header-style-1 .site-branding .pbmit-sticky-corner {
    display: none;
}

/* RTL fix: the theme's round arrow-button icon is built for LTR (sits on the
   right). Mirror it to the left for every button site-wide so the arrow
   points in the natural reading/forward direction for RTL. */
.pbmit-btn:after {
    right: auto;
    left: -35px;
}

.pbmit-btn:hover:after {
    transform: translate3d(-10px, 0, 0) rotateZ(45deg);
}

.pbmit-button-box-second {
    margin-left: 40px;
}

/* Fix RTL spacing: the call icon on the "سفارش محصول" header button sits to
   the icon's visual right in RTL flex order, so the gap must be on the left */
.header-style-1 .pbmit-button-box .pbmit-header-button a:before {
    margin-right: 0;
    margin-left: 10px;
}

/* =========================================================
   Product Detail Page — professional redesign
   ========================================================= */

/* --- Gallery --- */
.luxara-pd-main-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(var(--pbmit-blackish-color-rgb), 0.12);
}

.luxara-pd-main-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.luxara-pd-main-image:hover img {
    transform: scale(1.03);
}

.luxara-pd-ribbon {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--pbmit-blackish-color);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 30px;
    z-index: 2;
}

.luxara-pd-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.luxara-pd-thumb {
    display: block;
    width: calc(25% - 9px);
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.65;
    transition: all 0.3s ease;
}

.luxara-pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.luxara-pd-thumb:hover,
.luxara-pd-thumb.is-active {
    opacity: 1;
    border-color: var(--pbmit-global-color);
}

/* --- Info panel --- */
.luxara-pd-info {
    padding-block: 10px;
    padding-inline-start: 30px;
}

.luxara-pd-category {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--pbmit-global-color);
    background: rgba(var(--pbmit-global-color-rgb), 0.1);
    padding: 6px 18px;
    border-radius: 30px;
    text-decoration: none;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}

.luxara-pd-title {
    font-size: 34px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--pbmit-heading-color);
    margin-bottom: 12px;
}

.luxara-pd-short-desc {
    font-size: 17px;
    line-height: 1.9;
    color: #777;
    margin-bottom: 22px;
}

.luxara-pd-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(var(--pbmit-blackish-color-rgb), 0.1);
}

.luxara-pd-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 30px;
}

.luxara-pd-badge.is-available {
    background: rgba(58, 145, 90, 0.12);
    color: #3a915a;
}

.luxara-pd-badge.is-unavailable {
    background: rgba(200, 60, 60, 0.1);
    color: #c83c3c;
}

.luxara-pd-sku {
    font-size: 14px;
    color: #888;
}

.luxara-pd-sku strong {
    color: var(--pbmit-blackish-color);
}

.luxara-pd-price {
    margin-bottom: 25px;
}

.luxara-pd-price-amount {
    font-size: 30px;
    font-weight: 700;
    color: var(--pbmit-secondary-color);
}

.luxara-pd-price-currency {
    font-size: 15px;
    color: #888;
    margin-right: 8px;
}

.luxara-pd-price-inquiry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--pbmit-secondary-color);
}

.luxara-pd-specs {
    background: var(--pbmit-light-color-2);
    border-radius: 16px;
    padding: 26px 28px;
    margin-bottom: 28px;
}

.luxara-pd-specs-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--pbmit-heading-color);
}

.luxara-spec-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.luxara-spec-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(var(--pbmit-blackish-color-rgb), 0.08);
}

.luxara-spec-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.luxara-spec-row:first-child {
    padding-top: 0;
}

.luxara-spec-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: rgba(var(--pbmit-global-color-rgb), 0.12);
    color: var(--pbmit-global-color);
    font-size: 14px;
}

.luxara-spec-label {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    min-width: 90px;
}

.luxara-spec-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--pbmit-blackish-color);
}

.luxara-spec-value a {
    color: var(--pbmit-blackish-color);
    text-decoration: underline;
}

.luxara-spec-value a:hover {
    color: var(--pbmit-global-color);
}

.luxara-pd-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

.luxara-pd-actions .pbmit-btn {
    width: calc(100% - 35px);
    margin-left: 35px;
    text-align: center;
}

.luxara-pd-trust {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 24px;
    border-top: 1px solid rgba(var(--pbmit-blackish-color-rgb), 0.1);
}

.luxara-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    flex: 1;
}

.luxara-trust-item i {
    font-size: 22px;
    color: var(--pbmit-global-color);
}

.luxara-trust-item span {
    font-size: 12.5px;
    color: #888;
    line-height: 1.5;
}

/* --- Full description --- */
.luxara-pd-description {
    padding: 40px;
    background: var(--pbmit-light-color);
    border-radius: 20px;
}

.luxara-pd-description h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    margin-bottom: 18px;
    color: var(--pbmit-heading-color);
}

.luxara-pd-description h3 i {
    color: var(--pbmit-global-color);
    font-size: 18px;
}

.luxara-pd-description p {
    font-size: 16px;
    line-height: 2;
    color: #666;
    margin: 0;
}

@media (max-width: 991px) {
    .luxara-pd-info {
        padding: 0;
        margin-top: 10px;
    }

    .luxara-pd-main-image img {
        height: 360px;
    }

    .luxara-pd-title {
        font-size: 26px;
    }
}

@media (max-width: 575px) {
    .luxara-pd-thumb {
        width: calc(33.333% - 8px);
    }

    .luxara-pd-trust {
        flex-wrap: wrap;
    }

    .luxara-trust-item {
        flex: 0 0 calc(33.333% - 7px);
    }
}
