/* ================================================================
   ცენტრირებული სათაურის ბლოკი ტექსტით (მთავარი გვერდის სტილში)
   ================================================================ */
.premium-category-header {
    margin: 25px 0 30px 0;
    padding: 0 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.premium-category-header h1 {
    margin: 0 0 12px 0;
    font-size: 30px;
    font-weight: 800;
    color: #2E8B57;
    letter-spacing: -0.5px;
}
.premium-category-header p {
    margin: 0;
    font-size: 15px;
    color: #64748b;
    max-width: 800px;
    line-height: 1.6;
}

/* ================================================================
   🛑 ახალი: Chip Navigation (Piping Rock-ის სტილში) 🛑
   ================================================================ */
.chip-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; /* დესკტოპზე ცენტრში ვაქცევთ */
    margin-bottom: 30px;
}

.chip-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #ffffff !important; 
    border: 1px solid #e2e8f0 !important;
    border-radius: 50px;
    color: #475569 !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap; 
    box-shadow: none !important;
}

/* 🛑 ვკლავთ უცხო სკრიპტების მიერ ჩამატებულ ანიმაციებს/ფერებს 🛑 */
.chip-btn.active, 
.chip-btn.active-chip {
    background-color: #ffffff !important; 
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    box-shadow: none !important;
}

/* ვტოვებთ მხოლოდ Hover ეფექტს */
.chip-btn:hover {
    border-color: var(--brand-green, #4CBB8D) !important;
    color: var(--brand-green, #4CBB8D) !important;
    background-color: #f8fafc !important;
    transform: translateY(-2px);
}

/* ================================================================
   Toolbar და ქვეკატეგორიები (მთელ სიგანეზე გაშლილი)
   ================================================================ */
.catalog-content { 
    width: 100%; 
}

.catalog-toolbar {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: #fff; 
    padding: 15px 20px; 
    border-radius: 12px;
    margin-bottom: 20px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.02); 
    border: 1px solid #eee;
}

.sort-select {
    padding: 8px 15px; border: 1px solid #ddd; border-radius: 50px;
    outline: none; color: #444; cursor: pointer; background: #fff;
}
.sort-select:focus { border-color: var(--brand-green, #4CBB8D); }

/* ================================================================
   ქვეკატეგორიების სურათებიანი ბლოკი (Premium)
   ================================================================ */
.sub-cats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* გავზარდეთ მინიმალური სიგანე 140-დან 160-მდე */
    gap: 20px; /* გავზარდეთ დაშორება */
    margin-bottom: 40px; /* გავზარდეთ დაშორება ქვედა ბლოკამდე */
}

.sub-cat-card { 
    background: #fff; 
    border: 1px solid #eaeaea; 
    border-radius: 16px; /* უფრო მომრგვალებული კუთხეები */
    padding: 20px 15px; /* გავზარდეთ შიდა სივრცე */
    text-align: center; 
    transition: all 0.3s ease; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    height: 100%; 
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02); /* მსუბუქი ჩრდილი თავიდანვე */
}

.sub-cat-card:hover { 
    transform: translateY(-8px); /* ცოტა მეტად იწევა მაღლა */
    box-shadow: 0 10px 25px rgba(76, 187, 141, 0.25); /* უფრო შესამჩნევი მწვანე ჩრდილი */
    border-color: var(--brand-green, #4CBB8D); 
}

.sub-cat-img { 
    width: 65px; /* გავადიდეთ სურათი 50-დან 65-მდე */
    height: 65px; 
    object-fit: contain; 
    margin-bottom: 15px; 
    transition: transform 0.3s ease;
}

.sub-cat-card:hover .sub-cat-img {
    transform: scale(1.1); /* სურათი ოდნავ დიდდება Hover-ზე */
}

.sub-cat-title { 
    font-size: 14px; /* გავზარდეთ ფონტი */
    font-weight: 700; /* უფრო სქელი ფონტი */
    color: #2c3e50; 
    line-height: 1.3; 
}


/* ================================================================
   📱 მობილური ადაპტაცია
   ================================================================ */
@media (max-width: 768px) {
    .premium-category-header h1 { font-size: 24px; margin-bottom: 10px;}
    .premium-category-header p { font-size: 14px; }
    
    .chip-navigation {
        flex-wrap: nowrap; /* ეკრძალება მეორე ხაზზე ჩამოვარდნა */
        justify-content: flex-start;
        overflow-x: auto; /* ჰორიზონტალური სქროლი */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 5px;
    }
    .chip-navigation::-webkit-scrollbar { display: none; }
    
    .chip-btn {
        flex-shrink: 0;
        font-size: 13px;
        padding: 8px 16px;
    }

    .catalog-toolbar { 
        flex-direction: column; gap: 12px; align-items: flex-start; padding: 12px 15px;
    }
    .sort-select { width: 100%; }
}

/* ================================================================
   🌟 Premium SEO Section (Bottom Text + Image)
   ================================================================ */
.premium-seo-section {
    margin-top: 50px;
    margin-bottom: 30px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #f0f5f2;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.seo-content-wrapper {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    padding: 40px;
    align-items: start; /* ტექსტი იწყება ზემოდან */
}

.seo-text-box {
    /* ტექსტის ბლოკი იკავებს იმდენ სიმაღლეს, რამდენიც ტექსტია */
}

.seo-text-box .seo-title {
    font-size: 24px;
    font-weight: 800;
    color: #2E8B57;
    margin-bottom: 20px;
    line-height: 1.4;
    border-bottom: 2px solid #e8f8f1;
    padding-bottom: 15px;
    display: inline-block;
}

.seo-text-box .seo-description {
    font-size: 15px;
    line-height: 1.8;
    color: #4a5568;
    text-align: justify;
}

.seo-text-box .seo-description p {
    margin-bottom: 15px;
}

/* 🌟 ვამატებთ Sticky ეფექტს 🌟 */
.seo-image-box {
    position: sticky;
    top: 100px; /* სქროლვისას ჰედერს რომ არ შეეხოს */
    height: max-content; /* 🛑 ეს აუცილებელია, რომ Sticky-მ იმუშაოს Grid-ში! */
    display: flex;
    justify-content: center;
}

.seo-image-box img {
    width: 100%;
    height: auto;
    max-height: 500px; /* სურათის მაქსიმალური სიმაღლე */
    object-fit: contain; /* სურათი არ მოიჭრება და სრულად გამოჩნდება */
    border-radius: 16px;
    transition: transform 0.5s ease;
}

.seo-image-box:hover img {
    transform: scale(1.03); /* მაუსის მიტანისას სურათი ოდნავ დიდდება */
}

/* --- მობილური ადაპტაცია --- */
@media (max-width: 992px) {
    .seo-content-wrapper {
        grid-template-columns: 1fr; /* მობილურზე ერთ სვეტად ეწყობა */
        padding: 25px;
        gap: 30px;
    }
    
    .seo-image-box {
        position: static; /* მობილურზე sticky-ს ვთიშავთ */
        order: -1; /* მობილურზე სურათი ტექსტის ზემოთ ავა */
    }
    
    .seo-text-box .seo-title {
        font-size: 20px;
    }
    
    .seo-text-box .seo-description {
        text-align: left;
    }
}