:root {
    --hm-green-primary: #008a1a;
    --hm-bg-gray: #e9ebed;
    --hm-text-dark: #333;
    --hm-border-radius: 12px;
}

.hm-showcase-container {
    display: flex;
    flex-direction: row;
    gap: 0;
    width: 100%;
    direction: rtl;
    font-family: inherit;
    box-sizing: border-box;
    margin: 20px 0;
}

.hm-products-swiper {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.hm-products-swiper .swiper-wrapper {
    display: flex !important;
    flex-direction: row;
    z-index: 1;
    box-sizing: content-box;
}

.hm-products-swiper .swiper-slide {
    flex-shrink: 0; 
    height: auto; 
    display: block;
    box-sizing: border-box;
}

.hm-showcase-container.has-banner .hm-showcase-banner {
    width: 30%;
    background-color: var(--hm-bg-gray);
    border-radius: 0 var(--hm-border-radius) var(--hm-border-radius) 0;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.05);
    box-sizing: border-box;
}
.hm-showcase-container.has-banner .hm-showcase-banner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -13px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid var(--hm-bg-gray);
    z-index: 10;
}

.hm-banner-header {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--hm-text-dark);
    margin-bottom: 10px;
}

.hm-banner-divider {
    width: 80%;
    height: 2px;
    background-color: #d1d5db;
    margin-bottom: 30px;
}

.hm-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.hm-banner-badge {
    background-color: #cbd5e1;
    color: #475569;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
}

.hm-banner-icon img {
    max-width: 100px;
    height: auto;
}

.hm-banner-desc {
    font-weight: bold;
    font-size: 1.1rem;
    color: #0f172a;
}

.hm-showcase-container.has-banner .hm-showcase-products-wrapper {
    width: 70%;
    background-color: var(--hm-green-primary);
    border-radius: var(--hm-border-radius) 0 0 var(--hm-border-radius);
    padding: 25px;
    box-sizing: border-box;
    overflow: hidden;
}

.hm-showcase-container.full-width .hm-showcase-products-wrapper {
    width: 100%;
    background-color: #fff;
    border-radius: var(--hm-border-radius);
    padding: 25px;
    box-sizing: border-box;
    overflow: hidden;
}
.site-titr{
    display:none !important;
}
.hm-products-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
}

.hm-products-carousel-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff !important;
}

.hm-swiper-navigation {
    display: flex;
    gap: 8px;
}

.hm-swiper-navigation button {
    background-color: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    user-select: none;
}

.hm-swiper-navigation button:hover {
    background-color: rgba(255,255,255,0.4);
}

.hm-swiper-navigation button.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background-color: #fb5720;
}

.hm-product-card, .hm-view-all-card {
    background: #f3f3f3ad;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 300px;
    text-decoration: none;
    color: var(--hm-text-dark);
    box-sizing: border-box;
    transition: all 0.3s ease-in-out; /* اصلاح برای انیمیشن نرم‌تر */
    width: 100%;
}

.hm-product-card:hover, .hm-view-all-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
    background:#2cbf2c29;
}

.hm-product-img {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.hm-product-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* بخش مدیریت متون کارت محصول */
.hm-product-info-wrapper {
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hm-product-title {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 5px 0;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    transition: 0.3s;
}

/* استایل توضیحات (Excerpt) */
.hm-product-excerpt {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    text-align: right;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

/* افکت هاور برای نمایش توضیحات */
.hm-product-card:hover .hm-product-title {
    -webkit-line-clamp: 1; /* عنوان تک‌خطی می‌شود تا جا باز شود */
    color: var(--hm-green-primary);
}

.hm-product-card:hover .hm-product-excerpt {
    height: 55px; /* ارتفاع کافی برای ۱۰ کلمه */
    opacity: 1;
    margin-top: 5px;
}

.hm-product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 0.95rem;
}

.hm-price-label {
    color: #64748b;
    font-size: 0.85rem;
}

.hm-view-all-card {
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #fff;
}

.hm-view-all-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--hm-green-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hm-view-all-circle .arrow {
    color: var(--hm-green-primary);
    font-size: 1.4rem;
}

.hm-view-all-text {
    font-size: 1rem;
    font-weight: bold;
    color: var(--hm-text-dark);
}
.box-qeymat {
  position: sticky;
  top: 0;
  z-index: 1000;
}
.hm-products-carousel-header h2{
    padding-right:10px;
    border-right:2px solid #008100;
    font-weight:600;
}
@media (max-width: 768px) {
    .hm-showcase-container.has-banner {
        flex-direction: column;
    }
    .hm-showcase-container.has-banner .hm-showcase-banner,
    .hm-showcase-container.has-banner .hm-showcase-products-wrapper {
        width: 100%;
    }
    .hm-showcase-container.has-banner .hm-showcase-banner {
        border-radius: var(--hm-border-radius) var(--hm-border-radius) 0 0;
    }
    .hm-showcase-container.has-banner .hm-showcase-products-wrapper {
        border-radius: 0 0 var(--hm-border-radius) var(--hm-border-radius);
    }
    .hm-showcase-banner::after {
        display: none;
    }
}
