/* ================================================================
   1. პროდუქტის მთავარი დეტალების კონტეინერი (Layout)
   ================================================================ */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
    border: 1px solid #f0f5f2;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

/* 🛑 აჩერებს მთავარი ბლოკის მოძრაობას (Hover ანიმაციის გათიშვა) 🛑 */
.product-detail-container.product-card:hover {
    transform: none !important; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.03) !important; 
    border-color: #f0f5f2 !important; 
}

/* ================================================================
   2. სურათების გალერეა (მარცხენა მხარე) - იდეალურად გასწორებული!
   ================================================================ */
.product-gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center; /* ცენტრში ვაქცევთ გალერეას */
    width: 100%;
}

.product-gallery {
    position: relative;
    width: 100%;
    max-width: 450px; /* არ მივცემთ უფლებას ზედმეტად გაიწელოს */
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px; /* სტაბილური სიმაღლე მთავარი სურათისთვის */
}

.product-gallery img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: contain; /* სურათი სრულად გამოჩნდება, მოჭრის გარეშე */
    transition: opacity 0.3s ease;
}

/* --- თამბნეილების (პატარა სურათების) დაცული დიზაინი --- */
.gallery-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 5px 10px 5px;
    width: 100%;
    justify-content: center; /* სურათები დადგება ცენტრში */
}

.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}
.gallery-thumbs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.thumb-item {
    width: 80px !important;  /* 🛑 გაიზარდა 80px-მდე */
    height: 80px !important; /* 🛑 გაიზარდა 80px-მდე */
    min-width: 80px; /* იცავს შეკუმშვისგან */
    object-fit: contain; 
    background: #fff;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 6px; /* შიდა დაშორება ოდნავ გავზარდეთ */
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0; 
}

.thumb-item:hover {
    border-color: #4CBB8D;
    transform: translateY(-2px);
}

.thumb-item.active {
    border-color: #4CBB8D;
    box-shadow: 0 4px 12px rgba(76, 187, 141, 0.2);
}

/* ================================================================
   3. პროდუქტის ინფორმაცია (მარჯვენა მხარე)
   ================================================================ */
.product-info {
    display: flex;
    flex-direction: column;
}

.brand-eyebrow {
    font-size: 13px;
    color: #4CBB8D;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-main-title {
    font-size: 26px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

.pack-info {
    font-size: 15px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.product-meta {
    font-size: 14px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ფასი */
.detail-price-box {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.detail-price-box .current-price {
    font-size: 32px;
    font-weight: 800;
    color: #2c3e50;
}

.detail-price-box .current-price.discounted {
    color: #E74C3C;
}

.detail-price-box .old-price {
    font-size: 20px;
    color: #95a5a6;
    text-decoration: line-through;
    font-weight: 600;
}

.savings-badge {
    background: #fef2f2;
    color: #E74C3C;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    border: 1px solid #fecaca;
}

/* ვარიაციები (შეფუთვები) */
.variations-box {
    margin-bottom: 25px;
}

.variations-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #34495e;
    margin-bottom: 10px;
}

.variation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.variation-row:hover {
    border-color: #4CBB8D;
    background: #fff;
    box-shadow: 0 4px 10px rgba(76, 187, 141, 0.1);
}

.var-qty {
    font-weight: 600;
    color: #2c3e50;
}

.var-price-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.var-old-price {
    font-size: 13px;
    color: #95a5a6;
    text-decoration: line-through;
}

.var-new-price {
    font-weight: 800;
    color: #4CBB8D;
}

/* ყიდვის ღილაკი */
.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #4CBB8D;
    color: #fff;
    padding: 16px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(76, 187, 141, 0.3);
    width: 100%;
}

.btn-buy:hover {
    background: #3da87d;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(76, 187, 141, 0.4);
}

/* ================================================================
   4. ტაბები (ანოტაცია და აღწერა)
   ================================================================ */
.product-tabs {
    margin-top: 40px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f5f2;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.tab-header {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 18px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #4CBB8D;
    background: #fff;
    border-bottom: 3px solid #4CBB8D;
}

.tab-content {
    padding: 30px;
    font-size: 15px;
    line-height: 1.8;
    color: #4a5568;
}

/* ================================================================
   5. მსგავსი პროდუქტები
   ================================================================ */
.similar-section {
    margin-top: 60px;
    margin-bottom: 40px;
}

.sec-title {
    font-size: 22px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #e8f8f1;
    padding-bottom: 10px;
    display: inline-block;
}
/* ================================================================
   📱 მობილური ადაპტაცია
   ================================================================ */
@media (max-width: 992px) {
    .product-detail-container {
        grid-template-columns: 1fr; /* მობილურზე ერთ სვეტად */
        padding: 20px;
        gap: 25px;
    }
    
    .product-main-title { font-size: 22px; }
    .detail-price-box .current-price { font-size: 28px; }
    
    .tab-btn { font-size: 14px; padding: 15px 10px; }
    .tab-content { padding: 20px 15px; }
}


/* ================================================================
ფასი და გალერეა
   ================================================================ */


 .fasi-shida-content {
            background: #fdfdfd; border: 1px dashed #e0e0e0; border-radius: 8px;
            padding: 15px; margin-bottom: 25px; line-height: 1.8;
        }
        .fasi-shida-content .pr_satauri, .fasi-shida-content .shakveta_st { display: none; }
        .fasi-shida-content .pr_fasi { font-size: 15px; color: #444; margin-top: 10px; }
        .fasi-shida-content .pr_fasi b { color: #4CBB8D; }

      /* 🛑 ინტერაქტიული შემმოწმებლის კომპაქტური სტილები */
        .health-checker-box {
            background: #fdfdfd;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 20px;
            margin: 30px 0;
            box-shadow: 0 4px 15px rgba(0,0,0,0.02);
        }
        .hc-title {
            font-size: 16px;
            color: #2c3e50;
            margin-bottom: 8px;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .hc-subtitle {
            font-size: 13px;
            color: #7f8c8d;
            margin-bottom: 15px;
        }
        
        .hc-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .hc-checkbox-label {
            display: inline-flex;
            align-items: center;
            padding: 8px 16px;
            background: #fff;
            border: 1px solid #cbd5e1;
            border-radius: 50px; 
            cursor: pointer;
            transition: all 0.2s ease;
            user-select: none;
            font-size: 13px;
            color: #475569;
            font-weight: 600;
        }
        .hc-checkbox-label input { display: none; }
        
        .hc-checkbox-label:hover { border-color: #94a3b8; background: #f8fafc; }
        .hc-checkbox-label.selected {
            background: #4CBB8D;
            border-color: #4CBB8D;
            color: #fff;
            box-shadow: 0 4px 10px rgba(76, 187, 141, 0.2);
        }

        .hc-btn {
            width: 100%;
            padding: 12px;
            background: #2c3e50;
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            transition: 0.3s;
        }
        .hc-btn:hover { background: #1a252f; }
        
        .hc-results { margin-top: 15px; display: none; animation: fadeIn 0.4s ease; }
        .hc-result-item {
            padding: 12px 15px;
            border-radius: 8px;
            margin-bottom: 8px;
            font-size: 13px;
            line-height: 1.5;
            display: flex;
            gap: 12px;
            align-items: flex-start;
        }
        .hc-result-item i { font-size: 16px; margin-top: 2px; }
        
        .hc-safe { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
        .hc-safe i { color: #22c55e; }
        
        .hc-warning { background: #fffbeb; border: 1px solid #fef08a; color: #854d0e; }
        .hc-warning i { color: #eab308; }
        
        .hc-danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
        .hc-danger i { color: #ef4444; }

        .hc-seo-details { margin-top: 15px; border-top: 1px dashed #e2e8f0; padding-top: 10px; }
        .hc-seo-details summary { font-size: 12px; color: #94a3b8; cursor: pointer; outline: none; }
        .hc-seo-details p { font-size: 12px; color: #64748b; line-height: 1.6; margin-top: 10px; }

        @keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

        /* ================================================================
   🕒 აქციის ტაიმერი (Countdown)
   ================================================================ */
.promo-timer-wrapper {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border: 1px solid #fecdd3;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 20px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.08);
}

.promo-timer-header {
    font-size: 13px;
    font-weight: 800;
    color: #e11d48;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ამ კლასს (product-countdown-box) ავსებს თქვენი JS ფაილი. 
   ჩვენ ვაფორმებთ მის შიგთავსს */
.product-countdown-box {
    display: flex;
    gap: 8px;
}

/* JS-მა უნდა დააგენერიროს მსგავსი სტრუქტურა შიგნით: 
   <span><b>01</b>დღე</span> 
   თუ არ აგენერირებს <span>-ებს, ქვემოთ გეტყვით როგორ შეცვალოთ JS. 
   მაგრამ ჯერ ამ სტილებს დავწერთ: */
.product-countdown-box span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #fda4af;
    color: #881337;
    font-size: 11px;
    font-weight: 600;
    border-radius: 8px;
    min-width: 50px;
    padding: 6px 4px;
    box-shadow: 0 2px 5px rgba(225, 29, 72, 0.05);
}

.product-countdown-box span b {
    font-size: 18px;
    font-weight: 900;
    color: #e11d48;
    line-height: 1;
    margin-bottom: 2px;
}