
/* رپر اصلی جهت نمایش و راست‌چین بودن */
.hc-auth-wrapper {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background-color: var(--c-light);
    padding: 50px 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

/* کانتینر اصلی با طراحی مدرن */
.cat-modern-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 1200px;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(10, 36, 79, 0.06);
}

/* بخش هدر و توضیحات */
.cat-modern-header {
    text-align: center;
    margin-bottom: 60px;
}

.cat-main-title {
    color: var(--c-dark-blue);
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    position: relative;
    display: inline-block;
}

.cat-main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--c-primary);
    border-radius: 3px;
}

.cat-modern-description {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--c-light) 0%, #ffffff 100%);
    border: 1px solid var(--c-beige);
    padding: 25px 35px;
    border-radius: 12px;
    position: relative;
}

.cat-desc-icon {
    position: absolute;
    top: -15px;
    right: 30px;
    background-color: var(--c-gold);
    color: #fff;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(201, 158, 51, 0.4);
}

.cat-modern-description p {
    color: var(--c-dark-blue);
    font-size: 1rem;
    line-height: 1.9;
    margin: 0;
    text-align: justify;
}

/* استایل بخش‌های دسته‌بندی */
.cat-group-section {
    margin-bottom: 50px;
    background-color: #fafafa;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #f0f0f0;
}

/* استایل جدید برای عنوان دسته‌مادر */
.cat-group-title-box {
    margin-bottom: 25px;
}

.cat-group-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--c-dark-blue);
    width: 100%;
}

.cat-group-dot {
    width: 10px;
    height: 10px;
    background-color: var(--c-primary);
    border-radius: 50%;
    margin-left: 12px; /* راست چین */
    box-shadow: 0 0 0 4px rgba(190, 114, 65, 0.2);
    transition: all 0.3s ease;
}

.cat-group-link h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.cat-group-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to left, var(--c-beige), transparent);
    margin-right: 20px;
}

.cat-group-link:hover .cat-group-dot {
    background-color: var(--c-gold);
    box-shadow: 0 0 0 4px rgba(201, 158, 51, 0.2);
}
.cat-group-link:hover h3 {
    color: var(--c-primary);
}

/* گرید بندی کارت‌های محصول */
.cat-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

/* استایل مدرن کارت‌های محصول */
.cat-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background-color: #ffffff;
    border-radius: 14px;
    padding: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.cat-item-card:hover {
    background-color: #ffffff;
    border-color: var(--c-beige);
    box-shadow: 0 12px 25px rgba(10, 36, 79, 0.08);
    transform: translateY(-8px);
}

/* کادر تصویر محصول */
.cat-item-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--c-light);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    border: 1px solid var(--c-beige);
    transition: border-color 0.3s ease;
}

.cat-item-card:hover .cat-item-image {
    border-color: var(--c-gold);
}

.cat-item-image img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.cat-item-card:hover .cat-item-image img {
    transform: scale(1.12);
}

/* نام محصول زیر کارت */
.cat-item-name {
    color: var(--c-dark-blue);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.cat-item-card:hover .cat-item-name {
    color: var(--c-primary);
}

/* --- تنظیمات ریسپانسیو --- */
@media (max-width: 768px) {
    .cat-modern-container {
        padding: 25px;
    }
    
    .cat-main-title {
        font-size: 1.8rem;
    }
    
    .cat-group-section {
        padding: 20px;
    }
    
    .cat-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hc-auth-wrapper {
        padding: 20px 10px;
    }

    .cat-modern-description {
        padding: 20px;
    }

    .cat-group-link h3 {
        font-size: 1.1rem;
    }

    .cat-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .cat-item-card {
        padding: 10px;
    }

    .cat-item-name {
        font-size: 0.85rem;
    }
}