.equal-height-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.equal-height-col .glass-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: space-between; /* توزیع متناسب فضا */
}

/* قاب تصویر اصلی */
.main-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: zoom-in;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    flex-grow: 1; /* پر کردن فضای خالی کارت برای هم‌ترازی */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 480px; /* ارتفاع ثابت برای نگه‌دارنده عکس */
}

.main-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* جلوگیری از دفرمه شدن عکس‌ها */
    transition: transform 0.1s ease-out; /* حرکت نرم تصویر هنگام زوم */
    pointer-events: none; /* جلوگیری از تداخل رویداد ماوس روی عکس */
}

/* تصاویر بندانگشتی (نوار پایین عکس اصلی) */
.thumb-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    margin-top: auto; /* چسبیدن به پایین کارت */
}
.thumb-item {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.7;
    flex-shrink: 0;
}
.thumb-item:hover, .thumb-item.active {
    border-color: #212529;
    opacity: 1;
    transform: scale(1.05);
}
/* شخصی‌سازی اسکرول‌بار تصاویر کوچک در مرورگرها */
.thumb-gallery::-webkit-scrollbar {
    height: 5px;
}
.thumb-gallery::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}