/* Ezzebazar product card 2.1. Replace the whole previous CSS file. */
.ezpc-wrapper, .ezpc-wrapper * { box-sizing:border-box; }
.ezpc-wrapper { width:100%; height:100%; min-width:0; padding:0; background:transparent; }
.ezpc-card.ez-product-card {
 --ezpc-card:#fff; --ezpc-text:#1d1d1f; --ezpc-muted:#6e6e73;
 --ezpc-blue:#007aff; --ezpc-blue-soft:rgba(0,122,255,.09); --ezpc-green:#10b981;
 --ezpc-border:rgba(15,23,42,.06); --ezpc-card-radius:26px; --ezpc-inner-radius:18px;
 --ezpc-ease:cubic-bezier(.22,1,.36,1);
 width:100%; height:100%; min-width:0; margin:0;
 direction:rtl; text-align:right; font:16px/normal "Gandom",Tahoma,sans-serif;
 -webkit-font-smoothing:antialiased;
}
.ezpc-card.ez-product-card :is(a,button,span,div) { font-family:inherit; }
.ezpc-card.ez-product-card a { text-decoration:none; }
.ezpc-card.ez-product-card img { display:block; margin:0; max-width:100%; }
    .ezpc-card.ez-product-card {
      background: var(--ezpc-card);
      border-radius: var(--ezpc-card-radius);
      padding: 12px;
      border: 1px solid var(--ezpc-border);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 4px 20px -2px rgba(15, 23, 42, 0.04);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
      transition:
        transform 0.4s var(--ezpc-ease),
        box-shadow 0.4s var(--ezpc-ease),
        border-color 0.3s ease;
    }

    @media (hover: hover) {
      .ezpc-card.ez-product-card:hover {
        transform: translateY(-6px);
        border-color: rgba(0, 122, 255, 0.22);
        box-shadow:
          inset 0 1px 0 #ffffff,
          0 18px 38px -8px rgba(15, 23, 42, 0.09);
      }
    }

    /* ۱. باکس تصویر (Image Pedestal) با نسبت ۱:۱ */
    .ezpc-card.ez-product-card .ez-card-media {
      position: relative;
      aspect-ratio: 1 / 1;
      width: 100%;
      background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f1f5f9 100%);
      border-radius: var(--ezpc-inner-radius);
      padding: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      border: 1px solid rgba(15, 23, 42, 0.03);
    }

    .ezpc-card.ez-product-card .ez-card-media img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      mix-blend-mode: multiply;
      transition: transform 0.5s var(--ezpc-ease);
    }
    @media (hover: hover) {
      .ezpc-card.ez-product-card:hover .ez-card-media img {
        transform: scale(1.06);
      }
    }

    /* بج شیشه‌ای موجودی در بالای تصویر */
    .ezpc-card.ez-product-card .ez-stock-pill {
      position: absolute;
      top: 10px;
      right: 10px;
      background: rgba(255, 255, 255, 0.82);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(16, 185, 129, 0.22);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
      padding: 4px 10px;
      border-radius: 99px;
      font-size: 11.2px;
      font-weight: 700;
      color: #065f46;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      z-index: 3;
    }
    .ezpc-card.ez-product-card .ez-stock-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--ezpc-green);
      box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    }

    /* دکمه مشاهده سریع شیشه‌ای روی تصویر در دسکتاپ */
    .ezpc-card.ez-product-card .ez-quick-view {
      position: absolute;
      bottom: 10px;
      left: 10px;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(0, 0, 0, 0.06);
      color: var(--ezpc-text);
      display: grid;
      place-items: center;
      opacity: 0;
      transform: translateY(6px);
      transition: all 0.3s var(--ezpc-ease);
      cursor: pointer;
      z-index: 3;
    }
    .ezpc-card.ez-product-card .ez-quick-view svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
    }
    @media (hover: hover) {
      .ezpc-card.ez-product-card:hover .ez-quick-view {
        opacity: 1;
        transform: translateY(0);
      }
      .ezpc-card.ez-product-card .ez-quick-view:hover {
        background: var(--ezpc-blue);
        color: #fff;
      }
    }

    /* ۲. بدنه متنی کارت با ارتفاع استاندارد و تراز دقیق */
    .ezpc-card.ez-product-card .ez-card-body {
      padding: 14px 6px 6px;
      display: flex;
      flex-direction: column;
      flex: 1;
    }

    .ezpc-card.ez-product-card .ez-card-cat {
      font-size: 11.52px;
      font-weight: 600;
      color: var(--ezpc-muted);
      margin-bottom: 4px;
      display: block;
    }

    .ezpc-card.ez-product-card .ez-card-title {
      font-size: 14.72px;
      font-weight: 800;
      color: var(--ezpc-text);
      line-height: 1.55;
      /* قفل کردن عنوان روی ۲ خط برای هم‌ترازی ۱۰۰٪ تمام کارت‌ها */
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      min-height: 45.6px;
      margin-bottom: 14px;
      text-decoration: none;
      transition: color 0.2s;
    }
    .ezpc-card.ez-product-card .ez-card-title:hover {
      color: var(--ezpc-blue);
    }

    /* ۳. فوتر کارت (قیمت + دکمه خرید) */
    .ezpc-card.ez-product-card .ez-card-footer {
      margin-top: auto;
      padding-top: 12px;
      border-top: 1px solid var(--ezpc-border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .ezpc-card.ez-product-card .ez-price-wrap {
      display: flex;
      flex-direction: column;
    }
    .ezpc-card.ez-product-card .ez-price-label {
      font-size: 10.88px;
      color: var(--ezpc-muted);
      font-weight: 500;
    }
    .ezpc-card.ez-product-card .ez-price-val {
      font-size: 17.28px;
      font-weight: 900;
      color: var(--ezpc-text);
      letter-spacing: -0.3px;
    }
    .ezpc-card.ez-product-card .ez-price-currency {
      font-size: 12px;
      font-weight: 600;
      color: var(--ezpc-muted);
      margin-right: 2px;
    }

    /* دکمه خرید کپسولی هوشمند (سبک Apple Store) */
    .ezpc-card.ez-product-card .ez-add-btn {
      background: var(--ezpc-blue-soft);
      color: var(--ezpc-blue);
      border: 1px solid rgba(0, 122, 255, 0.15);
      border-radius: 14px;
      padding: 9px 14px;
      font-size: 12.8px;
      font-weight: 800;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      text-decoration: none;
      white-space: nowrap;
      transition: all 0.25s var(--ezpc-ease);
    }
    .ezpc-card.ez-product-card .ez-add-btn svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2.3;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .ezpc-card.ez-product-card:hover .ez-add-btn,
    .ezpc-card.ez-product-card .ez-add-btn:hover {
      background: var(--ezpc-blue);
      color: #ffffff;
      border-color: var(--ezpc-blue);
      box-shadow: 0 6px 16px rgba(0, 122, 255, 0.28);
    }

    /* واکنش‌گرایی موبایل برای صفحات کوچک */
    @media (max-width: 680px) {
      .ezpc-card.ez-product-card {
        padding: 9px;
        border-radius: 20px;
      }
      .ezpc-card.ez-product-card .ez-card-media {
        border-radius: 14px;
        padding: 12px;
      }
      .ezpc-card.ez-product-card .ez-card-title {
        font-size: 13.12px;
        min-height: 40.8px;
        margin-bottom: 10px;
      }
      .ezpc-card.ez-product-card .ez-price-val {
        font-size: 15.2px;
      }
      .ezpc-card.ez-product-card .ez-add-btn span.btn-text {
        display: none; /* در موبایل ۲ ستونه، دکمه به آیکون جمع‌وجور تبدیل می‌شود تا قیمت کامل جا شود */
      }
      .ezpc-card.ez-product-card .ez-add-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 12px;
      }
    }
  
/* Image is a direct media child as in pc.html; a transparent link preserves navigation. */
.ezpc-card.ez-product-card .ezpc-image-link { position:absolute; inset:0; z-index:1; display:block; margin:0; padding:0; }
.ezpc-card.ez-product-card .ez-card-media > img { flex:none; }
.ezpc-card.ez-product-card .ez-card-cat { margin:0 0 4px; padding:0; min-height:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ezpc-card.ez-product-card .ez-card-title { margin-top:0; padding:0; letter-spacing:normal; }
.ezpc-card.ez-product-card .ez-card-footer { min-width:0; }
.ezpc-card.ez-product-card .ez-price-wrap { min-width:0; }
.ezpc-card.ez-product-card .ezpc-price-line { display:block; font-size:0; line-height:1.55; }
.ezpc-card.ez-product-card .ezpc-price-line :is(.amount,bdi) { display:inline; font:inherit; color:inherit; background:transparent; white-space:normal; }
.ezpc-card.ez-product-card .ezpc-price-line .ez-price-val { display:inline; white-space:nowrap; unicode-bidi:isolate; }
.ezpc-card.ez-product-card .ez-price-currency { display:inline; white-space:nowrap; }
.ezpc-card.ez-product-card .ez-price-currency .woocommerce-Price-currencySymbol { font:inherit; color:inherit; margin:0; }
.ezpc-card.ez-product-card .ezpc-price-line del { display:block; opacity:.65; color:var(--ezpc-muted); }
.ezpc-card.ez-product-card .ezpc-price-line del .ez-price-val { font-size:11px; font-weight:400; }
.ezpc-card.ez-product-card .ezpc-price-line del .ez-price-currency { font-size:10px; }
.ezpc-card.ez-product-card .ezpc-price-line ins { background:none; text-decoration:none; }
.ezpc-card.ez-product-card .ezpc-price-line { font-size:14px; }
.ezpc-card.ez-product-card .ez-stock-pill { line-height:normal; white-space:nowrap; }
.ezpc-card.ez-product-card .ez-stock-pill.is-out { color:#b42332; border-color:rgba(239,68,68,.22); }
.ezpc-card.ez-product-card .is-out .ez-stock-dot { background:#ef4444; box-shadow:0 0 0 2px rgba(239,68,68,.16); }
.ezpc-card.ez-product-card .ez-stock-pill.is-backorder { color:#92400e; border-color:rgba(245,158,11,.22); }
.ezpc-card.ez-product-card .is-backorder .ez-stock-dot { background:#f59e0b; box-shadow:0 0 0 2px rgba(245,158,11,.16); }
/* Reset Flatsome .button/.quick-view rules which do not exist in the standalone sample. */
.ezpc-card.ez-product-card .ez-add-btn {
 appearance:none; flex:0 0 auto; width:auto; height:auto; min-height:0; min-width:0;
 margin:0; padding:9px 14px; font:800 12.8px/normal "Gandom",Tahoma,sans-serif;
 letter-spacing:normal; text-transform:none; text-shadow:none; box-shadow:none;
 opacity:1; vertical-align:baseline; position:relative; overflow:visible;
}
.ezpc-card.ez-product-card .ez-add-btn svg { flex:none; }
.ezpc-card.ez-product-card .ez-add-btn::before,
.ezpc-card.ez-product-card .ez-add-btn::after,
.ezpc-card.ez-product-card .ez-quick-view::before,
.ezpc-card.ez-product-card .ez-quick-view::after { content:none; }
.ezpc-card.ez-product-card .ez-quick-view {
 appearance:none; min-width:0; min-height:0; padding:0; margin:0;
 line-height:normal; letter-spacing:normal; text-transform:none; box-shadow:none;
}
.ezpc-card.ez-product-card .ez-add-btn.loading { opacity:.65; cursor:progress; }
.ezpc-card.ez-product-card .ez-add-btn.is-added { background:#ecfdf5; color:#065f46; border-color:#a7f3d0; }
.ezpc-card.ez-product-card .added_to_cart.wc-forward { display:none; }
.ezpc-card.ez-product-card a:focus-visible,
.ezpc-card.ez-product-card button:focus-visible { outline:2px solid var(--ezpc-blue); outline-offset:3px; }
.ezpc-card.ez-product-card .ez-quick-view:focus-visible { opacity:1; transform:none; }
@media(hover:hover) {
 .ezpc-card.ez-product-card:hover .ez-add-btn,
 .ezpc-card.ez-product-card .ez-add-btn:hover { background:var(--ezpc-blue); color:#fff; box-shadow:0 6px 16px rgba(0,122,255,.28); }
}
/* Scoped columns: keep the existing Flatsome/Flickity row and native swipe. */
.row:has(> .ezpc-col) > .ezpc-col, .flickity-slider:has(> .ezpc-col) > .ezpc-col { flex-basis:25%; max-width:25%; width:25%; padding:0 10px 20px; }
.row:has(> .ezpc-col):not(.slider):not(.row-slider):not(.flickity-enabled) { align-items:stretch; }
.row:has(> .ezpc-col) > .ezpc-col > .col-inner { height:100%; }
@media(max-width:980px) {
 .row:has(> .ezpc-col) > .ezpc-col, .flickity-slider:has(> .ezpc-col) > .ezpc-col { flex-basis:33.333333%; max-width:33.333333%; width:33.333333%; }
}
@media(max-width:680px) {
 .row:has(> .ezpc-col) > .ezpc-col, .flickity-slider:has(> .ezpc-col) > .ezpc-col { flex-basis:50%; max-width:50%; width:50%; padding:0 6px 12px; }

}

@media(max-width:680px) {
 .ezpc-card.ez-product-card .ez-add-btn { width:38px; height:38px; padding:0; border-radius:12px; }
}
@media(prefers-reduced-motion:reduce) {
 .ezpc-card.ez-product-card, .ezpc-card.ez-product-card * { transition:none!important; animation:none!important; }
 .ezpc-card.ez-product-card:hover, .ezpc-card.ez-product-card:hover .ez-card-media img { transform:none; }
}





/* گردکردن لایه بیرونی کارت محصول */
.product-small.ezpc-col,
.product-small.ezpc-col > .col-inner.ezpc-wrapper {
    border-radius: 26px !important;
}

@media (max-width: 680px) {
    .product-small.ezpc-col,
    .product-small.ezpc-col > .col-inner.ezpc-wrapper {
        border-radius: 20px !important;
    }
}




/* تشخیص عرض خود کارت، مستقل از عرض صفحه */
.ezpc-wrapper {
    container-type: inline-size;
}

/* جلوگیری از فشرده‌شدن و تداخل عنوان */
.ezpc-card.ez-product-card .ez-card-body {
    min-width: 0;
}

.ezpc-card.ez-product-card .ez-card-title {
    position: static !important;
    height: auto !important;
    max-height: none !important;
    min-height: 3.1em;
    flex-shrink: 0;
    line-height: 1.55;
    margin-bottom: 14px !important;
}

/* جداسازی محدوده قیمت و دکمه */
.ezpc-card.ez-product-card .ez-card-footer {
    position: static !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    height: auto !important;
}

.ezpc-card.ez-product-card .ez-price-wrap {
    min-width: 0;
}

.ezpc-card.ez-product-card .ez-price-label {
    display: block;
    white-space: nowrap;
    margin-bottom: 4px;
}

.ezpc-card.ez-product-card .ez-add-btn {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
}

/* کارت‌های باریک: دکمه زیر قیمت */
@container (max-width: 240px) {
    .ezpc-card.ez-product-card .ez-card-footer {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .ezpc-card.ez-product-card .ez-card-footer .ez-add-btn {
        width: 100% !important;
        height: auto !important;
        min-height: 40px;
        padding: 9px 10px !important;
        justify-content: center;
    }

    .ezpc-card.ez-product-card .ez-card-footer .ez-add-btn .btn-text {
        display: inline !important;
    }
}