/* ==========================================================================
   پوستهٔ Pando برای PlaySet
   ۱) پالت: متغیرهای قالب default را روشن/کهربایی می‌کند (صفحه‌های بدون نسخهٔ اختصاصی هم هماهنگ می‌شوند)
   ۲) چیدمان پاندو: منوی کناری (pd-*)، هیرو، کاشی دسته‌ها، کارت محصول، فوتر
   ========================================================================== */
:root {
    --pd-ink: #1b2b40;
    --pd-ink2: #344a63;
    --pd-muted: #6b7f96;
    --pd-line: #dfe9f4;
    --pd-paper: #f4f8fd;
    --pd-card: #ffffff;
    --pd-amber: #8cc4f2;
    --pd-amber-d: #2f7fc4;
    --pd-amber-soft: #e3f1fd;
    --pd-dark: #0f1d2e;
    --pd-r: 20px;
    --pd-rs: 12px;
    --pd-shadow: 0 10px 30px rgba(20,60,110, .07);
    --pd-shadow-lg: 0 24px 60px rgba(20,60,110, .14);
    --pd-side: 290px;

}

/* متغیرها با specificity بالاتر از :root تا css صفحه‌ها (checkout و ...) که :root را دوباره تعریف می‌کنند، پالت را برنگردانند */
html[data-theme="pando-blue"], html[data-theme="pando-blue"]:root, html[data-theme="pando-blue"] .checkout-main {
    /* ----- بازنویسی متغیرهای default ----- */
    --bg-primary: var(--pd-paper);
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f8ff;
    --text-primary: var(--pd-ink);
    --text-secondary: var(--pd-ink2);
    --text-muted: var(--pd-muted);
    --accent-purple: var(--pd-amber-d);
    --accent-cyan: #0e9fb5;
    --accent-pink: #d6336c;
    --accent-green: #12a06b;
    --accent-orange: #3a86c8;
    --accent-red: #dc3545;
    --gradient-hero: linear-gradient(135deg, #e3f1fd 0%, #f4f8fd 60%, #fff 100%);
    --gradient-btn: linear-gradient(135deg, #8cc4f2 0%, #4f9ede 100%);
    --gradient-btn-hover: linear-gradient(135deg, #a5d4f8 0%, #8cc4f2 100%);
    --shadow-card: var(--pd-shadow);
    --shadow-card-hover: 0 14px 36px rgba(20,60,110, .14);
    --shadow-neon: 0 0 0 rgba(0, 0, 0, 0);
    --shadow-cyan: 0 0 0 rgba(0, 0, 0, 0);
}

html[data-theme] body, body.pd-body {
    background: var(--pd-paper);
    color: var(--pd-ink);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}
.particles-bg { display: none !important; }
::selection { background: var(--pd-amber); color: var(--pd-ink); }

/* ---------- دکمه‌های پایه (متن تیره روی کهربایی) ---------- */
html[data-theme] .btn-primary, html[data-theme] .btn-checkout, html[data-theme] .btn-add-to-cart,
html[data-theme] .btn-add-cart, html[data-theme] .btn-apply, html[data-theme] .btn-continue {
    color: var(--pd-ink) !important;
    font-weight: 700;
}
html[data-theme] .btn-add-cart { border-radius: 12px; }
.pd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 50px; padding: 0 26px; border: 0; border-radius: 14px; cursor: pointer;
    background: var(--pd-amber); color: var(--pd-ink) !important; font-weight: 700; font-size: 15px;
    box-shadow: 0 8px 20px rgba(140,196,242, .32); transition: transform .25s, box-shadow .25s, background .25s;
}
.pd-btn:hover { background: var(--pd-ink); color: #fff !important; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, .2); }
.pd-link { color: var(--pd-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: color .2s, gap .2s; }
.pd-link:hover { color: var(--pd-amber-d); gap: 10px; }

/* ==========================================================================
   چیدمان اصلی
   ========================================================================== */
.pd-shell { display: block; min-height: 100vh; }
.pd-main { margin-right: var(--pd-side); min-height: 100vh; display: flex; flex-direction: column; }
.pd-main > .main-content, .pd-main > .container, .pd-main > section, .pd-main > div:not(.pd-footer) { width: 100%; }
html[data-theme="pando-blue"] .pd-main .main-content { max-width: 1280px; margin: 0 auto; padding: 32px 28px 10px; }
.pd-main > :not(footer):not(script) { flex: 0 0 auto; }
.pd-footer { margin-top: auto; }

/* ---------- نوار بالای موبایل ---------- */
.pd-topbar { display: none; }

/* ---------- منوی کناری ---------- */
.pd-side {
    position: fixed; top: 0; right: 0; bottom: 0; width: var(--pd-side); z-index: 1000;
    background: #fff; border-left: 1px solid var(--pd-line);
    padding: 26px 18px 18px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto;
}
.pd-close { display: none; }
.pd-logo { display: flex; align-items: center; gap: 12px; color: var(--pd-ink); }
.pd-logo-ic {
    width: 46px; height: 46px; border-radius: 14px; background: var(--pd-amber); color: var(--pd-ink);
    display: inline-flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 8px 18px rgba(140,196,242, .35);
}
.pd-logo-tx { font-size: 19px; font-weight: 800; letter-spacing: -.2px; }
.pd-search { position: relative; }
.pd-search input {
    width: 100%; height: 46px; padding: 0 16px 0 46px; border-radius: 14px; border: 1px solid var(--pd-line);
    background: var(--pd-paper); color: var(--pd-ink); font-size: 14px; outline: 0; transition: border-color .2s, box-shadow .2s;
}
.pd-search input:focus { border-color: var(--pd-amber); box-shadow: 0 0 0 4px rgba(140,196,242, .18); background: #fff; }
.pd-search button { position: absolute; left: 6px; top: 6px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--pd-ink); color: #fff; cursor: pointer; }
.pd-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.pd-nav li > a {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
    color: var(--pd-ink2); font-size: 14.5px; font-weight: 500; transition: background .2s, color .2s, transform .2s;
}
.pd-nav li > a > i:first-child { width: 20px; text-align: center; color: #9db0c4; font-size: 15px; transition: color .2s; }
.pd-nav li > a:hover { background: var(--pd-amber-soft); color: var(--pd-ink); transform: translateX(-3px); }
.pd-nav li > a:hover > i:first-child { color: var(--pd-amber-d); }
.pd-nav li.active > a { background: var(--pd-ink); color: #fff; font-weight: 600; transform: none; }
.pd-nav li.active > a > i:first-child { color: var(--pd-amber); }
.pd-chev { margin-right: auto; font-size: 11px; transition: transform .25s; }
.pd-has-sub.open > a .pd-chev { transform: rotate(180deg); }
.pd-nav .pd-sub { display: none; padding: 4px 14px 6px 0; margin-right: 22px; border-right: 2px solid var(--pd-line); }
.pd-nav .pd-has-sub.open > .pd-sub { display: flex; }
.pd-sub li > a { padding: 8px 12px; font-size: 13.5px; color: var(--pd-muted); }
.pd-sub2 { padding: 0 12px 4px 0 !important; margin: 0 !important; border: 0 !important; }
.pd-sub2 li > a { padding: 5px 12px; font-size: 12.5px; color: #94a8bd; }
.pd-sub2 { display: flex; list-style: none; flex-direction: column; }

.pd-actions { display: grid; gap: 8px; margin-top: 4px; }
.pd-act {
    position: relative; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px;
    border-radius: 14px; border: 1px solid var(--pd-line); background: #fff; color: var(--pd-ink); font-size: 14px; font-weight: 600; cursor: pointer;
    transition: border-color .2s, background .2s;
}
.pd-act:hover { border-color: var(--pd-amber); background: var(--pd-amber-soft); }
.pd-act-main { background: var(--pd-amber); border-color: var(--pd-amber); }
.pd-act-main:hover { background: var(--pd-ink); color: #fff; border-color: var(--pd-ink); }
.pd-badge {
    margin-right: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--pd-ink); color: #fff;
    font-style: normal; font-size: 12px; line-height: 22px; text-align: center;
}
.pd-side-contact {
    margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--pd-paper);
}
.pd-side-contact > i { width: 40px; height: 40px; border-radius: 12px; background: var(--pd-amber-soft); color: var(--pd-amber-d); display: inline-flex; align-items: center; justify-content: center; }
.pd-side-contact small { display: block; color: var(--pd-muted); font-size: 12px; line-height: 1.4; }
.pd-side-contact b { font-size: 14px; direction: ltr; unicode-bidi: plaintext; }

/* ==========================================================================
   صفحهٔ اصلی
   ========================================================================== */
.pd-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.pd-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .pd-reveal { opacity: 1; transform: none; transition: none; } }

.pd-hero {
    display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center;
    background: linear-gradient(135deg, #e3f1fd 0%, #f4f9ff 55%, #fff 100%); border: 1px solid var(--pd-line);
    border-radius: 28px; padding: 44px; overflow: hidden; margin-bottom: 22px;
}
.pd-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 30px; background: #fff; border: 1px solid var(--pd-line); color: var(--pd-amber-d); font-size: 13px; font-weight: 600; }
.pd-hero h1 { text-wrap: balance; margin: 16px 0 12px; font-size: clamp(26px, 3.2vw, 42px); font-weight: 800; line-height: 1.45; color: var(--pd-ink); }
.pd-hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--pd-amber) 62%); padding: 0 4px; }
.pd-hero p { color: var(--pd-muted); font-size: 15.5px; max-width: 560px; margin: 0 0 24px; }
.pd-hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.pd-hero-stats { list-style: none; display: flex; gap: 30px; margin: 30px 0 0; padding: 0; flex-wrap: wrap; }
.pd-hero-stats b { display: block; font-size: 22px; font-weight: 800; color: var(--pd-ink); line-height: 1.3; }
.pd-hero-stats span { font-size: 13px; color: var(--pd-muted); }
.pd-hero-media { position: relative; display: flex; justify-content: center; }
.pd-hero-disc {
    width: min(320px, 100%); aspect-ratio: 1; border-radius: 50%; background: #fff; border: 10px solid var(--pd-amber);
    box-shadow: var(--pd-shadow-lg); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pd-hero-disc img { width: 78%; height: 78%; object-fit: contain; }
.pd-float {
    position: absolute; bottom: 8px; right: 4%; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px;
    padding: 10px 16px; box-shadow: var(--pd-shadow-lg); border: 1px solid var(--pd-line);
}
.pd-float > i { width: 38px; height: 38px; border-radius: 12px; background: var(--pd-amber); display: inline-flex; align-items: center; justify-content: center; color: var(--pd-ink); }
.pd-float b { display: block; font-size: 14px; line-height: 1.4; }
.pd-float span { font-size: 12px; color: var(--pd-muted); }

.pd-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 38px; }
.pd-f { display: flex; align-items: center; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--pd-line); border-radius: var(--pd-rs); }
.pd-f-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--pd-amber-soft); color: var(--pd-amber-d); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.pd-f b { display: block; font-size: 14px; line-height: 1.5; }
.pd-f span { font-size: 12.5px; color: var(--pd-muted); line-height: 1.5; display: block; }

.pd-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 10px 0 18px; }
.pd-section-head h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--pd-ink); }
.pd-section-head p { margin: 2px 0 0; font-size: 13.5px; color: var(--pd-muted); }

.pd-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 40px; }
.pd-cat {
    position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--pd-line);
    border-radius: var(--pd-r); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pd-cat:hover { transform: translateY(-4px); box-shadow: var(--pd-shadow-lg); border-color: var(--pd-amber); }
.pd-cat img { width: 64px; height: 64px; object-fit: cover; border-radius: 16px; flex: none; }
.pd-cat-ic { width: 64px; height: 64px; border-radius: 16px; flex: none; background: var(--pd-amber-soft); color: var(--pd-amber-d); display: inline-flex; align-items: center; justify-content: center; font-size: 26px; }
.pd-cat-body b { display: block; font-size: 15.5px; color: var(--pd-ink); line-height: 1.5; }
.pd-cat-body span { font-size: 12.5px; color: var(--pd-muted); }

.pd-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 44px 0; }
.pd-promo-card { display: block; padding: 30px; border-radius: 24px; border: 1px solid var(--pd-line); transition: transform .25s, box-shadow .25s; }
.pd-promo-card:hover { transform: translateY(-4px); box-shadow: var(--pd-shadow-lg); }
.pd-promo-a { background: var(--pd-amber-soft); }
.pd-promo-b { background: var(--pd-dark); border-color: var(--pd-dark); }
.pd-promo-card small { color: var(--pd-amber-d); font-weight: 700; font-size: 13px; }
.pd-promo-card h3 { margin: 6px 0 8px; font-size: 22px; font-weight: 800; color: var(--pd-ink); }
.pd-promo-card p { margin: 0 0 14px; font-size: 14px; color: var(--pd-muted); }
.pd-promo-b h3, .pd-promo-b .pd-link { color: #fff; }
.pd-promo-b p { color: #9db0c4; }
.pd-promo-b small { color: var(--pd-amber); }

/* ---------- فیلتر دسته (cat-pill) ---------- */
.categories-wrapper { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
html[data-theme] .cat-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 30px; background: #fff;
    border: 1px solid var(--pd-line); color: var(--pd-ink2); font-size: 14px; font-weight: 500; box-shadow: none; transition: all .2s;
}
html[data-theme] .cat-pill i { color: #9db0c4; }
html[data-theme] .cat-pill:hover { border-color: var(--pd-amber); background: var(--pd-amber-soft); color: var(--pd-ink); transform: none; }
html[data-theme] .cat-pill.active { background: var(--pd-ink); border-color: var(--pd-ink); color: #fff; }
html[data-theme] .cat-pill.active i { color: var(--pd-amber); }
html[data-theme] .cat-pill .badge { background: var(--pd-paper); color: var(--pd-muted); border-radius: 12px; padding: 1px 8px; font-size: 12px; }
html[data-theme] .cat-pill.active .badge { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- کارت محصول (markup قالب default؛ AJAX هم همین را می‌سازد) ---------- */
.games-grid, #productsGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
html[data-theme] .game-card {
    background: #fff; border: 1px solid var(--pd-line); border-radius: var(--pd-r); box-shadow: none; overflow: hidden;
    color: var(--pd-ink); transition: transform .3s, box-shadow .3s, border-color .3s;
}
html[data-theme] .game-card:hover { transform: translateY(-6px); box-shadow: var(--pd-shadow-lg); border-color: transparent; }
html[data-theme] .game-card-img { background: var(--pd-paper); }
html[data-theme] .game-card-img img { transition: transform .5s; }
html[data-theme] .game-card:hover .game-card-img img { transform: scale(1.06); }
html[data-theme] .game-card-body h3 { color: var(--pd-ink); font-weight: 700; }
html[data-theme] .game-card-body .category-tag { background: var(--pd-amber-soft); color: var(--pd-amber-d); border-color: transparent; }
html[data-theme] .game-card .price, html[data-theme] .price { color: var(--pd-ink); font-weight: 800; }
html[data-theme] .old-price { color: #94a8bd; }
html[data-theme] .currency { color: var(--pd-muted); font-weight: 500; }
html[data-theme] .btn-add-cart { background: var(--pd-amber); border: 0; box-shadow: none; }
html[data-theme] .btn-add-cart:hover { background: var(--pd-ink); color: #fff !important; }

/* ---------- صفحه‌بندی و عنوان‌ها ---------- */
html[data-theme] .pagination a, html[data-theme] .pagination span {
    background: #fff; border: 1px solid var(--pd-line); color: var(--pd-ink2); border-radius: 12px;
}
html[data-theme] .pagination a:hover { border-color: var(--pd-amber); background: var(--pd-amber-soft); color: var(--pd-ink); }
html[data-theme] .pagination .active { background: var(--pd-ink); border-color: var(--pd-ink); color: #fff; }
html[data-theme] .section-header h2 { color: var(--pd-ink); }
.pd-home .blog-section { margin-top: 12px; }
html[data-theme] .blog-card { background: #fff; border: 1px solid var(--pd-line); border-radius: var(--pd-r); box-shadow: none; }
html[data-theme] .blog-card-body h3 a { color: var(--pd-ink); }
html[data-theme] .blog-category-tag { background: var(--pd-amber-soft); color: var(--pd-amber-d); }

/* ---------- سبد کشویی ---------- */
html[data-theme] .cart-sidebar { background: #fff; border-right: 1px solid var(--pd-line); box-shadow: var(--pd-shadow-lg); color: var(--pd-ink); }
html[data-theme] .cart-header { border-bottom: 1px solid var(--pd-line); }
html[data-theme] .cart-header h3, html[data-theme] .cart-item-info h5, html[data-theme] .cart-total { color: var(--pd-ink); }
html[data-theme] .cart-footer { border-top: 1px solid var(--pd-line); background: #fff; }
html[data-theme] .cart-item { border-bottom: 1px solid var(--pd-line); }
html[data-theme] .btn-checkout { background: var(--pd-amber); box-shadow: none; }
html[data-theme] .btn-checkout:hover { background: var(--pd-ink); color: #fff !important; }
html[data-theme] .toast { background: var(--pd-ink); color: #fff; border: 0; }

/* ---------- فوتر ---------- */
.pd-footer { margin: 50px 28px 0; padding: 36px 0 20px; border-top: 1px solid var(--pd-line); max-width: 1280px; width: calc(100% - 56px); align-self: center; }
.pd-footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pd-footer h4 { margin: 0 0 12px; font-size: 15px; font-weight: 800; color: var(--pd-ink); }
.pd-footer p { margin: 0 0 6px; font-size: 13.5px; color: var(--pd-muted); }
.pd-footer p i { width: 18px; color: var(--pd-amber-d); }
.pd-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pd-footer li a { font-size: 13.5px; color: var(--pd-muted); transition: color .2s; }
.pd-footer li a:hover { color: var(--pd-ink); }
.pd-socials { display: flex; gap: 8px; }
.pd-socials a { width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--pd-line); display: inline-flex; align-items: center; justify-content: center; color: var(--pd-ink2); transition: all .2s; }
.pd-socials a:hover { background: var(--pd-amber); border-color: var(--pd-amber); color: var(--pd-ink); }
.pd-footer-bottom { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 26px; padding-top: 16px; border-top: 1px dashed var(--pd-line); font-size: 12.5px; color: var(--pd-muted); }
.pd-footer-bottom a { color: var(--pd-ink); font-weight: 600; }

/* ==========================================================================
   صفحه‌های مستقل (ورود، ثبت‌نام، داشبورد، تعمیر) — css آن‌ها رنگ تیره ثابت دارد
   ========================================================================== */
html[data-theme="pando-blue"] body.pd-standalone { background: var(--pd-paper); background-image: none; color: var(--pd-ink); }

/* ==========================================================================
   ریسپانسیو
   ========================================================================== */
@media (max-width: 1100px) {
    .pd-features { grid-template-columns: repeat(2, 1fr); }
    .pd-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
    .pd-main { margin-right: 0; }
    .pd-topbar {
        position: sticky; top: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 10px;
        height: 60px; padding: 0 14px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--pd-line);
    }
    .pd-burger { width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--pd-paper); display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 11px; cursor: pointer; }
    .pd-burger span { display: block; height: 2px; background: var(--pd-ink); border-radius: 2px; }
    .pd-brand { font-weight: 800; font-size: 16px; color: var(--pd-ink); display: inline-flex; align-items: center; gap: 8px; }
    .pd-brand i { color: var(--pd-amber-d); }
    .pd-top-cart { position: relative; width: 42px; height: 42px; border-radius: 12px; background: var(--pd-amber); color: var(--pd-ink); display: inline-flex; align-items: center; justify-content: center; }
    .pd-top-cart .pd-badge { position: absolute; top: -6px; left: -6px; margin: 0; }
    .pd-side { transform: translateX(100%); transition: transform .3s ease; width: min(86vw, 330px); box-shadow: var(--pd-shadow-lg); }
    .pd-side.show { transform: none; }
    .pd-close { display: inline-flex; position: absolute; top: 14px; left: 14px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--pd-paper); align-items: center; justify-content: center; cursor: pointer; color: var(--pd-ink); }
    .pd-overlay { z-index: 990; }
    body.pd-lock { overflow: hidden; }
    .pd-hero { grid-template-columns: 1fr; padding: 26px 20px; }
    .pd-hero-media { order: -1; }
    .pd-hero-disc { width: 190px; border-width: 7px; }
    .pd-float { display: none; }
    html[data-theme="pando-blue"] .pd-main .main-content { padding: 20px 14px 6px; }
    .pd-footer { margin: 36px 14px 0; width: calc(100% - 28px); }
}
@media (max-width: 640px) {
    .pd-features, .pd-promo, .pd-footer-grid { grid-template-columns: 1fr; }
    .games-grid, #productsGrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pd-hero-stats { gap: 20px; }
}

/* ==========================================================================
   سبک‌سازی: افکت‌های دائمی (آتش، جرقه، چرخش، blur) در قالب default برای هر کارت
   اجرا می‌شود و روی سیستم‌های ضعیف مرورگر را سنگین می‌کند؛ در pando خاموش‌اند.
   ========================================================================== */
html[data-theme="pando-blue"] .pd-main *,
html[data-theme="pando-blue"] .pd-main *::before,
html[data-theme="pando-blue"] .pd-main *::after {
    animation: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
html[data-theme="pando-blue"] .pd-main .fa-spin, html[data-theme="pando-blue"] .pd-main .fa-spinner {
    animation: pdspin 1s linear infinite !important;
}
html[data-theme="pando-blue"] .fire-sparks, html[data-theme="pando-blue"] .spark { display: none !important; }
@keyframes pdspin { to { transform: rotate(360deg); } }

/* کارت وبلاگ در default با انیمیشن ظاهر می‌شد (opacity:0)؛ چون انیمیشن‌ها خاموش‌اند، مستقیم نمایان می‌شود */
html[data-theme="pando-blue"] .blog-card { opacity: 1 !important; transform: none !important; backdrop-filter: none; }

/* ==========================================================================
   کاشی‌های دسته (masonry پاندو) و کارت محصول پاندو (single-product-wrapper)
   ========================================================================== */
.pd-tiles { column-count: 3; column-gap: 18px; margin-bottom: 40px; }
.single-products-catagory { break-inside: avoid; margin-bottom: 18px; }
.single-products-catagory a {
    position: relative; display: block; border-radius: 22px; overflow: hidden; background: #fff;
    box-shadow: var(--pd-shadow); transform: translateZ(0);
}
.single-products-catagory a img { display: block; width: 100%; height: auto; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.single-products-catagory:hover a img, .single-products-catagory:hover .pd-tile-ph i { transform: scale(1.07); }
.single-products-catagory a::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(15,29,46, .74) 0%, rgba(15,29,46, .28) 26%, rgba(15,29,46, 0) 46%);
}
.single-products-catagory .hover-content { position: absolute; z-index: 5; right: 0; left: 0; bottom: 0; padding: 22px 24px; text-align: right; }
.single-products-catagory .hover-content .line { width: 34px; height: 4px; border-radius: 4px; margin-bottom: 12px; background: var(--pd-amber); transition: width .4s; }
.single-products-catagory:hover .hover-content .line { width: 64px; }
.single-products-catagory .hover-content p { margin: 0 0 4px; color: rgba(255, 255, 255, .85) !important; font-size: 13px; line-height: 1.4; }
.single-products-catagory .hover-content h4 { margin: 0; color: #fff !important; font-size: 19px; font-weight: 700; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
/* بدون تصویر: پس‌زمینهٔ رنگی با آیکن، ارتفاع‌ها متنوع مثل masonry */
.pd-tile-ph { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 4.6; background: linear-gradient(145deg, #8cc4f2, #2f7fc4); color: rgba(255, 255, 255, .92); font-size: 56px; overflow: hidden; }
.pd-t1 .pd-tile-ph { aspect-ratio: 4 / 3; background: linear-gradient(145deg, #223449, #0f1d2e); }
.pd-t2 .pd-tile-ph { aspect-ratio: 4 / 5.4; background: linear-gradient(145deg, #b5dbf9, #8cc4f2); color: #1b2b40; }
.pd-t3 .pd-tile-ph { aspect-ratio: 1 / 1; background: linear-gradient(145deg, #3b5068, #223449); }
.pd-t4 .pd-tile-ph { aspect-ratio: 4 / 3.6; }
.pd-tile-ph i { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }

#productsGrid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.single-product-wrapper {
    position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pd-line); border-radius: var(--pd-r);
    padding: 12px 12px 16px; overflow: hidden; transition: transform .35s, box-shadow .35s, border-color .35s;
}
.single-product-wrapper:hover { transform: translateY(-5px); box-shadow: var(--pd-shadow-lg); border-color: transparent; }
.single-product-wrapper .product-img { position: relative; border-radius: 14px; background: #e8f0f9; overflow: hidden; aspect-ratio: 1 / 1; }
.single-product-wrapper .pd-img-link { display: block; width: 100%; height: 100%; }
.single-product-wrapper .product-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .5s; }
.single-product-wrapper .product-img .hover-img { opacity: 0; transform: scale(1.05); }
.single-product-wrapper:hover .product-img .hover-img { opacity: 1; transform: scale(1); }
.single-product-wrapper:hover .product-img img:not(.hover-img) { transform: scale(1.05); }
.pd-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 46px; color: #bcd0e4; }
.single-product-wrapper .pd-info { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 14px 6px 0; }
.single-product-wrapper .product-meta-data { min-width: 0; flex: 1; }
.single-product-wrapper .product-meta-data .line { display: none; }
.single-product-wrapper .product-price { margin: 0 0 2px; color: var(--pd-ink); font-size: 17px; font-weight: 800; line-height: 1.5; }
.single-product-wrapper .product-price .old-price { display: block; font-size: 12px; font-weight: 500; color: #94a8bd; }
.single-product-wrapper .cur { font-size: 11.5px; font-weight: 500; color: var(--pd-muted); margin-right: 4px; }
.single-product-wrapper .product-meta-data a h6 { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.7; color: var(--pd-ink2); }
.single-product-wrapper .product-meta-data a:hover h6 { color: var(--pd-amber-d); }
.pd-sale-left { display: block; margin-top: 4px; font-size: 11.5px; color: #e5484d; }
.single-product-wrapper .ratings-cart { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.single-product-wrapper .ratings i { font-size: 11px; color: #f3b72a; margin: 0 1px; }
.single-product-wrapper .cart a {
    width: 40px; height: 40px; border-radius: 13px; background: var(--pd-paper); display: grid; place-items: center;
    color: var(--pd-ink); font-size: 16px; transition: all .3s; cursor: pointer;
}
.single-product-wrapper .cart a:hover { background: var(--pd-amber); transform: rotate(-8deg) scale(1.08); }
.wish {
    position: absolute; top: 12px; right: 12px; z-index: 20; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; color: var(--pd-ink);
    display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); opacity: 0; transform: translateY(-6px); transition: all .3s;
}
.single-product-wrapper:hover .wish, .wish.on { opacity: 1; transform: none; }
.wish:hover { background: var(--pd-ink); color: var(--pd-amber); }
.wish.on { color: #e5484d; }
@media (hover: none) { .wish { opacity: 1; transform: none; } }
.p-badge { position: absolute; top: 12px; left: 12px; z-index: 20; padding: 3px 12px; border-radius: 999px; background: var(--pd-ink); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.8; }
.p-badge.sale { background: #e5484d; }
.p-badge.new { background: var(--pd-amber); color: var(--pd-ink); }

@media (max-width: 991px) { .pd-tiles { column-count: 2; column-gap: 12px; } .single-products-catagory { margin-bottom: 12px; } }
@media (max-width: 640px) {
    #productsGrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .single-product-wrapper { padding: 8px 8px 12px; }
    .single-product-wrapper .pd-info { flex-direction: column; align-items: stretch; }
    .single-product-wrapper .ratings-cart { flex-direction: row-reverse; justify-content: space-between; align-items: center; }
    .single-products-catagory .hover-content { padding: 12px 14px; }
    .single-products-catagory .hover-content h4 { font-size: 14px; }
    .single-products-catagory .hover-content p { font-size: 11px; }
}

/* اسلایدر قیمت: مسیر و دستگیره واضح‌تر روی پس‌زمینهٔ روشن */
html[data-theme="pando-blue"] .price-slider-track { height: 6px; background: #d3e2f1; border-radius: 6px; }
html[data-theme="pando-blue"] .price-slider-range { background: var(--pd-amber); }
html[data-theme="pando-blue"] .price-range-slider input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; background: var(--pd-amber); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
html[data-theme="pando-blue"] .price-range-slider input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; background: var(--pd-amber); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
html[data-theme="pando-blue"] .price-range-slider input[type="range"] { touch-action: none; }

/* ==========================================================================
   محصولات ویژه: اسلایدر خودکار از کارت‌های هم‌اندازه
   ========================================================================== */
.pd-slider { position: relative; margin-bottom: 40px; }
.pd-slider-track {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; -ms-overflow-style: none; padding: 4px 2px 10px;
}
.pd-slider-track::-webkit-scrollbar { display: none; }
.pd-slide { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; min-width: 0; }
.pd-slide .single-product-wrapper { height: 100%; margin: 0; }
.pd-slider-nav { display: flex; gap: 8px; }
.pd-slider-nav button {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--pd-line); background: #fff; color: var(--pd-ink);
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .2s;
}
.pd-slider-nav button:hover { background: var(--pd-amber); border-color: var(--pd-amber); }
@media (max-width: 1100px) { .pd-slide { flex-basis: calc((100% - 40px) / 3); } }
@media (max-width: 760px)  { .pd-slide { flex-basis: calc((100% - 14px) / 2); } .pd-slider-track { gap: 14px; } }
.pd-slider-track { padding-top: 10px; }
.single-product-wrapper .pd-info { box-sizing: border-box; }
.pd-related { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.pd-related .single-product-wrapper { margin: 0; }

/* کارت mini در «محصولات مشابه»: فقط تصویر و نام */
.pd-mini { display: block; text-decoration: none; padding: 10px 10px 14px; color: var(--pd-ink); }
.pd-mini .pd-mini-name { margin: 12px 4px 0; font-size: 14.5px; font-weight: 600; line-height: 1.8; color: var(--pd-ink2); text-align: right; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-mini:hover .pd-mini-name { color: var(--pd-amber-d); }
.pd-related { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* توضیحات محصول (صفحهٔ محصول): جعبهٔ روشن با متن خوانا؛ در قالب default پس‌زمینهٔ آبی-تیره داشت */
html[data-theme="pando-blue"] .product-description-container .product-description {
    background: #fff; color: var(--pd-ink2); border: 1px solid var(--pd-line); border-radius: 16px; line-height: 2.1;
}
html[data-theme="pando-blue"] .product-description-container .product-description * { color: inherit; }
html[data-theme="pando-blue"] .product-description-container .product-description a { color: var(--pd-amber-d); }
html[data-theme="pando-blue"] .product-description-container .product-description.collapsed::after,
html[data-theme="pando-blue"] .product-description-container .product-description.expanded::after { background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0)); }
html[data-theme="pando-blue"] .product-description-container .product-description:hover { border-color: var(--pd-amber); }
html[data-theme="pando-blue"] .description-title { color: var(--pd-ink); }
html[data-theme="pando-blue"] .description-icon { background: var(--pd-amber-soft); color: var(--pd-amber-d); }
html[data-theme="pando-blue"] .description-badge { background: var(--pd-paper); color: var(--pd-ink2); border-color: var(--pd-line); }
html[data-theme="pando-blue"] .description-toggle { background: var(--pd-amber-soft); color: var(--pd-ink); border-color: transparent; }
html[data-theme="pando-blue"] .description-toggle:hover { background: var(--pd-amber); }
html[data-theme="pando-blue"] .description-toggle .toggle-icon { color: var(--pd-amber-d); }

/* ===== تگ‌ها، دستهٔ کارت و دکمهٔ خرید ===== */
.pd-tags { position: absolute; top: 12px; left: 12px; z-index: 20; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; pointer-events: none; }
.pd-tag { padding: 2px 11px; border-radius: 999px; background: var(--pd-ink); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.8; }
.pd-tag.badge-sale { background: #e5484d; }
.pd-tag.badge-new { background: var(--pd-amber); color: var(--pd-ink); }
.pd-tag.badge-featured { background: #fff; color: var(--pd-amber-d); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.pd-tag.badge-red { background: #7c2d12; }
.pd-tag.badge-hot { background: #f97316; }
.pd-cat { display: inline-block; margin-bottom: 4px; padding: 1px 9px; border-radius: 999px; background: var(--pd-paper); color: var(--pd-muted); font-size: 11px; line-height: 1.8; }
.single-product-wrapper .pd-buy {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border: 0; border-radius: 13px;
    background: var(--pd-amber); color: var(--pd-ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all .3s; white-space: nowrap;
}
.single-product-wrapper .pd-buy:hover { background: var(--pd-amber-d); transform: translateY(-2px); }
.single-product-wrapper .pd-buy i { font-size: 14px; }

.pd-search-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.pd-search-grid .single-product-wrapper { margin: 0; }
@media (max-width: 640px) { .pd-search-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* اسلایدر قیمت: کنترل با JS روی کل نوار (pando.js)؛ ورودی‌های native فقط نمایش‌اند */
html[data-theme="pando-blue"] .price-range-slider { touch-action: none; cursor: pointer; user-select: none; height: 34px; }
html[data-theme="pando-blue"] .price-range-slider input[type="range"],
html[data-theme="pando-blue"] .price-range-slider input[type="range"]::-webkit-slider-thumb,
html[data-theme="pando-blue"] .price-range-slider input[type="range"]::-moz-range-thumb { pointer-events: none !important; }

/* چیدمان کارت: تصویر، بعد متن در تمام‌عرض، بعد ردیف دکمه (نه کنار هم) */
.single-product-wrapper .pd-info { flex-direction: column !important; align-items: stretch !important; gap: 10px; }
.single-product-wrapper .product-meta-data { width: 100%; text-align: right; }
.single-product-wrapper .ratings-cart { flex-direction: row-reverse !important; justify-content: space-between !important; align-items: center !important; width: 100%; }
.single-product-wrapper .ratings-cart .pd-buy { flex: 1; }
.single-product-wrapper .ratings-cart .ratings + .pd-buy { flex: 1; margin-right: 10px; }

/* search.page.css بعد از theme.css لود می‌شود و گرید را به ۲۲۰px برمی‌گرداند؛ با اولویت بالاتر هم‌اندازهٔ صفحهٔ اصلی می‌کنیم */
html[data-theme="pando-blue"] .games-grid.pd-search-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important; gap: 20px !important; }
@media (max-width: 640px) { html[data-theme="pando-blue"] .games-grid.pd-search-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; } }
html[data-theme="pando-blue"] .pd-search-grid .single-product-wrapper { margin: 0; width: auto; max-width: none; }

/* دکمهٔ خرید: استایل .btn-add-cart در search.css/search.page.css را خنثی می‌کند تا مثل صفحهٔ اصلی باشد */
html[data-theme="pando-blue"] .single-product-wrapper .btn-add-cart.pd-buy {
    display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 6px !important;
    width: auto !important; height: 40px !important; padding: 0 16px !important; margin: 0 !important; border: 0 !important; border-radius: 13px !important;
    background: var(--pd-amber) !important; color: var(--pd-ink) !important; box-shadow: none !important; transform: none;
    font: inherit !important; font-size: 13.5px !important; font-weight: 700 !important; white-space: nowrap; cursor: pointer;
}
html[data-theme="pando-blue"] .single-product-wrapper .btn-add-cart.pd-buy:hover { background: var(--pd-amber-d) !important; color: var(--pd-ink) !important; transform: translateY(-2px); }
html[data-theme="pando-blue"] .single-product-wrapper .btn-add-cart.pd-buy i { color: inherit !important; font-size: 14px !important; }
html[data-theme="pando-blue"] .single-product-wrapper .ratings-cart .btn-add-cart.pd-buy { flex: 1 !important; }

/* مسیر راهنما (breadcrumb): در صفحهٔ محصول استایل نداشت؛ یکسان برای همهٔ صفحه‌ها */
html[data-theme] .breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; padding: 12px 18px;
    background: #fff; border: 1px solid var(--pd-line); border-radius: 16px; font-size: 13px; color: var(--pd-muted); line-height: 1.8;
}
html[data-theme] .breadcrumb a { color: var(--pd-ink2); text-decoration: none; transition: color .2s; }
html[data-theme] .breadcrumb a:hover { color: var(--pd-amber-d); }
html[data-theme] .breadcrumb i { font-size: 10px; color: var(--pd-muted); opacity: .7; }
html[data-theme] .breadcrumb span { color: var(--pd-ink); font-weight: 600; }
@media (max-width: 640px) { html[data-theme] .breadcrumb { padding: 10px 14px; font-size: 12px; border-radius: 12px; } }

/* نوار native اسلایدر قیمت دیده نشود (فقط track و دستگیره‌های قالب) */
html[data-theme] .price-range-slider input[type="range"] { -webkit-appearance: none; appearance: none; background: transparent !important; box-shadow: none !important; border: 0 !important; }
html[data-theme] .price-range-slider input[type="range"]::-webkit-slider-runnable-track { background: transparent !important; border: 0 !important; box-shadow: none !important; }
html[data-theme] .price-range-slider input[type="range"]::-moz-range-track { background: transparent !important; }

/* مسیر اسلایدر به اندازهٔ نصف دستگیره از دو طرف داخل‌تر است تا دستگیره دقیقاً به ابتدا/انتهای نوار برسد */
html[data-theme] .price-range-slider .price-slider-track { position: absolute; left: 11px; right: 11px; width: auto; top: 50%; transform: translateY(-50%); }
html[data-theme] .price-range-slider input[type="range"] { margin: 0; }

/* هم‌اندازه‌سازی اسلایدر قیمت در همهٔ صفحه‌ها (جستجو/دسته‌بندی) */
html[data-theme] .price-range-slider input[type="range"] { height: 4px !important; min-height: 0 !important; padding: 0 !important; width: 100% !important; }
