/* File: assets/css/product-page.css (FINAL - HIGH SPECIFICITY)
   Refactored to Canonical Tokens
*/

/* Bulk Price Widget */
.elementor-widget-ganjeh-kala-bulk-price .spd-bulk-price-wrapper {
    background-color: var(--gk-neutral-100) !important;
    border-radius: var(--gk-radius-md) !important;
    padding: 1rem !important;
    margin: 1.5rem 0 !important;
    direction: rtl !important;
}

.elementor-widget-ganjeh-kala-bulk-price .spd-bulk-price-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.elementor-widget-ganjeh-kala-bulk-price .spd-bulk-price-item {
    display: flex !important;
    flex-direction: column !important;
}

.elementor-widget-ganjeh-kala-bulk-price .spd-bulk-price-item:first-child {
    align-items: flex-start !important;
}
.elementor-widget-ganjeh-kala-bulk-price .spd-bulk-price-item:last-child {
    align-items: flex-end !important;
}

.elementor-widget-ganjeh-kala-bulk-price .spd-title,
.elementor-widget-ganjeh-kala-bulk-price .spd-min-qty {
    font-size: 14px !important;
    color: var(--gk-neutral-600) !important;
    margin-bottom: 8px !important;
    font-weight: normal !important;
}

.elementor-widget-ganjeh-kala-bulk-price .spd-retail-price,
.elementor-widget-ganjeh-kala-bulk-price .spd-discounted-price {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--gk-text) !important;
}

.elementor-widget-ganjeh-kala-bulk-price .spd-bulk-values {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.elementor-widget-ganjeh-kala-bulk-price .spd-discount-percentage {
    order: 1 !important;
    background-color: var(--gk-primary) !important;
    color: var(--gk-surface) !important;
    padding: 2px 10px !important;
    border-radius: 16px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

/* ——— Product Gallery ——— */
.gk-gallery-thumbs { position: relative; }
.gk-gallery-thumbs .gk-thumbs-track {
    display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth;
    -ms-overflow-style: none; scrollbar-width: none;
}
.gk-gallery-thumbs .gk-thumbs-track::-webkit-scrollbar { display: none; }

.gk-gallery-thumbs .gk-thumb { flex: 0 0 auto; }
.gk-gallery-thumbnail { display: block; width: 60px; height: 60px; object-fit: cover; border-radius: var(--gk-radius-sm); }

.gk-thumbs-next, .gk-thumbs-prev {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border: 0; cursor: pointer; background: rgba(0,0,0,var(--gk-opacity-overlay));
    border-radius: 50%;
}
.gk-thumbs-next { right: -4px; }
.gk-thumbs-prev { left: -4px; }

.gk-thumbs-next::before, .gk-thumbs-prev::before {
    content: ''; display: block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; margin: 0 auto;
    transform: rotate(-45deg);
}
.gk-thumbs-prev::before { transform: rotate(135deg); }

/* ——— Breadcrumb ——— */
.gk-breadcrumb {
    display: inline-block; /* نمایش در یک خط */
    font-size: 14px;
    margin: 0;
    padding: 0;
}

.gk-breadcrumb ul {
    display: inline; /* آیتم‌ها در یک خط */
    padding: 0;
    margin: 0;
    list-style: none;
}

.gk-breadcrumb li {
    display: inline;
    margin: 0;
    padding: 0;
}

.gk-breadcrumb li:not(:last-child)::after {
    content: " / "; /* جداکننده بین آیتم‌ها */
    color: var(--gk-secondary); /* رنگ جداکننده */
    margin: 0 5px;
}

.gk-breadcrumb li a {
    text-decoration: none;
    color: var(--gk-secondary);
}

.gk-breadcrumb li a:hover {
    text-decoration: underline;
}

.gk-breadcrumb li:last-child a,
.gk-breadcrumb li:last-child span {
    color: var(--gk-neutral-600); /* آیتم آخر به رنگ متفاوت */
    cursor: default;
    pointer-events: none; /* آیتم آخر کلیک‌پذیر نباشد */
}

/* ——— Product Brand ——— */
.gk-product-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0; /* فاصله را با کنترل Elementor تنظیم می‌کنیم */
    font: inherit;
    color: inherit;
}

.gk-product-brand__label {
    color: var(--gk-neutral-600);
    margin-inline-end: 6px; /* با کنترل gap_inline قابل تغییر است */
}

.gk-product-brand__link {
    text-decoration: none;
}

.gk-product-brand__link:hover {
    text-decoration: underline;
}

/* ——— Product Title ——— */
.gk-title {
    line-height: 1.4;
    word-wrap: break-word;
}

/* ——— Product SKU ——— */
.gk-sku{
    display: flex;
    align-items: center;
    justify-content: flex-start; /* با کنترل container_align تغییر می‌کند */
    gap: 0; /* فاصلهٔ لیبل با کنترل inline_gap ست می‌شود */
}

.gk-sku__label{
    font-weight: 600;
    margin-inline-end: 5px; /* قابل override توسط کنترل المنتور */
    color: var(--gk-text);
}

.gk-sku__value{
    color: var(--gk-secondary);
}

.gk-sku--empty{
    color: var(--gk-neutral-500);
}

/* ——— Product Rating ——— */
.gk-rating{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px; /* با کنترل تایپوگرافی قابل تغییر است */
    color: var(--gk-text);
}

.gk-rating__icon{
    display:inline-flex;
    align-items:center;
}

.gk-rating__icon img{
    display:block;
}

.gk-rating__icon--text{
    font-size: 18px;
    line-height: 1;
    color: var(--gk-accent);
}

.gk-rating__text{
    display:inline-flex;
    align-items:center;
    gap: 6px;
}

.gk-rating__value{
    font-weight: 600;
}

.gk-rating__count{
    opacity:.85;
}

/* ——— Review Button ——— */
.gk-review-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center; /* با کنترل content_alignment قابل تغییر است */
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.gk-review-btn__text{
    line-height: 1.4;
}

.gk-review-btn__icon{
    display: inline-flex;
    align-items: center;
}

.gk-review-btn svg{
    display: block;
}

/* ——— Attributes Swiper ——— */
.gk-attr-swiper { position: relative; }

.gk-att-box {
    background: var(--gk-surface);
    border: var(--gk-border-width) solid var(--gk-border-color);
    border-radius: 8px;
    padding: 10px 12px;
    height: 100%;
}
.gk-att-box--center { display: flex; align-items: center; justify-content: center; }

.gk-att-name {
    font-size: 12px;
    color: var(--gk-neutral-600);
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.gk-att-value {
    font-size: 13px;
    color: var(--gk-text);
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
}
.gk-att-value.is-truncated { cursor: help; }

/* skeleton */
.gk-skel {
    background: linear-gradient(90deg,#ececec 25%,#f5f5f5 37%,#ececec 63%);
    background-size: 400% 100%;
    animation: gk-skel 1s infinite;
    border-radius: 4px;
}
.gk-skel--line { height: 12px; margin: 0 0 6px 0; width: 60%; }
.gk-skel--w80 { width: 80%; }
@keyframes gk-skel { 0%{background-position:0 0} 100%{background-position:-400% 0} }

/* در زمان init */
.swiper-slide.is-skeleton { opacity: 1; }
.swiper-slide.is-hidden-real { display: none; }

/* View all */
.gk-att-viewall {
    color: var(--gk-secondary);
    text-decoration: none;
    font-weight: 600;
}
.gk-att-viewall:hover { text-decoration: underline; }

/* Pagination */
.gk-attr-swiper .swiper-pagination { position: relative; margin-top: 10px; }
.gk-attr-swiper .swiper-pagination-bullet { width: 8px; height: 8px; background: rgba(0,0,0,.3); opacity: 1; }
.gk-attr-swiper .swiper-pagination-bullet-active { background: var(--gk-secondary); }

/* Navigation */
.gk-attr-swiper .swiper-button-prev,
.gk-attr-swiper .swiper-button-next {
    width: 30px; height: 30px; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.85);
    border-radius: 50%;
    box-shadow: var(--gk-shadow-sm);
}
.gk-attr-swiper .swiper-button-prev::after,
.gk-attr-swiper .swiper-button-next::after {
    font-size: 14px;
}

/* ——— Rotating product info ——— */
.gk-rot-info {
    position: relative;
    display: flex;
    align-items: center;
    /* ارتفاع را برای جلوگیری از پرش محتوا تنظیم کنید.
       این مقدار باید متناسب با ارتفاع بزرگترین پیام شما باشد. */
    min-height: 2em;
    overflow: hidden;
}

.gk-rot-info__item {
    display: flex;
    align-items: center;
    width: 100%;

    /* حالت اولیه و پنهان آیتم‌ها */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;

    /* استفاده از متغیر CSS که در PHP ست شده */
    color: var(--msg-color, var(--gk-text));
}

.gk-rot-info__item.is-active {
    /* حالت فعال و نمایان آیتم */
    opacity: 1;
    transform: translateY(0);
    position: relative; /* برای اینکه آیتم فعال جریان عادی صفحه را حفظ کند */
}

.gk-rot-info__icon {
    flex-shrink: 0; /* جلوگیری از کوچک شدن آیکن */
    max-width: 100%;
    height: auto;
}

.gk-rot-info__text {
    /* استایل‌های متن اینجا قرار می‌گیرد */
}

/* ——— Single Attribute ——— */
.gk-single-attr{
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.gk-single-attr__icon{
    display: inline-block;
    height: auto; /* اندازه از طریق کنترل المنتور ست می‌شود */
}

.gk-single-attr__text{
    line-height: 1.5;
}

.gk-single-attr__label{
    font-weight: 600;
}

.gk-single-attr__value{
    /* رنگ و تایپوگرافی از کنترل‌های ویجت تزریق می‌شود */
}

/* QnA Section & Reviews */
:root {
    /* Legacy variables mapped via usage */
}

/* استایل‌های پایه و عمومی */
.qna-section * {
    box-sizing: border-box;
}
.qna-section a {
    text-decoration: none;
    color: inherit;
}
.qna-section button {
    font-family: inherit;
}

/* هدر بخش */
.qna-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}
.qna-title {
    font-size: 1.125rem;
    font-weight: 700;
    border-bottom: 2px solid var(--gk-primary);
    padding-bottom: 0.5rem;
    display: inline-block;
}
.submit-question-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
}
.submit-question-box p {
    font-size: 0.875rem;
    color: var(--gk-neutral-600);
}
.submit-question-btn {
    border: 1px solid var(--gk-primary);
    color: var(--gk-primary);
    background-color: transparent;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 200ms, background-color 200ms;
}
.submit-question-btn:hover {
    background-color: var(--gk-primary);
    color: var(--gk-surface);
}

/* فرم ثبت پرسش */
.qna-form-container {
    background-color: var(--gk-neutral-50);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: var(--gk-border-width) solid var(--gk-border-color);
}
.qna-form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.qna-form-row .qna-input {
    flex: 1;
}
.qna-input, .qna-textarea {
    width: 100%;
    padding: 0.75rem;
    border: var(--gk-border-width) solid var(--gk-border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--gk-text);
    background-color: var(--gk-surface);
}
.qna-textarea {
    margin-bottom: 1rem;
    resize: vertical;
}
.qna-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}
.qna-form-submit-btn, .qna-form-cancel-btn {
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
}
.qna-form-submit-btn {
    background-color: var(--gk-primary);
    color: var(--gk-surface);
}
.qna-form-cancel-btn {
    background-color: transparent;
    color: var(--gk-neutral-600);
}
.qna-login-note {
    text-align: center;
    padding: 1rem;
    color: var(--gk-neutral-600);
}

/* نوار مرتب‌سازی */
.qna-sort-bar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: var(--gk-border-width) solid var(--gk-border-color);
    gap: 0.75rem;
}
.question-count {
    color: var(--gk-neutral-600);
    font-size: 0.75rem;
}
.sort-options {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.sort-options > span {
    color: var(--gk-neutral-600);
    font-size: 0.75rem;
}
.sort-options .sort-links {
    display: flex;
    gap: 0.5rem;
}
.sort-options .sort-links a {
    font-size: 0.75rem;
    color: var(--gk-neutral-600);
    transition: color 200ms;
}
.sort-options .sort-links a:hover {
    color: var(--gk-primary);
}
.sort-options .sort-links span {
    color: var(--gk-neutral-600);
    font-size: 0.75rem;
}
.active-sort {
    color: var(--gk-primary) !important;
    font-weight: 700;
}

/* لیست پرسش‌ها */
.qna-list {
    border-top: var(--gk-border-width) solid var(--gk-border-color);
}
.qna-item {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: var(--gk-border-width) solid var(--gk-border-color);
}
.qna-item:last-child {
    border-bottom: none;
}
.question-text {
    font-size: 0.875rem;
    line-height: 1.625;
    font-weight: 500;
    margin-bottom: 0.75rem;
}
.question-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--gk-neutral-600);
    margin-bottom: 1rem;
}
.reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gk-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* بخش پاسخ */
.answer-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
    background-color: var(--gk-neutral-50);
    padding: 1rem;
    border-radius: 8px;
}
.user-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}
.user-avatar svg {
    color: var(--gk-surface);
    width: 1rem;
    height: 1rem;
}
.answer-content {
    flex: 1;
}
.user-name {
    font-size: 0.75rem;
    font-weight: 700;
    display: block;
}
.answer-text {
    font-size: 0.875rem;
    line-height: 1.625;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.answer-date {
    color: var(--color-text-secondary);
    font-size: 0.75rem;
}
/* فرم پاسخ مدیر */
.qna-reply-form {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px dashed var(--gk-secondary);
    border-radius: 8px;
}
.qna-reply-input {
    width: 100%;
    padding: 0.75rem;
    border: var(--gk-border-width) solid var(--gk-border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--gk-text);
    background-color: var(--gk-surface);
    margin-bottom: 1rem;
}
.qna-reply-submit-btn {
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
    background-color: var(--gk-secondary);
    color: var(--gk-surface);
}

/* دکمه‌های لایک و دیس‌لایک */
.qna-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}
.action-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--gk-neutral-600);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 200ms;
}
.action-btn:hover {
    color: var(--gk-primary);
}
.action-btn span {
    font-size: 0.75rem;
}
.action-btn[disabled] {
    color: var(--gk-primary);
    opacity: 0.7;
}

/* دکمه بارگذاری بیشتر */
.qna-pagination {
    text-align: center;
    padding-top: 1.5rem;
}
.qna-load-more-btn {
    border: var(--gk-border-width) solid var(--gk-neutral-600);
    color: var(--gk-text);
    background-color: transparent;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms;
}
.qna-load-more-btn:hover {
    border-color: var(--gk-primary);
    background-color: var(--gk-primary);
    color: var(--gk-surface);
}

/* استایل آیکون‌های SVG */
.sort-options svg {
    width: 1rem;
    height: 1rem;
    color: var(--gk-neutral-600);
}
.reply-link svg,
.action-btn svg {
    width: 0.875rem;
    height: 0.875rem;
}

/* Media Queries برای واکنش‌گرایی */
@media (min-width: 768px) {
    .qna-section {
        padding: 1.5rem;
    }
    .qna-header {
        flex-direction: row;
        align-items: center;
    }
    .submit-question-box {
        flex-direction: row;
        align-items: center;
        width: auto;
    }
    .qna-title {
        font-size: 1.25rem;
    }
    .qna-sort-bar {
        flex-direction: row;
        align-items: center;
    }
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: var(--gk-border-width) solid var(--gk-border-color);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.rating-value {
    font-size: 2rem;
    font-weight: 700;
}
.rating-value .fa-star {
    color: var(--gk-accent);
    font-size: 1.5rem;
    vertical-align: middle;
}
.rating-details span {
    display: block;
    font-size: 0.9rem;
}
.rating-details small {
    font-size: 0.75rem;
    color: var(--gk-neutral-600);
}
.add-review-box span {
    font-size: 0.8rem;
    color: var(--gk-neutral-600);
    display: block;
    margin-bottom: 0.5rem;
}
.add-review-btn {
    display: inline-block;
    border: 1px solid var(--gk-primary);
    color: var(--gk-primary);
    background: var(--gk-surface);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}
.add-review-btn:hover {
    background-color: var(--gk-primary);
    color: var(--gk-surface);
}
.reviews-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: var(--gk-border-width) solid var(--gk-border-color);
    padding-bottom: 1rem;
}
.reviews-title {
    font-size: 1.1rem;
    font-weight: 700;
}
.sort-options {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gk-neutral-600);
}
.sort-links a {
    color: var(--gk-neutral-600);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s;
}
.sort-links a:hover, .sort-links a.active-sort {
    color: var(--gk-primary);
    font-weight: 700;
}
.review-item {
    border-bottom: var(--gk-border-width) solid var(--gk-neutral-50);
    padding: 1.5rem 0;
}
.review-item:last-child {
    border-bottom: none;
}
.review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.author-name {
    font-weight: 700;
}
.verified-badge {
    background: #e4f8e4;
    color: #008200;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
}
.review-rating .fa-star {
    color: var(--gk-border-color);
}
.review-rating .fa-star.filled {
    color: var(--gk-accent);
}
.review-content p {
    line-height: 1.8;
    color: var(--gk-neutral-700);
}
.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}
.review-date {
    font-size: 0.8rem;
    color: var(--gk-neutral-400);
}
.review-actions {
    display: flex;
    gap: 1rem;
}
.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gk-neutral-400);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
}
.action-btn:hover {
    color: var(--gk-text);
}
.action-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}
.reviews-pagination {
    text-align: center;
    margin-top: 2rem;
}
.reviews-load-more-btn {
    font-family: inherit;
    border: 1px solid var(--gk-neutral-400);
    color: var(--gk-text);
    background-color: transparent;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.reviews-load-more-btn:hover {
    border-color: var(--gk-primary);
    background-color: var(--gk-primary);
    color: var(--gk-surface);
}
/* Review Form Container */
.review-form-container {
    background-color: #f7f7f7;
    border: var(--gk-border-width) solid var(--gk-border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.review-form-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.review-form-rating label {
    font-weight: 700;
}
.review-form-rating .stars {
    direction: ltr; /* To make stars left-to-right */
}
.review-form-rating .stars i {
    font-size: 1.2rem;
    color: #c1c1c1;
    cursor: pointer;
    transition: color 0.2s;
}
.review-form-rating .stars i.hover,
.review-form-rating .stars i.selected {
    color: var(--gk-accent);
}
.review-form-content {
    width: 100%;
    padding: 0.75rem;
    border: var(--gk-border-width) solid var(--gk-border-color);
    border-radius: 8px;
    resize: vertical;
    margin-bottom: 1rem;
}
.review-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}
.review-form-submit-btn, .review-form-cancel-btn {
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
}
.review-form-submit-btn {
    background-color: var(--gk-primary);
    color: var(--gk-surface);
}
.review-form-cancel-btn {
    background-color: transparent;
    color: var(--gk-neutral-600);
}
.review-login-note {
    text-align: center;
    padding: 1rem;
    color: var(--gk-neutral-600);
}
.review-login-note a {
    color: var(--gk-secondary);
    font-weight: 700;
}

/* ستاره اصلی در هدر */
.rating-value .rating-star-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--gk-accent);
    vertical-align: middle;
}

/* ستاره‌های لیست نظرات */
.review-rating .star-icon svg {
    width: 1rem;
    height: 1rem;
    color: var(--gk-border-color); /* رنگ ستاره خالی */
    fill: var(--gk-border-color); /* برای اطمینان از پر شدن */
    stroke-width: 0;
}
.review-rating .star-icon.filled svg {
    color: var(--gk-accent); /* رنگ ستاره پر شده */
    fill: var(--gk-accent);
}

/* ستاره‌های فرم ثبت نظر */
.review-form-rating .stars {
    direction: ltr; /* To make stars left-to-right */
}
.review-form-rating .stars .star-icon {
    display: inline-block;
    cursor: pointer;
}
.review-form-rating .stars .star-icon svg {
    width: 1.2rem;
    height: 1.2rem;
    color: #c1c1c1;
    fill: #c1c1c1;
    stroke-width: 0;
    transition: color 0.2s, fill 0.2s;
}
.review-form-rating .stars .star-icon.hover svg,
.review-form-rating .stars .star-icon.selected svg {
    color: var(--gk-accent);
    fill: var(--gk-accent);
}

/* آیکون‌های لایک/دیس‌لایک */
.action-btn svg {
    width: 1rem;
    height: 1rem;
}

/* ردیف کلی */
.gk-psf {
    direction: rtl;
    font-size: 13px;
}

/* لیست افقی */
.gk-psf__list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 64px;
    row-gap: 16px;
}

/* آیتم */
.gk-psf__item {
    display: inline-flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
    font-weight: 400;
    color: #858585;
}

/* جداکننده عمودی بین آیتم‌ها */
.gk-psf--divider .gk-psf__item + .gk-psf__item::before {
    content: '';
    position: absolute;
    right: -32px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background-color: #e0e0e0;
}

/* آخرین آیتم بدون جداکننده */
.gk-psf--divider .gk-psf__item:last-child::before {
    display: none;
}

/* آیکن */
.gk-psf__icon {
    display: inline-flex;
    margin-left: 8px; /* از کنترل‌ها override می‌شود */
    font-size: 32px;
    color: var(--gk-neutral-400);
}

.gk-psf__icon svg {
    display: block;
}

/* متن */
.gk-psf__title {
    line-height: 1.8;
}

.gk-psf__description {
    font-size: 12px;
    margin-top: 2px;
    opacity: 0.8;
}

/* واکنش‌گرا */
@media (max-width: 992px) {
    .gk-psf__list {
        column-gap: 32px;
    }
}

@media (max-width: 767px) {
    .gk-psf--wrap .gk-psf__list {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .gk-psf--wrap .gk-psf__item {
        margin-bottom: 8px;
        white-space: normal;
    }

    .gk-psf--wrap.gk-psf--divider .gk-psf__item::before {
        display: none; /* در حالت چند ردیفی، جداکننده منطقی نیست */
    }
}
