@font-face {
    font-family: iranyekan;
    font-style: normal;
    font-weight: normal;
    src: url('/storefront/assets/fonts/iranyekan/woff2/iranyekanwebregular(fanum).woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: iranyekan;
    font-style: normal;
    font-weight: bold;
    src: url('/storefront/assets/fonts/iranyekan/woff2/iranyekanwebbold(fanum).woff2') format('woff2');
    font-display: swap;
}

:root {
    --catalog-ink: #102630;
    --catalog-muted: #6c7d84;
    --catalog-line: #dce6e8;
    --catalog-teal: #058987;
    --catalog-teal-dark: #075b65;
    --catalog-mint: #e8f7f5;
    --catalog-paper: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 0; margin: 0; overflow-x: hidden; direction: rtl; color: var(--catalog-ink); background: #eaf0f1; font-family: iranyekan, Tahoma, sans-serif; }
button, a { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.digital-catalog { min-height: 100vh; padding: 16px; background: radial-gradient(circle at 10% 0, rgba(19, 157, 151, .14), transparent 35%), #eaf0f1; }

.digital-catalog-toolbar {
    position: sticky;
    top: 12px;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    width: min(1420px, calc(100% - 12px));
    min-height: 68px;
    margin: 0 auto 16px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 20px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 15px 40px rgba(18, 52, 61, .13);
    backdrop-filter: blur(16px);
}

.digital-catalog-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.digital-catalog-brand-mark { display: inline-flex; width: 43px; height: 43px; align-items: center; justify-content: center; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--catalog-teal-dark), #0aa49b); font-weight: 900; }
.digital-catalog-brand-logo { width: 68px; height: 48px; object-fit: contain; object-position: center; }
.digital-catalog-brand strong, .digital-catalog-brand small { display: block; }
.digital-catalog-brand small { margin-top: 2px; color: var(--catalog-muted); font-size: .7rem; }

.digital-catalog-page-nav { display: grid; grid-template-areas: "previous counter next"; grid-template-columns: auto minmax(108px, auto) auto; align-items: center; gap: 8px; padding: 5px; border-radius: 14px; background: #eef4f4; direction: ltr; }
.digital-catalog-page-nav button { display: inline-flex; min-width: 64px; height: 38px; align-items: center; justify-content: center; gap: 5px; padding: 0 9px; border: 0; border-radius: 11px; color: var(--catalog-teal-dark); background: #fff; direction: ltr; font-size: .74rem; font-weight: 800; }
.digital-catalog-page-nav button i { font-size: 1.25rem; }
.digital-catalog-page-nav-previous { grid-area: previous; }
.digital-catalog-page-nav-next { grid-area: next; }
.digital-catalog-page-counter { grid-area: counter; min-width: 108px; text-align: center; color: var(--catalog-muted); direction: rtl; font-size: .78rem; }
.digital-catalog-page-nav strong { color: var(--catalog-teal-dark); font-size: 1rem; }

.digital-catalog-toolbar-actions { display: flex; justify-content: flex-end; gap: 7px; }
.digital-catalog-toolbar-actions a, .digital-catalog-toolbar-actions button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border: 1px solid var(--catalog-line); border-radius: 12px; color: var(--catalog-ink); background: #fff; text-decoration: none; font-size: .76rem; }
.digital-catalog-toolbar-actions button[aria-pressed="false"] { color: var(--catalog-muted); background: #f3f6f6; }
.digital-catalog-toolbar-actions .digital-catalog-install { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--catalog-teal-dark), #0aa49b); box-shadow: 0 7px 18px rgba(5, 137, 135, .2); font-weight: 800; }

.catalog-pwa-help { position: fixed; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); left: 14px; z-index: 60; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 11px; max-width: 430px; margin: 0 auto; padding: 14px 16px; border: 1px solid rgba(5, 137, 135, .24); border-radius: 18px; color: var(--catalog-ink); background: rgba(255, 255, 255, .96); box-shadow: 0 20px 55px rgba(11, 43, 51, .24); backdrop-filter: blur(14px); }
.catalog-pwa-help > button { grid-row: 1 / span 2; grid-column: 1; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; color: var(--catalog-muted); background: #eef4f4; font-size: 1.15rem; }
.catalog-pwa-help-icon { grid-row: 1 / span 2; grid-column: 3; color: var(--catalog-teal); font-size: 2rem; }
.catalog-pwa-help strong, .catalog-pwa-help span { grid-column: 2; }
.catalog-pwa-help strong { font-size: .86rem; }
.catalog-pwa-help span { color: var(--catalog-muted); font-size: .72rem; line-height: 1.8; }

[data-catalog-standalone="true"] .digital-catalog-brand[data-catalog-exit] { pointer-events: none; cursor: default; }
[data-catalog-standalone="true"] .digital-catalog-toolbar-actions [data-catalog-exit],
[data-catalog-standalone="true"] .digital-catalog-empty [data-catalog-exit] { display: none !important; }

@media (display-mode: standalone) {
    .digital-catalog-brand[data-catalog-exit] { pointer-events: none; cursor: default; }
    .digital-catalog-toolbar-actions [data-catalog-exit],
    .digital-catalog-empty [data-catalog-exit] { display: none !important; }
}

.digital-catalog-pages { width: min(1420px, calc(100% - 12px)); margin: 0 auto; perspective: 1700px; }
.product-catalog-page { position: relative; display: grid; gap: 15px; min-height: calc(100vh - 116px); padding: 18px; border: 1px solid rgba(255, 255, 255, .85); border-radius: 30px; overflow: hidden; background: var(--catalog-paper); box-shadow: 0 28px 70px rgba(19, 52, 61, .12); transform-style: preserve-3d; animation: catalogPageIn .35s ease both; }
.product-catalog-page.is-page-enter-next { transform-origin: right center; animation: catalogPageTurnNext .74s cubic-bezier(.18, .8, .24, 1) both; }
.product-catalog-page.is-page-enter-previous { transform-origin: left center; animation: catalogPageTurnPrevious .74s cubic-bezier(.18, .8, .24, 1) both; }
.product-catalog-page.is-page-enter-next::after, .product-catalog-page.is-page-enter-previous::after { content: ""; position: absolute; inset: 0; z-index: 8; pointer-events: none; background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, .72) 48%, rgba(5, 137, 135, .12) 53%, transparent 72%); animation: catalogPageLightSweep .74s ease-out both; }

@keyframes catalogPageIn { from { opacity: 0; transform: translateY(8px) scale(.995); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes catalogPageTurnNext { 0% { opacity: .12; transform: translateX(92px) rotateY(-11deg) scale(.972); filter: blur(4px); } 68% { opacity: 1; transform: translateX(-8px) rotateY(1deg) scale(1.002); filter: blur(0); } 100% { opacity: 1; transform: translateX(0) rotateY(0) scale(1); filter: blur(0); } }
@keyframes catalogPageTurnPrevious { 0% { opacity: .12; transform: translateX(-92px) rotateY(11deg) scale(.972); filter: blur(4px); } 68% { opacity: 1; transform: translateX(8px) rotateY(-1deg) scale(1.002); filter: blur(0); } 100% { opacity: 1; transform: translateX(0) rotateY(0) scale(1); filter: blur(0); } }
@keyframes catalogPageLightSweep { from { opacity: 0; transform: translateX(54%); } 38% { opacity: 1; } to { opacity: 0; transform: translateX(-54%); } }

.product-catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 110px; padding: 18px 26px; border: 1px solid var(--catalog-line); border-radius: 24px; background: linear-gradient(120deg, #fff 0%, #f6fbfb 100%); }
.product-catalog-title > span, .product-catalog-section-title > span { color: var(--catalog-teal); font-size: .7rem; font-weight: 900; letter-spacing: .04em; }
.product-catalog-title h1 { margin: 3px 0 6px; font-size: clamp(1.35rem, 2.5vw, 2.4rem); font-weight: 900; line-height: 1.35; }
.product-catalog-title p { margin: 0; color: var(--catalog-muted); }
.product-catalog-title p strong { color: var(--catalog-teal-dark); }
.product-catalog-logo { display: flex; width: min(280px, 30vw); height: 78px; align-items: center; justify-content: center; padding: 6px 12px; border-right: 1px solid var(--catalog-line); color: var(--catalog-teal-dark); font-weight: 900; }
.product-catalog-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.product-catalog-gallery { position: relative; display: flex; min-height: clamp(310px, 48vh, 590px); align-items: stretch; justify-content: center; border-radius: 25px; overflow: hidden; background: linear-gradient(145deg, #edf5f5, #f8faf9); }
.product-catalog-slides { position: relative; width: 100%; min-height: inherit; }
.product-catalog-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 24px 60px 38px; animation: catalogSlideIn .3s ease both; }
.product-catalog-slide.is-gallery-enter-next { animation: catalogGalleryNext .58s cubic-bezier(.18, .78, .24, 1) both; }
.product-catalog-slide.is-gallery-enter-previous { animation: catalogGalleryPrevious .58s cubic-bezier(.18, .78, .24, 1) both; }
.product-catalog-slide.is-gallery-enter-next img, .product-catalog-slide.is-gallery-enter-previous img { animation: catalogGalleryImageFocus .64s cubic-bezier(.18, .78, .24, 1) both; }
.product-catalog-slide img { width: 100%; height: 100%; max-height: 520px; object-fit: contain; filter: drop-shadow(0 18px 26px rgba(11, 53, 61, .12)); }
/* نقطه‌های گالری پایین کادر می‌نشینند؛ بدون این فاصله، متن زیر عکس روی آن‌ها می‌افتاد */
.product-catalog-slide figcaption { position: absolute; right: 22px; bottom: 34px; left: 22px; color: var(--catalog-muted); text-align: center; font-size: .75rem; }
@keyframes catalogSlideIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes catalogGalleryNext { 0% { opacity: 0; transform: translateX(68px) scale(.94); filter: blur(4px); } 72% { opacity: 1; transform: translateX(-6px) scale(1.008); filter: blur(0); } 100% { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); } }
@keyframes catalogGalleryPrevious { 0% { opacity: 0; transform: translateX(-68px) scale(.94); filter: blur(4px); } 72% { opacity: 1; transform: translateX(6px) scale(1.008); filter: blur(0); } 100% { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); } }
@keyframes catalogGalleryImageFocus { from { transform: scale(.955); filter: saturate(.82) drop-shadow(0 8px 18px rgba(11, 53, 61, .08)); } to { transform: scale(1); filter: saturate(1) drop-shadow(0 18px 26px rgba(11, 53, 61, .12)); } }

.product-gallery-arrow { position: absolute; top: 50%; z-index: 3; display: flex; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1px solid rgba(7, 91, 101, .12); border-radius: 50%; color: var(--catalog-teal-dark); background: rgba(255, 255, 255, .92); box-shadow: 0 8px 22px rgba(14, 52, 60, .13); transform: translateY(-50%); font-size: 1.5rem; }
.product-gallery-arrow-previous { right: 16px; }
.product-gallery-arrow-next { left: 16px; }
.product-gallery-dots { position: absolute; bottom: 13px; left: 50%; z-index: 3; display: flex; gap: 6px; transform: translateX(-50%); }
.product-gallery-dots button, .digital-catalog-page-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #a8babc; transition: .25s; }
.product-gallery-dots button.is-active, .digital-catalog-page-dots button.is-active { width: 25px; background: var(--catalog-teal); }
.product-catalog-gallery-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #799094; }
.product-catalog-gallery-empty i { font-size: 3rem; color: #9bb5b8; }

.product-catalog-specifications { padding: 20px 22px 24px; border: 1px solid var(--catalog-line); border-radius: 24px; }
.product-catalog-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.product-catalog-section-title h2 { margin: 0; font-size: 1.2rem; font-weight: 900; }
.product-catalog-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.product-catalog-feature { display: flex; min-height: 142px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: 16px; background: #f5f9f9; text-align: center; }
.product-catalog-feature-icon { display: flex; width: 68px; height: 68px; flex: 0 0 68px; align-items: center; justify-content: center; border-radius: 16px; color: var(--catalog-teal); background: #fff; font-size: 1.9rem; }
.product-catalog-feature-icon img { width: 100%; height: 100%; padding: 6px; object-fit: contain; }
.product-catalog-feature h3 { margin: 0 0 5px; font-size: .9rem; font-weight: 900; }
.product-catalog-feature p { margin: 0; color: var(--catalog-muted); font-size: .75rem; line-height: 1.7; }
.product-catalog-features-empty { padding: 18px; border-radius: 14px; color: var(--catalog-muted); background: #f5f9f9; text-align: center; }

/* دکمه خرید؛ فقط وقتی صفحه به محصول موجودِ فروشگاه وصل باشد رندر می‌شود.
   عمداً کوچک و بدون کارت/نوار است و سمت چپ، درست زیر عکس می‌نشیند. */
.product-catalog-buy { display: flex; justify-content: flex-end; margin-top: -4px; }

.product-catalog-buy-button { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; padding: 0 20px; border-radius: 13px; color: #fff; background: linear-gradient(120deg, var(--catalog-teal-dark), #10a89f); box-shadow: 0 10px 22px rgba(7, 91, 101, .25); text-decoration: none; font-size: .88rem; font-weight: 900; transition: transform .18s ease, box-shadow .18s ease; }
.product-catalog-buy-button i { font-size: 1.2rem; }
.product-catalog-buy-button:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(7, 91, 101, .32); }
.product-catalog-buy-button:active { transform: translateY(0); }

.digital-catalog-footer-nav { display: grid; grid-template-areas: "previous dots next"; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: min(1360px, calc(100% - 30px)); margin: 13px auto 0; direction: ltr; }
.digital-catalog-footer-nav > button { display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; border: 1px solid var(--catalog-line); border-radius: 13px; color: var(--catalog-teal-dark); background: #fff; font-weight: 800; }
.digital-catalog-footer-previous { grid-area: previous; direction: ltr; }
.digital-catalog-footer-next { grid-area: next; direction: ltr; }
.digital-catalog-page-dots { grid-area: dots; display: flex; justify-content: center; gap: 7px; }

.digital-catalog-empty { display: flex; min-height: calc(100vh - 120px); flex-direction: column; align-items: center; justify-content: center; padding: 40px; border-radius: 30px; background: #fff; text-align: center; }
.digital-catalog-empty-icon { display: flex; width: 90px; height: 90px; align-items: center; justify-content: center; border-radius: 28px; color: var(--catalog-teal); background: var(--catalog-mint); font-size: 3rem; }
.digital-catalog-empty h1 { margin: 24px 0 8px; }
.digital-catalog-empty p { margin: 0 0 20px; color: var(--catalog-muted); }
.digital-catalog-empty a { padding: 12px 20px; border-radius: 13px; color: #fff; background: var(--catalog-teal); text-decoration: none; }

@media (max-width: 960px) {
    .digital-catalog-toolbar { grid-template-columns: 1fr auto; }
    .digital-catalog-page-nav { grid-row: 2; grid-column: 1 / -1; justify-self: center; }
    .product-catalog-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-catalog-page { min-height: auto; }
}

@media (max-width: 640px) {
    .digital-catalog { padding: 7px 7px calc(14px + env(safe-area-inset-bottom)); }
    .digital-catalog-toolbar, .digital-catalog-pages { width: 100%; }
    .digital-catalog-toolbar { position: sticky; top: 6px; grid-template-columns: 1fr; gap: 7px; padding: 11px 9px 9px; border-radius: 18px; }
    .digital-catalog-brand { grid-row: 1; grid-column: 1; min-height: 58px; justify-self: center; gap: 12px; padding: 1px 8px; }
    .digital-catalog-brand-logo { width: 76px; height: 58px; }
    .digital-catalog-brand-mark { width: 52px; height: 52px; border-radius: 15px; font-size: 1.05rem; }
    .digital-catalog-brand strong { font-size: 1.03rem; font-weight: 900; }
    .digital-catalog-brand small, .digital-catalog-toolbar-actions > :not(.digital-catalog-install) span { display: none; }
    .digital-catalog-page-nav { grid-row: 2; grid-column: 1; grid-template-columns: 1fr minmax(88px, auto) 1fr; width: 100%; max-width: 370px; justify-self: center; gap: 5px; padding: 4px; }
    .digital-catalog-page-nav button { min-width: 0; height: 34px; padding: 0 8px; font-size: .68rem; }
    .digital-catalog-page-nav button i { font-size: 1.05rem; }
    .digital-catalog-page-counter { font-size: .7rem; }
    .digital-catalog-page-nav strong { font-size: .9rem; }
    .digital-catalog-toolbar-actions { grid-row: 3; grid-column: 1; flex-wrap: nowrap; justify-content: center; gap: 6px; }
    .digital-catalog-toolbar-actions a, .digital-catalog-toolbar-actions button { width: 40px; min-height: 38px; justify-content: center; padding: 7px; border-radius: 12px; font-size: 1rem; }
    .digital-catalog-toolbar-actions .digital-catalog-install { order: -1; width: auto; min-width: 154px; padding: 8px 13px; border-radius: 13px; font-size: .72rem; line-height: 1.5; }
    .digital-catalog-toolbar-actions .digital-catalog-install i { display: inline-grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .14); font-size: 1.05rem; }
    .product-catalog-page { padding: 9px; border-radius: 20px; }
    .product-catalog-heading { min-height: 92px; padding: 13px 15px; border-radius: 17px; }
    .product-catalog-logo { width: 34%; height: 60px; padding-right: 9px; }
    .product-catalog-title h1 { font-size: 1.15rem; }
    .product-catalog-title p { font-size: .72rem; }
    .product-catalog-gallery { min-height: 330px; border-radius: 17px; }
    .product-catalog-slide { padding: 18px 38px 34px; }
    .product-gallery-arrow { width: 38px; height: 38px; }
    .product-gallery-arrow-previous { right: 7px; }
    .product-gallery-arrow-next { left: 7px; }
    .product-catalog-specifications { padding: 15px 12px; border-radius: 17px; }
    .product-catalog-section-title { display: block; }
    .product-catalog-section-title > span { display: block; margin-bottom: 3px; }
    .product-catalog-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .product-catalog-feature { min-height: 132px; padding: 11px 7px; }
    .product-catalog-feature-icon { width: 58px; height: 58px; flex-basis: 58px; }
    .product-catalog-buy-button { min-height: 42px; padding: 0 16px; font-size: .82rem; }
    .digital-catalog-footer-nav { width: 100%; grid-template-columns: auto 1fr auto; }
    .digital-catalog-footer-nav > button { gap: 4px; padding: 9px 10px; font-size: .72rem; }
}

@media (max-width: 430px) {
    .digital-catalog-brand { min-height: 54px; }
    .digital-catalog-brand-logo { width: 70px; height: 54px; }
    .digital-catalog-brand strong { font-size: .98rem; }
    .product-catalog-heading { min-height: 0; flex-direction: column; gap: 10px; padding: 14px; text-align: center; }
    .product-catalog-title { width: 100%; }
    .product-catalog-logo { width: 100%; height: 62px; padding: 8px 0 0; border-top: 1px solid var(--catalog-line); border-right: 0; }
    .product-catalog-gallery { min-height: 300px; }
    .product-catalog-slide { padding: 15px 34px 34px; }
    .product-gallery-arrow { width: 36px; height: 36px; }
    .digital-catalog-page-counter { min-width: 88px; font-size: .72rem; }
    .digital-catalog-footer-nav { gap: 7px; }
    .digital-catalog-toolbar-actions .digital-catalog-install { min-width: 146px; padding-right: 10px; padding-left: 10px; }
}

@media (max-width: 350px) {
    .product-catalog-features { grid-template-columns: 1fr; }
    .digital-catalog-page-nav button span, .digital-catalog-footer-nav > button span { display: none; }
}

@media (min-width: 641px) {
    .digital-catalog-install { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .product-catalog-page, .product-catalog-page.is-page-enter-next, .product-catalog-page.is-page-enter-previous, .product-catalog-slide, .product-catalog-slide.is-gallery-enter-next, .product-catalog-slide.is-gallery-enter-previous, .product-catalog-slide.is-gallery-enter-next img, .product-catalog-slide.is-gallery-enter-previous img { animation: none; }
    .product-catalog-page.is-page-enter-next::after, .product-catalog-page.is-page-enter-previous::after { display: none; }
}

/* ===== گالری با کشیدن انگشت (scroll-snap افقی) =====
   روی گوشی برای عوض کردن عکسِ یک محصول نیازی به زدن دکمه چپ/راست نیست.
   اسنپ عمودی بین صفحه‌ها عمداً برداشته شد؛ حالا هر بار فقط یک صفحه نشان داده می‌شود. */
html {
    scroll-behavior: smooth;
}

/* هر بار فقط یک صفحه دیده می‌شود؛ قبلاً همه صفحه‌ها زیر هم بودند و ته صفحه قبلی با
   سر صفحه بعدی هم‌زمان دیده می‌شد. جابه‌جایی با «بعدی/قبلی»، نقطه‌ها و ‎#page=N است.
   کلاس is-single-page را JS می‌گذارد؛ بدون JS همه صفحه‌ها مثل قبل پشت سر هم می‌آیند. */
.digital-catalog-pages.is-single-page > .product-catalog-page { display: none; }
.digital-catalog-pages.is-single-page > .product-catalog-page.is-current { display: grid; }

/* گالری: ریل افقی با اسنپ روی هر تصویر */
.product-catalog-slides {
    position: relative;
    display: flex;
    width: 100%;
    min-height: inherit;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    /* ریل عمداً LTR است: در کانتینر اسکرول راست‌به‌چپ، مرورگرها scrollLeft را
       متفاوت (منفی/معکوس) پیاده کرده‌اند و اسکرول برنامه‌ای قابل اتکا نیست.
       ترتیب تصویرها از ترتیب DOM می‌آید، پس چیدمان درست می‌ماند. */
    direction: ltr;
}

.product-catalog-slide {
    direction: rtl;
}

.product-catalog-slides::-webkit-scrollbar {
    display: none;
}

.product-catalog-slide {
    position: relative;
    inset: auto;
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: center;
    animation: none;
}

/* انیمیشن‌های جابه‌جایی قبلی با اسکرول تداخل داشتند */
.product-catalog-slide.is-gallery-enter-next,
.product-catalog-slide.is-gallery-enter-previous,
.product-catalog-page.is-page-enter-next,
.product-catalog-page.is-page-enter-previous {
    animation: none;
}

.product-catalog-page.is-page-enter-next::after,
.product-catalog-page.is-page-enter-previous::after {
    content: none;
}

/* راهنمای کوچک «برای دیدن تصویر بعدی بکشید» فقط روی لمسی و وقتی چند تصویر هست */
.product-catalog-gallery-hint {
    position: absolute;
    right: 50%;
    bottom: 10px;
    z-index: 4;
    display: none;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(7, 27, 36, .72);
    color: #fff;
    font-size: .72rem;
    transform: translateX(50%);
    pointer-events: none;
    transition: opacity .35s ease;
}

.product-catalog-gallery-hint.is-hidden {
    opacity: 0;
}

@media (hover: none) and (pointer: coarse) {
    .product-catalog-gallery-hint {
        display: inline-flex;
    }

    /* روی لمسی، پیمایش با کشیدن انجام می‌شود و فلش‌ها لازم نیستند */
    .product-gallery-arrow {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html,
    .product-catalog-slides {
        scroll-behavior: auto;
    }
}

/* در حالت اپ نصب‌شده، هیچ مسیری به سایت نشان داده نمی‌شود */
[data-catalog-standalone="true"] .digital-catalog-brand[data-catalog-exit] {
    pointer-events: none;
}
