﻿/* ===== SHOP / PRODUCT PAGES ===== */

.shop-breadcrumb {
    background: var(--surface-2, #f8f8f8);
    padding: 12px 0;
    border-bottom: 1px solid var(--border, #eee);
    margin-top: 0;
}

.shop-breadcrumb .breadcrumb {

    width: auto;
    max-width: 100%;
    overflow-x: visible;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    background: none;
    list-style: none;
    font-size: 1.3rem;
}

.shop-breadcrumb .breadcrumb-item { min-width: 0; color: var(--muted, #888); }
.shop-breadcrumb .breadcrumb-item a { color: var(--muted, #888); text-decoration: none; }
.shop-breadcrumb .breadcrumb-item a:hover { color: var(--primary); }
.shop-breadcrumb .breadcrumb-item.active { color: var(--ink); font-weight: var(--fw-semi, 600); }

.shop-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    font-family: inherit;
    font-weight: 400;
    margin-inline-end: 6px;
    padding: 0;
    color: var(--border-2, #ccc);
}

@media (max-width: 767px) {
    .shop-breadcrumb .breadcrumb { font-size: 1.2rem; }

    .shop-breadcrumb .breadcrumb-item.active {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* === SHOP INDEX === */
.shop-page {
    padding: 30px 0 50px;
    background: #f7f7f7;
}

/* Sidebar */
.shop-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.sidebar-widget-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget-title i {
    color: var(--accent-600);
}

/* ===== Category accordion (Digikala-style) ===== */
.cat-acc {
    display: flex;
    flex-direction: column;
}

/* Product-count badge (shared by headers, links, sub-links) */
.cat-count {
    flex: 0 0 auto;
    background: #f0f0f0;
    border-radius: 20px;
    padding: 2px 9px;
    font-size: 1.15rem;
    color: #888;
    min-width: 24px;
    text-align: center;
}

/* name label (icon + text) shared by all rows — flexes to fill the row so the
   count is pushed to the far (left, in RTL) edge and the arrow stays at the start (right). */
.cat-acc-name {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cat-acc-name > i {
    color: var(--accent-600);
    font-size: 1.4rem;
    opacity: 0.85;
    flex: 0 0 auto;
}

/* ── Top-level rows: accordion header & plain link ── */
.cat-acc-header,
.cat-acc-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 10px;
    color: #333;
    font-size: 1.4rem;
    font-family: 'IRANYekanMedium';
    text-decoration: none;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f2f2f2;
    cursor: pointer;
    text-align: right;
    transition: background 0.15s, color 0.15s;
}

.cat-acc > .cat-acc-item:last-child .cat-acc-header,
.cat-acc > .cat-acc-link:last-child {
    border-bottom: none;
}

.cat-acc-header:hover,
.cat-acc-link:hover {
    color: var(--accent-600);
    background: #faf6f7;
}

.cat-acc-link.active,
.cat-acc-header.active {
    color: var(--accent-600);
}

.cat-acc-link.active {
    background: var(--accent-50);
    border-radius: 8px;
}

/* accordion arrow — sits at the start of the row (right side in RTL) */
.cat-acc-arrow {
    flex: 0 0 auto;
    width: 1.2rem;
    text-align: center;
    font-size: 1.2rem;
    color: #bbb;
    transition: transform 0.25s ease, color 0.2s;
}

.cat-acc-item.open .cat-acc-arrow {
    transform: rotate(180deg);
    color: var(--accent-600);
}

.cat-acc-item.open > .cat-acc-header {
    color: var(--accent-600);
    background: #faf6f7;
}

/* ── Expanding panel ── */
.cat-acc-panel {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.3s ease;
    background: #fbfbfb;
}

.cat-acc-item.open > .cat-acc-panel {
    grid-template-rows: 1fr;
}

/* the grid row wrapper must clip so children collapse cleanly */
.cat-acc-panel > .cat-acc-sub {
    min-height: 0;
    overflow: hidden;
}

.cat-acc-sub {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.cat-acc-panel li {
    width: 100%;
}

.cat-acc-sublink {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    /* leaf rows have no arrow, so indent the text to show nesting under the header */
    padding: 10px 26px 10px 10px;
    color: #666;
    font-size: 1.3rem;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.cat-acc-sublink:hover {
    color: var(--accent-600);
    background: #f6eef0;
}

.cat-acc-sublink.active {
    color: var(--accent-600);
    font-weight: bold;
}

.cat-acc-link.active .cat-count,
.cat-acc-sublink.active .cat-count {
    background: var(--accent-600);
    color: #fff;
}

/* ── Price range: dual-handle slider (manual drag) ── */
.price-slider {
    position: relative;
    height: 34px;
    margin: 6px 4px 14px;
}

.price-slider-rail {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 5px;
    transform: translateY(-50%);
    background: #ececec;
    border-radius: 5px;
}

.price-slider-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: var(--accent-600);
    border-radius: 5px;
}

/* both range inputs stack on the same rail; track is transparent, only thumbs show */
.price-slider-handle {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 34px;
    margin: 0;
    background: none;
    pointer-events: none;   /* let the thumb capture events, not the track */
    -webkit-appearance: none;
    appearance: none;
}

.price-slider-handle::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent-600);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.price-slider-handle::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent-600);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.price-slider-handle::-moz-range-track {
    background: none;
}

.price-slider-handle { accent-color: transparent; }
.price-slider-handle::-webkit-slider-runnable-track {
    height: 100%;
    background: transparent;
    border: 0;
}
.price-slider-handle::-moz-range-track {
    height: 100%;
    background: transparent;
    border: 0;
}
.price-slider-handle::-moz-range-progress { background: transparent; }

.price-slider-handle::-webkit-slider-thumb { margin-top: 8px; }

/* Price range */
.price-range-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.price-range-inputs input {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-family: "IRANYekanMedium";
    font-size: 1.3rem;
    text-align: center;
}

.price-range-inputs span {
    color: #aaa;
    flex-shrink: 0;
}

.price-range-btn {
    width: 100%;
    padding: 10px;
    background: var(--accent-600);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: "IRANYekanMedium";
    font-size: 1.35rem;
    cursor: pointer;
    transition: background 0.2s;
}

.price-range-btn:hover {
    background: var(--accent-700);
}

.sidebar-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "IRANYekanMedium";
    font-size: 1.35rem;
    cursor: pointer;
    color: #333;
    padding: 6px 0;
}

.sidebar-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-600);
    cursor: pointer;
    flex-shrink: 0;
}

/* Brand checkboxes */
.sidebar-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-check-list li {
    margin-bottom: 10px;
}

.sidebar-check-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    color: #555;
    cursor: pointer;
}

.sidebar-check-list input[type="checkbox"] {
    accent-color: var(--accent-600);
    width: 16px;
    height: 16px;
}

/* Color swatches */
.color-swatch-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.color-swatch-list li {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.color-swatch-list li:hover,
.color-swatch-list li.active {
    border-color: var(--accent-600);
    transform: scale(1.1);
}

/* === SORT BAR === */
.shop-sort-bar {
    background: #fff;
    border-radius: 14px;
    padding: 14px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.sort-result-count {
    font-size: 1.35rem;
    color: #777;
}

.sort-result-count strong {
    color: var(--accent-600);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-options label {
    font-size: 1.35rem;
    color: #666;
    white-space: nowrap;
}

.sort-select {
    padding: 8px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-family: "IRANYekanMedium";
    font-size: 1.35rem;
    color: #333;
    background: #fff;
    cursor: pointer;
}

.view-toggle-btns .btn-view {
    padding: 8px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #aaa;
    cursor: pointer;
    font-size: 1.4rem;
    transition: all 0.2s;
}

.view-toggle-btns .btn-view.active,
.view-toggle-btns .btn-view:hover {
    border-color: var(--accent-600);
    color: var(--accent-600);
}

/* === PRODUCT GRID CARDS === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.product-card-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge-discount {
    background: var(--accent-600);
    color: #fff;
    font-size: 1.2rem;
    padding: 3px 10px;
    border-radius: 20px;
}

.badge-new {
    background: #27ae60;
    color: #fff;
    font-size: 1.2rem;
    padding: 3px 10px;
    border-radius: 20px;
}

.badge-special {
    background: #e67e22;
    color: #fff;
    font-size: 1.2rem;
    padding: 3px 10px;
    border-radius: 20px;
}

.product-card-img-wrap {
    position: relative;
    padding-top: 80%;
    overflow: hidden;
    background: #f9f9f9;
}

.product-card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.4s;
}

.product-card:hover .product-card-img-wrap img {
    transform: scale(1.06);
}

.product-card-img-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.product-card .fav-btn {
    position: absolute;
    inset-inline-end: 10px;
    top: 10px;
    z-index: 2;
}

@media (hover: hover) {
    .product-card .fav-btn { opacity: 0; transition: opacity .3s, background .2s, color .2s; }
    .product-card:hover .fav-btn,
    .product-card:focus-within .fav-btn,
    .product-card .fav-btn.is-fav { opacity: 1; }
}

.product-card-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #555;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.product-card-action-btn:hover {
    background: var(--accent-600);
    color: #fff;
}

.product-card-body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-category {
    font-size: 1.15rem;
    color: #aaa;
    margin-bottom: 6px;
}

.product-card-title {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.product-card-title:hover {
    color: var(--accent-600);
}

.product-card-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-card-stars .star-filled {
    color: #f5c518;
}

.product-card-stars .star-empty {
    color: #ddd;
}

.product-card-stars .review-count {
    color: #aaa;
    font-size: 1.2rem;
    margin-right: 4px;
}

.product-card-price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.price-current {
    font-size: 1.6rem;
    color: var(--accent-600);
    font-weight: bold;
}

.price-unit {
    font-size: 1.15rem;
    color: #aaa;
    margin-right: 2px;
}

.price-old {
    font-size: 1.2rem;
    color: #bbb;
    text-decoration: line-through;
}

.price-from {
    display: block;
    font-size: 1.05rem;
    color: #999;
    font-family: 'IRANYekanMedium';
    margin-bottom: 1px;
}

/* ── Color swatches on product card ── */
.product-card-colors {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 6px 0 2px;
}

.product-card-colors .color-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
    display: inline-block;
    flex-shrink: 0;
}

.product-card-colors .color-dot-more {
    font-size: 1.05rem;
    color: #888;
    font-family: 'IRANYekanMedium';
    margin-right: 1px;
}

.product-card-colors .color-multi-label {
    font-size: 1.05rem;
    color: var(--accent-600);
    font-family: 'IRANYekanMedium';
    background: #fbe9ec;
    border-radius: 20px;
    padding: 2px 8px;
    margin-right: auto;
}

.price-unavailable {
    font-size: 1.4rem;
    color: #aaa;
}

.product-card-add-btn {
    background: var(--accent-600);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-family: "IRANYekanMedium";
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-card-add-btn:hover {
    background: var(--accent-700);
}

/* === PRODUCT DETAIL === */
.product-detail-page {
    padding: 30px 0 60px;
    background: #f7f7f7;
}

.product-detail-main {
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

/* Image gallery */
.product-gallery {
    display: flex;
    gap: 14px;
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #eee;
    cursor: pointer;
    transition: border-color 0.2s;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--accent-600);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-main {
    flex: 1;
    border-radius: 14px;
    overflow: hidden;
    background: #f9f9f9;
    border: 2px solid #f0f0f0;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    padding: 0;
}

/* Product info panel */
.product-info-panel {
    padding-right: 10px;
}

.product-detail-badge {
    display: inline-block;
    background: var(--accent-50);
    color: var(--accent-600);
    font-size: 1.2rem;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.product-detail-title {
    font-size: 2rem;
    color: #222;
    line-height: 1.5;
    margin-bottom: 12px;
}

.product-detail-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.product-detail-stars .star-filled { color: #f5c518; }
.product-detail-stars .star-empty { color: #ddd; }
.product-detail-stars .rating-text {
    font-size: 1.3rem;
    color: #888;
    margin-right: 6px;
}

.product-detail-price-box {
    background: var(--accent-50);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 22px;
}

.detail-price-label {
    font-size: 1.3rem;
    color: #aaa;
    margin-bottom: 8px;
}

.detail-price-main {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.detail-price-current {
    font-size: 2.8rem;
    color: var(--accent-600);
    font-weight: bold;
}

.detail-price-unit {
    font-size: 1.5rem;
    color: var(--accent-600);
}

.detail-price-old {
    font-size: 1.5rem;
    color: #bbb;
    text-decoration: line-through;
}

.detail-price-discount {
    font-size: 1.3rem;
    background: var(--accent-600);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
}

.product-detail-variants {
    margin-bottom: 22px;
}

.variant-label {
    font-size: 1.4rem;
    color: #555;
    margin-bottom: 10px;
    display: block;
}

.color-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.color-option.selected,
.color-option:hover {
    border-color: var(--accent-600);
    transform: scale(1.15);
}

.size-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* روی موبایل سایزها با عرضِ متفاوت («۳۸» کنارِ «۴۵.۱/۳») سطرها را دندانه‌دار
   می‌کردند و آخرین سایز تنها می‌افتاد. شبکه‌ی هم‌عرض این را صاف می‌کند و
   هر خانه هم به اندازهٔ یک هدفِ لمسی می‌ماند. */
@media (max-width: 767.98px) {
    .size-picker {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    }
    .size-option { padding: 10px 4px; text-align: center; }
}

.size-option {
    padding: 7px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.35rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.size-option.selected,
.size-option:hover {
    border-color: var(--accent-600);
    color: var(--accent-600);
    background: var(--accent-50);
}

.size-option.unavailable,
.guarantee-option.unavailable {
    color: #ccc;
    text-decoration: line-through;
    cursor: not-allowed;
    pointer-events: none;
}

.color-option.unavailable {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Exists but sold out — still selectable so the user can see its price */
.size-option.out-of-stock,
.guarantee-option.out-of-stock {
    color: #bbb;
    border-style: dashed;
    text-decoration: line-through;
    position: relative;
}

.color-option.out-of-stock {
    opacity: 0.45;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #ddd;
}

.guarantee-option {
    padding: 7px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.35rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
}

.guarantee-option.selected,
.guarantee-option:hover {
    border-color: var(--accent-600);
    color: var(--accent-600);
    background: var(--accent-50);
}

/* Qty + Add cart */
.product-add-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.qty-control button {
    width: 40px;
    height: 46px;
    background: #f5f5f5;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #555;
    transition: background 0.2s;
}

.qty-control button:hover {
    background: #eee;
}

.qty-control input {
    width: 55px;
    height: 46px;
    text-align: center;
    border: none;
    font-family: "IRANYekanMedium";
    font-size: 1.5rem;
    border-right: 1.5px solid #e0e0e0;
    border-left: 1.5px solid #e0e0e0;
}

.add-to-cart-btn {
    flex: 1;
    padding: 13px 24px;
    background: linear-gradient(135deg, var(--accent-600) 0%, var(--accent) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: "IRANYekanMedium";
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, var(--accent-700) 0%, var(--accent-600) 100%);
    box-shadow: 0 8px 25px rgba(83, 125, 118, 0.38);
    transform: translateY(-1px);
}

.wishlist-btn {
    width: 50px;
    height: 50px;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #aaa;
    cursor: pointer;
    transition: all 0.2s;
}

.wishlist-btn:hover,
.wishlist-btn.active {
    border-color: var(--accent-600);
    color: var(--accent-600);
}

/* Meta info */
.product-meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-meta-list li {
    display: flex;
    gap: 8px;
    font-size: 1.35rem;
    color: #666;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.product-meta-list li:last-child {
    border-bottom: none;
}

.product-meta-list li strong {
    color: #333;
    flex-shrink: 0;
    min-width: 90px;
}

/* Delivery info */
.delivery-info-box {
    background: #f0fdf4;
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.delivery-info-box i {
    color: #27ae60;
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.delivery-info-box p {
    font-size: 1.35rem;
    color: #444;
    margin: 0;
    line-height: 1.7;
}

/* Tabs */
.product-tabs {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.product-tabs-header {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    overflow-x: auto;
}

.product-tab-btn {
    padding: 16px 28px;
    font-family: "IRANYekanMedium";
    font-size: 1.45rem;
    color: #777;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all 0.2s;
}

.product-tab-btn.active {
    color: var(--accent-600);
    border-bottom-color: var(--accent-600);
}

.product-tab-content {
    padding: 28px 30px;
    display: none;
}

.product-tab-content.active {
    display: block;
}

/* Specs table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.4rem;
}

.specs-table tr:nth-child(even) {
    background: #fafafa;
}

.specs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.specs-table td:first-child {
    color: #333;
    font-weight: 500;
    width: 35%;
}

/* Reviews */
.review-summary {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
    background: var(--accent-50);
    border-radius: 14px;
    margin-bottom: 24px;
}

.review-score-big {
    font-size: 5rem;
    color: var(--accent-600);
    font-weight: bold;
    line-height: 1;
}

.review-score-label {
    font-size: 1.3rem;
    color: #888;
    margin-top: 4px;
}

.review-item {
    background: #f9f9f9;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-name {
    font-size: 1.4rem;
    color: #333;
    font-weight: 500;
}

.reviewer-date {
    font-size: 1.25rem;
    color: #aaa;
}

.review-item-body {
    font-size: 1.4rem;
    color: #555;
    line-height: 1.8;
}

/* Related products */
.related-products {
    background: #fff;
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.related-products .section-title {
    font-size: 1.8rem;
    color: #222;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
}

/* Pagination */
.shop-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.shop-pagination .page-item .page-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.4rem;
    color: #555;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.shop-pagination .page-item.active .page-link,
.shop-pagination .page-item .page-link:hover {
    background: var(--accent-600);
    border-color: var(--accent-600);
    color: #fff;
}

@media (max-width: 768px) {
    .product-gallery {
        flex-direction: column;
    }
    .gallery-thumbs {
        flex-direction: row;
    }
    .gallery-thumb {
        width: 60px;
        height: 60px;
    }
    .product-detail-title {
        font-size: 1.7rem;
    }
    .detail-price-current {
        font-size: 2.2rem;
    }
}

.fav-btn.is-fav,
.fav-btn.is-fav i { color: var(--accent-600); }
.wishlist-btn.is-fav,
.wishlist-btn.is-fav i { color: var(--accent-600); border-color: var(--accent-600); }

.fav-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    max-width: 320px;
    padding: 12px 18px;
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
}
.fav-toast.show { opacity: 1; transform: translateY(0); }
.fav-toast-success { background: #2e9e5b; }
.fav-toast-info { background: #444; }
.fav-toast-error { background: #d63b47; }

.attr-filter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}
.attr-filter-arrow { transition: transform .25s; font-size: 1.2rem; }
.attr-filter.open .attr-filter-arrow { transform: rotate(180deg); }

.attr-filter-body {
    display: none;
    max-height: 260px;
    overflow-y: auto;
    margin-top: 12px;
}
.attr-filter.open .attr-filter-body { display: block; }

.attr-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
}
.attr-filter-option .attr-filter-name { flex: 1; }
.attr-filter-option .cat-count { color: #999; font-size: 1.1rem; }

.attr-color-dot {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    border: 1px solid #ddd;
    flex: 0 0 auto;
}

.pc-wrap { padding: .5rem 0; }

.pc-summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2.5rem;
    align-items: center;
    padding: 2rem;
    background: #fafafa;
    border-radius: 12px;
    margin-bottom: 2rem;
}
.pc-score { text-align: center; min-width: 12rem; }
.pc-score-value { font-size: 3.6rem; font-weight: 900; color: var(--accent-600); line-height: 1; }
.pc-score-stars { margin: .6rem 0; }
.pc-score-count { font-size: 1.2rem; color: #999; }

.pc-bar-row { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.pc-bar-label { font-size: 1.3rem; color: #666; min-width: 9rem; }
.pc-bar-track { flex: 1; height: .8rem; background: #e9e9e9; border-radius: 4px; overflow: hidden; }
.pc-bar-fill { display: block; height: 100%; background: var(--accent-600); border-radius: 4px; }
.pc-bar-value { font-size: 1.2rem; color: #444; min-width: 2.5rem; }

.pc-suggest { text-align: center; min-width: 14rem; }
.pc-suggest-value { font-size: 2.6rem; font-weight: 800; color: #2e9e5b; }
.pc-suggest-label { font-size: 1.2rem; color: #777; }

.pc-actions { margin-bottom: 1.5rem; }
.pc-add-btn {
    padding: 1rem 2.4rem; border: 1px solid var(--accent-600); background: #fff;
    color: var(--accent-600); border-radius: 24px; font-size: 1.3rem; cursor: pointer;
}
.pc-add-btn:hover { background: var(--accent-600); color: #fff; }

.pc-form { padding: 2rem; border: 1px solid #eee; border-radius: 12px; margin-bottom: 2.5rem; }
.pc-form-row { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.pc-input, .pc-textarea {
    flex: 1; min-width: 20rem; padding: 1rem 1.2rem; font-size: 1.3rem;
    border: 1px solid #e2e2e2; border-radius: 10px; outline: none; font-family: inherit;
}
.pc-textarea { width: 100%; resize: vertical; }
.pc-input:focus, .pc-textarea:focus { border-color: var(--accent-600); }

.pc-rates { margin: 1.2rem 0; }
.pc-rate-row { display: flex; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.pc-rate-label { font-size: 1.3rem; color: #666; min-width: 9rem; }
.pc-rate-star { cursor: pointer; color: #ddd; font-size: 1.6rem; }
.pc-rate-star.star-filled { color: #f5a623; }

.pc-suggest-pick { display: flex; align-items: center; gap: 1.5rem; font-size: 1.3rem; color: #666; margin-bottom: 1.2rem; }
.pc-suggest-pick label { display: flex; align-items: center; gap: .4rem; cursor: pointer; }

.pc-replying {
    display: flex; align-items: center; gap: 1rem;
    padding: .8rem 1.2rem; background: var(--accent-50); border-radius: 8px;
    font-size: 1.2rem; color: var(--muted); margin-bottom: 1rem;
}
.pc-cancel-reply { margin-inline-start: auto; border: 0; background: none; color: var(--accent-600); cursor: pointer; font-size: 1.2rem; }

.pc-form-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1rem; }
.pc-submit {
    padding: 1rem 2.6rem; border: 0; border-radius: 24px;
    background: var(--accent-600); color: #fff; font-size: 1.3rem; cursor: pointer;
}
.pc-submit:hover { background: var(--accent-700); }
.pc-hint { font-size: 1.2rem; color: #aaa; }
.pc-msg { margin-top: 1rem; padding: .9rem 1.2rem; border-radius: 8px; font-size: 1.3rem; }
.pc-msg.ok { background: #e8f6ed; color: #2e9e5b; }
.pc-msg.err { background: var(--accent-50); color: var(--accent-600); }

.pc-item { padding: 1.6rem 0; border-bottom: 1px solid #f0f0f0; }
.pc-item-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.pc-item-name { font-size: 1.4rem; font-weight: 700; color: #333; }
.pc-item-date { font-size: 1.2rem; color: #aaa; margin-inline-start: .8rem; }
.pc-item-suggest { display: inline-block; font-size: 1.2rem; padding: .3rem .9rem; border-radius: 20px; margin-bottom: .6rem; }
.pc-item-suggest.yes { background: #e8f6ed; color: #2e9e5b; }
.pc-item-suggest.no { background: var(--accent-50); color: var(--accent-600); }
.pc-item-text { font-size: 1.35rem; line-height: 2.2; color: #555; margin: 0; }
.pc-item-foot { display: flex; gap: 1.2rem; margin-top: .8rem; }
.pc-like, .pc-reply {
    display: flex; align-items: center; gap: .5rem;
    border: 0; background: none; cursor: pointer; font-size: 1.2rem; color: #999;
}
.pc-like.liked, .pc-like:hover, .pc-reply:hover { color: var(--accent-600); }

.pc-replies { margin-top: 1.2rem; padding-inline-start: 2rem; border-inline-start: 2px solid #f0f0f0; }
.pc-item-reply { padding: 1rem 0; border-bottom: 0; }

.pc-empty { text-align: center; padding: 4rem 2rem; color: #999; }
.pc-empty i { font-size: 3rem; color: #ddd; display: block; margin-bottom: 1rem; }
.pc-empty p { font-size: 1.5rem; font-weight: 700; color: #666; margin: 0 0 .4rem; }
.pc-empty span { font-size: 1.3rem; }

.tab-count {
    display: inline-block; min-width: 2rem; padding: 0 .5rem; margin-inline-start: .4rem;
    background: var(--accent-600); color: #fff; border-radius: 20px; font-size: 1.1rem;
}

@media (max-width: 767px) {
    .pc-summary { grid-template-columns: 1fr; gap: 1.5rem; }
}

.notify-me-box {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #ffd9a0;
    background: #fff8ee;
    border-radius: 10px;
}
.nm-head { display: flex; align-items: flex-start; gap: 10px; }
.nm-head i { font-size: 2rem; color: #e8901a; margin-top: 2px; }
.nm-head b { display: block; font-size: 1.45rem; color: #333; }
.nm-head span { display: block; font-size: 1.25rem; color: #777; margin-top: 2px; }
.nm-form { display: flex; gap: 8px; margin-top: 12px; }
.nm-input {
    flex: 1;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #e0d3bf;
    border-radius: 8px;
    font-size: 1.35rem;
    text-align: center;
}
.nm-input:focus { outline: none; border-color: #e8901a; }
.nm-btn {
    height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: #e8901a;
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    white-space: nowrap;
}
.nm-btn:hover { background: #d07f13; }
.nm-msg { margin-top: 10px; font-size: 1.25rem; }
.nm-msg.ok { color: #1f9254; }
.nm-msg.err { color: var(--accent); }

@media (max-width: 575px) {
    .nm-form { flex-direction: column; }
    .nm-btn { width: 100%; }
}

.compare-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.compare-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 16px;
    background: #222c3c;
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 -2px 12px rgba(0,0,0,.2);
}
.compare-bar .cb-go {
    padding: 8px 22px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}
.compare-bar .cb-go:hover { background: #245bab; }
.compare-bar .cb-clear {
    border: 0;
    background: transparent;
    color: #c9d2e0;
    cursor: pointer;
    font-size: 1.25rem;
}

.cmp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cmp-title { font-size: 2.2rem; margin: 0; }
.cmp-add-more { font-size: 1.3rem; color: var(--primary); text-decoration: none; }

.cmp-table-wrap { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 620px; }
.cmp-table th, .cmp-table td {
    border: 1px solid #eee;
    padding: 12px;
    text-align: center;
    font-size: 1.3rem;
    vertical-align: middle;
}
.cmp-table thead th { background: #fafafa; position: relative; }
.cmp-row-head { background: #fafafa; font-weight: 700; text-align: right; white-space: nowrap; }
.cmp-product { display: block; text-decoration: none; color: #333; }
.cmp-product img { max-width: 120px; margin: 0 auto 8px; display: block; }
.cmp-product-name { display: block; font-size: 1.3rem; line-height: 1.7; }
.cmp-remove {
    position: absolute;
    top: 6px;
    inset-inline-start: 6px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: #f1f1f1;
    color: #888;
    cursor: pointer;
    line-height: 1;
}
.cmp-remove:hover { background: var(--accent); color: #fff; }
.cmp-price { font-weight: 700; color: #222; }
.cmp-price-old { text-decoration: line-through; color: #aaa; font-size: 1.15rem; }
.cmp-yes { color: #1f9254; }
.cmp-no { color: var(--accent); }
.cmp-cart-btn {
    padding: 8px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
}
.cmp-cart-btn:hover { background: #245bab; }

.cmp-empty { text-align: center; padding: 60px 20px; color: #777; }
.cmp-empty i { font-size: 5rem; color: #ddd; display: block; margin-bottom: 14px; }
.cmp-empty p { font-size: 1.6rem; color: #444; margin: 0 0 6px; }
.cmp-empty span { display: block; font-size: 1.3rem; margin-bottom: 18px; }
.cmp-shop-btn {
    display: inline-block;
    padding: 10px 26px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-size: 1.35rem;
}

.gallery-thumb-video { position: relative; }
.gallery-thumb-video .gt-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.35);
    color: #fff;
    font-size: 1.4rem;
}
.gallery-thumb-video:hover .gt-play { background: rgba(0,0,0,.5); }

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.75);
    padding: 20px;
}
.video-modal.open { display: flex; }
.video-modal-box {
    position: relative;
    width: 100%;
    max-width: 860px;
    background: #fff;
    border-radius: 12px;
    padding: 18px;
}
.video-modal-close {
    position: absolute;
    top: 8px;
    inset-inline-start: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f1f1f1;
    color: #666;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}
.video-modal-close:hover { background: var(--accent); color: #fff; }
.video-title { font-size: 1.5rem; margin: 0 0 12px; padding-inline-start: 34px; }
.video-item iframe, .video-item video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    background: #000;
}

.gallery-main { position: relative; overflow: hidden; }
.gallery-main #mainImg {
    transition: transform .25s ease;
    cursor: zoom-in;
}
.gallery-main:hover #mainImg { transform: scale(1.8); }

.gallery-zoom-btn {
    position: absolute;
    inset-inline-end: 10px;
    bottom: 10px;
    z-index: 2;
    width: 46px;
    height: 46px;
    font-size: 1.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: #444;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.gallery-zoom-btn:hover { background: #fff; color: var(--primary); }

.lightbox {
    position: fixed;
    inset: 0;

    z-index: 100001;
    display: none;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(0,0,0,.9);
    padding: 40px 40px 28px;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}
.lb-close, .lb-nav {
    position: absolute;
    border: 0;
    background: rgba(255,255,255,.14);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
}
.lb-close { top: 20px; inset-inline-start: 20px; width: 42px; height: 42px; font-size: 2.4rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 3rem; line-height: 1; }

.lb-prev { inset-inline-start: 20px; }
.lb-next { inset-inline-end: 20px; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.3); }

.lightbox img#lightboxImg { flex: 0 1 auto; min-height: 0; max-height: calc(100vh - 220px); }

.lb-counter { order: 3; }
.lb-thumbs  { order: 2; }
.lb-thumbs {
    flex: 0 0 auto;
    max-width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.lb-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid rgba(255,255,255,.25);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    opacity: .65;
    transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.lb-thumb img { width: 100%; height: 100%; object-fit: contain; }
.lb-thumb:hover { opacity: 1; }
.lb-thumb.active { opacity: 1; border-color: #fff; }
.lb-counter {
    color: #ddd;
    font-size: 1.35rem;
    flex: 0 0 auto;
}

@media (max-width: 767px) {

    .gallery-main:hover #mainImg { transform: none; }
    .lb-nav { width: 38px; height: 38px; font-size: 2.2rem; }
}

.coupon-box { margin: 14px 0; }
.coupon-form { display: flex; gap: 8px; }
.coupon-input {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    font-size: 1.3rem;
}
.coupon-input:focus { outline: none; border-color: var(--primary); }
.coupon-btn {
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: #444e5e;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}
.coupon-btn:hover { background: #333c49; }
.coupon-btn:disabled { opacity: .6; cursor: default; }
.coupon-msg { margin-top: 8px; font-size: 1.2rem; }
.coupon-msg.ok { color: #1f9254; }
.coupon-msg.err { color: var(--accent); }

.shop-h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #333;
}

.shop-seo-text {
    margin-top: 32px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    line-height: 2.2;
    font-size: 1.4rem;
    color: #555;
}

.shop-seo-text h2, .shop-seo-text h3 { font-size: 1.7rem; margin: 16px 0 8px; color: #333; }
.shop-seo-text img { max-width: 100%; height: auto; }

/* Metn-e SEO az panel miayad (Html.Raw), pas hich class-i nadarad.
   Style bar rooye tag-haye khaam gozashte mishavad. */
.shop-seo-text > :first-child { margin-top: 0; }
.shop-seo-text > :last-child { margin-bottom: 0; }
.shop-seo-text h4 { font-size: 1.5rem; margin: 16px 0 8px; color: #333; }
.shop-seo-text p { margin: 0 0 12px; }
.shop-seo-text ul, .shop-seo-text ol { margin: 0 0 12px; padding-inline-start: 20px; }
.shop-seo-text li { margin-bottom: 6px; }

/* Jadval: aksar-e in jadval-ha az Word ya editor-e panel copy mishavand va
   attribute-e width/border-e khodeshan ra hamrah darand -> reset. */
.shop-seo-text table {
    display: block;               /* ta rooye mobile khodesh scroll shavad */
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    border-collapse: collapse;
    font-size: 1.3rem;
    text-align: right;
}
.shop-seo-text table th,
.shop-seo-text table td {
    padding: 8px 12px;
    border: 1px solid #e6e6e6;
    vertical-align: middle;
    white-space: nowrap;
}
.shop-seo-text table th {
    background: #f7f7f7;
    font-weight: 700;
    color: #333;
    text-align: right;
}
/* Agar jadval thead nadashte bashad, satr-e aval naghsh-e header ra darad. */
.shop-seo-text table:not(:has(thead)) tr:first-child td { font-weight: 700; color: #333; }
.shop-seo-text table tbody tr:nth-child(even) { background: #fafafa; }
.shop-seo-text table caption { margin-bottom: 8px; font-weight: 700; color: #777; text-align: right; }

.shop-seo-text blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    border-inline-start: 3px solid #ddd;
    background: #fafafa;
    border-radius: 4px;
}

.shop-seo-faq { margin-top: 24px; }
.shop-seo-faq > h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; color: #333; }

.seo-faq-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 14px 18px;
}

.seo-faq-item > summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.45rem;
    color: #333;
    list-style: none;
}

.seo-faq-item > summary::-webkit-details-marker { display: none; }
.seo-faq-item > summary::after { content: "+"; float: left; color: #999; font-size: 1.8rem; line-height: 1; }
.seo-faq-item[open] > summary::after { content: "−"; }

.seo-faq-answer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f2f2f2;
    line-height: 2.1;
    font-size: 1.35rem;
    color: #666;
}

.auction-page {

    padding: 30px 0 50px;
    background: #f7f7f7;
}

.auction-head { margin-bottom: 2.5rem; }
.auction-head h1 { font-size: 2.6rem; font-weight: 700; margin: 0 0 .6rem; }
.auction-head p { font-size: 1.4rem; color: #777; margin: 0; }

.auction-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
@media (max-width: 1199px) { .auction-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px)  { .auction-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px)  { .auction-grid { grid-template-columns: 1fr; gap: 1.4rem; } }

.auction-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,.06);
    transition: transform .3s, box-shadow .3s;
    color: inherit;
    text-decoration: none;
    position: relative;
}
.auction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    color: inherit;
}

.auction-card-media { position: relative; padding-top: 80%; background: #f9f9f9; overflow: hidden; }
.auction-card-media img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain; padding: 1.5rem;
    transition: transform .4s;
}
.auction-card:hover .auction-card-media img { transform: scale(1.06); }

.auction-chip {
    position: absolute; top: 1.2rem; right: 1.2rem; z-index: 2;
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem 1rem;
    border-radius: 20px;
    font-size: 1.2rem; font-weight: 600;
    color: #fff; background: #2e9e5b;
}
.auction-chip--soon { background: var(--primary); }
.auction-chip--over { background: #999; }
.auction-chip i { font-size: 1.1rem; }

.auction-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.auction-card-title {
    font-size: 1.5rem; font-weight: 600; line-height: 1.7;
    margin: 0 0 1.2rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 5.1rem;
}

.auction-card-price {
    margin-top: auto;
    padding-top: 1.2rem;
    border-top: 1px solid #f0f0f0;
}
.auction-card-price span { display: block; font-size: 1.2rem; color: #999; margin-bottom: .3rem; }
.auction-card-price strong { font-size: 2rem; font-weight: 700; color: var(--accent-600); }
.auction-card-price em { font-style: normal; font-size: 1.3rem; color: #666; margin-right: .4rem; }

.auction-card-foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 1.2rem; font-size: 1.3rem; color: #777;
}
.auction-card-foot .auction-countdown {
    font-weight: 700; color: #333;
    font-variant-numeric: tabular-nums; direction: ltr;
}

.auction-layout { display: grid; grid-template-columns: 1fr 42rem; gap: 3rem; align-items: start; }
@media (max-width: 991px) { .auction-layout { grid-template-columns: 1fr; } }

.auction-gallery {
    background: #fff; border-radius: 20px; padding: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,.06);
}
.auction-gallery-main {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1 / 1; overflow: hidden; border-radius: 14px; background: #fafafa;
}
.auction-gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.auction-gallery-empty { font-size: 6rem; color: #ddd; }

.auction-gallery-thumbs {
    display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem;
}
.auction-thumb {
    width: 7rem; height: 7rem; padding: 0; border-radius: 10px; overflow: hidden;
    border: 2px solid #eee; background: #fff; cursor: pointer; transition: border-color .15s;
}
.auction-thumb img { width: 100%; height: 100%; object-fit: cover; }
.auction-thumb:hover { border-color: #d9b3ba; }
.auction-thumb.is-active { border-color: var(--accent-600); }

.auction-idcard {
    display: flex; flex-wrap: wrap; gap: .8rem 2rem;
    background: #fff; border-radius: 16px; padding: 1.6rem 2rem; margin-top: 1.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,.06); font-size: 1.35rem; color: #555;
}
.auction-idcard-item i { color: var(--accent-600); margin-left: .4rem; }
.auction-idcard-item b { color: #222; font-weight: 700; }

.auction-product-link {
    display: block; text-align: center; margin-top: 1.5rem; padding: 1.2rem;
    background: #fff; border: 1px dashed #d9b3ba; border-radius: 14px;
    color: var(--accent-600); font-size: 1.4rem; font-weight: 600; text-decoration: none;
    transition: background .15s;
}
.auction-product-link:hover { background: #fdf3f5; }

.auction-details-grid { display: grid; gap: 2rem; margin-top: 3rem; }

.auction-specs { width: 100%; border-collapse: collapse; font-size: 1.45rem; }
.auction-specs tr:nth-child(odd) { background: #fafafa; }
.auction-specs th, .auction-specs td { padding: 1.2rem 1.6rem; text-align: right; vertical-align: top; }
.auction-specs th { width: 30%; color: #777; font-weight: 600; white-space: nowrap; }
.auction-specs td { color: #222; }

.auction-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 640px) { .auction-proscons { grid-template-columns: 1fr; } }
.auction-pros, .auction-cons { border-radius: 14px; padding: 1.6rem 2rem; }
.auction-pros { background: #f2faf3; }
.auction-cons { background: #fdf3f3; }
.auction-pros h3, .auction-cons h3 { font-size: 1.5rem; font-weight: 700; margin: 0 0 1rem; }
.auction-pros h3 { color: #2e9e42; }
.auction-cons h3 { color: #d0453b; }
.auction-pros ul, .auction-cons ul { margin: 0; padding-right: 2rem; }
.auction-pros li, .auction-cons li { font-size: 1.4rem; line-height: 2; color: #444; }

.auction-trust {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
    background: #fff; border-radius: 16px; padding: 1.8rem 2rem; margin-top: 1.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,.06);
}
.auction-trust-item { display: flex; align-items: center; gap: 1rem; font-size: 1.35rem; color: #444; }
.auction-trust-item i { color: #2e9e42; font-size: 1.8rem; width: 2.4rem; text-align: center; }

.auction-share {
    display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem;
    font-size: 1.35rem; color: #777;
}
.auction-share-btn {
    width: 4rem; height: 4rem; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; border: none; background: #f2f2f2; color: #555; cursor: pointer;
    font-size: 1.7rem; text-decoration: none; transition: background .15s, color .15s;
}
.auction-share-btn:hover { background: var(--accent-600); color: #fff; }

.auction-videos { display: grid; gap: 2rem; }
.auction-video-item h3 { font-size: 1.5rem; font-weight: 600; margin: 0 0 1rem; }
.auction-video-item iframe, .auction-video-item video {
    width: 100%; aspect-ratio: 16 / 9; border: none; border-radius: 12px;
}

.auction-how { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 640px) { .auction-how { grid-template-columns: 1fr; } }
.auction-how-step { display: flex; gap: 1.4rem; align-items: flex-start; }
.auction-how-num {
    flex: 0 0 auto; width: 3.6rem; height: 3.6rem; border-radius: 50%;
    background: #fdf3f5; color: var(--accent-600); font-weight: 700; font-size: 1.6rem;
    display: flex; align-items: center; justify-content: center;
}
.auction-how-step b { display: block; font-size: 1.5rem; color: #222; margin-bottom: .4rem; }
.auction-how-step p { font-size: 1.35rem; line-height: 1.9; color: #666; margin: 0; }

.auction-panel {
    background: #fff; border-radius: 20px; padding: 2.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,.06);
    position: sticky; top: 2rem;
}
@media (max-width: 991px) { .auction-panel { position: static; } }

.auction-panel h1 { font-size: 2.2rem; font-weight: 700; line-height: 1.6; margin: 0 0 1.5rem; }

.auction-hero-price {
    background: linear-gradient(135deg, var(--accent-50), var(--accent-50));
    border: 1px solid #f6d9de;
    border-radius: 14px;
    padding: 1.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
}
.auction-hero-price .lbl { font-size: 1.3rem; color: var(--muted); margin-bottom: .4rem; }
.auction-hero-price .val { font-size: 3.4rem; font-weight: 800; color: var(--accent-600); line-height: 1.2;
                           font-variant-numeric: tabular-nums; }
.auction-hero-price .cur { font-size: 1.4rem; color: var(--muted); }

.auction-clock { margin-bottom: 1.5rem; }
.auction-clock .lbl { font-size: 1.3rem; color: #888; text-align: center; margin-bottom: .8rem; }
.auction-clock-boxes {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem;
    direction: ltr;
}
.auction-clock-box {
    background: #2b2f38; color: #fff;
    border-radius: 10px; padding: .9rem .4rem; text-align: center;
    transition: background .3s;
}
.auction-clock-box b {
    display: block; font-size: 2.4rem; font-weight: 700; line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.auction-clock-box span { display: block; font-size: 1.1rem; opacity: .65; margin-top: .3rem; }

.auction-clock.is-urgent .auction-clock-box { background: var(--accent-600); animation: auction-pulse 1s infinite; }
@keyframes auction-pulse { 50% { opacity: .55; } }

.auction-clock--soon .lbl { color: #1f7a8c; font-weight: 700; }
.auction-clock--soon .auction-clock-box {
    background: #eaf6f8; color: #12616f;
    border: 1px solid #bfe3e9;
}
.auction-clock--soon .auction-clock-box span { opacity: .8; }

.auction-extended {
    margin-top: .8rem; text-align: center;
    font-size: 1.25rem; color: #2e9e5b; font-weight: 600;
}

.auction-facts { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.auction-facts li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 0; border-bottom: 1px dashed #eee; font-size: 1.4rem;
}
.auction-facts li:last-child { border-bottom: 0; }
.auction-facts li span { color: #888; }
.auction-facts li strong { font-weight: 700; }

.auction-bid-box { border: 1px solid #eee; border-radius: 14px; padding: 1.8rem; }
.auction-bid-box label { font-size: 1.35rem; font-weight: 600; margin-bottom: .6rem; display: block; }
.auction-bid-input {
    width: 100%; padding: 1.2rem 1.4rem;
    border: 1px solid #ddd; border-radius: 10px;
    font-size: 1.8rem; font-weight: 700; text-align: center;
    direction: ltr; font-variant-numeric: tabular-nums;
}
.auction-bid-input:focus { outline: 0; border-color: var(--accent-600); box-shadow: 0 0 0 3px var(--accent-50); }
.auction-hint { font-size: 1.25rem; color: #888; margin-top: .6rem; }
.auction-hint b { color: var(--accent-600); }

.auction-proxy { margin-top: 1.4rem; background: #fafafa; border-radius: 10px; padding: 1.2rem; }
.auction-proxy label { font-size: 1.35rem; font-weight: 600; display: flex; gap: .8rem; align-items: center;
                       margin: 0; cursor: pointer; }
.auction-proxy input { width: 1.8rem; height: 1.8rem; accent-color: var(--accent-600); cursor: pointer; }
.auction-proxy p { font-size: 1.2rem; color: #888; margin: .8rem 0 0; line-height: 1.9; }

.auction-btn {
    display: block; width: 100%;
    padding: 1.4rem; margin-top: 1.4rem;
    border: 0; border-radius: 10px;
    font-size: 1.6rem; font-weight: 700; cursor: pointer;
    transition: filter .2s, transform .1s;
}
.auction-btn:active { transform: translateY(1px); }
.auction-btn:disabled { opacity: .6; cursor: default; }
.auction-btn--primary { background: var(--accent-600); color: #fff; }
.auction-btn--primary:hover { filter: brightness(1.08); }
.auction-btn--buynow { background: #fff; color: var(--accent-600); border: 2px solid var(--accent-600); }
.auction-btn--buynow:hover { background: var(--accent-50); }

.auction-note {
    border-radius: 12px; padding: 1.5rem;
    font-size: 1.4rem; line-height: 1.9; margin-bottom: 1.5rem;
}
.auction-note--info    { background: #eef4fd; color: #23538f; }
.auction-note--warn    { background: #fff6e6; color: #8a5b12; }
.auction-note--success { background: #eaf7ef; color: #1e6e40; }
.auction-note--muted   { background: #f5f5f5; color: #666; }
.auction-note small { display: block; margin-top: .6rem; font-size: 1.25rem; opacity: .85; }

.auction-badge-lead {
    display: inline-flex; align-items: center; gap: .6rem;
    background: #eaf7ef; color: #1e6e40;
    border-radius: 20px; padding: .5rem 1.2rem;
    font-size: 1.3rem; font-weight: 600; margin-bottom: 1.2rem;
}

.auction-section {
    background: #fff; border-radius: 20px; padding: 2.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,.06);
    margin-top: 3rem;
}
.auction-section h2 { font-size: 1.9rem; font-weight: 700; margin: 0 0 1.8rem; }
.auction-section :is(p, li) { font-size: 1.45rem; line-height: 2.1; color: #444; }

.auction-bids { width: 100%; border-collapse: collapse; }
.auction-bids th {
    text-align: right; font-size: 1.3rem; color: #888; font-weight: 600;
    padding: 1rem 1.2rem; border-bottom: 2px solid #f0f0f0;
}
.auction-bids td { padding: 1.2rem; font-size: 1.4rem; border-bottom: 1px solid #f5f5f5; }
.auction-bids tr:last-child td { border-bottom: 0; }
.auction-bids .amount { font-weight: 700; direction: ltr; text-align: right;
                        font-variant-numeric: tabular-nums; }
.auction-bids .time { color: #999; font-size: 1.3rem; direction: ltr; text-align: left; }
.auction-bids .is-lead { background: #f6fbf8; }
.auction-bids .is-lead .amount { color: #1e6e40; }

.auction-tag {
    display: inline-block; margin-right: .6rem;
    background: #f0f0f0; color: #777;
    border-radius: 6px; padding: .2rem .7rem; font-size: 1.1rem;
}

.auction-empty { text-align: center; padding: 6rem 2rem; color: #999; font-size: 1.5rem; }

.auction-pager {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: .8rem; margin-top: 4rem;
}
.auction-pager-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    min-width: 4.2rem; padding: 1rem 1.4rem;
    justify-content: center;
    background: #fff; color: #555;
    border: 1px solid #e8e8e8; border-radius: 10px;
    font-size: 1.4rem; font-weight: 600; text-decoration: none;
    transition: all .2s;
}
.auction-pager-btn:hover { border-color: var(--accent-600); color: var(--accent-600); }
.auction-pager-btn.is-active {
    background: var(--accent-600); border-color: var(--accent-600); color: #fff;
}

.faq-asked-by { margin: .8rem 0 0; font-size: 1.2rem; color: var(--text-2); }
.product-ask-empty { font-size: 1.4rem; color: var(--text-2); margin: 0; }

.product-ask-box {
    margin-top: 2.4rem; padding: 1.6rem;
    border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2);
}
.product-ask-title { margin: 0 0 1.2rem; font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.product-ask-input {
    display: block; width: 100%; min-height: 9.6rem; padding: 1.2rem;
    border: 1px solid var(--border); border-radius: 8px; background: #fff;
    font-family: inherit; font-size: 1.3rem; line-height: 1.9; resize: vertical;
}
.product-ask-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 1.2rem; }
.product-ask-hint { margin: 0; font-size: 1.2rem; color: var(--text-2); }
.product-ask-hint a { color: var(--accent-700); }

.product-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 2.4rem 0; }
.product-tags-label { font-size: 1.3rem; color: var(--text-2); }
.product-tag-chip {
    display: inline-flex; align-items: center; min-height: 3.2rem; padding: 0 1.2rem;
    border: 1px solid var(--border); border-radius: 20px; background: #fff;
    font-size: 1.3rem; color: #444; text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
}
.product-tag-chip:hover, .product-tag-chip:focus-visible {
    border-color: var(--accent-700); color: var(--accent-700); background: var(--surface-2);
}

.nm-variant { font-weight: 400; color: #8a6d3b; font-size: 1.3rem; }

.filter-trigger { display: none; }

.filter-sheet-head { display: none; }

@media (max-width: 991.98px) {
    .filter-trigger {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: var(--hit-min, 44px);
        padding: 0 16px;
        border: 1px solid var(--border, #e0e0e0);
        border-radius: var(--r-md, 12px);
        background: var(--surface, #fff);
        font-family: inherit;
        font-size: 1.4rem;
        color: var(--ink, #222);
        cursor: pointer;
    }
    .filter-trigger:hover { border-color: var(--accent-600, #888); color: var(--accent-600, #222); }

    .filter-sheet {
        position: fixed;
        inset: 0;

        z-index: 100001;
        display: none;
        width: auto;
        padding: 0;
    }
    .filter-sheet.is-open { display: block; }

    .filter-sheet::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,.48);
    }

    .filter-sheet .shop-sidebar {
        position: absolute;
        inset-block: 0;
        inset-inline-end: 0;
        display: flex;
        flex-direction: column;
        width: min(88vw, 380px);
        overflow-y: auto;
        padding: 16px;
        padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
        background: var(--bg, #f7f7f7);
        box-shadow: 0 0 40px rgba(0,0,0,.25);
    }

    .filter-sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border, #e6e6e6);
        font-size: 1.5rem;
        font-weight: bold;
    }

    .filter-sheet-foot {
        position: sticky;
        bottom: 0;
        display: flex;
        gap: 8px;
        margin-top: auto;
        padding-top: 12px;
        background: var(--bg, #f7f7f7);
    }

    .filter-sheet-apply { flex: 1; }

    .filter-sheet-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        border-radius: var(--r-md, 12px);
        background: transparent;
        font-size: 2.2rem;
        line-height: 1;
        color: var(--muted, #777);
        cursor: pointer;
    }
    .filter-sheet-close:hover { color: var(--ink, #222); }
}

@media print {
    .filter-sheet, .filter-trigger { display: none; }
}

.size-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* همهٔ چیپ‌ها یک‌اندازه دیده شوند: عنوان‌ها از «35» تا «35.1/2» طول
       متفاوتی دارند و با عرضِ محتوا، ردیف نامرتب می‌شد. */
    min-width: 80px;
    min-height: var(--hit-min, 44px);
    padding: 0 12px;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: var(--r-md, 12px);
    background: var(--surface, #fff);
    font-size: 1.4rem;
    color: var(--ink, #333);
    cursor: pointer;
    transition: border-color .15s, background-color .15s, color .15s;
}

.size-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.size-chip:hover { border-color: var(--accent-600, #888); }
.size-chip:focus-within { outline: 2px solid var(--accent-600, #888); outline-offset: 2px; }

.size-chip.active {
    border-color: var(--accent-600, #333);
    background: var(--accent-600, #333);
    color: var(--on-brand, #fff);
}

.size-cm-row {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border, #e6e6e6);
}
.size-cm-label { display: block; margin-bottom: 6px; font-size: 1.3rem; color: var(--ink, #555); }
.size-cm-input {
    width: 100%;
    min-height: var(--hit-min, 44px);
    padding: 0 12px;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: var(--r-md, 12px);
    background: var(--surface, #fff);
    font-family: inherit;
    font-size: 1.4rem;
    color: var(--ink, #222);
}
.size-cm-input:focus { border-color: var(--accent-600, #888); outline: none; }
.size-cm-hint { display: block; margin-top: 6px; font-size: 1.2rem; color: var(--muted, #888); line-height: 1.9; }
.size-cm-empty { display: block; margin-top: 6px; font-size: 1.2rem; color: var(--danger, #c0392b); }

.filter-sheet-apply:hover,
.filter-sheet-apply:active,
.filter-sheet-apply:focus,
.filter-sheet-reset:hover,
.filter-sheet-reset:active,
.filter-sheet-reset:focus {
    transform: none;
}

/* ═══════════════ فیلترِ برندِ سایدبار ═══════════════
   تک‌انتخابی (radio) چون کوئری یک رشته می‌گیرد. رادیو مخفی است و خودِ label
   حالت را نشان می‌دهد — همان قاعدهٔ چیپ‌های سایز. */
.brand-filter-list { display: flex; flex-direction: column; gap: 2px; }
.brand-filter-item {
    position: relative;
    display: flex; align-items: center; gap: .8rem;
    min-height: var(--hit-min, 44px);
    padding: 0 .8rem; border-radius: 10px;
    cursor: pointer; margin: 0;
    font-size: 1.35rem; color: var(--text, #333);
    transition: background .2s ease, color .2s ease;
}
.brand-filter-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.brand-filter-item:hover { background: var(--surface-2, #f6f6f6); }
.brand-filter-item.active { background: var(--primary-50, #fdecec); color: var(--primary, #e0302e); font-weight: var(--fw-bold, 700); }
.brand-filter-item:focus-within { outline: 2px solid var(--accent-600, #888); outline-offset: 2px; }
.brand-filter-name { flex: 1 1 auto; }
.brand-filter-count { flex: 0 0 auto; font-size: 1.2rem; color: var(--muted, #999); }
.brand-filter-item.active .brand-filter-count { color: inherit; }

/* میان‌برِ ویرایشِ کالا — فقط کارکنان می‌بینندش. عمداً کم‌رنگ و کوچک
   است: بخشی از صفحهٔ فروش نیست، یک ابزارِ داخلی است. */
.admin-edit-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    padding: 5px 12px;
    border: 1px dashed #c9a227;
    border-radius: 6px;
    background: #fffbe9;
    color: #8a6d1b;
    font-size: 1.2rem;
    line-height: 1.6;
    text-decoration: none;
}
.admin-edit-shortcut:hover { background: #fff4cc; color: #6d5514; }

/* آکاردئونِ FAQ کالا: جاوااسکریپت کلاسِ .open را روی خودِ .faq-item می‌گذارد،
   ولی قاعدهٔ display در dashboard.css فقط .faq-answer.open را می‌شناخت — یعنی
   پاسخ هیچ‌وقت باز نمی‌شد. */
.faq-item.open > .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.blog-faq-title,
.product-faq-title { font-size: 1.8rem; font-weight: 700; color: #333; margin-top: 15px !important;margin-bottom: 10px !important; }
