/*
Theme Name:         Shoptimizer Child
Theme URI:          https://bomisaz.ir
Author:             Bomisaz
Author URI:          https://bomisaz.ir
Description:        فروشگاهی فوق پیشرفته جهت تجارت الکترونیک به صورت حرفه ای
Version:            1.0.0
Text Domain:        shoptimizer-child
Template:           shoptimizer
*/
/*@font-face {
    font-family: "IRANYekanX";
    src: url("./fonts/IRANYekanXVF.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}*/
@font-face {
    font-family: iranyekanx;
    font-weight: 100;
    src: url(./fonts/iranyekanx-light.woff2) format("woff2"), url(./fonts/iranyekanx-light.woff) format("woff");
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: iranyekanx;
    font-weight: 400;
    src: url(./fonts/iranyekanx-regular.woff2) format("woff2"), url(./fonts/iranyekanx-regular.woff) format("woff");
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: iranyekanx;
    font-weight: 500;
    src: url(./fonts/iranyekanx-medium.woff2) format("woff2"), url(./fonts/iranyekanx-medium.woff) format("woff");
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: iranyekanx;
    font-weight: 700;
    src: url(./fonts/iranyekanx-bold.woff2) format("woff2"), url(./fonts/iranyekanx-bold.woff) format("woff");
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: iranyekanx;
    font-weight: 900;
    src: url(./fonts/iranyekanx-extrabold.woff2) format("woff2"), url(./fonts/iranyekanx-extrabold.woff) format("woff");
    font-display: swap;
}
@font-face {
    font-family: bakala;
    src: url(./fonts/bakala.eot);
    src: url(./fonts/bakala.eot?#iefix) format("eot"), url(./fonts/bakala.woff) format("woff"), url(./fonts/bakala.ttf) format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
.kiwiai-bestseller-rank,.widget_price_filter .price_slider_amount ,.product-label,.count , .top-bar p , body.rtl ul.checkout-bar,.kiwiai-phone,
.woocommerce-result-count , .woocommerce-pagination .page-numbers,.product-countdown ,.footer-icon a , .footer-detail__contact-inner , .call-box{
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}
/* Start Header */
#menu-menu-login-signup li a {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #8BC34A;
    border-radius: 6px;
    max-height: 48px;
    background-color: #8BC34A;
}
.secondary-navigation .icon-wrapper {
    position: relative !important;
    right: 5px;
    left: auto;
    transform: translate(50%, 0);
    top: 3px;
}
/* End Header */
.image-feature .wp-caption , .elementor-widget-image.image-feature a {
    border-radius: 15px !important;
}
.secondary-navigation .icon-wrapper svg {
    stroke: #fff !important;
}
.secondary-navigation .menu a, .ri.menu-item:before, .fa.menu-item:before {
    color: #fff !important;
}
.term-description p,
.term-description a,
.term-description li,
.post-content.single p {
    font-size: 1rem;
    color: #444;
	text-decoration: unset !important;
}
.term-description h1 {
    font-size: 1.5rem;
    font-weight: 800;
}
.term-description img {
    max-width: 850px;
    border-radius: 8px;
}
.kiwiai-category-footer {
    background: #fff;
    padding: 20px;
    font-size: 16px;
    line-height: 1.8;
    border-top: 1px solid #ddd;
    border-radius:15px;
    box-shadow: 0 0 10px hsla(0, 0%, 74.9%, .35);
    -webkit-box-shadow: hsla(0, 0%, 74.9%, .35) 0 0 10px;

}
.term-description ul {
  margin-right: 2rem; /* فاصله کلی از راست */
}

.term-description li::marker {
  padding-left: 0.5rem; /* فاصله بین مارکر و متن */
  font-size: 1.1rem;
  color: #555;
}
.entry-content h2,
.term-description.readmore_desc h2,
.term-description h2,
.post-content.single h2 {
    color: #222;
    font-weight: 600;
    font-size: 1.4rem !important;
    margin-top: 1rem;
}
.entry-content h3,
.term-description.readmore_desc h3,
.term-description h3,
.post-content.single h3 {
    font-size: 1.125rem;
    color: #333;
    font-weight: 500;
    margin-top: 1rem;
}
.category-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 80px;
}
.category-links li a {
    display: block;
    text-decoration: none;
    background-color: #f8f9fa;
    color: #333;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
    font-size: 15px;
    text-align: center;
    list-style-type: none;
    list-style: none;
}
.category-links li::before {
    display: none;
    content: none;
}
.category-links li a:hover {
    background-color: #8bc34a;
    color: #fff !important;
    transform: translateY(-3px);
}
.category-links a::before {
    content: "👉 ";
    margin-left: 5px;
}
.woocommerce-products-header .term-description.readmore_desc {
    max-height: 100% !important;
}
.desc_more {
    display: none !important;
}
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
    direction: rtl;
    text-align: right;
}
.contact-form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #333;
}
.form-group {
    margin-bottom: 20px;
}
.contact-form-container .form-control {
    display: block;
    width: 100%;
    padding: 10px 15px;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}
.contact-form-container .form-control::placeholder {
    color: #6c757d;
    opacity: 1;
}
.contact-form-container .form-control:focus {
    border-color: #007bff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgb(0 123 255 / 0.25);
}
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}
.form-submit {
    margin-top: 30px;
    text-align: center;
}
.contact-form-container .btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: #fff0;
    border: 1px solid #fff0;
    padding: 10px 20px;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 4px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}
.contact-form-container .btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}
.contact-form-container .btn-primary:hover {
    color: #fff;
    background-color: #0056b3;
    border-color: #0056b3;
}
.wpcf7-response-output {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}
.wpcf7-response-output.wpcf7-mail-sent-ok {
    border-color: #28a745;
    background-color: #d4edda;
    color: #155724;
}
.wpcf7-response-output.wpcf7-mail-sent-ng,
.wpcf7-response-output.wpcf7-validation-errors {
    border-color: #dc3545;
    background-color: #f8d7da;
    color: #721c24;
}
p.review-title {
    font-size: 28px;
    letter-spacing: -0.6px;
    color: #333;
    font-weight: 400;
}
.shop-page {
    padding: 15px;
}
.swatch-control.radio-select ul {
    flex-direction: column;
}
#tab-desc a,
#tab-desc a span,
.post-content a {
    color: #8bc34a !important;
    font-weight: 700;
}
.mejs-container,
.mejs-container * {
    border-radius: 10px;
}
.modern-table,
#tab-description table,
.term-description table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
    color: #333;
    box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
    border-radius: 8px;
    overflow: hidden;
}
.modern-table thead,
.term-description thead,
#tab-description table thead {
    background-color: #f2f2f2;
}
.modern-table th,
.term-description th,
#tab-description table th {
    background-color: #8bc34a;
    color: #fff;
    padding: 12px 15px;
    text-align: right;
    border-bottom: 2px solid #ddd;
    font-weight: 700;
    font-size: 1.1em;
}
.modern-table tbody tr,
.term-description tbody tr,
#tab-description table tbody tr {
    border-bottom: 1px solid #eee;
}
.modern-table tbody tr:nth-child(even),
.term-description tbody tr:nth-child(even),
#tab-description table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
.modern-table tbody tr:hover,
.term-description tbody tr:hover,
#tab-description table tbody tr:hover {
    background-color: #e0e0e0;
    cursor: pointer;
}
.modern-table td,
.term-description td,
#tab-description table td {
    padding: 10px 15px;
    text-align: right;
    font-size: 0.95em;
    vertical-align: top;
}
@media screen and (max-width: 768px) {
    .modern-table,
    .modern-table thead,
    .modern-table tbody,
    .modern-table th,
    .modern-table td,
    .modern-table tr {
        display: block;
    }
    .modern-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .modern-table tr {
        border: 1px solid #ccc;
        margin-bottom: 15px;
        border-radius: 8px;
    }
    .modern-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }
    .modern-table td:before {
        position: absolute;
        top: 6px;
        right: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 700;
        text-align: left;
        color: #555;
    }
    .modern-table td:nth-of-type(1):before {
        content: "دسته‌بندی";
    }
    .modern-table td:nth-of-type(2):before {
        content: "مدل دستگاه";
    }
    .modern-table td:nth-of-type(3):before {
        content: "شارژر پیشنهادی";
    }
    .modern-table td:nth-of-type(4):before {
        content: "مناسب برای شارژر ٣۵ وات اپل ؟";
    }
    .modern-table td:nth-of-type(5):before {
        content: "توضیحات";
    }
    .related-videos-items-slider {
        padding-right: 20px;
    }
}
.sticky-header {
    z-index: 99 !important;
}
/*  Related video */
.related-videos-section {
    margin-top: 30px !important;
    margin-bottom: 30px !important;
    clear: both;
}
.related-videos-section h2 {
    margin-bottom: 20px;
    font-size: 1.7em;
    font-weight: 600;
    text-align: right;
}
.related-videos-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 20px;
    padding: 5px 5px 20px 5px;
    white-space: nowrap;
}
.related-videos-container::-webkit-scrollbar {
    height: 8px;
}
.related-videos-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.related-videos-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.related-videos-container::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
.related-videos-section header {
    margin: 15px 0 15px 0 !important;
}
.related-video-item-slide {
    transform: none !important;
    box-shadow: 0 8px 24px hsl(210 8% 62% / 0.2);
}
.related-video-item {
    position: relative;
    cursor: pointer;
    flex: 0 0 auto;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}
.related-video-item:hover {
    transform: translateY(-5px);
}
.related-video-item .related-video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: #111;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    height: 100%;
}
.related-video-item .related-video-thumbnail-wrapper img.related-video-actual-thumbnail,
.related-video-item .related-video-thumbnail-wrapper video.related-video-preview-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-video-item .play-overlay-slider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background-color: rgb(0 0 0 / 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}
.related-video-item .play-overlay-slider svg {
    fill: #fff;
    width: 28px;
    height: 28px;
}
.related-video-item:hover .play-overlay-slider {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}
#video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
    box-sizing: border-box;
}
#video-popup-player-container {
    position: relative;
    background-color: #000;
    max-width: 900px;
    width: 90%;
    aspect-ratio: 16 / 9;
    box-shadow: 0 8px 25px rgb(0 0 0 / 0.5);
    border-radius: 4px;
    overflow: hidden;
}
#video-popup-player {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    background-color: #000;
}
#video-popup-player::-webkit-media-controls-panel {
    border-radius: 0 0 4px 4px;
}
#video-popup-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgb(0 0 0 / 0.6);
    border: 2px solid rgb(255 255 255 / 0.8);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 5;
}
#video-popup-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}
#video-popup-play-button svg {
    fill: #fff;
    width: 40px;
    height: 40px;
}
#video-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #333;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    line-height: 32px;
    text-align: center;
    box-shadow: 0 2px 5px rgb(0 0 0 / 0.3);
    z-index: 10;
    transition: background-color 0.2s, transform 0.2s;
}
#video-popup-close:hover {
    background: #555;
    transform: scale(1.1) rotate(90deg);
}
.mejs-button.mejs-fullscreen-button {
    border-radius: 0 !important;
}
.related-video-title {
    display: inline-block;
    color: #000;
    height: 45px;
    margin: 0;
    padding: 7px 0;
    min-height: 45px;
    font-size: 14px;
    line-height: 31px;
    white-space: nowrap;
    position: relative;
    text-align: right;
    font-weight: 700;
}
.video-item-title b {
    margin: 0 !important;
}
.related-video-title:before {
    background: linear-gradient(90deg, var(--accent_gradient_from) #494b51, var(--accent_gradient_to));
    border: none;
}
@media screen and (min-width: 800px) {
    .related-video-item-slide {
        height: 300px !important;
    }
    .bakala_custom_label_product {
        right: 30px;
        left: auto !important;
    }
}
.video-popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgb(30 30 30 / 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    padding: 0;
}
.video-popup-nav svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
.video-popup-nav:hover:not(:disabled) {
    background-color: rgb(0 0 0 / 0.7);
    transform: translateY(-50%) scale(1.1);
}
.video-popup-nav:disabled {
    opacity: 0.3;
    cursor: default;
    background-color: rgb(30 30 30 / 0.3);
}
#video-popup-prev {
    left: 15px;
}
#video-popup-next {
    right: 15px;
}
@media (max-width: 767px) {
    .modern-header-img img {
        width: 120px !important;
        height: 43px !important;
        aspect-ratio: 120 / 43;
    }
}
.header-logo img {
    height: 50px;
    width: 175px;
    aspect-ratio: 175 / 50;
}
.products-box .bakala_custom_label_product {
    top: 15px !important;
}
.bakala_custom_label_product {
    right: 5px;
    left: auto !important;
}
.archive nav.woocommerce-breadcrumb {
    display: inline-flex !important;
}
.type_view.type_view_listing::before {
    color: #8bc34a !important;
}
.woocommerce-breadcrumb {
    width: auto !important;
}
.woocommerce .woocommerce-breadcrumb a {
    margin-top: 0 !important;
}
/* رفع قطعی مشکل Layout Shift هدر - نسخه دسکتاپ */
.category-links li a {
    margin: 0 !important;
}
.category-links li {
    max-width: 300px;
}
.category-links li.cat-item-none {
    display: none;
}
.contextual-category-nav {
    margin-top: 30px;
}
.contextual-category-nav h3 {
    font-weight: bold;
}
/* 1. پوشش اصلی ویدیو (Wrapper) */
.term-description .video-wrapper {
    position: relative;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* 2. استایل خود ویدیو در داخل پوشش */
.term-description .video-wrapper video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    background-color: #000;
}

/* 3. پوشش قابل کلیک که آیکن را در بر می‌گیرد */
.term-description .play-icon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

/* با افزودن کلاس is-playing، این پوشش به طور کامل مخفی می‌شود */
.term-description .video-wrapper.is-playing .play-icon-overlay {
    display: none;
}

.term-description .play-icon-overlay:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

/* 4. ظاهر آیکن (دایره سفید) */
.term-description .play-icon-visual {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    position: relative; /* برای جای‌گیری مثلث */
    transition: transform 0.3s ease;
}

/* مثلث داخل دایره */
.term-description .play-icon-visual::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    /* مرکز کردن دقیق مثلث */
    transform: translate(-50%, -50%);
    margin-left: 4px;

    width: 0;
    height: 0;
    border-style: solid;
    border-width: 16px 0 16px 26px;
    border-color: transparent transparent transparent #2c3e50;
}

/* افکت هاور روی پوشش، آیکن را بزرگ می‌کند */
.term-description .play-icon-overlay:hover .play-icon-visual {
    transform: scale(1.1);
}

/* 5. استایل‌های واکنش‌گرا برای موبایل */
@media (max-width: 767px) {
    .term-description .video-wrapper {
        margin: 15px 10px;
        border-radius: 12px;
    }

    /* کوچک کردن آیکن در موبایل */
    .term-description .play-icon-visual {
        width: 60px;
        height: 60px;
    }

    .term-description .play-icon-visual::after {
        border-width: 12px 0 12px 20px;
        margin-left: 3px;
    }
}
@media (min-width: 768px) {
    .bakala-wonder {
        min-height: 500px !important;
    }
}

@media (max-width: 767px) {
    .bakala-wonder {
        min-height: 571px !important;
    }
}
.related-videos-section .related-title {
    text-align: right;
    display: inline-block;
    font-weight: 700;
    color: #222;
    font-size: 14px;
    line-height: 2.5;
    margin-right: 15px;
    border-bottom: 2px solid var(--m_accent_color2);
    margin-bottom: 10px;
}
/* =========================================== */
/* ===    استایل‌های دسکتاپ (اسلایدر)    === */
/* =========================================== */
.related-videos-section .items.related-videos-items-slider {
    /* استایل‌های مربوط به Flickity برای دسکتاپ در اینجا قرار می‌گیرد */
    /* اگر از قبل استایلی برای این بخش دارید، اینجا حفظ می‌شود */
}
.related-videos-section .productItem.related-video-item-slide {
    /* استایل‌های هر آیتم در دسکتاپ */
}

/* =========================================== */
/* === استایل‌های تبلت و موبایل (اسکرول) === */
/* =========================================== */
@media screen and (max-width: 992px) {
    /* کانتینر اصلی اسکرول در موبایل */
    .related-videos-section .carousel__list.trading-items {
        display: flex;
        margin-right: 15px;
    }
    .related-videos-section header {
        margin: 0 20px 15px 0 !important;
    }
    /* آیتم‌های داخل اسکرول */
    .related-videos-section a.carousel__item.product {
        flex: 0 0 220px; /* عرض هر آیتم ویدیو */
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: inherit;
        background-color: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        min-height: 300px !important;
    }

    /* تصویر بندانگشتی و آیکن پلی */
    .related-videos-section .related-video-thumbnail-wrapper {
        position: relative;
        width: 100%;
        padding-top: 56.25%; /* نسبت 16:9 */
        background-color: #f0f0f1;
        min-height: 200px;
    }

    .related-videos-section .related-video-thumbnail-wrapper img,
    .related-videos-section .related-video-thumbnail-wrapper video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .related-videos-section .play-overlay-slider {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 48px;
        height: 48px;
        background-color: rgba(0, 0, 0, 0.6);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
        opacity: 0.8;
        transition: opacity 0.2s ease;
    }

    .related-videos-section .play-overlay-slider svg {
        fill: #fff;
        width: 28px;
        height: 28px;
    }

    /* عنوان ویدیو در موبایل */
    .related-videos-section .video-item-title {
        font-size: 13px;
        line-height: 1.5;
        padding: 10px;
        margin: 0;
        text-align: right;
        min-height: 50px;
        color: #333;
        flex-grow: 1; /* باعث می‌شود فضای خالی را پر کند و هم‌قد شود */
    }

    /* استایل‌های مربوط به پاپ‌آپ در همه اندازه‌ها */
    /* (این استایل‌ها از قبل وجود داشتند و برای اطمینان اینجا تکرار شده‌اند) */
    #video-popup-player-container {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    #video-popup-play-button {
        width: 60px;
        height: 60px;
    }

    #video-popup-play-button svg {
        width: 30px;
        height: 30px;
    }

    #video-popup-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 18px;
        line-height: 28px;
    }

    .video-popup-nav {
        width: 38px;
        height: 38px;
    }

    #video-popup-prev {
        left: 8px;
    }

    #video-popup-next {
        right: 8px;
    }
}
@media (min-width: 993px) {
    #secondary {
        width: 22% !important;
    }
    .columns-3 ul.products li.product, .cross-sells .columns-3 li.product, .related .columns-3 li.product, .upsells .columns-3 li.product, ul.products.columns-3 li.product {
        width: 31.3053%;
    }
}
.widget.woocommerce li .count {
    display: none;
}
.short-description {
    display: none;
}
.rememberpassword .userbox .noback div.content {
    margin-top: 0 !important;
}
.woocommerce .woocommerce-breadcrumb a {
    color: #333 !important;
}
.content-box-shop del span {
    color: #b30000 !important;
}
/*
 * Styles for KiwiAI Best Sellers Grid
 * Author: Gemini
 */

/* Main container for the best sellers section */
.kiwiai-bestsellers-grid {
    background-color: #fff;
    border-radius: 16px;
    padding: 25px;
    margin: 30px auto;
    font-family: 'iranyekanx', tahoma, sans-serif; /* Ensure you have this font loaded */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

/* Header section (Title and "Show More" button) */
.kiwiai-bestsellers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f1;
}

.kiwiai-bestsellers-title {
    display: flex;
    align-items: center;
    font-size: 1rem !important;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Fire Icon before the title */
.kiwiai-icon-fire {
    display: inline-block;
    width: 28px;
    height: 28px;
    margin-left: 12px;
    background-color: #fce6e8;
    border-radius: 50%;
    position: relative;
}

.kiwiai-icon-fire::before {
    content: '🔥'; /* Using an emoji as a fallback, can be replaced with an SVG icon */
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* "Show More" Link/Button */
.kiwiai-bestsellers-show-more {
    border: 1px solid #70c008;
    color: #70c008;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background-color 0.3s, color 0.3s;
}

.kiwiai-bestsellers-show-more:hover {
    background-color: #70c008;
    color: #fff;
}

/* Grid container for products */
.kiwiai-bestsellers-content {
    display: grid;
    /* Create 4 columns for desktop view */
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Individual Product Item */
.kiwiai-bestseller-item {
    position: relative;
}

.kiwiai-bestseller-item a {
    text-decoration: none !important;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    background-color: #fff;
    border: 1px solid #f0f0f1;
    border-radius: 12px;
    padding: 15px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.kiwiai-bestseller-item a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Rank number badge */
.kiwiai-bestseller-rank {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #70c008;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    z-index: 2;
}

/* Product Image container */
.kiwiai-bestseller-image {
    width: 100%;
    height: 120px; /* Fixed height for consistent alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.kiwiai-bestseller-image img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
}

/* Product Title */
.kiwiai-bestseller-title {
    font-size: 13px !important;
    line-height: 1.6;
    text-align: right;
    font-weight: 500 !important;
    color: #444 !important;
    margin: 0;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 42px;
}
ul.products li.product .woocommerce-loop-product__title, ul.products li.product h2 {
    padding-bottom: 0.75rem;
}
.discount-badge {
    background-color: hsl(0, 67%, 53%) !important;
    border-radius: 8px;
    min-height: 22px;
}
.product-label.type-bubble, li.product .onsale {
    display: none !important;
}
.price del {
    color: #f74a67;
    font-weight: bold;
    font-size: 13px;
    display: block;
}
ul.products li.product .price ins {
    font-weight: bold;
    font-size: 16px;
    line-height: 2;
    color: #000;
}
ul.products li.product .price {
    font-size: clamp(1rem, 0.753rem + 0.675vw, 0.875rem);
    font-weight: bold;
}
ul.products li.product .woocommerce-LoopProduct-link {
    font-weight: 700;
    font-size: 13px;
}
span.woocommerce-Price-currencySymbol {
    font-size: 0 !important;
    margin-right: 5px;
}
.woocommerce-Price-currencySymbol:before {
    font-size: 18px !important;
    line-height: 1;
    font-family: bakala;
    content: '\E004';
    position: relative;
    top: 3px;
    font-weight: normal !important;
}
.price del .woocommerce-Price-currencySymbol:before{
	display: none;
}
ul.products li.product .added_to_cart, ul.products li.product .button {
    opacity: 1 !important;
    width: auto !important;
    padding: 0px 7px;
    border-radius: 8px;
    font-size: 0.7rem;
    bottom: 15px;
    left: 15px;
    height: 35px;
    display: flex;
    align-items: center;
    box-shadow: 3px 4px 9px 0 rgb(76 175 80 / 33%);
}
ins {
    font-weight: bold;
}
.product_meta {
    width: auto;
    max-width: 100%;
    position: relative;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
section.related-wrapper .product_meta {
    display: none;
}
.below-woocommerce-category a, .comment-respond p a, .comment-text a, .entry-content article a:not(.elementor-button), .post-meta a, .product-widget a, .product_meta a, .woocommerce-tabs table.woocommerce-product-attributes a, a.reset_variations, body:not(.elementor-page):not(.woocommerce-account):not(.woocommerce-order-received) .entry-content p:not(.product__categories) a:not(.button) {
    text-decoration: none !important;
}
/* Responsive adjustments for different screen sizes */
@media (max-width: 992px) {
    .kiwiai-bestsellers-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .kiwiai-bestsellers-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .kiwiai-bestsellers-header {
        flex-direction: column;
        gap: 15px;
    }
    .kiwiai-bestsellers-show-more {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .kiwiai-bestsellers-content {
        grid-template-columns: repeat(1, 1fr);
    }
}
/* Start Sorting Woocommerce */
.kiwiai-sorting-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  font-family: inherit;
}

.kiwiai-sorting-label {
  font-weight: bold;
  font-size: 15px;
  white-space: nowrap;
}

.kiwiai-sorting-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.kiwiai-sorting-list li a {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  text-decoration: none;
  color: #444;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
  font-size: 14px;
  white-space: nowrap;
}

.kiwiai-sorting-list li a:hover, .kiwiai-sorting-list li a.active {
    background-color: #8bd256;
    color: #fff;
    border-color: #8dd456;
}
@media (max-width: 480px) {
  .kiwiai-sorting-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
}
.shoptimizer-sorting .woocommerce-pagination ,.woocommerce-pagination {
    display: none;
}
.shoptimizer-sorting.sorting-end .kiwiai-sorting-wrapper, .shoptimizer-sorting.sorting-end .woocommerce-result-count {
    display: none;
}
.shoptimizer-sorting.sorting-end .woocommerce-pagination {
    display: flex;
    margin: 0 auto;
}
.woocommerce-pagination .page-numbers li {
    display: inline-block;
    height: 38px;
    line-height: 38px;
    min-width: 38px;
    text-align: center;
    background: #f6f8fa;
    color: #6a6a6a;
    border-radius: 4px;
    transition: .3s;
    -webkit-transition: .3s;
    font-size: 16px;
    font-weight: 700;
}
.page-numbers.current {
    color: rgba(142, 213, 87, .75);
    cursor: context-menu;
}
.woocommerce-result-count {
    position: relative;
    left: 0;
    top: 0;
    font-weight: bold;
}
/* End Sorting Woocommerce */
/* product-countdown */
.product-countdown{
	    display: inline-block;
	    background: #EF4055;
	    color: #fff;
	    padding: 6px 8px;
	    position: relative;
	    font-family: 'iranyekanx';
	    min-width: 95px;
	    text-align: center;
	    z-index: 100;
	    border-radius: 8px;
}
/*  Footer Call Box */
.footer-detail__contact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    direction: rtl;
    color: #cfd8dc;
}

.footer-detail__contact-text {
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
}

.footer-detail__contact-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
  font-size: 16px;
  color: #a8ffb8;
}

.footer-detail__contact-pre {
  color: #b0bec5;
  font-weight: bold;
}

.footer-detail__contact-num {
  color: #a8ffb8;
}

.footer-detail__contact-img img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  display: block;
}
.footer-detail__contact-img img:hover {
  transform: scale(1.1);
}

.footer-call-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: inherit;
  font-size: 15px;
  direction: rtl;
  justify-content: center;
  color: #e0f7fa;
}

.call-box {
  padding: 0 20px;
  transition: transform 0.3s ease;
  text-align: left;
}
.call-box ul li {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    gap: 5px;
}

.call-box ul li a {
    font-size: 16px !important;
    font-weight: bold;
}
.icon-phone::before {
    font-family: 'bakala';
    content: "\E0F4";
    font-size: 16px;
    color: #8dd457;
    margin-left: 6px;
    vertical-align: middle;
}
.call-box li:after {
    display: none;
}
.call-box:hover {
  transform: translateY(-4px);
}

.call-box a {
  color: #b2ebf2;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease;
}

.call-box a:hover {
  color: #00e676;
}

@media (max-width: 600px) {
  .primary-call-box {
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
  }

  .primary-call-box__inner {
    font-size: 18px;
    margin-top: 10px;
  }

  .footer-call-boxes {
    flex-direction: column;
    align-items: center;
  }
}
.footer-trust-social-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 20px;
  gap: 20px;
}
.footer-trust-seals {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
    margin: 20px 0;
}
.footer-trust-seals a {
    display: flex;
    height: auto;
    transition: transform 0.3s ease;
    gap: 5px;
}

.footer-trust-seals a:hover {
  transform: scale(1.05);
}
.footer-trust-seals img {
    max-width: 100%;
    height: auto !important;
}
.footer-social-icons {
  display: flex;
  gap: 14px;
}

.social-icon {
    font-family: 'bakala' !important;
    font-size: 20px;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #2a3b52;
    color: #8dd457 !important;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 1px #444;
}

.social-icon:hover {
  color: #ffffff !important;
  background-color: #8dd457 !important;
}
.icon-aparat, .icon-facebook, .icon-googleplus, .icon-instagram, .icon-telegram, .icon-twitter {
    width: 50px !important;
    height: 50px !important;
    margin: 2px;
    text-align: center;
    opacity: .7;
    font-weight: 400 !important;
}
.icon-instagram::before {
  content: "\E0FB";
}
.icon-telegram::before {
  content:"\E108";
}
.icon-youtube::before {
  content: "\E111";
}
.icon-aparat::before {
  content: "\E109";
}