/*
 Theme Name:   Shoptimizer Child
 Template:     shoptimizer
*/
@font-face {
    font-family: 'IranSansX';
    src: url('font/IRANSansXV.woff2') format('woff2-variations'),
         url('font/IRANSansX-Bold.woff') format('woff'),
         url('font/IRANSansX-Regular.woff') format('woff');
    font-weight: 100 1000;
    font-style: normal;
    font-display: swap;
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}

body {
    font-family: 'IranSansX', sans-serif !important;
    direction:rtl;
}
.loginfa-form-field input.loginfa-input-text {
    text-align:center;
}
.loginfa-form-field input.loginfa-input-text {
    text-align: center;
    height: auto;
}

.loginfa-form-field .loginfa-form-field-phone input.loginfa-input-text {
    padding-left: 16px !important;
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: 400;
} 
.loginfa-form-field .loginfa-form-field-phone input.loginfa-input-text::placeholder {
    letter-spacing: 2.5px;    
}
footer.copyright {
    margin-top: 0px !important;
}
#cgkit-tab-commercekit-gallery-title {
    display:none;
}
.my-custom-upsells-wrapper {
    background: #000;
    padding: 35px 0px;
}

.my-custom-upsells-wrapper ul.products li.product:not(.product-category) {
    display:flex;
    margin-bottom:0px;
    margin-left: 20px;
}

.my-custom-upsells-wrapper ul.products li.product:not(.product-category):before {
    opacity:1;
    margin-top:0px;
    width:100%;
    height: 100%;
}
.my-custom-upsells-wrapper .variation-row .attr-name {
    font-size:13px;
    opacity:0.7;
}
.my-custom-upsells-wrapper .variation-row .attr-price {
    font-size:15px;
    opacity:0.9;
}
.my-custom-upsells-wrapper ul.products li.product .woocommerce-LoopProduct-link {
    font-weight: 600;
    font-size: 18px;
}
.my-custom-upsells-wrapper ul.products li.product { 
    padding:0px;    
}

.my-custom-upsells-wrapper .woocommerce-card__header {
    max-width: 62%;
    width: 100%;
    padding-top: 15px;
}
.my-custom-upsells-wrapper .woocommerce-image__wrapper {
    width: 100%;
    max-width: 35%;
    margin-left: 3%;
}
.below-woocommerce-category {
    padding: 4em 4em;
    line-height: 2;
    max-width: 1130px;
    margin: 3em auto;
    background-color: #efeee3;
}
ul.products li.product .price {
    display: block;
    margin-top: 0.75rem;
    color: #111;
    font-weight: 500;
    font-size: 17px;
}
ul.products li.product .price .woocommerce-Price-currencySymbol {
    font-weight:300;
    font-size:14px;
}
.entry-content {
    line-height:2 !important;
}
.entry-content table {
  border-collapse: separate; 
  border-spacing: 0;
  margin:30px 0px 60px !important;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden; 
  width: 100%;
}

.entry-content th, .entry-content td {
    border-bottom: 1px solid #ddd !important;
    text-align: center !important;
    border-right: 1px solid #ddd !important;
    padding: 12px 15px !important;
    border-top: none !important;
    border-left: none !important;
}
.entry-content th:first-child , .entry-content td:first-child {
    border-right:none !important;
}

.entry-content tr:last-child td {
  border-bottom: none;
}

.entry-content tbody tr:first-child  {
  background-color: #0056b3 !important;
  color: #fff;
}
.entry-content tbody tr:first-child td {
        border-right: 1px solid #164b85 !important;
}
.entry-content tbody tr:nth-child(odd) {
 background-color: #fbfdff;
}

.entry-content tbody tr:nth-child(even) {
  background-color: #f3f8ff;
}
.image-feature figcaption {
    padding: 2.5em 0.8em 0;
    text-align: right;
}
.image-feature figcaption strong {
    font-size: 23px;
    letter-spacing: inherit;
}
.image-feature figcaption em {
    margin-top: 0.5em;
    font-size: 14px;
}
.elementor-heading-title {
    line-height: inherit !important;
}
.below-content .widget .textwidget p , .below-content .widget .widget-title , .below-content .widget .textwidget p  {
    padding-right: 34px;
    padding-left:initial;
}
.below-content .widget .ri, .below-content .widget svg {
    left:initial;
    right:15px !important;
    top: 4px;
}
.below-content .widget svg {
    width: 32px;
    height: 32px;
}
.below-content .widget svg path {
    stroke-width:initial;
}
ul.products li.product:not(.product-category):before {
    visibility: visible;
    opacity: 0.6;
    }
.shoptimizer-mini-cart-wrap .widget_shopping_cart li.mini_cart_item {
    padding-left:0px;
}


body .shoptimizer-mini-cart-wrap .widget_shopping_cart {
    padding: 0 15px 0 15px !important;
}

.rtl .shoptimizer-mini-cart-wrap .widget_shopping_cart .product_list_widget {
    margin-right: 0px;
}
.rtl .shoptimizer-mini-cart-wrap .widget_shopping_cart .product_list_widget {
    padding: 0 12px 0 0;
}
.shoptimizer-mini-cart-wrap .widget_shopping_cart li.mini_cart_item {
    padding-right:20px;
}

.shoptimizer-mini-cart-wrap .product_list_widget img {
    max-width: 70px;
    width: 70px;
}


.woovr-variations.woovr-variations-grid-2 .woovr-variation {
    width: 100% !important;
    text-align: right !important;
    border-radius: 15px;
    padding: 10px 5px 10px 0px !important;
}
.woovr-variations[class*="woovr-variations-grid"] .woovr-variation > div {
    padding: 5px 40px 5px 5px !important;
    width:100%;
}
.woovr-variations[class*="woovr-variations-grid"] .woovr-variation:before {
    right:7px;
}
.woovr-variation-radio .woovr-variation-info .woovr-variation-description {
    font-size: 13px;
    font-weight: 300;
}
.woovr-variation-radio .woovr-variation-info .woovr-variation-price {
    margin-right: 0px !important;
    font-size: 15px !important;
    padding: 10px 0px 0px 0px;
}
.woovr-variation-radio .woovr-variation-info .woovr-variation-price bdi, .woovr-variation-radio .woovr-variation-info .woovr-variation-availability bdi {
    font-weight:bold;
}
.woovr-variation-radio .woovr-variation-info .woovr-variation-price bdi span, .woovr-variation-radio .woovr-variation-info .woovr-variation-availability bdi span {
    font-weight:normal;
}
.woovr-variations[class*="woovr-variations-grid"] .woovr-variation.woovr-variation-active {
    border-color: #1ea31ef5;
    background: #f1f5f1;
    box-shadow: 0px 0px 12px 0px #f3f3f3;
}
.woovr-variations[class*="woovr-variations-grid"] .woovr-variation {
    background: #fbfbfb;
}
.woovr-variations[class*="woovr-variations-grid"] {
    margin-bottom: 30px;
}
.wp-block-woocommerce-checkout-contact-information-block , .wc-block-components-product-details__name {
    display:none;
}

ul {
       margin: 0 20px 1.41575em 0px;
}
.rtl .summary h1 {
    padding-right: 0;
    padding-left: 0px;
    margin-bottom: 24px;
}

.shoptimizer-cart-icon svg {
    width: 40px;
    height: 40px;
}
.header-5 .site-header .site-header-cart {
        margin-left: 0px;
        margin-right: 35px;
    }
.cart-contents .amount { 
        display:none !important;
    }
.header-5 .shoptimizer-cart a.cart-contents {
        padding: 0px;
        border: 0px;
    }
.secondary-navigation .menu li:not(.ri) a {
    padding: 16px 20px 16px 20px;
    display: block;
    border: 1px solid #adadad;
    border-radius: 6px;
}
.secondary-navigation .icon-wrapper {
    position: relative;
    left: 7px;
    top: -3px;
    transform: none;
    order: 0;
    float: right;
}
.shoptimizer-cart a.cart-contents .shoptimizer-cart-icon .mini-count {
    background-color:#39b44a !important;
    top: 5px;
    width: 25px;
    height: 25px;
    font-size: 13px;
    right: -10px !important;
    color:White !important;
    margin-left: 0px !important;
    line-height: 24px;
}
.image-feature .wp-caption {
    background: none !important;
    border-radius: 15px;
    overflow: hidden;
}
.image-feature a:before {
    border-radius: 15px;
}
/* تنظیمات ساختار گرید */
.custom-blog-grid {
    display: flex;
    gap: 30px;
}

/* استایل بدنه اصلی کارت مقالات */
.custom-blog-grid article {
    background: #ffffff; /* پس‌زمینه روشن هماهنگ با سایت */
    border-radius: 12px;
    padding: 0; /* حذف پدینگ برای چسبیدن عکس به لبه‌ها */
    border: 1px solid #eaeaea; /* حاشیه بسیار ظریف */
    box-shadow: 0 4px 15px rgba(0,0,0,0.04); /* سایه ملایم مشابه محصولات */
    overflow: hidden; /* برای گرد شدن گوشه‌های عکس در بالای کارت */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* انیمیشن نرم */
    display: flex;
    flex-direction: column;
}

/* افکت جذاب هنگام رفتن موس روی کارت */
.custom-blog-grid article:hover {
    transform: translateY(-5px); /* حرکت ظریف به بالا */
    box-shadow: 0 8px 25px rgba(0,0,0,0.08); /* عمیق‌تر شدن سایه */
}

/* استایل عکس مقاله */
.blog-card-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 0;
    border-radius: 0; 
}

/* محفظه نگهدارنده متن‌ها (پدینگ‌ها به اینجا منتقل شدند) */
.blog-card-content {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* برای هم‌تراز شدن دکمه‌های انتهای کارت */
}

/* استایل عنوان مقاله */
.custom-blog-grid article h3 {
    font-size: 18px; /* سایز استانداردتر برای کارت‌های روشن */
    line-height: 1.6;
    height: 58px; /* تنظیم ارتفاع برای دقیقاً ۲ خط */
    overflow: hidden;
    margin-top: 15px;
    margin-bottom: 15px;
}

.custom-blog-grid article h3 a {
    color: #222222; /* رنگ تیره برای خوانایی روی پس‌زمینه سفید */
    text-decoration: none !important;
    transition: color 0.3s ease;
}

/* تغییر رنگ عنوان به رنگ سازمانی شما هنگام هاور */
.custom-blog-grid article h3 a:hover {
    color: #0f2c4c; 
}

/* استایل خلاصه متن */
.blog-card-excerpt {
    color: #666666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* استایل تاریخ و دسته‌بندی (اگر در کد PHP استفاده کرده‌اید) */
.blog-card-meta {
    font-size: 12px;
    color: #999999;
    margin-bottom: 5px;
}

/* استایل دکمه یا لینک ادامه مطلب */
.read-more-btn {
    margin-top: auto; /* هول دادن دکمه به پایین‌ترین قسمت کارت */
    color: #0f2c4c;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.read-more-btn:hover {
    opacity: 0.7;
}

/* استایل تیتر اصلی بخش وبلاگ */
.home-blog-title {
    text-align: center;
    margin: 40px 0px 30px 0px;
    color: #0f2c4c; /* همرنگ با هدر سایت */
}


/* checkout page */
.wc-block-checkout__use-address-for-billing , .wc-block-components-product-metadata__description , .wc-block-components-product-details__name {
    display:none !important;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item {
    border-bottom: 1px solid #d5d5d5;
    padding-top: 25px;
}
.wc-block-components-order-summary:last-child .wc-block-components-order-summary-item:last-child {
    border:none;
}
.wc-block-cart-item__prices {
    order:2;
}
.wc-block-components-product-metadata {
    order:1;
}




.entry-summary .price bdi {
    font-size:21px;
    font-weight:bold;
}

.entry-summary .price bdi span {
    font-size:16px;
    font-weight:normal;
}
.entry-summary p.price {
    display: block;
    float: none !important;
    margin:20px 0px;
}



.woocommerce-product-details__short-description ul {
    list-style:none;
    margin-bottom:25px !important;
}
.woocommerce-product-details__short-description li {
    padding:6px 0px;
    position:relative;
    font-size:15px;
}
.woocommerce-product-details__short-description li:before {
    width: 10px;
    height: 10px;
    display: inline-block;
    background: #3ab54b;
    content: "";
    border-radius: 100%;
    right: -18px;
    top: 10px;
    bottom: auto;
    position: absolute;
}




.product.product_cat-cartridge-refill .entry-summary > p.price {
    display:none !important;
}


.price-slug {
font-size: 16px;
font-weight: 500;
color: black;
}
/* گرید کارت‌های قیمت */
.gem-pricing-grid {
    display: grid;
    gap: 16px;
}
@media (max-width: 500px) {
    .gem-pricing-grid { grid-template-columns: 1fr; }
}

/* طراحی کارت قیمت (Apple/Stripe Style) */
.gem-price-card {
    background:white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px -10px rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}
.gem-price-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}

.gem-card-top-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.gem-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gem-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}
.gem-card-desc {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* ویژوال‌های نشان‌دهنده رنگ (CMYK و مشکی) */
.gem-visual-indicator {
    display: flex;
    align-items: center;
}
.gem-color-cluster {
    display: flex;
    direction: ltr;
}
.gem-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-left: -6px;
}
.dot-c { background: #0ea5e9; z-index: 4; }
.dot-m { background: #ec4899; z-index: 3; }
.dot-y { background: #eab308; z-index: 2; }
.dot-k { background: #1e293b; z-index: 1; }

.dot-mixed {
    background: conic-gradient(from 90deg, #0ea5e9, #ec4899, #eab308, #1e293b, #0ea5e9);
    width: 20px; height: 20px; margin-left: 0; z-index: 1;
}

.dot-mono {
    background: linear-gradient(135deg, #334155 0%, #0f172a 100%);
    width: 20px; height: 20px; margin-left: 0; z-index: 1;
}

/* بخش مبلغ */
.gem-price-amount {
    font-size: 22px;
    font-weight: 700;
    color: #16a34a;
    display: flex;
    align-items: baseline;
    gap: 6px;
    letter-spacing: -0.5px;
}
.gem-price-currency {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0;
}

.svg-icon-title { width: 22px; height: 22px; fill: currentColor; }










.gem-ux-container {
    padding: 0;
    margin: 25px 0;
}

.svg-icon { width: 22px; height: 22px; fill: currentColor; }

/* باکس گارانتی قطعات */
.gem-ux-guarantee {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.gem-ux-guarantee-title {
    color: #166534;
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gem-ux-guarantee-text {
    color: #15803d;
    font-size: 13.5px;
    margin: 0 0 10px 0;
    line-height: 1.7;
}
.gem-ux-drum {
    display: inline-block;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #475569;
    border: 1px dashed #cbd5e1;
}

/* ----------------------------------------- */
/* طراحی جدید و فوق‌حرفه‌ای باکس ارسال (Masterpiece) */
/* ----------------------------------------- */
.gem-pro-delivery-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px -10px rgba(0,0,0,0.05);
}
.gem-pro-delivery-title {
    font-size: 16px;
    font-weight: 900;
    color: #0f3453;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* کارت های مسیرهای ارسال */
.gem-pro-methods-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
.gem-pro-method-card {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 14px 16px;
    transition: all 0.3s ease;
}
.gem-pro-method-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.03);
    transform: translateX(-4px); /* حرکت نرم به سمت راست در هاور */
}
.gem-pro-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    flex-shrink: 0;
}
.gem-pro-icon-box.tehran { background: #eff6ff; color: #2563eb; }
.gem-pro-icon-box.county { background: #f1f5f9; color: #475569; }

.gem-pro-method-content { flex-grow: 1; }
.gem-pro-method-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    gap: 8px;
}
.gem-pro-method-title {
    font-size: 14px;
    font-weight: bold;
    color: #1e293b;
    margin: 0;
}
.gem-pro-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: normal;
}
.gem-pro-badge.blue { background: #dbeafe; color: #1e40af; }
.gem-pro-badge.gray { background: #e2e8f0; color: #334155; }
.gem-pro-method-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}
.gem-pro-method-desc strong { color: #334155; }

/* برچسب پستی (Shipping Label Design) */
.gem-pro-shipping-label {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
}
.gem-pro-shipping-header {
    background: #f1f5f9;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: bold;
    color: #334155;
    border-bottom: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gem-pro-shipping-body {
    padding: 16px;
}
.gem-pro-row {
    display: flex;
    margin-bottom: 10px;
    font-size: 13.5px;
}
.gem-pro-row:last-child { margin-bottom: 0; }
.gem-pro-label {
    color: #64748b;
    width: 80px;
    flex-shrink: 0;
}
.gem-pro-value {
    font-weight: bold;
    color: #0f3453;
    flex-grow: 1;
    line-height: 1.6;
}


.gem-ux-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .gem-ux-actions { grid-template-columns: 1fr; }
}

.gem-ux-btn {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-radius: 14px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 85px;
}

.gem-ux-btn-call {
    background-color: #0f3453;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(15, 52, 83, 0.3);
    position: relative;
    overflow: hidden;
}
.gem-ux-btn-call:hover {
    background-color: #16466e;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(15, 52, 83, 0.4);
}
.gem-ux-btn-icon-wrapper {
    margin-left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.gem-ux-btn-text-group {
    display: flex;
    flex-direction: column;
}
.gem-ux-btn-label {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
}
.gem-ux-pulse {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: ux-pulse 1.5s infinite;
}
.gem-ux-btn-number {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
    direction: ltr;
    text-align: right;
}

.gem-ux-btn-map {
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    color: #0f3453;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 15px 15px;
    position: relative;
}
.gem-ux-btn-map:hover {
    border-color: #0f3453;
    background-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08);
}
.gem-ux-map-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.95) 100%);
    border-radius: 12px;
    z-index: 1;
}
.gem-ux-btn-map-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
}
.gem-ux-btn-map .gem-ux-btn-icon-wrapper {
    background: #eff6ff;
    color: #3b82f6;
}
.gem-ux-address-preview {
    font-size: 11px;
    color: #64748b;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

@keyframes ux-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}












/* استایل‌های نگهدارنده اصلی و ساختار گرید */
.below-content {
    clear: both;
    overflow: hidden;
    padding-top: 40px;
    padding-bottom: 40px;
    border-top: 1px solid #f1f5f9;
    background-color: #ffffff;
}

.below-content .col-full {
    max-width: calc(1280px + 40px);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* ایجاد فاصله منظم بین باکس‌ها */
    padding-right: 20px;
    padding-left: 20px;
}

/* استایل هر باکس ویجت (ایجاد ظاهر کارت‌مانند) */
.below-content .widget {
    position: relative;
    margin: 0;
    flex: 1 1 220px; /* واکنش‌گرایی برای موبایل */
    background-color: #f8fafc; /* پس‌زمینه ملایم برای تمایز */
    border-radius: 12px;
    padding: 24px 20px 24px 20px !important;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

/* افکت هاور جذاب روی باکس‌ها */
.below-content .widget:hover {
    background-color: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
}

/* تنظیمات آیکون‌ها (SVG) - جایگذاری دقیق با موقعیت مطلق */
.rtl .below-content .widget svg,
.below-content .widget svg {
    position: absolute !important;
    right: 20px !important;
    top: 28px !important;
    width: 36px !important;
    height: 36px !important;
    stroke: #1e3a8a !important; /* رنگ سرمه‌ای حرفه‌ای */
    fill: none !important;
    transition: all 0.3s ease;
}

/* افکت هاور روی آیکون */
.below-content .widget:hover svg {
    stroke: #2563eb !important; /* روشن‌تر شدن رنگ آیکون */
    transform: scale(1.1);
}

/* تنظیمات متن‌ها (باز کردن فضا برای آیکون از سمت راست) */
.rtl .below-content .widget .widget-title, 
.rtl .below-content .widget .textwidget p,
.below-content .widget .widget-title, 
.below-content .widget .textwidget p {
    padding-right: 52px !important; /* فضای کافی برای آیکون 36 پیکسلی */
    padding-left: 0 !important;
    margin: 0 !important;
    display: block;
}

.below-content .widget .widget-title {
    font-family: 'IranSansX', sans-serif, Tahoma;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 6px !important;
}

.below-content .widget .textwidget p {
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin-top: 4px !important;
}

















/* ==========================================================================
   طراحی گرید وبلاگ - سطح پریمیوم و مینیمال
   ========================================================================== */

/* ۱. فاصله بین کارت‌ها برای ایجاد فضای تنفس */
.site-main.grid {
    gap: 40px; 
}

/* ۲. بدنه کارت: حذف حاشیه و ایجاد عمق نامحسوس */
.site-main.grid article.post {
    background: #ffffff;
    border-radius: 16px; /* انحنای مدرن‌تر */
    border: none !important; /* حذف کامل خطوط حاشیه */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02); /* سایه بسیار نرم و لوکس */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* افکت هاور: شناور شدن نرم کارت */
.site-main.grid article.post:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* ۳. کادر تصویر */
.site-main.grid article.post a.post-thumbnail {
    margin-bottom: 0 !important;
    position: relative;
    display: block;
}

.site-main.grid article.post img.wp-post-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    margin: 0;
}


/* ۵. تاریخ (متادیتا) */
.site-main.grid article.post .entry-header .posted-on {
    font-size: 13px;
    color: #9ca3af; /* خاکستری ملایم */
    margin-bottom: 12px;
    font-weight: 500;
}

/* ۶. عنوان مقاله */
.site-main.grid article.post .entry-header h2.entry-title {
    font-size: 20px !important;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 16px;
}

.site-main.grid article.post .entry-header h2.entry-title a {
    color: #111827; /* مشکی پرکلاغی و مدرن */
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-main.grid article.post .entry-header h2.entry-title a:hover {
    color: #0056b3; /* رنگ سازمانی شما */
}




/* ۱. این بخش باعث می‌شود کل فضای محتوا به صورت عمودی کش بیاید */
.site-main.grid article.post .blog-loop-content-wrapper {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.site-main.grid article.post .entry-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ۲. جادوی اصلی: پاراگراف حاوی متن و دکمه را فلکس می‌کنیم */
.site-main.grid article.post .entry-content p:last-child {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: flex-start; /* در سایت‌های فارسی (RTL) دکمه را سمت راست نگه می‌دارد */
    margin-bottom: 0;
}

/* ۳. حذف تگ <br> که در کد PHP بود تا فاصله اضافه ایجاد نکند */
.site-main.grid article.post .entry-content p br {
    display: none;
}

/* ۴. هل دادن دکمه به پایین‌ترین نقطه ممکن */
.site-main.grid article.post a.read-more-btn {
    margin-top: auto !important; /* این دستور حالا به درستی کار می‌کند و دکمه را به کف می‌چسباند */
    padding-top: 24px; /* ایجاد یک فاصله امن و استاندارد از پایان متن */
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #0056b3; 
    background-color: transparent !important;
    border: none !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

/* اضافه کردن فلش دکمه */
.site-main.grid article.post a.read-more-btn::before {
    content: '\2190'; 
    margin-right: 8px;
    font-size: 18px;
    transition: transform 0.3s ease;
    display: inline-block;
    order: 2; 
}

.site-main.grid article.post a.read-more-btn:hover {
    color: #003d82 !important;
}

.site-main.grid article.post a.read-more-btn:hover::before {
    transform: translateX(-6px);
}






/* ==========================================================================
   طراحی پریمیوم صفحه داخلی مقاله (Single Post)
   ========================================================================== */

/* ۱. کنترل عرض محتوا برای بالاترین سطح خوانایی (UX Rule) */
#primary.content-area {
    
    margin: 40px auto 80px; /* وسط‌چین کردن کل کانتینر و ایجاد فاصله از بالا و پایین */
    padding: 0 20px; /* فاصله امن برای موبایل */
}

/* ۲. ارتقای بصری تصویر شاخص */
.single-post .post .wp-post-image {
    width: 100%;
    border-radius: 20px; /* انحنای لوکس و مدرن */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06); /* سایه عمق‌دهنده */
    margin-bottom: 2.5rem;
    max-height:400px;
    object-fit: cover;
}

/* ۳. هدر مقاله: تمرکز روی عنوان و متادیتا */
.single-post .entry-header {
    text-align: center; /* وسط‌چین کردن عنوان برای زیبایی بیشتر */
    margin-bottom: 3.5rem;
}

.single-post .entry-header h1.entry-title {
    font-size: 32px;
    font-weight: 900;
    color: #111827; /* مشکی پرکلاغی */
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

/* طراحی متادیتای تاریخ به شکل یک تگ (Pill) مدرن */
.single-post .post .entry-header .posted-on {
    display: inline-block;
    background-color: #f3f4f6; /* پس‌زمینه توسی بسیار ملایم */
    padding: 8px 20px;
    border-radius: 30px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: normal;
}

/* ۴. تایپوگرافی متن اصلی مقاله */
.single-post .entry-content {
    font-size: 17px;
    padding: 0px 40px;
    line-height: 2.2 !important; /* فاصله خطوط استاندارد برای جلوگیری از خستگی چشم */
    color: #374151; /* استفاده از خاکستری تیره به جای مشکی مطلق برای کاهش کنتراست خسته‌کننده */
}

.single-post .entry-content p {
    margin-bottom: 2rem; /* فاصله تنفس بین پاراگراف‌ها */
}

/* ۵. بازطراحی فرم نظرات (Comment Section) */
.comments-area {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb; /* خط جداکننده ملایم */
}

#respond .comment-reply-title {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1.5rem;
}

/* استایل‌دهی به باکس متن نظر */
#respond textarea {
    background-color: #f9fafb;
    border: 2px solid #e5e7eb; /* کادر ضخیم‌تر اما رنگ‌روشن */
    border-radius: 12px;
    padding: 16px;
    font-size: 15px;
    color: #111;
    transition: all 0.3s ease;
    box-shadow: none;
}

/* افکت جذاب هنگام تایپ کردن کاربر */
#respond textarea:focus {
    background-color: #ffffff;
    border-color: #0056b3; /* رنگ سازمانی شما */
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1); /* هاله رنگی دور کادر */
    outline: none;
}

/* دکمه ارسال نظر */
#respond .submit {
    background-color: #0056b3;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

#respond .submit:hover {
    background-color: #004494;
    transform: translateY(-2px); /* حرکت نرم به بالا */
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.2);
}



/* ==========================================================================
   طراحی سایدبار شرکتی و کشیده - سطح پریمیوم
   ========================================================================== */

/* کانتینر اصلی */
.gem-corporate-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px; /* فاصله مناسب بین کارت‌ها برای جلوگیری از فشردگی */
}

/* ساختار بدنه کارت‌ها (کشیده و عمودی) */
.gem-corp-card {
    display: flex;
    flex-direction: column;
    padding: 32px 28px; /* پدینگ زیاد برای ایجاد فضای تنفس و حس لوکس بودن */
    background: #ffffff;
    border: 1px solid #e5e7eb; /* حاشیه بسیار ملایم و شرکتی */
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01); /* سایه پایه‌ای نامحسوس */
}

/* افکت هاور بسیار ملایم */
.gem-corp-card:hover {
    border-color: #cbd5e1; /* کمی تیره‌تر شدن کادر */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
    transform: translateY(-3px);
}

/* باکس آیکون در بالای کارت */
.gem-corp-icon {
    width: 56px;
    height: 56px;
    background: #f8fafc; /* پس‌زمینه توسی-آبی بسیار روشن */
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0056b3; /* رنگ سازمانی */
    margin-bottom: 24px; /* فاصله زیاد با عنوان برای ایجاد حس کشیدگی */
    transition: all 0.3s ease;
}

.gem-corp-card:hover .gem-corp-icon {
    background: #0056b3;
    color: #ffffff;
    border-color: #0056b3;
}

/* تایپوگرافی عنوان */
.gem-corp-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

/* تایپوگرافی متن توضیحات (با فاصله خطوط زیاد برای خوانایی) */
.gem-corp-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 28px 0; /* هل دادن لینک به پایین کارت */
    line-height: 1.85;
    text-align: justify; /* مرتب شدن متن از هر دو طرف */
}

.gem-corp-desc strong {
    color: #334155;
    font-weight: 700;
}

/* لینک دعوت به اقدام (CTA) در پایین کارت */
.gem-corp-link {
    margin-top: auto; /* چسبیدن لینک به پایین‌ترین قسمت کارت */
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #0056b3;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.gem-corp-link:hover {
    color: #003d82;
}

/* حرکت نرم فلش در لینک */
.gem-corp-link::before {
    /* فلش چپ برای سایت‌های فارسی آماده شده در خود متن HTML است، 
       بنابراین فقط کافیست در هاور کمی جابجا شود */
    transition: transform 0.3s ease;
}

.gem-corp-card:hover .gem-corp-link {
    transform: translateX(-4px); /* حرکت کل لینک به سمت چپ در زمان هاور */
}


/* اصلاح بدنه کارت برای حس کشیدگی و استایل مینیمال */
.gem-corp-card {
    padding: 32px 28px !important; /* پدینگ بیشتر برای حس فضای لوکس */
    border: 1px solid #eef2f6 !important; /* رنگ حاشیه روشن‌تر و مدرن‌تر */
}

/* بزرگ‌تر کردن آیکون برای تعادل با متن */
.gem-corp-icon {
    width: 64px !important;
    height: 64px !important;
    margin-bottom: 20px !important;
}

/* ارتقای تایپوگرافی برای خوانایی بیشتر */
.gem-corp-title {
    font-size: 19px !important; /* کمی بزرگ‌تر برای تمایز */
    letter-spacing: -0.02em; /* حس فونت‌های مدرن */
    color: #0f172a !important;
}

/* اصلاح فضای متن و لینک */
.gem-corp-desc {
    font-size: 14px !important;
    margin-bottom: 20px !important;
    line-height: 1.75 !important;
}







/* --- استایل‌های حرفه‌ای و شرکتی توضیحات محصول --- */

#cgkit-tab-description {
    color: #444;
    font-size: 15px;
    line-height: 2;
}

/* ۱. تیترهای اصلی با استایل مدرن و خط تاکید (Indicator) */
#cgkit-tab-description h2.wp-block-heading , .type-post h2.wp-block-heading  {
    font-size: 20px;
    font-weight: bold;
    color: #112a46; /* سرمه‌ای هماهنگ با هدر سایت */
    margin: 45px 0 20px;
    padding-right: 15px;
    border-right: 4px solid #112a46; /* خط تاکید سمت راست */
    background: linear-gradient(90deg, #f8f9fa 0%, rgba(255,255,255,0) 100%);
    padding-block: 8px;
}

#cgkit-tab-description h3.wp-block-heading , .type-post h3.wp-block-heading {
    font-size: 17px;
    font-weight: bold;
    color: #2c3e50;
    margin: 35px 0 15px;
}

/* ۲. جداول بسیار حرفه‌ای با هدر رنگی */
#cgkit-tab-description .wp-block-table table , .type-post wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eef0f2;
}

#cgkit-tab-description .wp-block-table th,
#cgkit-tab-description .wp-block-table tr:first-child td , .type-post .wp-block-table th , .type-post .wp-block-table tr:first-child td {
    background-color: #112a46; /* هدر سرمه‌ای */
    color: #ffffff !important;
    font-weight: bold;
    text-align: center;
    padding: 16px;
    border: none;
}

#cgkit-tab-description .wp-block-table td , .type-post .wp-block-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #f0f3f5;
    color: #555;
}

#cgkit-tab-description .wp-block-table tr:last-of-type td , .type-post .wp-block-table tr:last-of-type td {
    border-bottom: none;
}


/* ۳. استایل‌دهی به لیست‌ها (تیک سبز به جای نقطه) */
#cgkit-tab-description .wp-block-list  , .type-post .wp-block-list {
    list-style: none;
    padding-right: 0;
    margin-bottom: 25px;
}

#cgkit-tab-description .wp-block-list li , .type-post .wp-block-list li {
    position: relative;
    padding-right: 28px;
    margin-bottom: 12px;
}

#cgkit-tab-description .wp-block-list li::before , .type-post .wp-block-list li::before {
    content: "\2713"; /* علامت تیک */
    position: absolute;
    right: 0;
    top: 2px;
    color: #28a745; /* سبز هماهنگ با دکمه افزودن به سبد خرید */
    font-weight: bold;
    font-size: 16px;
}

/* ۴. باکس‌های سوالات متداول با ظاهر برجسته */
.rank-math-block .rank-math-list-item  {
    background: #ffffff;
    border: 1px solid #e1e5eb;
    border-right: 4px solid #112a46;
    padding: 20px 25px;
    margin-bottom: 18px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.rank-math-block .rank-math-question {
    font-size: 16px;
    font-weight: bold;
    color: #112a46;
    margin: 0 0 10px 0;
}

.rank-math-block .rank-math-answer p {
    color: #5a6268;
    font-size: 14.5px;
    margin: 0;
    line-height: 1.8;
}

/* ۵. خطوط جداکننده */
#cgkit-tab-description hr.wp-block-separator , .type-post hr.wp-block-separator {
    border: none;
    height: 1px;
    background: #eaedf1;
    margin: 40px 0;
}







/* --- ساختار کلی و سایدبار --- */
.woocommerce-account .woocommerce {
    display: flex !important;
    flex-wrap: wrap;
    gap: 24px;
    direction: rtl;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 1 1 250px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 20px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid #f5f5f5;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 16px 24px;
    color: #757575;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background-color: rgba(98, 0, 234, 0.04);
    color: #6200ea;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: rgba(98, 0, 234, 0.08);
    color: #6200ea;
    border-right: 4px solid #6200ea;
}

/* --- محتوای صفحات (سفارشات، نشانی‌ها، جزئیات حساب) --- */
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 3 1 500px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 32px;
    width: 100%;
}

/* --- فرم‌ها و فیلدها --- */
.woocommerce-account .woocommerce-MyAccount-content input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content input[type="tel"],
.woocommerce-account .woocommerce-MyAccount-content select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 16px;
    transition: all 0.3s;
    background: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content input:focus,
.woocommerce-account .woocommerce-MyAccount-content select:focus {
    outline: none;
    border-color: #6200ea;
    box-shadow: 0 0 0 3px rgba(98, 0, 234, 0.1);
}

.woocommerce-account .woocommerce-MyAccount-content label {
    display: block;
    margin-bottom: 8px;
    color: #757575;
    font-size: 0.9rem;
}

/* --- دکمه‌ها --- */
.woocommerce-account .woocommerce-MyAccount-content .button {
    background: #6200ea !important;
    color: #fff !important;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.woocommerce-account .woocommerce-MyAccount-content .button:hover {
    background: #4b00b3 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(98, 0, 234, 0.3);
}

/* --- جدول سفارش‌ها و دانلودها --- */
.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    margin-bottom: 20px;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    text-align: right;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table th {
    background: #f9f9f9;
    color: #757575;
    font-weight: bold;
}

/* حالت موبایل */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        flex: 1 1 100%;
    }
}




.cartridge-printer-list {
    display:flex;
    flex-wrap:wrap;
    list-style:none;
    gap:15px;
}
.cartridge-printer-list li {
    list-style:none;
    background:#f1f1f1;
    padding-right: 0px !important;
    margin-bottom: 0px !important;
    padding:5px 10px !important;
    font-size:15px;
    font-weight:300;
    border-radius:10px;
}
.cartridge-printer-list li:before {
    display:none;
}




@media (min-width: 993px) {

    .header-5 .site-header .site-header-cart {
        margin-left: 0px;
        margin-right: 35px;
    }
    .cart-contents .amount { 
        display:none !important;
    }
    .header-5 .shoptimizer-cart a.cart-contents {
        padding: 0px;
        border: 0px;
    }
    .menu-primary-menu-container > ul > li.menu-item-has-children > a:after, .menu-primary-menu-container > ul > li.menu-item-has-children.nolink > span:after {
        margin-left: initial;
        margin-right:6px;
    }
    .main-navigation ul.menu > li:not(.full-width):hover > .sub-menu-wrapper {
                visibility: visible;
    }
            .below-content .widget .textwidget p , .below-content .widget .widget-title , .below-content .widget .textwidget p  {
    padding-right: 32px;
    padding-left:initial;
}
.below-content .widget .ri, .below-content .widget svg {
    left:initial;
    right:32px;
}
    /*left: -130px;*/
    /*right: 0px;*/

    /*    }*/
    
    
    .main-navigation ul.menu > li:not(.full-width) a.sub-menu-link, ul.menu ul li.nolink {
        display:flex;
    }
    .secondary-navigation .menu {
        margin-right: 0;
    }
    .secondary-navigation .menu-item {
        padding: 0 5px;
        border-left:0;
        border-right: 1px solid #eee;
    }
    .secondary-navigation {
        padding-left:0;
        padding-right: 1.2em;
    }
    .site-header .widget {
        margin-right:  1.2em;
    }
    .site-header-cart {
        margin-right: auto;
        margin-left: 0;
    }
}