/* بریدکرامب صفحه محصول — اسکرول افقی در موبایل، آیکن > بزرگ و مشکی، نام محصول کامل */
.product-breadcrumb--scroll .product-breadcrumb__list {
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.product-breadcrumb--scroll .product-breadcrumb__list::-webkit-scrollbar {
    height: 4px;
}
.product-breadcrumb--scroll .product-breadcrumb__list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}
.product-breadcrumb__chevron {
    display: inline-flex;
    align-items: center;
    color: #111827;
}
/* فلش‌ها به سمت راست (در RTL به سمت آیتم بعدی) */
.product-breadcrumb__chevron svg {
    transform: scale(-1);
}

/* تب‌های صفحه محصول — هم‌خوان با رنگ primary سایت (طلایی)، عرض کامل، پدینگ و استایل فعال/غیرفعال */
.product-hero-two-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
    gap: 0;
}
.product-hero-two-tab {
    padding: 0.875rem 1rem;
    text-align: center;
    font-size: 0.9375rem;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    background: transparent;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.product-hero-two-tab:hover {
    color: var(--color-primary-600-hex);
    background: var(--color-primary-50-hex);
}
.product-hero-two-tabs [role="tab"][aria-selected="true"] {
    color: var(--color-primary-600-hex);
    font-weight: 700;
    border-bottom-color: var(--color-primary-hex);
    background: var(--color-primary-50-hex);
}
@media (max-width: 640px) {
    .product-hero-two-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
}
.product-hero-two-tabs--3 {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 640px) {
    .product-hero-two-tabs--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-hero {
    overflow: hidden;
}
.product-hero__panel {
    display: flex;
    flex-direction: column;
}
.product-hero__panel > h1 { order: 1; }
.product-hero__panel > .grid { order: 2; }
.product-hero__purchase,
.product-hero__panel > .text-center.bg-green-50,
.product-hero__panel > form,
.product-hero__panel > a.block {
    order: 3;
}
.product-hero__purchase {
    display: flex;
    flex-direction: column;
}
.product-hero__purchase .bf-print-box,
.product-hero__panel > .bf-print-box {
    order: 4;
}
.product-hero__panel > p,
.product-hero__panel > ul,
.product-hero__panel > [dir="rtl"],
.product-hero__panel > .mt-4 {
    order: 5;
}
.product-hero__banner {
    min-height: 22rem;
}
.product-hero__gallery {
    min-height: 20rem;
}
.product-hero__gallery-main {
    overflow: hidden;
    background: #f3f4f6;
    isolation: isolate;
    flex: 1 1 auto;
    min-height: 20rem;
    height: 78vw;
    max-height: 36rem;
}
@media (min-width: 1024px) {
    .product-hero__banner,
    .product-hero__gallery {
        min-height: 28rem;
    }
    .product-hero__gallery-main {
        height: auto;
        min-height: 28rem;
        max-height: none;
    }
}
.product-hero__preview-img {
    position: relative;
    z-index: 1;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
    filter: drop-shadow(0 12px 28px rgba(15, 23, 42, 0.25));
}
.product-hero__gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 1.5vw, 1.5rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1);
    transform-origin: center center;
    transition:
        opacity 0.35s ease,
        visibility 0.35s ease,
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-hero__gallery-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.58)),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.16), transparent 62%);
    pointer-events: none;
}
.product-hero__gallery-slide-bg {
    position: absolute;
    inset: -1.5rem;
    z-index: -1;
    background-image: var(--product-hero-slide-bg);
    background-size: cover;
    background-position: center;
    filter: blur(22px) saturate(1.08);
    transform: scale(1.06);
    opacity: 0.55;
}
.product-hero__gallery-main:hover .product-hero__gallery-slide.is-active {
    transform: scale(1.015);
}
.product-hero__gallery-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
    .product-hero__gallery-slide {
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    .product-hero__gallery-main:hover .product-hero__gallery-slide.is-active {
        transform: none;
    }
}
.product-hero__gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    justify-content: center;
}
.product-hero__gallery-thumb {
    flex-shrink: 0;
    width: 4.5rem;
    height: 3.375rem;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.product-hero__gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-hero__gallery-thumb:hover {
    border-color: #d1d5db;
}
.product-hero__gallery-thumb.is-active,
.product-hero__gallery-thumb[aria-selected="true"] {
    border-color: var(--color-primary-hex);
    box-shadow: 0 0 0 1px rgb(var(--color-primary) / 0.35);
}
.product-hero-lightbox { position: fixed; z-index: 9999; inset: 0; background: rgba(0,0,0,0.9); align-items: center; justify-content: center; cursor: pointer; visibility: hidden; pointer-events: none; }
.product-hero-lightbox.active { visibility: visible; pointer-events: auto; display: flex !important; }
.product-hero-lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; pointer-events: none; cursor: default; }
.product-hero-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s ease;
    z-index: 1;
}
.product-hero-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.28);
}
.product-hero-lightbox__nav--prev { right: 1rem; }
.product-hero-lightbox__nav--next { left: 1rem; }
#product-description-wrap.product-description-expanded { max-height: none !important; }
#product-description-wrap.product-description-expanded #product-description-fade { display: none; }
.product-description-content.prose p { margin-bottom: 0.75em; }
.product-description-content.prose h2,
.product-description-content.prose h3,
.product-description-inner h2,
.product-description-inner h3,
.product-description-inner h4 {
    color: #111827;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 1em;
    margin-bottom: 0.5em;
}
.product-description-content.prose h2,
.product-description-inner h2 { font-size: 1.35rem; }
.product-description-content.prose h3,
.product-description-inner h3 { font-size: 1.15rem; }
.product-description-inner ul,
.product-description-inner ol {
    margin: 0 0 0.9em;
    padding-right: 1.4rem;
    list-style: disc;
}
.product-description-inner ol { list-style: decimal; }
.product-description-inner a {
    color: var(--color-primary-600-hex, #4f46e5);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.product-description-content.prose hr { margin: 1em 0; border-color: #e5e7eb; }

.product-reviews-stars .product-reviews-star { color: #d1d5db; }
.product-reviews-stars .product-reviews-star.filled { color: #f59e0b; }
.product-reviews-form-wrap .product-reviews-star-select,
.product-reviews-list .product-reviews-star { color: #d1d5db; }
.product-reviews-list .product-reviews-star.filled { color: #f59e0b; }
.product-reviews-form-wrap input[type=radio]:checked + .product-reviews-star-select { color: #f59e0b !important; }
.product-reviews-form-wrap .product-reviews-star-select:hover { color: #fbbf24; }

.product-reviews-form-wrap .product-reviews-rating {
    display: flex;
    gap: 0.25rem;
}
.product-reviews-form-wrap .product-reviews-rating input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.product-reviews-form-wrap .product-reviews-rating__label {
    cursor: pointer;
    line-height: 1;
    user-select: none;
}
.product-reviews-form-wrap .product-reviews-rating__label .product-reviews-star-select {
    font-size: 1.75rem;
    color: #d1d5db;
    transition: color 0.15s ease;
}
.product-reviews-form-wrap .product-reviews-rating input[type="radio"]:checked + .product-reviews-rating__label .product-reviews-star-select,
.product-reviews-form-wrap .product-reviews-rating input[type="radio"]:checked ~ .product-reviews-rating__label .product-reviews-star-select {
    color: #f59e0b;
}
.product-reviews-form-wrap .product-reviews-rating__label:hover .product-reviews-star-select,
.product-reviews-form-wrap .product-reviews-rating__label:hover ~ .product-reviews-rating__label .product-reviews-star-select {
    color: #fbbf24;
}

.product-floating-cta {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 1000;
    width: calc(100% - 2rem);
    max-width: 28rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease, visibility 0.35s ease;
}
.product-floating-cta.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.product-floating-cta__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem 0.5rem 0.5rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.product-floating-cta__thumb {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f3f4f6;
}
.product-floating-cta__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-floating-cta__info {
    flex: 1;
    min-width: 0;
}
.product-floating-cta__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-floating-cta__price {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.125rem;
}
.product-floating-cta__price--free {
    color: #059669;
    font-weight: 600;
}
.product-floating-cta__action {
    flex-shrink: 0;
}
.product-floating-cta__form {
    margin: 0;
}
.product-floating-cta__btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 0.5rem;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-floating-cta__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.product-floating-cta__btn--cart,
.product-floating-cta__btn--renew {
    background: var(--color-purchase-hex, #16A34A);
    color: var(--color-on-purchase-hex, #fff);
}
.product-floating-cta__btn--cart:hover,
.product-floating-cta__btn--renew:hover {
    background: var(--color-purchase-600-hex, #047857);
}
.product-floating-cta__btn--download {
    background: var(--color-purchase-hex, #16A34A);
    color: var(--color-on-purchase-hex, #fff);
}
.product-floating-cta__btn--download:hover {
    background: var(--color-purchase-600-hex, #047857);
}
.product-floating-cta__btn--vip {
    background: #d97706;
    color: #fff;
}
.product-floating-cta__btn--print {
    background: var(--color-primary-hex);
    color: #111827;
    margin-right: 0.35rem;
}
.product-floating-cta__btn--print:hover {
    background: #c49206;
}
@media (max-width: 480px) {
    .product-floating-cta {
        width: calc(100% - 1rem);
        bottom: 0.75rem;
    }
    .product-floating-cta__title { font-size: 0.8125rem; }
    .product-floating-cta__btn { padding: 0.45rem 0.75rem; font-size: 0.75rem; }
}

.product-cart-toast-container {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: calc(100% - 2rem);
    max-width: 24rem;
    pointer-events: none;
}
.product-cart-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
    animation: product-cart-toast-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes product-cart-toast-in {
    from {
        opacity: 0;
        transform: translateY(-1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes product-cart-toast-out {
    to {
        opacity: 0;
        transform: translateY(-0.75rem);
    }
}
.product-cart-toast__close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #4b5563;
    cursor: pointer;
    border-radius: 0.375rem;
    padding: 0;
    transition: color 0.2s ease, background 0.2s ease;
}
.product-cart-toast__close:hover {
    color: #111827;
    background: #f3f4f6;
}
.product-cart-toast__icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    color: #059669;
}
.product-cart-toast__message {
    flex: 1;
    min-width: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #059669;
    margin: 0;
}
.product-cart-toast__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: color 0.2s ease;
}
.product-cart-toast__link:hover {
    color: #111827;
}

.product-cart-added-link {
    text-decoration: none;
}
.product-floating-cta__action .product-cart-added-link {
    display: inline-flex;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-radius: 0.5rem;
}

.js-product-add-to-cart-btn.is-loading {
    pointer-events: none;
    cursor: wait;
    opacity: 0.9;
}
.product-cart-btn-spinner {
    display: inline-block;
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: product-cart-btn-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-left: 0.35rem;
}
@keyframes product-cart-btn-spin {
    to { transform: rotate(360deg); }
}

.product-admin-dock {
    position: fixed;
    left: 0;
    top: 7.25rem;
    z-index: 40;
    display: flex;
    align-items: flex-start;
    max-height: calc(100vh - 8.75rem);
    pointer-events: none;
}
.has-announcement-bar .product-admin-dock {
    top: 10rem;
    max-height: calc(100vh - 11.5rem);
}
.product-admin-dock__tab,
.product-admin-dock__panel,
.product-admin-dock__collapse {
    pointer-events: auto;
}
.product-admin-dock__tab {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 2.75rem;
    min-height: 8.5rem;
    padding: 0.85rem 0.35rem;
    border: 1px solid #fcd34d;
    border-left: 0;
    border-radius: 0 1rem 1rem 0;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    color: #92400e;
    box-shadow: 0 10px 28px rgba(180, 83, 9, 0.16);
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.product-admin-dock__tab:hover {
    background: #fff7ed;
    box-shadow: 0 14px 32px rgba(180, 83, 9, 0.22);
}
.product-admin-dock__tab-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}
.product-admin-dock__tab-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
}
.product-admin-dock.is-open .product-admin-dock__tab {
    display: none;
}
.product-admin-dock__panel {
    width: 13.5rem;
    max-height: inherit;
    margin-top: 10px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    margin-left: 0.75rem;
    padding: 0.9rem;
    border: 1px solid #fcd34d;
    border-radius: 1.15rem;
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.96) 0%, rgba(255, 255, 255, 0.98) 72%);
    box-shadow: 0 18px 48px rgba(120, 53, 15, 0.16), 0 0 0 1px rgba(253, 230, 138, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.product-admin-dock.is-open .product-admin-dock__panel {
    animation: productAdminDockIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes productAdminDockIn {
    from { opacity: 0; transform: translateX(-14px); }
    to { opacity: 1; transform: none; }
}
.product-admin-dock__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(253, 230, 138, 0.9);
}
.product-admin-dock__head-main {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}
.product-admin-dock__badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #78350f;
    background: #fde68a;
    border-radius: 0.4rem;
    padding: 0.18rem 0.42rem;
}
.product-admin-dock__title {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #78350f;
}
.product-admin-dock__collapse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #fde68a;
    border-radius: 0.6rem;
    background: #fff;
    color: #b45309;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.product-admin-dock__collapse:hover {
    background: #fef3c7;
    border-color: #f59e0b;
}
.product-admin-dock__collapse svg {
    width: 1rem;
    height: 1rem;
}
.product-admin-dock__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}
.product-admin-dock__chip {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #92400e;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}
.product-admin-dock__chip--accent {
    background: #f59e0b;
    border-color: #d97706;
    color: #fff;
}
.product-admin-dock__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}
.product-admin-dock__stat {
    text-align: center;
    background: #fff;
    border: 1px solid #fde68a;
    border-radius: 0.75rem;
    padding: 0.5rem 0.4rem;
}
.product-admin-dock__stat--wide {
    grid-column: 1 / -1;
}
.product-admin-dock__stat strong {
    display: block;
    font-size: 0.9375rem;
    color: #111827;
    line-height: 1.3;
}
.product-admin-dock__stat span {
    font-size: 0.6875rem;
    color: #6b7280;
}
.product-admin-dock__actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}
.product-admin-dock__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.7rem;
    border: 1px solid #f59e0b;
    background: #fff;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.product-admin-dock__btn svg {
    width: 0.95rem;
    height: 0.95rem;
}
.product-admin-dock__btn:hover {
    background: #fef3c7;
}
.product-admin-dock__btn--primary {
    background: #f59e0b;
    border-color: #d97706;
    color: #fff;
}
.product-admin-dock__btn--primary:hover {
    background: #d97706;
    color: #fff;
}
.product-admin-dock__download label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 0.35rem;
}
.product-admin-dock__download-row {
    display: flex;
    gap: 0.35rem;
}
.product-admin-dock .product-admin-download-input {
    flex: 1;
    min-width: 0;
    font-family: inherit;
    font-size: 0.6875rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.6rem;
    background: #fff;
    color: #374151;
    padding: 0.45rem 0.55rem;
}
.product-admin-dock .product-admin-download-input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}
.product-admin-dock__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    border-radius: 0.6rem;
    background: #f9fafb;
    color: #4b5563;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.product-admin-dock__icon-btn svg {
    width: 1rem;
    height: 1rem;
}
.product-admin-dock__icon-btn:hover {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}
.product-admin-dock__icon-btn--download {
    background: #10b981;
    border-color: #059669;
    color: #fff;
}
.product-admin-dock__icon-btn--download:hover {
    background: #059669;
    color: #fff;
    border-color: #047857;
}
.product-admin-dock__hint {
    margin: 0.35rem 0 0;
    font-size: 0.625rem;
    color: #6b7280;
    line-height: 1.5;
}
.product-admin-dock :focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}
@media (max-width: 1023px) {
    .product-admin-dock {
        top: 4.75rem;
        max-height: calc(100vh - 8.5rem);
    }
    .has-announcement-bar .product-admin-dock {
        top: 7.5rem;
        max-height: calc(100vh - 11.25rem);
    }
    .product-admin-dock.is-open .product-admin-dock__panel {
        margin-bottom: 4.5rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .product-admin-dock__tab,
    .product-admin-dock__btn,
    .product-admin-dock__icon-btn,
    .product-admin-dock__collapse {
        transition: none;
    }
    .product-admin-dock.is-open .product-admin-dock__panel {
        animation: none;
    }
}

.product-price-block {
    direction: rtl;
}
.product-price-card {
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #fafafa 0%, #f9fafb 100%);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-price-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.product-price-card__label {
    display: block;
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}
.product-price-card__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
}
.product-price-card__prices--single {
    gap: 0.35rem;
}
.product-price-card__prices--compact .product-price-card__current {
    font-size: 1.35rem;
}
.product-price-card__old {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
}
.product-price-card__current {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}
.product-price-card__current--single {
    font-size: 1.65rem;
    color: #1f2937;
}
.product-price-card__unit {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #6b7280;
}
.product-price-card--sale {
    background: linear-gradient(145deg, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 100%);
    border-color: #a7f3d0;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.12);
}
.product-price-card--sale:hover {
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.15);
}
.product-price-card__sale-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}
.product-price-card__sale-header--compact {
    margin-bottom: 0.5rem;
}
.product-price-card__discount-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(185, 28, 28, 0.35);
}
.product-price-card__countdown {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: #b45309;
    font-weight: 600;
}
.product-price-card__countdown-label {
    color: #92400e;
}
.product-price-card__countdown-value {
    font-variant-numeric: tabular-nums;
    direction: ltr;
    unicode-bidi: embed;
}
.product-price-card__countdown--unlimited {
    color: #059669;
    font-weight: 600;
}
.product-price-card--sale .product-price-card__current {
    color: #047857;
    font-size: 1.85rem;
}
.product-price-card--sale .product-price-card__old {
    font-size: 1.05rem;
}
.product-price-card--normal {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-color: #e2e8f0;
}
.product-price-card--normal:hover {
    border-color: #cbd5e1;
}
.product-price-card--free {
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #6ee7b7;
}
.product-price-card--free .product-price-card__badge {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
}
.product-price-card--vip {
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
}
.product-price-card__badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}
.product-price-card__badge--vip {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #fff;
}
.product-price-card--compact {
    padding: 1rem 1.25rem;
}
.product-price-card--compact .product-price-card__current {
    font-size: 1.5rem;
}
.product-price-card--compact .product-price-card__discount-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
}
.product-price-card--compact .product-price-card__countdown {
    font-size: 0.75rem;
}

/* بنر اقساط ترب‌پی — مینیمال، زیر قیمت محصول */
.product-torobpay-installment {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid #f3f4f6;
}
.product-torobpay-installment__logo {
    flex-shrink: 0;
    width: auto;
    height: 2.25rem;
    max-width: 5.5rem;
    border-radius: 0;
    object-fit: contain;
}
.product-torobpay-installment__text {
    min-width: 0;
}
.product-torobpay-installment__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}
.product-torobpay-installment__subtitle {
    margin: 0.125rem 0 0;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.45;
}

.product-vendor-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid #f3f4f6;
    color: inherit;
}
.product-vendor-mini__main {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1 1 auto;
    text-decoration: none;
    color: inherit;
}
a.product-vendor-mini__main:hover .product-vendor-mini__title {
    color: var(--color-primary, #2563eb);
}
.product-vendor-mini__follow,
a.product-vendor-mini__follow-btn {
    margin: 0;
    margin-inline-start: auto;
    flex-shrink: 0;
}
.product-vendor-mini__follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid var(--color-primary-hex, #2563eb);
    background: var(--color-primary-hex, #2563eb);
    color: #fff;
}
.product-vendor-mini__follow-btn .js-follow-label {
    color: inherit;
}
.product-meta-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.9rem;
    background: #f9fafb;
}
.product-meta-actions > form,
.product-meta-actions > #product-feedback-widget {
    display: contents;
}
.product-meta-actions__btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
    min-height: 3.35rem;
    padding: 0.4rem 0.15rem;
    border-radius: 0.7rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    font-size: 0.68rem;
    line-height: 1.25;
    text-align: center;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.product-meta-actions__btn:hover {
    color: var(--color-primary, #2563eb);
    border-color: #bfdbfe;
    background: #fff;
}
.js-feedback-like-btn.is-liked,
.js-feedback-like-btn.is-liked:hover {
    color: #e11d48;
    background-color: #fff1f2;
    border-color: #fecdd3;
}
.js-feedback-like-btn.is-liked svg,
.js-feedback-like-btn.is-liked:hover svg {
    fill: currentColor;
    stroke: currentColor;
    color: #e11d48;
}
.js-feedback-dislike-btn.is-disliked,
.js-feedback-dislike-btn.is-disliked:hover {
    color: #dc2626;
    background-color: #fef2f2;
    border-color: #fecaca;
}
.product-vendor-mini__follow-btn.is-following {
    background: #fff;
    color: #374151;
    border-color: #e5e7eb;
}
.product-vendor-mini__logo {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.625rem;
    object-fit: cover;
}
.product-vendor-mini__logo--letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
    font-size: 0.95rem;
}
.product-vendor-mini__text {
    min-width: 0;
}
.product-vendor-mini__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-vendor-mini__subtitle {
    margin: 0.125rem 0 0;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.45;
}

.bf-print-box__summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.bf-print-box__summary::-webkit-details-marker { display: none; }
.bf-print-box__summary::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-top: -0.2rem;
}
.bf-print-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}
.bf-print-modal[hidden] { display: none !important; }
.bf-print-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}
.bf-print-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 40rem;
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}
@media (min-width: 640px) {
    .bf-print-modal { align-items: center; }
}
.product-similar-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.6rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
}
.product-similar-nav:hover { border-color: #bfdbfe; color: var(--color-primary, #2563eb); }
.product-similar-slider {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    direction: ltr;
    flex-direction: row;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    cursor: grab;
    user-select: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.product-similar-slider::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.product-similar-slider.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}
.product-similar-slider img,
.product-similar-slider a {
    -webkit-user-drag: none;
    user-select: none;
}
.product-similar-slider > .fj-gallery-item {
    flex: 0 0 auto;
    float: none !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    container-type: normal;
    height: 190px;
    width: max-content;
    max-width: 72vw;
    scroll-snap-align: start;
}
.product-similar-slider > .fj-gallery-item > .product-card-justified-link,
.product-similar-slider > .fj-gallery-item .product-img-wrap {
    display: block;
    width: max-content;
    max-width: none;
    height: 100%;
}
.product-similar-slider > .fj-gallery-item .fj-gallery-img {
    display: block;
    width: auto !important;
    height: 190px !important;
    max-width: 72vw;
    object-fit: cover;
}
.product-similar-slider .product-card-action-btn {
    width: 1.85rem;
    height: 1.85rem;
}
.product-similar-slider .pcj-actions .pcj-ico,
.product-similar-slider .pcj-actions .w-4 {
    width: 0.95rem;
    height: 0.95rem;
}
.product-similar-slider > .fj-gallery-item--view-all {
    width: 9.5rem;
    height: 190px;
}
.product-similar-slider > .fj-gallery-item--view-all > a {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 190px;
}
@media (min-width: 768px) {
    .product-similar-slider > .fj-gallery-item,
    .product-similar-slider > .fj-gallery-item .fj-gallery-img,
    .product-similar-slider > .fj-gallery-item--view-all,
    .product-similar-slider > .fj-gallery-item--view-all > a {
        height: 230px;
    }
    .product-similar-slider > .fj-gallery-item {
        max-width: 340px;
    }
    .product-similar-slider > .fj-gallery-item .fj-gallery-img {
        height: 230px !important;
        max-width: 340px;
    }
    .product-similar-slider > .fj-gallery-item--view-all > a { min-height: 230px; }
}
