/*
Theme Name: market play Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/
/*************** ADD CUSTOM CSS HERE. *************/

/*************** HERO SECTION SLIDER CSS. ************/

.hero-slider  {
	margin-top: 16px;
}

.hero-slider .swiper-slide img {
	object-fit: cover;
	width: 100%;
	border-radius: 8px;
}


/********************** set full width for elementor containers ******************************/
.elementor-element.elementor-element-44936b9.elementor-widget.elementor-widget-shortcode{
	width: 100% !important
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

.mki_text_editor > h1,h2,h3,h4,h5,h6 {
	color: #111111;
}

.mki_text_editor h1,h2,h3,h4,h5,h6,p,a {
	font-family: "IranYekanX-N" !important;
}

/**************** DARKE MODE CODES *****************/

footer .dark-mode-btn {
    background-color: #197cc3 !important;
    border-radius: 8px;
    padding: 10px 15px !important;
	color: #fff !important;
}

.dark {
	background-color: rgb(57, 57, 57);
	transition: 0.3s;
}

.dark > * {
	--e-global-color-73627be: #ffffff;
	--e-global-color-d09ffe6: #f1f1f1;
	--e-global-color-1058f02: #0f0c0c;
	--e-global-color-ad5d5e9: #1f1c1c;
	--e-global-color-8f90dee: #0f0c0c;
}

.dark .accounts-slider .swiper .category-item {
	background-color: #0f0c0c !important;
}

.elementor-icon-box-wrapper.active {
	color: #00ccdd;
}

.gform-body .field_sublabel_below input, .gform-body textarea,.field_sublabel_hidden_label .gform-grid-col input[type=text] {
	font-family: 'IranYekanX-N';
}

.bottom-nav-create-ads-btn a {
	color: var(--e-global-color-d09ffe6);
    font-size: 12px;
    font-weight: 600;
}

.bottom-nav-create-ads-btn svg {
	width: 25px
}

.bottom-nav-create-ads-btn {
	display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

div.create-ads-btn {
    padding: 5px 10px;
    background-color: var(--e-global-color-b5f44cc);
    color: #fff;
    border-radius: 100px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.dark .bottom-navbar{
	background-color: rgb(15, 12, 12, 0.1);
}

div.create-ads-btn a {
	color: #fff;
	font-size: 13px !important;
}

.nava-account-box {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #eee;
    margin-top: 25px;
}

.nava-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    font-size: 15px;
}

.nava-row:last-child {
    border-bottom: none;
}

.nava-label {
    font-weight: 600;
    color: #444;
}

.nava-value {
    color: #111;
}
/* =========================================
   PRODUCT CARDS – FINAL STABLE VERSION
   ========================================= */
/* گرید اصلی محصولات */
.products.row-small {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 0 !important;
  padding: 0 !important;
  align-items: stretch;
}

/* خنثی‌سازی کامل استایل‌های فلت‌سام */
.products.row-small > .product-small.col {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  display: flex !important;
  animation: fadeInUp 0.5s ease backwards;
}

/* انیمیشن برای کارت‌های متوالی */
.products.row-small > .product-small.col:nth-child(2) { animation-delay: 0.1s; }
.products.row-small > .product-small.col:nth-child(3) { animation-delay: 0.2s; }
.products.row-small > .product-small.col:nth-child(4) { animation-delay: 0.3s; }
.products.row-small > .product-small.col:nth-child(5) { animation-delay: 0.4s; }
.products.row-small > .product-small.col:nth-child(6) { animation-delay: 0.5s; }

/* کارت داخلی */
.products.row-small > .product-small.col .ads-cards {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  margin: auto !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.products.row-small > .product-small.col:hover .ads-cards {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: #4f46e5;
}
/* ===== تصویر کارت ===== */
.products.row-small > .product-small.col .ads-cards .box-image {
	position: relative;
	overflow: hidden;
	background: #f8fafc;
	flex-shrink: 0;
	width: 100% !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	height: 180px !important;
	min-height: 180px !important;
	padding: 0;
}

/* تصویر - نمایش کامل عرض، برش ارتفاع */
.products.row-small > .product-small.col .ads-cards .box-image img,
.products.row-small > .product-small.col .ads-cards .wp-post-image,
.products.row-small > .product-small.col .ads-cards .attachment-woocommerce_thumbnail {
  width: 100% !important;
  height: 100% !important; /* ارتفاع 100% والد (180px) */
  object-fit: cover !important; /* کشیده شدن کامل */
  display: block !important;
  transition: transform 0.5s ease;
}

/* برای تصاویر عمودی: وسط‌چین عمودی */
.products.row-small > .product-small.col .ads-cards .box-image .image-none {
  width: 100% !important;
  height: 180px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* Hover effect */
.products.row-small > .product-small.col:hover .ads-cards .box-image img {
  transform: scale(1.05);
}

/* Fallback برای تصاویر ناموجود */
.products.row-small > .product-small.col .ads-cards .box-image:has(img[src=""]) {
  background: #f8fafc var(--wpr-bg-632b4636-a783-46fc-ba78-d7c6db743ac8) center/contain no-repeat !important;
}

.products.row-small > .product-small.col .ads-cards .box-image:has(img[src=""]) img {
  opacity: 0 !important;
}

/* ===== محتوای کارت ===== */
.products.row-small > .product-small.col .ads-cards .box-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 14px !important;
  gap: 10px;
  min-height: 0;
}

/* تایتل و دسته‌بندی */

a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
	font-size: 1em;
}

.products.row-small > .product-small.col .ads-cards .box-text .name {
  font-weight: 700;
  color: #2d3748;
  line-height: 1.4;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
}

.products.row-small > .product-small.col .ads-cards .box-text .name a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.products.row-small > .product-small.col .ads-cards .box-text .name a:hover {
  color: #4f46e5 !important;
}

.products.row-small > .product-small.col .ads-cards .box-text .category {
  color: #718096;
  font-size: 0.85rem;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.8;
}

/* قیمت */
.products.row-small > .product-small.col .ads-cards .price-wrapper {
  margin-top: auto !important;
  padding: 0 !important;
}

.products.row-small > .product-small.col .ads-cards .price {
  font-size: 0.875rem;
  font-weight: 400;
  color: #2d3748;
  display: block;
  margin: 8px 0 !important;
}

.products.row-small > .product-small.col .ads-cards .price del {
  color: #a0aec0;
  font-size: 0.9rem;
  margin-left: 8px;
}

.products.row-small > .product-small.col .ads-cards .price ins {
  color: #e53e3e;
  text-decoration: none;
  font-weight: 700;
}

.products.row-small > .product-small.col .ads-cards .add-to-cart-button,
.products.row-small > .product-small.col .ads-cards .add-to-cart-button a.add_to_cart_button,
.products.row-small > .product-small.col .ads-cards .add-to-cart-button a:not(.add_to_cart_button),
.products.row-small > .product-small.col .ads-cards .image-tools,
.products.row-small > .product-small.col .ads-cards .quick-view,
.star-rating--inline{
	display: none !important;
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* تبلت */
@media (max-width: 1024px) {
  .products.row-small {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .products.row-small > .product-small.col .ads-cards .box-image {
    height: 160px !important;
    min-height: 160px !important;
  }
  
  .products.row-small > .product-small.col .ads-cards .box-image img {
    max-height: 160px !important;
  }
  
  .products.row-small > .product-small.col .ads-cards .box-image .image-none {
    height: 160px !important;
  }
}

/* موبایل */
@media (max-width: 768px) {
  .products.row-small {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .products.row-small > .product-small.col {
    width: 100% !important;
    max-width: 100% !important;
  }

  .products.row-small > .product-small.col .ads-cards {
    width: 100% !important;
  }

  .products.row-small > .product-small.col .ads-cards .box-image {
    height: 200px !important;
    min-height: 200px !important;
  }
  
  .products.row-small > .product-small.col .ads-cards .box-image img {
    max-height: 200px !important;
  }
  
  .products.row-small > .product-small.col .ads-cards .box-image .image-none {
    height: 200px !important;
  }
  
  .products.row-small > .product-small.col .ads-cards .box-text {
    padding: 12px !important;
  }
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   DASHBOARD REPORTS GRID
   =============================== */
.dashboard-report-section {
    display: grid;
    justify-content: space-between;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px;
}

.dashboard-report-section > .report-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 20px;
    background-color: var(--e-global-color-1058f02);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.dashboard-report-section > .report-section > .mpi-ads-reports {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dashboard-report-section > .report-section h2 {
    font-size: 1.125em;
    color: var(--e-global-color-73627be) !important;
}

.dashboard-report-section > .report-section span {
    font-size: 1em;
    color: var(--e-global-color-81863b0);
}

.dashboard-report-section > .report-section:last-child .user-avatar {
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

.dashboard-report-section > .report-section a.mpi-edit-link {
    color: #52C41A;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
	font-size: 14px
}

.dashboard-report-section > .report-section a.mpi-edit-link img {
	width: 18px;
	height: 18px;
}

/* responsive */
@media screen and (max-width: 768px) {
    .dashboard-report-section {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ===============================
   COMMENTS – MINIMAL & CLEAN
   =============================== */

/* کانتینر کلی */
.comments-area,
.woocommerce-Reviews {
  margin-top: 32px;
  color: var(--e-global-color-d09ffe6);
}

/* عنوان‌ها */
.comments-title,
.woocommerce-Reviews-title,
.comment-reply-title {
  font-size: 1em;
  color: var(--e-global-color-73627be);
  margin-bottom: 20px;
}

/* لیست کامنت‌ها */
.comment-list,
.commentlist {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* هر کامنت */
.comment,
.review {
  padding: 8px 16px !important;
	border-radius: 16px;
  border-bottom: 1px solid var(--e-global-color-8bd484a);
	background-color: var(--e-global-color-ad5d5e9) !important;
}

/* پاسخ‌ها (تو در تو) */
.comment .children {
  margin-top: 16px;
  padding-right: 20px;
  border-right: 2px solid var(--e-global-color-81863b0);
}

/* آواتار */
.comment-author img,
.comment_container img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* نام نویسنده */
.comment-author,
.woocommerce-review__author {
  font-size: 0.9em;
  color: var(--e-global-color-73627be);
}

/* متن کامنت */
.comment-content,
.review .description {
  font-size: 0.875em; /* ~14px */
  color: var(--e-global-color-d09ffe6);
  margin: 8px 0;
  line-height: 1.8;
}

/* متا (تاریخ + پاسخ) */
.comment-meta,
.commentmetadata,
.review .meta {
  font-size: 0.75em;
  color: var(--e-global-color-81863b0);
  display: flex;
  justify-content: flex-start;
	gap: 8px;
  align-items: center;
  margin-top: 8px;
}

/* لینک پاسخ */
.comment-reply-link {
  color: blue;
  text-decoration: none;
  font-size: 0.75em;
	display: block !important;
}

.comment-reply-link:hover {
  text-decoration: underline;
}

/* ===============================
   COMMENT FORM
   =============================== */

.comment-form {
  margin-top: 32px;
	border-radius: 16px;
}

/* لیبل‌ها */
.comment-form label {
  font-size: 0.8em;
  color: var(--e-global-color-73627be);
  margin-bottom: 6px;
  display: block;
}

/* textarea و input */
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
  width: 100%;
  border: 1px solid var(--e-global-color-81863b0);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.875em;
  background: transparent;
  color: var(--e-global-color-d09ffe6);
}

/* فوکوس */
.comment-form textarea:focus,
.comment-form input:focus {
  outline: none;
  border-color: var(--e-global-color-b5f44cc);
}

/* دکمه ارسال */
.comment-form .submit {
  background: var(--e-global-color-b5f44cc);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.8em;
  cursor: pointer;
}

.comment-form .submit:hover {
  opacity: 0.9;
}

div#reviews {
	display: flex;
	flex-direction: column;
}

/* ===============================
   WOOCOMMERCE RATING
   =============================== */

.star-rating span {
  color: var(--e-global-color-b5f44cc);
}

/* report ads modal */ 

#dokan-modal-report-abuse-popup .iziModal-content {
	background-color: var(--e-global-color-1058f02) !important;
}

#dokan-modal-report-abuse-popup .iziModal-content div#dokan-report-abuse-form-popup {
    background-color: var(--e-global-color-1058f02);
}

/* login form dark mode styles */
.voorodak-default {
	background-color: var(--e-global-color-ad5d5e9) !important;
}

.voorodak__wrapper-main .voorodak__wrapper-main-box {
	background-color: var(--e-global-color-1058f02) !important;
}

.voorodak__wrapper-main-box-field input:not([type="submit"]) {
	background: var(--e-global-color-ad5d5e9) !important;
}

.voorodak__wrapper-main-box-field input:not([type="submit"]):focus {
	box-shadow: none !important;
	color: var(--e-global-color-d09ffe6);
}

/* woocommerce pictures */
.woocommerce-product-gallery__image.slide.is-selected img {
    aspect-ratio: 1/16 !important;
    width: 100%;
    height: 300px !important;
    object-fit: cover;
}
.product-thumbnails .is-nav-selected a, .product-thumbnails a:hover {
	border: none;
	
}

.col.is-selected.is-nav-selected a img {
	right: auto;
}

.product-thumbnails a img {
	transform: translate(0,0) !important;
}

img.attachment-woocommerce_thumbnail {
    height: 100px;
    width: 100px;
    object-fit: cover;
	aspect-ratio: 16
}

.product-thumbnails .col{
	padding: 0;
	width: auto;
	background-color: transparent
}

.woocommerce-product-gallery__wrapper .flickity-viewport {
	height: 300px !important;
}

/* Markets card */
/* ============================================
   WRAPPER اصلی برای کارت‌ها
   ============================================ */

.markets-wrapper {
    width: 100%;
    box-sizing: border-box;
}

/* گرید کارت‌ها */ 
.stores-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

/* اسلایدر */
.markets-wrapper .swiper.most-active-markets-filter {
    padding: 15px;
    width: 100%;
}

/* ============================================
   استایل‌های اصلی کارت (بدون تغییر)
   ============================================ */

.markets-card {
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    background-color: var(--e-global-color-1058f02);
    align-items: flex-start;
    box-shadow: 0px 0px 10px -2px rgba(34,34,34,0.32);
    width: 100%;
    height: 100%;
}

/* Market banners */
.market-banners {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: visible !important;
}

.markets-card .market-banners img:nth-child(1) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px 8px 0 0;
}

.markets-wrapper .markets-card .market-banners img:nth-child(2) {
    transform: translateY(45%) !important; /* کمی بالاتر */
	border: none
}

/* آواتار - نسخه بهینه با فاصله راست 10px */
.markets-card .market-banners img:nth-child(2) {
    position: absolute;
    bottom: 0;
    right: 10px; /* فاصله 10px از راست */
    transform: translateY(40%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid white;
    background: white;
    object-fit: cover;
    z-index: 2;
}

/* Market info */
.markets-card .market-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 35px; /* نصف ارتفاع آواتار */
    padding: 12px;
    position: relative;
    z-index: 1;
    background: inherit;
}

.markets-card .market-info h2 {
    font-size: 21px !important;
    text-align: right;
    margin: 0 0 5px 0;
    padding: 0 10px 0 0; /* هماهنگ با آواتار */
}

/* Span Tag */
.markets-card .market-info span,
.markets-card .market-info span.no-products {
    font-size: 14px !important;
    color: var(--e-global-color-81863b0);
    font-weight: 400 !important;
    text-align: right;
    margin: 0;
    padding: 0 10px 0 0; /* هماهنگ با آواتار */
}

/* Link */
.markets-card .market-info a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 15px;
    text-decoration: none;
    color: inherit;
    padding: 0 10px 0 0; /* هماهنگ با آواتار */
}

/* ============================================
   BREAKPOINTS - ریسپانسیو
   ============================================ */

/* تبلت (768px تا 1024px) */
@media (max-width: 1024px) {
    .markets-wrapper .stores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .markets-card .market-banners img:nth-child(2) {
        width: 65px;
        height: 65px;
        right: 8px; /* کاهش فاصله در تبلت */
    }
    
    .markets-card .market-info {
        margin-top: 32px;
    }
    
    .markets-card .market-info h2,
    .markets-card .market-info span,
    .markets-card .market-info a {
        padding-right: 8px;
    }
}

/* موبایل (تا 768px) */
@media screen and (max-width: 768px) {
    
    
    .markets-wrapper .swiper.most-active-markets-filter {
        padding: 10px;
    }
    
    .markets-card .market-banners img:nth-child(2) {
        width: 55px;
        height: 55px;
        border-width: 2.5px;
        right: 8px; /* کاهش فاصله در موبایل */
    }
    
    .markets-card .market-info {
        margin-top: 27px;
        padding: 10px;
    }
    
    .market-banners {
        height: 140px;
    }
    
    .markets-card .market-info h2 {
        font-size: 19px !important;
        padding-right: 8px;
    }
    
    .markets-card .market-info span,
    .markets-card .market-info span.no-products {
        font-size: 13px !important;
        padding-right: 8px;
    }
    
    .markets-card .market-info a {
        font-size: 14px;
        padding-right: 8px;
    }
}

/* موبایل کوچک (تا 480px) */
@media (max-width: 480px) {
    .markets-wrapper .stores-grid {
		grid-template-columns: 1fr !important;
        gap: 14px;
    }
    
    .markets-card .market-banners img:nth-child(2) {
        width: 50px;
        height: 50px;
        border-width: 2px;
        right: 6px; /* کاهش بیشتر فاصله */
    }
    
    .markets-card .market-info {
        margin-top: 25px;
        padding: 8px;
    }
    
    .market-banners {
        height: 130px;
    }
    
    .markets-card .market-info h2 {
        font-size: 18px !important;
        padding-right: 6px;
    }
    
    .markets-card .market-info span,
    .markets-card .market-info span.no-products {
        font-size: 13px !important;
        padding-right: 6px;
    }
    
    .markets-card .market-info a {
        font-size: 14px;
        padding-right: 6px;
    }
}

/* موبایل خیلی کوچک (تا 360px) */
@media (max-width: 360px) {
    .markets-card .market-banners img:nth-child(2) {
        width: 45px;
        height: 45px;
        border-width: 2px;
        right: 5px; /* حداقل فاصله */
    }
    
    .markets-card .market-info {
        margin-top: 22px;
        padding: 6px;
    }
    
    .market-banners {
        height: 120px;
    }
    
    .markets-card .market-info h2 {
        padding-right: 5px;
    }
    
    .markets-card .market-info span,
    .markets-card .market-info span.no-products {
        padding-right: 5px;
    }
    
    .markets-card .market-info a {
        padding-right: 5px;
    }
}

/* ============================================
   تنظیمات مخصوص اسلایدر
   ============================================ */

.most-active-markets-filter .swiper-slide {
    height: auto;
}

.swiper-slide .markets-card {
    height: 100%;
}

/* آواتار در حالت اسلایدر */
.swiper-slide .markets-card .market-banners img:nth-child(2) {
    width: 65px;
    height: 65px;
    right: 8px; /* فاصله کمتر در اسلایدر */
}

.markets-wrapper .swiper-slide .markets-card .market-info {
    margin-top: 32px;
}

/* ریسپانسیو اسلایدر */
@media (max-width: 1024px) {
    .markets-wrapper .swiper-slide .markets-card .market-banners img:nth-child(2) {
        width: 60px;
        height: 60px;
        right: 8px;
    }
    
    .markets-wrapper .swiper-slide .markets-card .market-info {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .markets-wrapper .swiper-slide .markets-card .market-banners img:nth-child(2) {
        width: 50px;
        height: 50px;
        right: 8px;
    }
    
    .markets-wrapper .swiper-slide .markets-card .market-info {
        margin-top: 25px;
    }
}

@media (max-width: 480px) {
    .markets-wrapper .swiper-slide .markets-card .market-banners img:nth-child(2) {
        width: 45px;
        height: 45px;
        right: 6px;
    }
    
    .markets-wrapper .swiper-slide .markets-card .market-info {
        margin-top: 22px;
    }
}

/* ============================================
   تنظیمات اسکرول‌بار و اسلایدر
   ============================================ */

.markets-wrapper .swiper-scrollbar {
    background: rgba(0,0,0,0.1);
    height: 4px;
    margin: 20px auto 0;
    width: calc(100% - 30px);
    max-width: 600px;
}

.markets-wrapper .swiper-scrollbar-drag {
    background: #0073aa;
}

/* ============================================
   اطمینان از نمایش درست
   ============================================ */

/* تنظیمات wrapper برای حالت‌های مختلف */
.markets-wrapper.stores-grid-view {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.markets-wrapper.slider-view {
    max-width: 1400px;
    margin: 0 auto;
}

/* جلوگیری از overflow ناخواسته */
.markets-wrapper * {
    box-sizing: border-box;
}

/* اطمینان از نمایش درست در فایرفاکس و safari */
@supports (-moz-appearance:none) {
    .markets-card .market-banners img:nth-child(2) {
        transform: translateY(50%) translateZ(0);
    }
}

/* archive page */
.large-10 {
	flex-basis: 100%;
	max-width: 100% !important;
    padding: 0;
}

.archive-page {
	margin: 0;
	padding: 0 12px;
	width: 100%;
}

.archives-card {
	margin: 25px 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px
}

.post-card {
	padding: 10px;
	border-radius: 16px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.14);
	background-color: var(--e-global-color-1058f02);
}

.post-card img {
	width: 100%;
	height: 150px;
	border-radius: 8px;
	transform: translateY(-25px);
}

.post-card h2 a {
	color: var(--e-global-color-73627be);
	font-size: 0.9em !important;
	font-weight: 700;
}

.woocommerce-pagination,
.pagination,
.elementor-pagination {
	width: 100%;
	text-align: center;
	margin-top: 32px;
}

.elementor-pagination .page-numbers,
.pagination a {
	padding: 8px 16px;
	background-color: var(--e-global-color-5da847f);
	color: #111;
	border: none;
	border-radius: 4px;
	transition: all .3s ease;
}

.elementor-pagination .page-numbers,
.pagination a:hover{
	background-color: var(--e-global-color-8bd484a);
}

.elementor-pagination .page-numbers .current,
.pagination .current{
	padding: 8px 16px;
	background-color: var(--e-global-color-b5f44cc);
	color: #fff;
	border: none;
	border-radius: 4px;
}

.pagination .next,.markets-pagination .prev{
	background-color: transparent !important;
	color: var(--e-global-color-d09ffe6);
}


@media screen and (max-width: 768px) {
	
.stores-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
	
	.archives-card {
		grid-template-columns: 1fr !important;
		gap: 60px;
	}
	
	.archive-header {
/* 		display: flex; */
		flex-direction: column !important;
		justify-content: space-between;
		align-items: flex-start;
	}
	
	.simple-blog-search {
		width: 100% !important;
	}
}


/* woocommerce pagiation */
.woocommerce-pagination ul.page-numbers li a{
	padding: 4px 8px;
	background-color: var(--e-global-color-5da847f);
	color: #111;
	border: none;
	border-radius: 4px;
	transition: all .3s ease;
}

.woocommerce-pagination ul.page-numbers li a:hover{
	background-color: var(--e-global-color-8bd484a);
}

.woocommerce-pagination ul.page-numbers li span.current{
	padding: 4px 8px;
	background-color: var(--e-global-color-b5f44cc);
	color: #fff;
	border: none;
	border-radius: 4px;
}
/* become a vendor woocommerce */

.dokan-account-migration-lists {
    width: 100% !important;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border: none;
    border-radius: 16px;
    color: #2E7D32;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.1);
    border-right: 5px solid #4CAF50;
    animation: fadeInUp 0.5s ease-out;
}

.dokan-account-migration-lists li {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0;
    padding: 10px;
    width: 100%;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}


/* انتقال سایدبار به بالا در موبایل - برای ابزارک‌های قالب */
@media only screen and (max-width: 768px) {
  /* اگر با فلکس‌باکس کار نکرد */
  .row.row-main {
    display: block !important;
  }
  
  /* سایدبار را به بالا می‌برد */
  .col.sidebar,
  .col.large-3,
  [class*="col-"]:has(#shop-sidebar) {
    float: none !important;
    width: 100% !important;
    clear: both !important;
    margin-bottom: 40px !important;
  }
  
  /* محتوا را بعد از سایدبار می‌آورد */
  .col.large-9,
  .col.content-area {
    float: none !important;
    width: 100% !important;
    clear: both !important;
  }
  
  /* مطمئن شوید سایدبار اول نمایش داده شود */
  body.single-product .row.row-main > .col.sidebar,
  body.archive .row.row-main > .col.sidebar {
    display: block !important;
    order: -1 !important;
  }
}

.archive-header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

.simple-blog-search {
	width: 40%;
}

.search-wrapper {
	width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

input.search-field {
	height: 40px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

button.search-btn {
	background-color: var(--e-global-color-b5f44cc);
    color: #fff;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}