:root {
    --primary-color: #7fad39;
    --secondary-color: #cdac67;
    --theme-green: #255b5c;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.7;
}

.product-details-page {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* --- بخش گالری محصول --- */
.product-gallery-public .main-image-container {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
}
.product-gallery-public .main-image-container img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.product-gallery-public .thumbnail-slider .item {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.2s ease;
}
.product-gallery-public .thumbnail-slider .item:hover {
    transform: scale(1.05);
}
.product-gallery-public .thumbnail-slider .item.active {
    border-color: var(--theme-green);
    box-shadow: 0 0 8px rgba(37, 91, 92, 0.5);
}
.product-gallery-public .thumbnail-slider .item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

/* --- بخش اطلاعات محصول --- */
.product-info-public {
    padding-right: 25px;
}
@media (max-width: 991px) {
    .product-info-public {
        padding-right: 0;
        margin-top: 30px;
    }
}

.product-title-public {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
        font-size: calc(17px + 0.3vw);
}
.product-price-public {
    font-weight: 700;
    color: var(--theme-green);
    margin-bottom: 20px;
        font-size: calc(16px + 0.3vw);
}
.product-price-public .currency {
    font-size: 1rem;
    font-weight: 500;
}
.product-description-public {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

/* --- بخش دکمه های تعاملی --- */
.actions-container-public {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
}
.action-button-public {
    padding: 12px 20px;
    font-size: calc(13px + 0.2vw);
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}
.action-button-public i {
    margin-left: 8px;
}
.btn-contact-seller,
.btn-visualize-public {
    flex-grow: 1;
}
.btn-contact-seller {
    background-color: var(--theme-green);
    color: white;
}
.btn-contact-seller:hover {
    background-color: #1e494a;
    color: white;
}
.btn-visualize-public {
    background-color: var(--secondary-color);
    color: white;
}
.btn-visualize-public:hover {
    background-color: #b99551;
    color: white;
}
.btn-share-icon-only {
    flex-grow: 0;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    padding: 0;
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid var(--border-color);
    box-shadow: none;
    margin-right: auto;
}
.btn-share-icon-only i {
    margin: 0;
    font-size: 1.2rem;
}
.btn-share-icon-only:hover {
    background-color: #e0e0e0;
    border-color: #aaa;
}

/* --- بخش مشخصات فنی --- */
.product-specifications-public {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
}
.product-specifications-public h3 {
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--theme-green);
    display: inline-block;
    font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
}

/* === START: استایل نهایی و اصلاح شده کارت های مشخصات === */
.spec-card-bs {
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
padding: 0.5rem 0.5rem;
    height: 100%;
    display: flex;
    align-items: center; /* آیکون و محتوا در یک ردیف */
    gap: 1rem; /* فاصله بین آیکون و محتوا */
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.spec-card-bs:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.spec-card-bs .spec-card-icon {
    flex-shrink: 0;
    width: 31px;
    height: 31px;
    background-color: rgba(37, 91, 92, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-card-bs .spec-card-icon i {
    font-size: 1.3rem;
    color: var(--theme-green);
}

.spec-card-bs .spec-card-content {
    text-align: right;
    width: 100%;
}

.spec-card-bs .spec-card-content h3 {
    font-weight: 500;
    color: #888;
    margin-bottom: 0.25rem;
    position: relative;
    padding-bottom: 0.5rem; /* فضا برای خط جداکننده */
    /* فونت ریسپانسیو و کوچکتر برای عنوان */
    font-size: calc(12px + 0.1vw);
}

/* خط جداکننده زیبا زیر عنوان */
.spec-card-bs .spec-card-content h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.spec-card-bs:hover .spec-card-content h3::after {
    width: 50px;
}

.spec-card-bs .spec-card-content p {
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
    padding-top: 0.25rem; /* کمی فاصله از خط جداکننده */
    /* فونت ریسپانسیو و کوچکتر برای مشخصات */
    font-size: calc(13px + 0.2vw);
}
/* === END: استایل نهایی کارت های مشخصات === */

/* --- بخش تحلیل هوش مصنوعی --- */
.ai-analysis-container {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}
.ai-analysis-button {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    border: 2px dashed #9d9d9d;
    background-color: #fdfaf3;
    color: #b99551;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}
.ai-analysis-button:hover {
    background-color: #fff;
    border-style: solid;
    color: #255b5c;
    border-color: #255b5c;
}
.ai-analysis-button i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}
.ai-analysis-button:hover i {
    transform: rotate(20deg);
}
#aiAnalysisModal .modal-body {
    padding: 2rem;
    line-height: 2;
    color: #333;
}
#aiAnalysisModal .modal-body h4 {
    font-weight: 700;
    color: #255b5c;
    margin-bottom: 1rem;
}
#aiAnalysisModal .modal-body ul {
    padding-right: 20px;
}
#aiAnalysisModal .modal-body li {
    margin-bottom: 0.75rem;
}
#aiAnalysisModal .spinner-container {
    text-align: center;
    padding: 40px 20px;
    color: #555;
}
#aiAnalysisModal .spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #255b5c;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* --- استایل‌های Lazy Loading --- */
.lazyload,
.lazyloading {
    opacity: 0;
}
.lazyloaded {
    opacity: 1;
    transition: opacity 400ms;
}


.section-title h2
{
    font-size: calc(18px + 0.3vw) !important;
}


.product-usages-section {
    padding-top: 40px;
    padding-bottom: 20px;
    background-color: #fff;
}

.product-usages-section .section-title {
    text-align: center;
    margin-bottom: 20px;
}

.product-usages-section .hr-public {
    margin: 0 auto 40px; /* وسط چین کردن خط */
}

.usage-category-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.usage-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--theme-green);
}

.usage-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--theme-green);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--secondary-color);
    position: relative;
}

.usage-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usage-items-list li {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.75rem;
}

.usage-items-list li i {
    color: var(--secondary-color); /* رنگ طلایی برای تیک */
    font-size: 1.1rem;
    margin-left: 10px;
}
