/* ==========================================================================
   YarSub — design mockup stylesheet
   Direction: modern digital store (dark hero + light product grids)
   Primary: violet-600; Accent: cyan-500; RTL / Persian
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root {
    /* palette */
    --color-primary: #7c3aed;
    --color-primary-hover: #6d28d9;
    --color-primary-soft: #f3ecff;
    --color-primary-glow: rgba(124, 58, 237, 0.4);

    --color-accent: #06b6d4;
    --color-accent-hover: #0891b2;
    --color-accent-soft: #e0f7fa;

    --color-gaming: #f472b6;
    --color-gaming-glow: rgba(244, 114, 182, 0.35);

    --color-dark: #0b0b12;
    --color-dark-2: #131322;
    --color-dark-card: #1b1b2e;
    --color-dark-border: #2a2a3f;

    --color-bg: #ffffff;
    --color-bg-soft: #f8fafc;
    --color-bg-strip: #f1f5f9;
    --color-border: #e2e8f0;
    --color-border-soft: #eef1f6;

    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-text-faint: #94a3b8;

    --color-on-dark: #f1f5f9;
    --color-on-dark-muted: #94a3b8;

    --color-danger: #ef4444;
    --color-success: #10b981;
    --color-warning: #f59e0b;

    /* geometry */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 0 32px rgba(124, 58, 237, 0.35);

    --container-max: 1360px;
    --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-family: 'Vazirmatn', Tahoma, 'IRANSans', system-ui, sans-serif;
    background: var(--color-bg-soft);
    color: var(--color-text);
    scroll-behavior: smooth;
}

body { min-height: 100vh; line-height: 1.6; }

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Utility: buttons, badges, chips
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn--primary {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
    box-shadow: 0 6px 20px var(--color-primary-glow);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px var(--color-primary-glow); }
.btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); }
.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--block { width: 100%; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}
.badge--discount { background: var(--color-danger); color: #fff; }
.badge--new { background: var(--color-success); color: #fff; }
.badge--hot { background: linear-gradient(135deg, #f472b6, #ef4444); color: #fff; }
.badge--soft { background: var(--color-primary-soft); color: var(--color-primary-hover); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-on-dark);
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* ==========================================================================
   Header
   ========================================================================== */

.topbar {
    background: var(--color-dark);
    color: var(--color-on-dark-muted);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.topbar__links { display: flex; gap: 20px; }
.topbar__links a { transition: color 0.15s; }
.topbar__links a:hover { color: var(--color-on-dark); }
.topbar__promo { display: flex; align-items: center; gap: 6px; color: var(--color-accent); font-weight: 500; }

.header {
    background: var(--color-dark-2);
    color: var(--color-on-dark);
    position: sticky;
    top: 0;
    z-index: 100;   /* raised so mega-menu panel confidently stacks above hero/page content */
    border-bottom: 1px solid var(--color-dark-border);
}
.header__row {
    height: var(--header-h);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
}
.brand__mark {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    display: grid; place-items: center;
    box-shadow: var(--shadow-glow);
}
.brand__mark svg { width: 22px; height: 22px; color: #fff; }
.brand__name { background: linear-gradient(90deg, #fff, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }

.search {
    position: relative;
    max-width: 620px;
    width: 100%;
    justify-self: center;
}
.search__input {
    width: 100%;
    height: 46px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    color: #fff;
    padding: 0 52px 0 20px;
    transition: all 0.2s;
    font-size: 14px;
}
.search__input::placeholder { color: var(--color-on-dark-muted); }
.search__input:focus { outline: none; border-color: var(--color-primary); background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 4px var(--color-primary-glow); }
.search__btn {
    position: absolute;
    inset-inline-end: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: grid; place-items: center;
    transition: background 0.15s;
}
.search__btn:hover { background: var(--color-primary-hover); }
.search__btn svg { width: 16px; height: 16px; }

.header__actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
    position: relative;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: grid; place-items: center;
    color: var(--color-on-dark);
    transition: all 0.15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn__count {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    min-width: 20px; height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--color-gaming);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: grid; place-items: center;
    box-shadow: 0 0 0 2px var(--color-dark-2);
}

/* category nav */
.catnav {
    background: var(--color-dark-2);
    border-bottom: 1px solid var(--color-dark-border);
}
.catnav__row {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    /* NOTE: no overflow-x on desktop — it would implicitly clip overflow-y and
       hide the mega-menu panel. Horizontal scroll is re-enabled on mobile
       where the mega-menu uses position:fixed and escapes clipping anyway. */
}
@media (max-width: 780px) {
    .catnav__row { overflow-x: auto; }
}
.catnav__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    color: var(--color-on-dark);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.15s;
}
.catnav__item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.catnav__item--active { background: rgba(124, 58, 237, 0.2); color: #c4b5fd; }
.catnav__item svg { width: 16px; height: 16px; }
.catnav__flame { color: var(--color-gaming); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    background:
        radial-gradient(1000px 500px at 80% 20%, rgba(124, 58, 237, 0.35), transparent 60%),
        radial-gradient(800px 400px at 20% 80%, rgba(6, 182, 212, 0.25), transparent 60%),
        linear-gradient(180deg, #0b0b12 0%, #1a1030 100%);
    color: #fff;
    padding: 90px 0 110px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.4);
    font-size: 13px;
    color: #ddd6fe;
    margin-bottom: 24px;
}
.hero__eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 12px var(--color-accent); }
.hero__title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero__title span {
    background: linear-gradient(90deg, #a855f7, #06b6d4);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__subtitle {
    font-size: 18px;
    color: var(--color-on-dark-muted);
    margin-bottom: 32px;
    max-width: 560px;
}
.hero__actions { display: flex; gap: 12px; margin-bottom: 40px; }
.hero__stats { display: flex; gap: 32px; }
.hero__stat-value { font-size: 28px; font-weight: 700; color: #fff; line-height: 1; }
.hero__stat-label { font-size: 13px; color: var(--color-on-dark-muted); margin-top: 6px; }

/* hero visual — polished v2, fan layout */
.hero__visual { position: relative; height: 500px; }
.hero-card {
    position: absolute;
    width: 250px;
    border-radius: 22px;
    padding: 20px;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s, z-index 0s 0.4s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hero-card:hover {
    transform: translateY(-14px) rotate(0deg) scale(1.03) !important;
    box-shadow: 0 40px 70px rgba(124, 58, 237, 0.55), 0 0 0 1px rgba(255,255,255,0.25) inset;
    z-index: 20 !important;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s, z-index 0s;
}
/* mesh gradient bases + fan positioning */
.hero-card--1 {
    inset-inline-end: 270px; top: 60px;
    z-index: 1;
    transform: rotate(-8deg);
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 200, 240, 0.5), transparent 55%),
        radial-gradient(circle at 20% 90%, rgba(139, 92, 246, 0.6), transparent 60%),
        linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
}
.hero-card--2 {
    inset-inline-end: 135px; top: 10px;
    z-index: 3;
    transform: rotate(0deg);
    background:
        radial-gradient(circle at 90% 90%, rgba(255,255,255,0.15), transparent 50%),
        radial-gradient(circle at 10% 10%, rgba(139, 246, 255, 0.4), transparent 55%),
        linear-gradient(135deg, #06b6d4 0%, #7c3aed 100%);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset,
        0 0 40px rgba(6, 182, 212, 0.25);
}
.hero-card--3 {
    inset-inline-end: 0; top: 60px;
    z-index: 2;
    transform: rotate(8deg);
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 240, 180, 0.4), transparent 55%),
        radial-gradient(circle at 90% 90%, rgba(239, 68, 68, 0.6), transparent 55%),
        linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}
/* dot-grid pattern overlay */
.hero-card::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 14px 14px;
    mask-image: linear-gradient(180deg, black, transparent 90%);
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}
/* diagonal shine that sweeps on hover */
.hero-card::after {
    content: '';
    position: absolute;
    top: -100%; inset-inline-end: -30%;
    width: 60%; height: 300%;
    background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.28) 50%, transparent 60%);
    transform: rotate(25deg);
    transition: inset-inline-end 0.7s ease;
    pointer-events: none;
    z-index: 1;
}
.hero-card:hover::after { inset-inline-end: 130%; }

/* card header row */
.hero-card__top {
    display: flex; align-items: center; justify-content: space-between;
    position: relative; z-index: 2;
}
.hero-card__tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 10px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    font-size: 11px; font-weight: 600;
    border: 1px solid rgba(255,255,255,0.15);
}
.hero-card__tag svg { width: 12px; height: 12px; }
.hero-card__tag--hot { background: linear-gradient(135deg, #ef4444, #f472b6); border-color: rgba(255,255,255,0.3); }
.hero-card__rating {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 700;
    background: rgba(0,0,0,0.3);
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
}
.hero-card__rating svg { width: 12px; height: 12px; color: #fbbf24; }

/* central visual */
.hero-card__visual {
    position: relative;
    height: 96px;
    display: grid; place-items: center;
    z-index: 2;
}
.hero-card__icon-ring {
    width: 82px; height: 82px;
    border-radius: 24px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    display: grid; place-items: center;
    position: relative;
    box-shadow: 0 0 30px rgba(255,255,255,0.15);
}
.hero-card__icon-ring::before {
    content: '';
    position: absolute; inset: -6px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent 50%);
    z-index: -1;
    filter: blur(6px);
    opacity: 0.6;
}
.hero-card__icon-ring svg { width: 42px; height: 42px; color: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
/* orbiting dots for decoration */
.hero-card__orbit {
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 12px rgba(255,255,255,0.8);
}
.hero-card__orbit--1 { top: 6px; inset-inline-end: 40px; }
.hero-card__orbit--2 { bottom: 10px; inset-inline-start: 45px; width: 4px; height: 4px; }
.hero-card__orbit--3 { top: 40px; inset-inline-start: 12px; width: 3px; height: 3px; }

/* body */
.hero-card__body { position: relative; z-index: 2; }
.hero-card__eyebrow {
    font-size: 11px; font-weight: 600;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}
.hero-card__name {
    font-size: 19px; font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.3px;
}
.hero-card__amount {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #fff;
    background: rgba(0,0,0,0.3);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px dashed rgba(255,255,255,0.25);
}

/* footer */
.hero-card__foot {
    display: flex; align-items: flex-end; justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.15);
    position: relative; z-index: 2;
}
.hero-card__price-old {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    text-decoration: line-through;
    margin-bottom: 2px;
}
.hero-card__price-new {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.hero-card__price-unit { font-size: 11px; font-weight: 500; opacity: 0.75; margin-inline-start: 4px; }
.hero-card__go {
    width: 38px; height: 38px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    display: grid; place-items: center;
    color: #fff;
    transition: all 0.2s;
}
.hero-card__go:hover { background: #fff; color: var(--color-text); transform: scale(1.05); }
.hero-card__go svg { width: 16px; height: 16px; }

/* ==========================================================================
   Section
   ========================================================================== */

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--dark { background: var(--color-dark); color: var(--color-on-dark); }

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 24px;
    flex-wrap: wrap;
}
.section-head__title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.section-head__title span { color: var(--color-primary); }
.section-head__subtitle {
    color: var(--color-text-muted);
    margin-top: 8px;
}
.section-head__link {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.section-head__link:hover { text-decoration: underline; }

/* ==========================================================================
   Category tiles (big hero-like cards under hero)
   ========================================================================== */

.category-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: -70px;
    position: relative;
    z-index: 10;
}
.cat-tile {
    position: relative;
    padding: 26px;
    border-radius: 22px;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 20px 40px rgba(15, 23, 42, 0.25),
        0 0 0 1px rgba(255,255,255,0.08) inset;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s;
}
.cat-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(15,23,42,0.35), 0 0 0 1px rgba(255,255,255,0.2) inset;
}
/* mesh gradients per category */
.cat-tile--games {
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 190, 240, 0.55), transparent 55%),
        radial-gradient(circle at 90% 85%, rgba(124, 58, 237, 0.8), transparent 55%),
        linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
}
.cat-tile--subs {
    background:
        radial-gradient(circle at 90% 15%, rgba(255,255,255,0.15), transparent 55%),
        radial-gradient(circle at 10% 90%, rgba(6, 182, 212, 0.8), transparent 55%),
        linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}
.cat-tile--lic {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 220, 150, 0.5), transparent 55%),
        radial-gradient(circle at 85% 90%, rgba(239, 68, 68, 0.75), transparent 55%),
        linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}
/* dot pattern overlay */
.cat-tile::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.14) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: linear-gradient(180deg, black 30%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}
/* animated shine sweep on hover */
.cat-tile::after {
    content: '';
    position: absolute;
    top: -50%; inset-inline-end: -40%;
    width: 60%; height: 200%;
    background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
    transform: rotate(20deg);
    transition: inset-inline-end 0.8s ease;
    pointer-events: none;
}
.cat-tile:hover::after { inset-inline-end: 130%; }

/* head row: icon + count pill */
.cat-tile__head {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 20px;
}
.cat-tile__icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.28);
    display: grid; place-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15), 0 0 24px rgba(255,255,255,0.15) inset;
}
.cat-tile__icon svg { width: 34px; height: 34px; color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25)); }
.cat-tile__count {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.28);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    font-size: 12px; font-weight: 600;
    border: 1px solid rgba(255,255,255,0.15);
}
.cat-tile__count svg { width: 12px; height: 12px; }

/* body */
.cat-tile__body { flex: 1; }
.cat-tile__title { font-size: 26px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; }
.cat-tile__desc { font-size: 14px; opacity: 0.9; line-height: 1.7; margin-bottom: 18px; max-width: 90%; }

/* product previews row */
.cat-tile__previews {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.cat-tile__preview {
    display: inline-flex; align-items: center;
    padding: 5px 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}
.cat-tile__preview--more {
    background: rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}

/* footer: starting-from + CTA */
.cat-tile__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.18);
    gap: 12px;
}
.cat-tile__from-label { font-size: 11px; opacity: 0.75; margin-bottom: 2px; }
.cat-tile__from-value { font-size: 14px; font-weight: 700; }
.cat-tile__cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(255,255,255,0.95);
    color: var(--color-text);
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transition: all 0.2s;
}
.cat-tile__cta:hover { background: #fff; transform: translateX(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.2); }
.cat-tile__cta svg { width: 14px; height: 14px; transition: transform 0.2s; }

/* ==========================================================================
   Product cards
   ========================================================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }

.pcard {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-soft);
    overflow: hidden;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.pcard:hover {
    border-color: var(--color-primary);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.12);
    transform: translateY(-4px);
}
.pcard__badges {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}
.pcard__wish {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: var(--color-text-muted);
    display: grid; place-items: center;
    backdrop-filter: blur(10px);
    z-index: 2;
    transition: all 0.15s;
}
.pcard__wish:hover { color: var(--color-danger); background: #fff; }
.pcard__wish svg { width: 16px; height: 16px; }

.pcard__media {
    position: relative;
    aspect-ratio: 4 / 3;
    display: grid; place-items: center;
    overflow: hidden;
}
.pcard__media--game-1 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.pcard__media--game-2 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.pcard__media--game-3 { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.pcard__media--game-4 { background: linear-gradient(135deg, #3b82f6, #7c3aed); }
.pcard__media--sub-1 { background: linear-gradient(135deg, #0f172a, #7c3aed); }
.pcard__media--sub-2 { background: linear-gradient(135deg, #dc2626, #f59e0b); }
.pcard__media--sub-3 { background: linear-gradient(135deg, #059669, #10b981); }
.pcard__media--sub-4 { background: linear-gradient(135deg, #1e293b, #06b6d4); }
.pcard__media--lic-1 { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.pcard__media--lic-2 { background: linear-gradient(135deg, #ea580c, #f59e0b); }
.pcard__media--lic-3 { background: linear-gradient(135deg, #16a34a, #0d9488); }
.pcard__media-icon {
    width: 80px; height: 80px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    display: grid; place-items: center;
    backdrop-filter: blur(10px);
    color: #fff;
}
.pcard__media-icon svg { width: 44px; height: 44px; }
.pcard__media-tag {
    position: absolute;
    bottom: 10px;
    inset-inline-end: 10px;
    padding: 4px 10px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(6px);
}

.pcard__body { padding: 16px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.pcard__eyebrow { font-size: 12px; color: var(--color-primary); font-weight: 600; }
.pcard__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}
.pcard__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--color-text-faint); }
.pcard__meta svg { width: 14px; height: 14px; }
.pcard__stars { color: var(--color-warning); display: flex; gap: 1px; }

.pcard__price-row { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--color-border); }
.pcard__prices { display: flex; flex-direction: column; }
.pcard__old-price { font-size: 12px; color: var(--color-text-faint); text-decoration: line-through; }
.pcard__price {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text);
}
.pcard__price-unit { font-size: 11px; color: var(--color-text-muted); font-weight: 500; margin-inline-start: 2px; }
.pcard__buy {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: grid; place-items: center;
    transition: all 0.15s;
}
.pcard__buy:hover { background: var(--color-primary); color: #fff; }
.pcard__buy svg { width: 18px; height: 18px; }

/* Tabs for section filter */
.tabs {
    display: inline-flex;
    padding: 4px;
    background: var(--color-bg);
    border-radius: 999px;
    border: 1px solid var(--color-border);
    gap: 4px;
}
.tab {
    padding: 8px 18px;
    border-radius: 999px;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tab:hover { color: var(--color-text); }
.tab--active { background: var(--color-primary); color: #fff; }
.tab svg { width: 14px; height: 14px; }

/* ==========================================================================
   Value props (trust bar)
   ========================================================================== */

.trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 32px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-soft);
    box-shadow: var(--shadow-sm);
}
.trust {
    display: flex;
    align-items: center;
    gap: 14px;
}
.trust__icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: grid; place-items: center;
    flex-shrink: 0;
}
.trust__icon svg { width: 26px; height: 26px; }
.trust__title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.trust__desc { font-size: 13px; color: var(--color-text-muted); }

/* ==========================================================================
   Popular subs / dark section grid
   ========================================================================== */

.dark-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.dcard {
    background: var(--color-dark-card);
    border: 1px solid var(--color-dark-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}
.dcard::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124,58,237,0.15), transparent 50%);
    opacity: 0;
    transition: opacity 0.25s;
}
.dcard:hover { border-color: var(--color-primary); transform: translateY(-4px); }
.dcard:hover::before { opacity: 1; }
.dcard > * { position: relative; z-index: 1; }
.dcard__head { display: flex; align-items: center; gap: 12px; }
.dcard__logo {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: grid; place-items: center;
    font-weight: 800;
    color: #fff;
    font-size: 18px;
}
.dcard__title { font-weight: 700; font-size: 15px; color: #fff; }
.dcard__sub { font-size: 12px; color: var(--color-on-dark-muted); }
.dcard__price-row { display: flex; align-items: baseline; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--color-dark-border); }
.dcard__price { font-size: 18px; font-weight: 800; color: #fff; }
.dcard__link { color: var(--color-accent); font-size: 13px; font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--color-dark);
    color: var(--color-on-dark-muted);
    padding: 64px 0 24px;
    border-top: 1px solid var(--color-dark-border);
}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer__col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__links a { transition: color 0.15s; }
.footer__links a:hover { color: #fff; }
.footer__about { font-size: 14px; line-height: 1.75; margin: 16px 0 20px; }
.footer__social { display: flex; gap: 8px; }
.footer__social a {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    display: grid; place-items: center;
    transition: all 0.15s;
}
.footer__social a:hover { background: var(--color-primary); color: #fff; }
.footer__social svg { width: 18px; height: 18px; }
.footer__newsletter { display: flex; gap: 8px; }
.footer__newsletter input {
    flex: 1;
    height: 42px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0 14px;
    color: #fff;
    font-size: 14px;
}
.footer__newsletter input::placeholder { color: var(--color-on-dark-muted); }
.footer__bottom {
    padding-top: 24px;
    border-top: 1px solid var(--color-dark-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 12px;
}
.footer__payments { display: flex; gap: 10px; align-items: center; }
.footer__pay {
    padding: 6px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 12px;
    color: var(--color-on-dark);
}

/* ==========================================================================
   Category page — filters + product list
   ========================================================================== */

.crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}
.crumb__sep { opacity: 0.5; }
.crumb a:hover { color: var(--color-primary); }
.crumb__current { color: var(--color-text); font-weight: 600; }

.page-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #1e1b4b 100%);
    color: #fff;
    padding: 48px 0 40px;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 90% 50%, rgba(6, 182, 212, 0.2), transparent 40%);
}
.page-header__inner { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.page-header__title { font-size: 40px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; }
.page-header__sub { color: var(--color-on-dark-muted); font-size: 15px; }
.page-header__meta { display: flex; gap: 20px; color: var(--color-on-dark-muted); font-size: 14px; }
.page-header__meta span strong { color: #fff; font-weight: 700; }

.catpage {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    padding: 40px 0 80px;
}
.filters {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-soft);
    padding: 20px;
    position: sticky;
    top: calc(var(--header-h) + 20px);
    align-self: flex-start;
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto;
}
.filters__head {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 16px; margin-bottom: 16px;
    border-bottom: 1px solid var(--color-border-soft);
}
.filters__head h3 { font-size: 16px; }
.filters__clear { font-size: 13px; color: var(--color-primary); font-weight: 600; }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--color-border-soft); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.filter-group h4 svg { width: 14px; height: 14px; color: var(--color-text-muted); }
.filter-list { display: flex; flex-direction: column; gap: 10px; }
.filter-item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 14px; color: var(--color-text); cursor: pointer;
}
.filter-item__label { display: flex; align-items: center; gap: 8px; }
.filter-item__count { font-size: 12px; color: var(--color-text-faint); }
.filter-item input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--color-primary);
}

.price-range { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.price-range input {
    width: 100%; height: 36px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0 10px;
    font-size: 13px;
    text-align: center;
}
.price-range input:focus { outline: none; border-color: var(--color-primary); }

.catpage__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-soft);
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}
.catpage__toolbar-info { font-size: 14px; color: var(--color-text-muted); }
.catpage__toolbar-info strong { color: var(--color-text); }
.sort-select {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px;
}
.sort-select select {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--color-bg);
}

.pager {
    display: flex; justify-content: center; align-items: center; gap: 6px;
    margin-top: 40px;
}
.pager a, .pager span {
    min-width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-bg);
    border: 1px solid var(--color-border-soft);
    transition: all 0.15s;
    padding: 0 12px;
}
.pager a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pager .pager__current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ==========================================================================
   Product page
   ========================================================================== */

.pdp {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    padding: 32px 0 64px;
}
.pdp__gallery {
    display: flex; flex-direction: column; gap: 12px;
}
.pdp__main-media {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    position: relative;
    display: grid; place-items: center;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.pdp__main-media::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 70% 20%, rgba(255,255,255,0.3), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15), transparent 50%);
}
.pdp__main-icon {
    width: 140px; height: 140px;
    background: rgba(255,255,255,0.15);
    border-radius: 30px;
    display: grid; place-items: center;
    color: #fff;
    backdrop-filter: blur(10px);
    position: relative;
}
.pdp__main-icon svg { width: 80px; height: 80px; }
.pdp__main-badge {
    position: absolute;
    top: 20px; inset-inline-start: 20px;
    padding: 8px 16px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}
.pdp__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pdp__thumb {
    aspect-ratio: 1;
    border-radius: 10px;
    border: 2px solid var(--color-border);
    cursor: pointer;
    overflow: hidden;
    display: grid; place-items: center;
    transition: border-color 0.15s;
}
.pdp__thumb--1 { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.pdp__thumb--2 { background: linear-gradient(135deg, #06b6d4, #7c3aed); }
.pdp__thumb--3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.pdp__thumb--4 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.pdp__thumb--active { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-glow); }

.pdp__info { display: flex; flex-direction: column; gap: 20px; }
.pdp__eyebrow { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-primary); font-weight: 600; }
.pdp__title { font-size: 32px; font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; }
.pdp__rating-row { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--color-text-muted); }
.pdp__stars { display: flex; gap: 2px; color: var(--color-warning); }
.pdp__stars svg { width: 16px; height: 16px; }
.pdp__rating-sep { width: 1px; height: 14px; background: var(--color-border); }

.pdp__price-card {
    background: linear-gradient(135deg, #f3ecff 0%, #e0f7fa 100%);
    border: 1px solid var(--color-primary-soft);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.pdp__price-label { font-size: 13px; color: var(--color-text-muted); margin-bottom: 4px; }
.pdp__price-value { font-size: 30px; font-weight: 800; color: var(--color-text); }
.pdp__price-unit { font-size: 14px; color: var(--color-text-muted); font-weight: 500; margin-inline-start: 4px; }
.pdp__price-old { font-size: 15px; color: var(--color-text-faint); text-decoration: line-through; margin-top: 4px; }
.pdp__price-save { padding: 4px 10px; background: var(--color-success); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; margin-inline-start: 8px; }

.pdp__options { display: flex; flex-direction: column; gap: 16px; }
.pdp__opt-label { font-size: 14px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.pdp__opt-label span { font-weight: 400; color: var(--color-text-muted); font-size: 13px; }
.pdp__opt-choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pdp__opt {
    padding: 12px 8px;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--color-bg);
    font-size: 13px;
}
.pdp__opt strong { display: block; font-size: 15px; margin-bottom: 4px; color: var(--color-text); }
.pdp__opt small { color: var(--color-text-faint); font-size: 11px; }
.pdp__opt:hover { border-color: var(--color-primary); }
.pdp__opt--active { border-color: var(--color-primary); background: var(--color-primary-soft); }
.pdp__opt--active strong { color: var(--color-primary-hover); }

.pdp__actions { display: flex; gap: 10px; align-items: stretch; }
.pdp__qty {
    display: flex; align-items: center;
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}
.pdp__qty button {
    width: 42px; height: 52px;
    display: grid; place-items: center;
    color: var(--color-text-muted);
}
.pdp__qty button:hover { color: var(--color-primary); background: var(--color-primary-soft); }
.pdp__qty input {
    width: 50px; height: 52px;
    border: 0; text-align: center; font-size: 16px; font-weight: 700;
    background: transparent;
}
.pdp__qty input:focus { outline: none; }
.pdp__buy-btn {
    flex: 1;
    padding: 0 24px; height: 52px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
    border-radius: 12px;
    font-weight: 700; font-size: 16px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 8px 24px var(--color-primary-glow);
    transition: all 0.2s;
}
.pdp__buy-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 32px var(--color-primary-glow); }
.pdp__wish-btn {
    width: 52px; height: 52px;
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text-muted);
    display: grid; place-items: center;
    transition: all 0.15s;
}
.pdp__wish-btn:hover { color: var(--color-danger); border-color: var(--color-danger); }

.pdp__perks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 16px;
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-soft);
}
.perk { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--color-text); }
.perk__icon { color: var(--color-success); flex-shrink: 0; }
.perk__icon svg { width: 18px; height: 18px; }

.pdp__delivery-info {
    display: flex; gap: 10px; padding: 14px 18px;
    background: var(--color-accent-soft); color: #075985;
    border-radius: 12px; border-inline-start: 3px solid var(--color-accent);
    font-size: 14px;
}
.pdp__delivery-info svg { flex-shrink: 0; color: var(--color-accent); }

/* Details tabs section */
.pdp__tabs-nav {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--color-bg-strip);
    border-radius: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
}
.pdp__tab {
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.15s;
}
.pdp__tab--active { background: var(--color-bg); color: var(--color-text); box-shadow: var(--shadow-sm); }
.pdp__tab-content {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-soft);
    padding: 32px;
    line-height: 1.9;
    color: var(--color-text);
}
.pdp__tab-content h3 { margin-bottom: 12px; font-size: 18px; }
.pdp__tab-content ul { padding-inline-start: 20px; margin: 12px 0; }
.pdp__tab-content li { margin-bottom: 6px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
    .hero__inner { grid-template-columns: 1fr; }
    /* Hero cards: on smaller screens center the fan */
    .hero__visual { height: 460px; max-width: 620px; margin: 0 auto; }
    .catpage { grid-template-columns: 1fr; }
    .filters { position: static; max-height: none; }
    .pdp { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .dark-grid { grid-template-columns: repeat(3, 1fr); }
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
    .hero__title { font-size: 38px; }
    .header__row { grid-template-columns: auto 1fr; gap: 12px; }
    .search { display: none; }
    /* Hero cards on mobile: hide side cards, show only center card at normal size */
    .hero__visual { height: auto; max-width: none; }
    .hero-card--1, .hero-card--3 { display: none; }
    .hero-card--2 {
        position: relative;
        inset-inline-end: auto; top: auto;
        transform: none;
        margin: 0 auto;
        width: 100%;
        max-width: 320px;
    }
    .category-tiles { grid-template-columns: 1fr; margin-top: -40px; }
    .product-grid, .product-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .dark-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-bar { grid-template-columns: 1fr 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .section-head__title { font-size: 26px; }
    .pdp__title { font-size: 24px; }
}
@media (max-width: 500px) {
    .product-grid, .product-grid--3 { grid-template-columns: 1fr; }
    .dark-grid { grid-template-columns: 1fr; }
    .trust-bar { grid-template-columns: 1fr; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
}

/* ==========================================================================
   Mega-menu (hover-triggered "All Categories" panel with 3-level flyouts)
   RTL note: panel drops below button, aligned to the button's right edge.
              First-level flyouts extend to the LEFT of the panel.
              Deeper flyouts extend further LEFT of their parent flyout.
   ========================================================================== */

.ys-mega {
    position: relative;
}
.ys-mega__trigger {
    /* uses .catnav__item styling from category strip; no extra needed */
    cursor: pointer;
}

/* --- Root panel (drops below the trigger) --- */
.ys-mega__panel {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-start: 0;
    min-width: 280px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-soft);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    z-index: 60;
}
.ys-mega:hover > .ys-mega__panel,
.ys-mega:focus-within > .ys-mega__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

/* Small "bridge" between trigger and panel so mouse can move without dropping the hover */
.ys-mega__panel::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    height: 8px;
}

/* --- Item lists --- */
.ys-mega__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ys-mega__item {
    position: relative;
    border-radius: 8px;
    transition: background 0.15s;
}
.ys-mega__item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.ys-mega__item:hover > a,
.ys-mega__item:focus-within > a {
    background: var(--color-primary-soft);
    color: var(--color-primary-hover);
}
.ys-mega__chevron {
    width: 14px;
    height: 14px;
    opacity: 0.55;
    /* SVG polyline is a chevron-left "<" — matches the LEFT direction the
       flyout opens in RTL. In LTR we'd flip it to point RIGHT. */
}
[dir="ltr"] .ys-mega__chevron { transform: scaleX(-1); }

/* --- Flyouts (L2 and L3) — open to the LEFT of parent in RTL --- */
/* In RTL: `inset-inline-start: 100%` maps to `right: 100%`, which places the
   flyout's right edge at the parent's left edge — i.e. flyout sits to the LEFT
   of the parent (the natural direction for a right-anchored menu in RTL). */
.ys-mega__flyout {
    position: absolute;
    top: -8px;                    /* align top with parent item, offset for panel padding */
    inset-inline-start: 100%;     /* start = right in RTL: flyout sits to the LEFT of parent */
    margin-inline-start: 4px;     /* small gap between parent and flyout */
    min-width: 240px;
    max-height: 460px;
    overflow-y: auto;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-soft);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    z-index: 61;
}
/* In RTL the "coming-in" translate is from the RIGHT (positive x) */
[dir="rtl"] .ys-mega__flyout { transform: translateX(6px); }

.ys-mega__item.has-flyout:hover > .ys-mega__flyout,
.ys-mega__item.has-flyout:focus-within > .ys-mega__flyout {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

/* Mobile: mega-menu becomes a full-width dropdown instead of side flyouts */
@media (max-width: 780px) {
    .ys-mega__panel {
        position: fixed;
        top: auto;
        inset-inline-start: 12px;
        inset-inline-end: 12px;
        max-height: 70vh;
        overflow-y: auto;
    }
    .ys-mega__flyout {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 4px 12px 4px 0;
        box-shadow: none;
        border: none;
        border-inline-start: 2px solid var(--color-border-soft);
        border-radius: 0;
        padding: 4px 0;
        max-height: none;
    }
}

/* ==========================================================================
   Subcategory tile icon backdrop — repaint from rasa's soft-red to yarsub's
   soft-violet so the category-page tiles match the theme's primary color.
   Extra specificity beats the base rasa selector (which loads before yarsub).
   ========================================================================== */

.rasa-catpage .rasa-subcat-tile__image,
.rasa-subcat-tile .rasa-subcat-tile__image {
    background: var(--color-primary-soft);        /* soft violet #f3ecff */
    border: 1px solid rgba(124, 58, 237, 0.12);   /* very subtle violet ring */
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover: lift + intensify the violet cast */
.rasa-catpage .rasa-subcat-tile:hover .rasa-subcat-tile__image,
.rasa-subcat-tile:hover .rasa-subcat-tile__image {
    background: linear-gradient(135deg, #ede4ff 0%, #f3ecff 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.18);
}

/* Also update the tile label color on hover to yarsub violet */
.rasa-catpage .rasa-subcat-tile:hover .rasa-subcat-tile__name,
.rasa-subcat-tile:hover .rasa-subcat-tile__name {
    color: var(--color-primary-hover);
}

/* ==========================================================================
   Footer newsletter box — matches dark footer, input + button on one row
   ========================================================================== */

.ys-nl { display: flex; flex-direction: column; gap: 10px; }

.ys-nl__row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.ys-nl__input {
    flex: 1;
    min-width: 0;               /* prevents flex overflow with long placeholders */
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0 14px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    outline: none;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.ys-nl__input::placeholder { color: var(--color-on-dark-muted); }
.ys-nl__input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

.ys-nl__btn {
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.ys-nl__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.45);
}
.ys-nl__btn:active { transform: translateY(0); }

.ys-nl__options {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--color-on-dark-muted);
}
.ys-nl__opt { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ys-nl__opt input { accent-color: var(--color-primary); }

.ys-nl__captcha { margin-top: 4px; }

.ys-nl__validation {
    min-height: 18px;
    font-size: 12px;
    color: var(--color-danger);
}
.ys-nl__validation .please-wait { color: var(--color-on-dark-muted); }

.ys-nl__result {
    font-size: 13px;
    color: #4ade80;             /* soft green for success */
    line-height: 1.6;
}

/* ==========================================================================
   Category page — yarsub redesign (matches homepage design language)
   ========================================================================== */

.ys-catpage {
    background: var(--color-bg-soft);
    min-height: calc(100vh - 400px);
}

/* -------- Hero header (gradient like homepage) -------- */
.ys-catpage__hero {
    position: relative;
    color: #fff;
    padding: 32px 0 36px;
    background:
        radial-gradient(1000px 500px at 80% 20%, rgba(124, 58, 237, 0.5), transparent 60%),
        radial-gradient(800px 400px at 20% 80%, rgba(6, 182, 212, 0.3), transparent 60%),
        linear-gradient(180deg, #0b0b12 0%, #1a1030 100%);
    overflow: hidden;
    isolation: isolate;
}
.ys-catpage__hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    z-index: -1;
}
.ys-catpage__hero-inner {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
    flex-wrap: wrap;
}
.ys-catpage__hero-text { max-width: 720px; }
.ys-catpage__title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin: 8px 0 4px;
    background: linear-gradient(90deg, #fff 40%, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ys-catpage__subtitle {
    color: var(--color-on-dark-muted);
    font-size: 15px;
    line-height: 1.8;
}
.ys-catpage__hero-stats { display: flex; gap: 24px; }
.ys-hero-stat {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    padding: 14px 22px;
    border-radius: var(--radius-md);
    text-align: center;
}
.ys-hero-stat__num {
    display: block;
    font-size: 26px; font-weight: 800; color: #fff; line-height: 1;
    background: linear-gradient(90deg, #a855f7, #06b6d4);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ys-hero-stat__label { display: block; font-size: 12px; color: var(--color-on-dark-muted); margin-top: 6px; }

/* Breadcrumb inside hero */
.ys-crumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px;
    color: var(--color-on-dark-muted);
}
.ys-crumb a { color: var(--color-on-dark-muted); transition: color 0.15s; }
.ys-crumb a:hover { color: #fff; }
.ys-crumb__sep { opacity: 0.5; }
.ys-crumb__current { color: #fff; font-weight: 600; }

/* -------- Body & sections -------- */
.ys-catpage__body { padding: 40px 0 80px; }
.ys-catpage__section { margin-bottom: 56px; }
.ys-catpage__section:last-child { margin-bottom: 0; }

.ys-section-head {
    display: flex; align-items: end; justify-content: space-between;
    gap: 24px; margin-bottom: 28px; flex-wrap: wrap;
}
.ys-section-head__title {
    font-size: 28px; font-weight: 800; letter-spacing: -0.5px; color: var(--color-text);
}
.ys-section-head__title span { color: var(--color-primary); }
.ys-section-head__subtitle {
    color: var(--color-text-muted); font-size: 14px; margin-top: 6px;
}

/* -------- Subcategory cards -------- */
.ys-subcat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.ys-subcat-card {
    position: relative;
    display: block;
    padding: 32px 20px 22px;
    background: var(--color-bg);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    text-align: center;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s, box-shadow 0.25s;
    overflow: hidden;
    isolation: isolate;
}
.ys-subcat-card::before {
    content: '';
    position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}
.ys-subcat-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
}
.ys-subcat-card:hover::before { opacity: 1; }

.ys-subcat-card__icon-wrap {
    position: relative;
    width: 96px; height: 96px;
    margin: 0 auto 18px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3ecff 0%, #e0f7fa 100%);
    transition: transform 0.3s;
}
.ys-subcat-card:hover .ys-subcat-card__icon-wrap { transform: scale(1.08) rotate(-2deg); }
.ys-subcat-card__ring {
    position: absolute; inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, var(--color-primary) 0%, transparent 40%, transparent 60%, var(--color-accent) 100%);
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s;
    z-index: -1;
}
.ys-subcat-card:hover .ys-subcat-card__ring { opacity: 0.5; }
.ys-subcat-card__icon {
    width: 56px; height: 56px;
    object-fit: contain;
    display: block;
}
.ys-subcat-card__initial {
    font-size: 32px; font-weight: 800; color: var(--color-primary);
}

.ys-subcat-card__body { text-align: center; }
.ys-subcat-card__name {
    font-size: 16px; font-weight: 700; color: var(--color-text);
    margin-bottom: 10px;
    transition: color 0.2s;
}
.ys-subcat-card:hover .ys-subcat-card__name { color: var(--color-primary-hover); }
.ys-subcat-card__cta {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 600;
    color: var(--color-text-muted);
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--color-bg-soft);
    transition: background 0.2s, color 0.2s;
}
.ys-subcat-card:hover .ys-subcat-card__cta {
    background: var(--color-primary);
    color: #fff;
}

/* -------- Filter sidebar + products layout -------- */
.ys-catpage__mobile-tools {
    display: none;
    gap: 10px;
    align-items: center;
}

.ys-catpage__layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: flex-start;
}
.ys-catpage__sidebar {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    max-height: calc(100vh - var(--header-h) - 32px);
    overflow-y: auto;
}
.ys-filters-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.03);
}
.ys-filters-card .rasa-filters { padding: 0; }
.ys-filter-close {
    display: none;
    position: absolute; top: 12px; inset-inline-end: 12px;
    background: transparent; border: 0; padding: 6px;
    color: var(--color-text-muted); cursor: pointer;
}

.ys-catpage__products {
    min-width: 0; /* prevents grid overflow */
}

/* -------- Sort pill (mobile) + filter toggle -------- */
.ys-sort-pill {
    position: relative;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg);
    font-size: 13px; font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
}
.ys-sort-pill svg { width: 12px; height: 12px; }
.ys-sort-pill select {
    position: absolute; inset: 0;
    opacity: 0;
    cursor: pointer;
}
.ys-filter-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    background: var(--color-primary);
    color: #fff;
    border: 0; border-radius: 999px;
    font-weight: 700; font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}
.ys-filter-toggle svg { width: 14px; height: 14px; }

/* -------- Description -------- */
.ys-catpage__description {
    background: var(--color-bg);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    padding: 28px;
    color: var(--color-text);
    line-height: 1.9;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .ys-subcat-grid { grid-template-columns: repeat(3, 1fr); }
    .ys-catpage__title { font-size: 34px; }
    .ys-catpage__layout { grid-template-columns: 260px 1fr; gap: 20px; }
}
@media (max-width: 780px) {
    .ys-subcat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ys-subcat-card { padding: 22px 14px 16px; }
    .ys-subcat-card__icon-wrap { width: 72px; height: 72px; margin-bottom: 12px; }
    .ys-subcat-card__icon { width: 42px; height: 42px; }
    .ys-subcat-card__name { font-size: 14px; }

    .ys-catpage__hero { padding: 24px 0 28px; }
    .ys-catpage__title { font-size: 24px; }
    .ys-catpage__hero-stats { width: 100%; }
    .ys-hero-stat { flex: 1; padding: 10px 12px; }
    .ys-section-head__title { font-size: 22px; }

    /* Mobile: sidebar becomes a slide-in drawer, filter tools row shows */
    .ys-catpage__mobile-tools { display: flex; }
    .ys-catpage__layout { grid-template-columns: 1fr; }
    .ys-catpage__sidebar {
        position: fixed; inset: 0;
        z-index: 200;
        max-height: none;
        padding: 20px;
        background: rgba(0, 0, 0, 0.5);
        display: none;
    }
    .ys-catpage__sidebar.is-open { display: block; }
    .ys-catpage__sidebar .ys-filters-card {
        position: relative;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
    .ys-filter-close { display: inline-flex; }
}
@media (max-width: 500px) {
    .ys-subcat-grid { grid-template-columns: 1fr; }
    .ys-catpage__hero-inner { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Filter card interior — override rasa red styling with yarsub violet
   The _CatalogFilters partial uses .rasa-filter-* classes; theme.rasa.css
   styles them with red primary. We repaint them here with yarsub tokens.
   ========================================================================== */

/* ==========================================================================
   Section titles inside the catpage BODY — force dark text (not rasa red).
   Deliberately scoped to `.ys-section-head__title` only, so the hero title
   (`.ys-catpage__title`) keeps its gradient text-fill.
   ========================================================================== */
.ys-catpage .ys-section-head__title,
.category-page .ys-section-head__title,
h2.ys-section-head__title {
    color: var(--color-text) !important;
    background: none;
    -webkit-text-fill-color: currentColor;
}
.ys-catpage .ys-section-head__title span,
.category-page .ys-section-head__title span,
h2.ys-section-head__title span {
    color: var(--color-primary) !important;
    -webkit-text-fill-color: var(--color-primary);
}

/* ==========================================================================
   Filter card interior — match actual _CatalogFilters partial structure
   (label ABOVE row, then input + button inline within the row)
   ========================================================================== */

/* Nuke rasa's nested card wrapper — my .ys-filters-card is already the card */
.ys-filters-card .rasa-filters {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
}
.ys-filters-card .rasa-filter-block,
.ys-filters-card .rasa-filter-block > * {
    background: none !important;
    box-shadow: none !important;
}
.ys-filters-card .rasa-filter-block { padding: 0; border: 0 !important; }

/* Kill all separator borders inside the filter card */
.ys-filters-card .rasa-filter-block__title,
.ys-filters-card .rasa-filters .title,
.ys-filters-card .rasa-filters .filter-title,
.ys-filters-card .rasa-filters .block > .title,
.ys-filters-card .rasa-filters .filter-content > .title {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.ys-filters-card .rasa-filter-block__sub {
    border-top: 0 !important;
    padding-top: 0 !important;
}

.ys-filters-card .rasa-filter-block__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 16px;
    padding: 0;
}
.ys-filters-card .rasa-filter-block__title strong { font-weight: 700; }

/* Search form: label stacks above the input row */
.ys-filters-card .rasa-filter-search {
    display: block;
    margin-bottom: 16px;
}
.ys-filters-card .rasa-filter-search label {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}
/* Input + button on ONE row */
.ys-filters-card .rasa-filter-search__row {
    display: flex;
    gap: 6px;
    align-items: stretch;
}
.ys-filters-card .rasa-filter-search__row input {
    flex: 1 1 auto;
    min-width: 0;
    height: 38px;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--color-text);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.ys-filters-card .rasa-filter-search__row input:focus {
    border-color: var(--color-primary);
    background: var(--color-bg);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.ys-filters-card .rasa-filter-search__row input::placeholder { color: var(--color-text-faint); }

.ys-filters-card .rasa-filter-search__row button {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
    transition: transform 0.15s, box-shadow 0.2s;
}
.ys-filters-card .rasa-filter-search__row button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.4);
}
.ys-filters-card .rasa-filter-search__row button svg {
    width: 16px; height: 16px; stroke: #fff; color: #fff;
}

/* Filter sub-groups (price, specs, manufacturer) */
.ys-filters-card .rasa-filter-block__sub {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ys-filters-card .rasa-filter-block__sub > * {
    padding: 14px 0 0;
    border-top: 1px solid var(--color-border-soft);
}
.ys-filters-card .rasa-filter-block__sub > *:first-child {
    padding-top: 0;
    border-top: 0;
}

/* Filter list items (checkboxes) — repaint red bleed to violet */
.ys-filters-card input[type="checkbox"] { accent-color: var(--color-primary); }
.ys-filters-card input[type="radio"] { accent-color: var(--color-primary); }
.ys-filters-card label { color: var(--color-text); }

/* Price range input pair */
.ys-filters-card [data-rasa-price-min],
.ys-filters-card [data-rasa-price-max] {
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ys-filters-card [data-rasa-price-min]:focus,
.ys-filters-card [data-rasa-price-max]:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Guarantee the sidebar card doesn't overflow */
.ys-catpage__sidebar { overflow-x: hidden; }
.ys-filters-card, .ys-filters-card * { max-width: 100%; }

/* ==========================================================================
   Global yarsub repaint — makes ALL rasa-styled sub-pages (blog, news,
   search, cart, checkout, customer account, topic, sitemap, RFQ, etc.)
   inherit the yarsub color palette and card style. Deliberately broad —
   later, individual page templates can be rewritten for even nicer designs
   but this makes everything less-red / more-violet immediately.
   ========================================================================== */

/* ---- Page hero header treatment for rasa content pages ---- */
/* Every rasa page has a wrapper like .rasa-content-page or .rasa-account-page
   with a header block inside. Give that header a subtle gradient bar so it
   feels premium like the category page. */
.rasa-content-page,
.rasa-account-page {
    background: var(--color-bg-soft);
}

/* Section title headers — rasa often uses these class names */
.rasa-page-title,
.rasa-content-page__title,
.rasa-account-page__title,
.rasa-section__title,
.rasa-catpage__title,
.rasa-account-card__title,
.rasa-content-card__title {
    color: var(--color-text) !important;
    -webkit-text-fill-color: currentColor;
    background: none;
    font-weight: 800;
    letter-spacing: -0.3px;
}

/* Rasa page top strip (many pages have a page-title bar at top) */
.rasa-content-page > .rasa-container:first-child,
.rasa-account-page > .rasa-container:first-child {
    /* Give the top region breathing room */
    padding-top: 24px;
}

/* ---- Buttons — repaint rasa primary buttons to yarsub violet gradient ---- */
.rasa-account__btn--primary,
.rasa-btn--primary,
.button-1,
.button-2,
input[type="submit"].button-1,
input[type="submit"].button-2,
button.button-1,
button.button-2,
.rasa-form__submit,
.rasa-modal__submit {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 10px 22px !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3) !important;
    transition: transform 0.15s, box-shadow 0.2s !important;
    cursor: pointer;
}
.rasa-account__btn--primary:hover,
.rasa-btn--primary:hover,
.button-1:hover,
.button-2:hover,
.rasa-form__submit:hover,
.rasa-modal__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.42) !important;
}

.rasa-account__btn--ghost {
    background: transparent !important;
    color: var(--color-primary) !important;
    border: 1.5px solid var(--color-primary) !important;
    border-radius: 10px !important;
    padding: 10px 22px !important;
    font-weight: 700 !important;
}
.rasa-account__btn--ghost:hover {
    background: var(--color-primary-soft) !important;
}

/* ---- Links — anywhere rasa links go primary, make them violet ---- */
a.rasa-link,
.rasa-content-page a:not(.rasa-account__btn):not(.button-1):not(.button-2):not(.pcard):not(.dcard):not(.cat-tile):not(.brand):not(.ys-mega__item > a),
.rasa-account-page a:not(.rasa-account__btn):not(.button-1):not(.button-2):not(.pcard):not(.dcard):not(.brand) {
    color: var(--color-primary);
    transition: color 0.15s;
}
.rasa-content-page a:hover,
.rasa-account-page a:hover {
    color: var(--color-primary-hover);
}

/* ---- Form inputs — violet focus ring everywhere ---- */
.rasa-form-field__input,
.rasa-form-field__textarea,
.rasa-content-page input[type="text"],
.rasa-content-page input[type="email"],
.rasa-content-page input[type="password"],
.rasa-content-page input[type="tel"],
.rasa-content-page input[type="number"],
.rasa-content-page input[type="search"],
.rasa-content-page textarea,
.rasa-content-page select,
.rasa-account-page input[type="text"],
.rasa-account-page input[type="email"],
.rasa-account-page input[type="password"],
.rasa-account-page input[type="tel"],
.rasa-account-page input[type="number"],
.rasa-account-page textarea,
.rasa-account-page select {
    border: 1px solid var(--color-border) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    background: var(--color-bg) !important;
    color: var(--color-text) !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}
.rasa-form-field__input:focus,
.rasa-form-field__textarea:focus,
.rasa-content-page input:focus,
.rasa-content-page textarea:focus,
.rasa-content-page select:focus,
.rasa-account-page input:focus,
.rasa-account-page textarea:focus,
.rasa-account-page select:focus {
    outline: none !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
}
input[type="checkbox"],
input[type="radio"] { accent-color: var(--color-primary); }

/* ---- Cards — repaint rasa cards with subtler violet-tinted borders ---- */
.rasa-content-card,
.rasa-account-card,
.rasa-blog-card,
.rasa-blog-post,
.rasa-review-card,
.rasa-order-card,
.rasa-wishlist-item,
.rasa-comment,
.rasa-sitemap__group,
.rasa-auth-card,
.rasa-auth-side {
    background: var(--color-bg) !important;
    border: 1px solid var(--color-border-soft) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

/* Card headers */
.rasa-account-card__head,
.rasa-content-card__title-bar {
    background: transparent !important;
    border-bottom: 1px solid var(--color-border-soft) !important;
    padding-bottom: 14px !important;
    margin-bottom: 16px !important;
}

/* ---- Breadcrumb repaint ---- */
.rasa-breadcrumb,
.rasa-breadcrumb ul {
    background: transparent;
}
.rasa-breadcrumb a {
    color: var(--color-text-muted);
    transition: color 0.15s;
}
.rasa-breadcrumb a:hover {
    color: var(--color-primary);
}
.rasa-breadcrumb strong {
    color: var(--color-text);
    font-weight: 600;
}

/* ---- Badges / pills ---- */
.rasa-account-badge,
.rasa-badge,
.rasa-tag {
    background: var(--color-primary-soft) !important;
    color: var(--color-primary-hover) !important;
    border-radius: 999px !important;
}
.rasa-order-status--complete { background: #dcfce7 !important; color: #166534 !important; }
.rasa-order-status--processing { background: #dbeafe !important; color: #1e40af !important; }
.rasa-order-status--pending    { background: #fef3c7 !important; color: #92400e !important; }
.rasa-order-status--cancelled  { background: #fee2e2 !important; color: #991b1b !important; }

/* ---- Rasa account nav (customer sidebar) ---- */
.rasa-account-nav__item.is-active {
    background: var(--color-primary-soft) !important;
    color: var(--color-primary-hover) !important;
    border-inline-start-color: var(--color-primary) !important;
}
.rasa-account-nav__item:hover {
    background: var(--color-bg-soft) !important;
}

/* ---- Pager (used across list pages) ---- */
.pager li a,
.pager li span,
.rasa-pager a,
.rasa-pager span {
    border: 1px solid var(--color-border-soft) !important;
    border-radius: 8px !important;
    color: var(--color-text-muted) !important;
    padding: 8px 12px !important;
    background: var(--color-bg) !important;
    transition: border-color 0.15s, color 0.15s !important;
}
.pager li a:hover,
.rasa-pager a:hover {
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
}
.pager li.current-page span,
.pager li span.current-page,
.rasa-pager .current-page,
.rasa-pager__current {
    background: var(--color-primary) !important;
    color: #fff !important;
    border-color: var(--color-primary) !important;
}

/* ---- Rasa empty states ---- */
.rasa-account-empty {
    background: var(--color-bg) !important;
    border: 1px dashed var(--color-border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 40px !important;
    text-align: center;
}
.rasa-account-empty svg,
.rasa-account-empty .rasa-account-empty__icon {
    color: var(--color-primary) !important;
}

/* ---- Blog / News list — repaint titles + meta ---- */
.rasa-blog-card__title,
.rasa-blog-post__title,
.rasa-news-item__title {
    color: var(--color-text) !important;
    font-weight: 700 !important;
    transition: color 0.15s;
}
.rasa-blog-card:hover .rasa-blog-card__title,
.rasa-blog-card__title:hover {
    color: var(--color-primary-hover) !important;
}
.rasa-blog-card__meta,
.rasa-news-item__meta {
    color: var(--color-text-faint) !important;
    font-size: 13px !important;
}

/* Review stars (customer reviews) */
.rasa-review-card__stars-track { background: var(--color-border) !important; }
.rasa-review-card__stars-fill  { background: #f59e0b !important; }

/* ---- Selected-tab / active-anything patterns ---- */
.rasa-tabs__tab.is-active,
.rasa-tab.is-active,
.rasa-product__tab.is-active {
    color: var(--color-primary) !important;
    border-bottom-color: var(--color-primary) !important;
}
.rasa-tabs__tab:hover,
.rasa-tab:hover {
    color: var(--color-primary-hover) !important;
}

/* ---- Kill any remaining hardcoded rasa red on titles ---- */
h1, h2, h3, h4, h5, h6 {
    -webkit-text-fill-color: initial; /* undo any inherited red fill from earlier rasa rules */
}

/* ==========================================================================
   Product Detail Page (PDP) — yarsub redesign
   ========================================================================== */

.ys-pdp { background: var(--color-bg-soft); padding-bottom: 60px; }

.ys-pdp__crumb { padding: 20px 0 12px; }

/* -------- Grid: gallery + info -------- */
.ys-pdp__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: start;
    padding: 12px 0 40px;
}

/* -------- Gallery -------- */
.ys-pdp__gallery { position: sticky; top: calc(var(--header-h) + 16px); align-self: flex-start; }
.ys-pdp__main-img {
    position: relative;
    background: var(--color-bg);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
.ys-pdp__main-link { display: block; width: 100%; height: 100%; }
.ys-pdp__main-img img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 24px;
}
.ys-pdp__badge {
    position: absolute;
    top: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 4px;
    z-index: 2;
    backdrop-filter: blur(6px);
}
.ys-pdp__badge--discount {
    inset-inline-start: 16px;
    background: var(--color-danger);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}
.ys-pdp__badge--stock {
    inset-inline-end: 16px;
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
}
.ys-pdp__badge--outofstock {
    inset-inline-end: 16px;
    background: rgba(100, 116, 139, 0.9);
    color: #fff;
}

.ys-pdp__thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 12px;
    list-style: none;
    padding: 0;
}
.ys-pdp__thumb {
    aspect-ratio: 1;
    background: var(--color-bg);
    border: 2px solid var(--color-border-soft);
    border-radius: 12px;
    padding: 6px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
    display: grid; place-items: center;
    overflow: hidden;
}
.ys-pdp__thumb img { width: 100%; height: 100%; object-fit: contain; }
.ys-pdp__thumb:hover { border-color: var(--color-primary); }
.ys-pdp__thumb.is-active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* -------- Info side -------- */
.ys-pdp__info { display: flex; flex-direction: column; gap: 18px; }

.ys-pdp__eyebrow {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600;
    color: var(--color-primary);
}
.ys-pdp__eyebrow a { color: var(--color-primary); }
.ys-pdp__eyebrow a:hover { color: var(--color-primary-hover); text-decoration: underline; }

.ys-pdp__title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.3px;
    margin: 0;
    color: var(--color-text);
}

.ys-pdp__rating-row {
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; color: var(--color-text-muted);
    flex-wrap: wrap;
}
.ys-pdp__stars {
    position: relative;
    width: 92px; height: 16px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 16'><g fill='%23e2e8f0'><polygon points='8,1 10,6 15,6 11,9 13,14 8,11 3,14 5,9 1,6 6,6'/><polygon points='27,1 29,6 34,6 30,9 32,14 27,11 22,14 24,9 20,6 25,6'/><polygon points='46,1 48,6 53,6 49,9 51,14 46,11 41,14 43,9 39,6 44,6'/><polygon points='65,1 67,6 72,6 68,9 70,14 65,11 60,14 62,9 58,6 63,6'/><polygon points='84,1 86,6 91,6 87,9 89,14 84,11 79,14 81,9 77,6 82,6'/></g></svg>") repeat-x;
}
.ys-pdp__stars-fill {
    position: absolute; top: 0; inset-inline-start: 0;
    height: 16px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 16'><g fill='%23f59e0b'><polygon points='8,1 10,6 15,6 11,9 13,14 8,11 3,14 5,9 1,6 6,6'/><polygon points='27,1 29,6 34,6 30,9 32,14 27,11 22,14 24,9 20,6 25,6'/><polygon points='46,1 48,6 53,6 49,9 51,14 46,11 41,14 43,9 39,6 44,6'/><polygon points='65,1 67,6 72,6 68,9 70,14 65,11 60,14 62,9 58,6 63,6'/><polygon points='84,1 86,6 91,6 87,9 89,14 84,11 79,14 81,9 77,6 82,6'/></g></svg>") repeat-x;
}
.ys-pdp__rating-sep { width: 1px; height: 14px; background: var(--color-border); }
.ys-pdp__rating-stock { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }

.ys-pdp__meta-row { display: flex; gap: 16px; font-size: 13px; color: var(--color-text-muted); }
.ys-pdp__meta-item { display: inline-flex; gap: 6px; align-items: center; }
.ys-pdp__meta-label { color: var(--color-text-faint); }

.ys-pdp__short {
    font-size: 14px;
    line-height: 1.85;
    color: var(--color-text-muted);
    padding: 12px 16px;
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
    border-inline-start: 3px solid var(--color-primary);
}

/* -------- Attributes / variants -------- */
.ys-pdp__attrs {
    /* rasa _ProductAttributes partial renders its own structure; wrap it */
    background: var(--color-bg);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
    padding: 16px;
}
.ys-pdp__attrs:empty { display: none; }

/* -------- Price card -------- */
.ys-pdp__price-card {
    background: linear-gradient(135deg, #f3ecff 0%, #e0f7fa 100%);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.08);
}
.ys-pdp__price-label { font-size: 12px; color: var(--color-text-muted); margin-bottom: 4px; }
.ys-pdp__price-main {
    display: flex; align-items: center; gap: 12px;
    flex-wrap: wrap;
}
.ys-pdp__price-new {
    font-size: 30px; font-weight: 800;
    color: var(--color-text);
    line-height: 1;
}
.ys-pdp__price-new--call { font-size: 22px; color: var(--color-primary); }
.ys-pdp__price-discount {
    background: var(--color-danger);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px; font-weight: 700;
}
.ys-pdp__price-old {
    color: var(--color-text-faint);
    text-decoration: line-through;
    font-size: 14px;
    margin-top: 6px;
}

/* -------- Actions: add to cart + wishlist + compare -------- */
.ys-pdp__actions {
    display: flex; gap: 10px; align-items: stretch;
}
.ys-pdp__addcart-wrap { flex: 1; }
.ys-pdp__side-actions {
    display: flex; gap: 8px;
}

/* Repaint the inner rasa _AddToCart partial content to yarsub violet */
.ys-pdp__addcart-wrap .qty-input,
.ys-pdp__addcart-wrap input[type="text"] {
    height: 52px !important;
    border: 1.5px solid var(--color-border) !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: center;
    padding: 0 10px !important;
    max-width: 70px !important;
}
.ys-pdp__addcart-wrap button,
.ys-pdp__addcart-wrap input[type="button"],
.ys-pdp__addcart-wrap input[type="submit"],
.ys-pdp__addcart-wrap .add-to-cart-button,
.ys-pdp__addcart-wrap .button-1 {
    height: 52px !important;
    padding: 0 26px !important;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35) !important;
    transition: transform 0.15s, box-shadow 0.2s !important;
    display: inline-flex !important; align-items: center; justify-content: center;
    gap: 8px;
}
.ys-pdp__addcart-wrap button:hover,
.ys-pdp__addcart-wrap .add-to-cart-button:hover,
.ys-pdp__addcart-wrap .button-1:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.5) !important;
}

/* Wishlist + compare small icon buttons */
.ys-pdp__side-actions .add-to-wishlist-button,
.ys-pdp__side-actions .add-to-compare-list-button,
.ys-pdp__side-actions button,
.ys-pdp__side-actions input[type="button"] {
    width: 52px !important;
    height: 52px !important;
    padding: 0 !important;
    background: var(--color-bg) !important;
    color: var(--color-text-muted) !important;
    border: 1.5px solid var(--color-border) !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s !important;
    box-shadow: none !important;
    font-size: 0 !important;
}
.ys-pdp__side-actions .add-to-wishlist-button::before {
    content: '♡';
    font-size: 22px;
    line-height: 1;
}
.ys-pdp__side-actions .add-to-compare-list-button::before {
    content: '⇄';
    font-size: 22px;
    line-height: 1;
}
.ys-pdp__side-actions .add-to-wishlist-button:hover {
    color: var(--color-danger) !important;
    border-color: var(--color-danger) !important;
}
.ys-pdp__side-actions .add-to-compare-list-button:hover {
    color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

/* -------- Availability -------- */
.ys-pdp__availability:empty { display: none; }

/* -------- Delivery info card -------- */
.ys-pdp__delivery {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px;
    background: var(--color-accent-soft);
    color: #075985;
    border-radius: var(--radius-md);
    border-inline-start: 3px solid var(--color-accent);
    font-size: 14px;
    line-height: 1.7;
}
.ys-pdp__delivery-icon { color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.ys-pdp__delivery strong { display: block; margin-bottom: 2px; }
.ys-pdp__delivery p { margin: 0; font-size: 13px; opacity: 0.85; }

/* -------- Perks grid -------- */
.ys-pdp__perks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 14px;
    background: var(--color-bg);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
}
.ys-pdp__perk {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--color-text);
}
.ys-pdp__perk-icon {
    color: var(--color-success);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center; justify-content: center;
}

/* -------- Tabs section -------- */
.ys-pdp__tabs-section {
    margin: 40px 0;
}
.ys-pdp__tabs-nav {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--color-bg-strip);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
}
.ys-pdp__tab {
    flex: 1;
    padding: 12px 20px;
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    min-width: 120px;
}
.ys-pdp__tab:hover { color: var(--color-text); }
.ys-pdp__tab.is-active {
    background: var(--color-bg);
    color: var(--color-primary);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.ys-pdp__tab-panels { }
.ys-pdp__tab-panel {
    display: none;
    background: var(--color-bg);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    line-height: 1.9;
    color: var(--color-text);
}
.ys-pdp__tab-panel.is-active { display: block; }
.ys-pdp__tab-empty {
    color: var(--color-text-faint);
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
    margin: 0;
}
.ys-pdp__rich { font-size: 14px; line-height: 1.9; }
.ys-pdp__rich ul, .ys-pdp__rich ol { padding-inline-start: 22px; margin: 12px 0; }
.ys-pdp__rich li { margin-bottom: 6px; }
.ys-pdp__rich img { max-width: 100%; border-radius: 12px; margin: 16px 0; }

/* -------- Related products -------- */
.ys-pdp__related { margin-top: 48px; }
.ys-pdp__related .ys-section-head { margin-bottom: 24px; }

/* -------- Responsive -------- */
@media (max-width: 1100px) {
    .ys-pdp__grid { grid-template-columns: 1fr; gap: 32px; }
    .ys-pdp__gallery { position: static; }
    .ys-pdp__title { font-size: 24px; }
    .ys-pdp__price-new { font-size: 24px; }
}
@media (max-width: 780px) {
    .ys-pdp__grid { padding: 8px 0 24px; gap: 24px; }
    .ys-pdp__title { font-size: 20px; }
    .ys-pdp__price-new { font-size: 22px; }
    .ys-pdp__thumbs { grid-template-columns: repeat(4, 1fr); }
    .ys-pdp__tabs-nav { flex-wrap: wrap; }
    .ys-pdp__tab { min-width: 100px; padding: 10px 14px; font-size: 13px; }
    .ys-pdp__tab-panel { padding: 20px 18px; }
    .ys-pdp__actions { flex-wrap: wrap; }
    .ys-pdp__side-actions { flex: 1; }
    .ys-pdp__side-actions > * { flex: 1; }
    .ys-pdp__perks { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Header search button — force violet in case rasa's cached red bleeds
   ========================================================================== */
.header .search__btn,
.header .search__btn:link,
.header .search__btn:visited {
    background: var(--color-primary) !important;
    color: #fff !important;
}
.header .search__btn:hover { background: var(--color-primary-hover) !important; }

/* ==========================================================================
   ys-content — generic content-page wrapper (Blog list/post, News list/post,
   Register, Cart, and any other page using the ys-content pattern)
   ========================================================================== */

.ys-content { background: var(--color-bg-soft); min-height: calc(100vh - 400px); }

/* Hero (gradient dark bar with breadcrumb + title + subtitle + optional RSS/meta) */
.ys-content__hero {
    position: relative;
    color: #fff;
    padding: 32px 0 40px;
    background:
        radial-gradient(1000px 500px at 80% 20%, rgba(124, 58, 237, 0.5), transparent 60%),
        radial-gradient(800px 400px at 20% 80%, rgba(6, 182, 212, 0.3), transparent 60%),
        linear-gradient(180deg, #0b0b12 0%, #1a1030 100%);
    overflow: hidden;
    isolation: isolate;
}
.ys-content__hero::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.ys-content__hero-inner {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 32px; flex-wrap: wrap;
}
.ys-content__title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 8px 0 4px;
    background: linear-gradient(90deg, #fff 40%, #c4b5fd);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-text-fill-color: transparent;
}
.ys-content__subtitle { color: var(--color-on-dark-muted); font-size: 15px; line-height: 1.8; }
.ys-content__meta {
    display: flex; gap: 12px; align-items: center; margin-top: 8px;
    color: var(--color-on-dark-muted); font-size: 13px;
}
.ys-content__meta a { color: var(--color-on-dark-muted); display: inline-flex; align-items: center; gap: 4px; }
.ys-content__meta a:hover { color: #fff; }
.ys-content__meta-sep { opacity: 0.5; }
.ys-content__meta time { display: inline-flex; align-items: center; gap: 4px; }

.ys-content__rss {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.ys-content__rss:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); color: #fff; }

/* Body area — padding under hero */
.ys-content__body { padding: 32px 0 64px; }

/* ==========================================================================
   Blog / News grid + cards
   ========================================================================== */

.ys-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 32px;
}
.ys-blog-card {
    display: flex; flex-direction: column;
    background: var(--color-bg);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.25s, border-color 0.2s, box-shadow 0.25s;
}
.ys-blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.12);
}
.ys-blog-card__cover {
    display: block;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #f3ecff 0%, #e0f7fa 100%);
    position: relative;
    overflow: hidden;
}
.ys-blog-card__cover-fallback {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    color: var(--color-primary);
    opacity: 0.4;
}
.ys-blog-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.ys-blog-card__meta {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--color-text-faint);
}
.ys-blog-card__meta-sep { opacity: 0.5; }
.ys-blog-card__title {
    font-size: 17px; font-weight: 700; line-height: 1.5;
    margin: 0;
}
.ys-blog-card__title a { color: var(--color-text); text-decoration: none; transition: color 0.15s; }
.ys-blog-card__title a:hover { color: var(--color-primary-hover); }
.ys-blog-card__excerpt {
    font-size: 13px; line-height: 1.75; color: var(--color-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ys-blog-card__foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--color-border);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    flex-wrap: wrap;
}
.ys-blog-card__tags {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 4px;
}
.ys-blog-card__tags li a {
    display: inline-block;
    padding: 3px 8px;
    background: var(--color-primary-soft);
    color: var(--color-primary-hover);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}
.ys-blog-card__more {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: gap 0.15s;
}
.ys-blog-card__more:hover { gap: 8px; color: var(--color-primary-hover); }

/* ==========================================================================
   Article (blog post + news item body)
   ========================================================================== */

.ys-article {
    background: var(--color-bg);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    margin-bottom: 32px;
}
.ys-article__body {
    color: var(--color-text);
    font-size: 15px;
    line-height: 2;
}
.ys-article__body h2, .ys-article__body h3, .ys-article__body h4 {
    color: var(--color-text) !important;
    -webkit-text-fill-color: currentColor;
    margin: 24px 0 12px;
    font-weight: 700;
}
.ys-article__body p { margin: 0 0 16px; }
.ys-article__body img { max-width: 100%; border-radius: 12px; margin: 16px 0; }
.ys-article__body ul, .ys-article__body ol { padding-inline-start: 22px; margin: 14px 0; }
.ys-article__body li { margin-bottom: 6px; }
.ys-article__body a { color: var(--color-primary); }
.ys-article__body blockquote {
    padding: 12px 18px;
    background: var(--color-bg-soft);
    border-inline-start: 3px solid var(--color-primary);
    border-radius: var(--radius-md);
    margin: 16px 0;
    color: var(--color-text-muted);
}

.ys-article__tags {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-soft);
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.ys-article__tags-label { font-size: 13px; font-weight: 600; color: var(--color-text-muted); }
.ys-article__tags ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ys-article__tags ul li a {
    display: inline-block;
    padding: 4px 10px;
    background: var(--color-primary-soft);
    color: var(--color-primary-hover);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

/* ==========================================================================
   Pager (ys-pager) — used across blog/news/search
   ========================================================================== */

.ys-pager {
    display: flex; justify-content: center; margin: 24px 0;
}

/* ==========================================================================
   Generic card + comments
   ========================================================================== */

.ys-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    margin-bottom: 24px;
    overflow: hidden;
}
.ys-card__head {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border-soft);
}
.ys-card__title {
    font-size: 18px; font-weight: 700; margin: 0;
    color: var(--color-text);
}
.ys-card__body { padding: 20px 24px; }

.ys-comments { }
.ys-comments-list { }

.ys-comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ys-comment { display: flex; gap: 14px; padding: 16px 24px; }
.ys-comment:not(:last-child) { border-bottom: 1px dashed var(--color-border-soft); }
.ys-comment__avatar {
    width: 42px; height: 42px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-weight: 700;
    display: grid; place-items: center;
    overflow: hidden;
}
.ys-comment__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ys-comment__content { flex: 1; min-width: 0; }
.ys-comment__head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ys-comment__name { font-weight: 700; color: var(--color-text); text-decoration: none; }
.ys-comment__name:hover { color: var(--color-primary-hover); }
.ys-comment__time { font-size: 12px; color: var(--color-text-faint); }
.ys-comment__title { font-weight: 700; margin: 4px 0; color: var(--color-text); }
.ys-comment__text { color: var(--color-text-muted); line-height: 1.8; font-size: 14px; }

/* ==========================================================================
   Generic form (ys-form) — used in blog/news comments, login, register, etc.
   ========================================================================== */

.ys-form { display: flex; flex-direction: column; gap: 14px; }
.ys-form-field { display: flex; flex-direction: column; gap: 6px; }
.ys-form-field__label {
    font-size: 13px; font-weight: 600; color: var(--color-text);
    display: inline-flex; align-items: center; gap: 4px;
}
.ys-form-field__req { color: var(--color-danger); }

.ys-form-field__input,
.ys-form-field__textarea {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.ys-form-field__textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.ys-form-field__input:focus,
.ys-form-field__textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.ys-form-field__input::placeholder,
.ys-form-field__textarea::placeholder { color: var(--color-text-faint); }
.ys-form-field__error { font-size: 12px; color: var(--color-danger); }

/* Password field with eye toggle */
.ys-form-field__password { position: relative; }
.ys-form-field__password .ys-form-field__input { padding-inline-end: 44px; }
.ys-form-field__eye {
    position: absolute;
    inset-inline-end: 4px;
    top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px;
    background: transparent; border: 0;
    color: var(--color-text-muted);
    display: grid; place-items: center;
    cursor: pointer;
    border-radius: 8px;
}
.ys-form-field__eye:hover { color: var(--color-primary); background: var(--color-primary-soft); }
.ys-form-field__eye.is-open { color: var(--color-primary); }

/* Row that has label on one side and link on the other */
.ys-form-row-between {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
}
.ys-checkbox { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-text); cursor: pointer; }
.ys-checkbox input { accent-color: var(--color-primary); }

.ys-form-error {
    padding: 12px 14px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    font-size: 13px;
}
.ys-form-success {
    padding: 12px 14px;
    background: #dcfce7;
    color: #166534;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}
.ys-form-notice {
    padding: 12px 14px;
    background: var(--color-accent-soft);
    color: #075985;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}
.ys-form-actions { display: flex; gap: 10px; margin-top: 8px; }

/* ==========================================================================
   Buttons (ys-btn family)
   ========================================================================== */

.ys-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 22px;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.15s;
    font-family: inherit;
}
.ys-btn--primary {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
}
.ys-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.4);
    color: #fff;
}
.ys-btn--white {
    background: #fff;
    color: var(--color-primary-hover);
}
.ys-btn--white:hover { background: #fff; transform: translateY(-1px); color: var(--color-primary-hover); }
.ys-btn--outline-white {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.ys-btn--outline-white:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.ys-btn--block { width: 100%; }

/* Login-form auth forgot link */
.ys-auth-card__forgot { font-size: 13px; color: var(--color-primary); text-decoration: none; }
.ys-auth-card__forgot:hover { color: var(--color-primary-hover); }

/* ==========================================================================
   Auth page (login / register) — split card design
   ========================================================================== */

.ys-auth-page { background: var(--color-bg-soft); padding: 60px 0; min-height: calc(100vh - 400px); }
.ys-auth-page__body { }

.ys-auth-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 22px;
    max-width: 960px;
    margin: 0 auto;
}

.ys-auth-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    padding: 36px 34px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.ys-auth-card__icon {
    width: 60px; height: 60px;
    margin: 0 auto 18px;
    display: grid; place-items: center;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border-radius: 16px;
}
.ys-auth-card__title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    color: var(--color-text) !important;
    -webkit-text-fill-color: var(--color-text);
    margin: 0 0 6px;
    background: none;
}
.ys-auth-card__subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
    margin: 0 0 24px;
}

.ys-auth-card__external { margin-top: 20px; }
.ys-auth-card__external-sep {
    position: relative;
    text-align: center;
    color: var(--color-text-faint);
    margin: 18px 0 14px;
    font-size: 12px;
}
.ys-auth-card__external-sep::before,
.ys-auth-card__external-sep::after {
    content: '';
    position: absolute; top: 50%;
    width: calc(50% - 60px); height: 1px;
    background: var(--color-border-soft);
}
.ys-auth-card__external-sep::before { inset-inline-start: 0; }
.ys-auth-card__external-sep::after { inset-inline-end: 0; }
.ys-auth-card__external-sep span { background: var(--color-bg); padding: 0 12px; position: relative; }

/* Auth side (right column — gradient) */
.ys-auth-side {
    background: linear-gradient(160deg, #7c3aed 0%, #4c1d95 55%, #1e1b4b 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 34px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.25);
}
.ys-auth-side::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.25), transparent 50%);
}
.ys-auth-side__icon {
    width: 72px; height: 72px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-bottom: 18px;
    color: #fff;
}
.ys-auth-side__title { font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 10px; }
.ys-auth-side__text { color: rgba(255, 255, 255, 0.85); line-height: 1.85; font-size: 14px; margin: 0 0 24px; }
.ys-auth-side__text * { color: rgba(255, 255, 255, 0.85); }
.ys-auth-side__actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }

.ys-auth-info {
    max-width: 960px;
    margin: 20px auto 0;
    padding: 20px 24px;
    background: var(--color-bg);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
}

/* ==========================================================================
   Search form (search page)
   ========================================================================== */

.ys-search-form {
    background: var(--color-bg);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.ys-search-form__row {
    display: flex; gap: 8px; align-items: stretch;
}
.ys-search-form__input {
    flex: 1; min-width: 0;
    height: 48px;
    padding: 0 16px;
    background: var(--color-bg-soft);
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    font-size: 15px;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ys-search-form__input:focus {
    border-color: var(--color-primary);
    background: var(--color-bg);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.ys-search-form__input::placeholder { color: var(--color-text-faint); }
.ys-search-form__submit {
    display: inline-flex; align-items: center; gap: 8px;
    height: 48px;
    padding: 0 24px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
    transition: transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
}
.ys-search-form__submit:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(124, 58, 237, 0.4); }

.ys-search-form__toggle { margin-top: 12px; }
.ys-search-form__toggle label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-text-muted); cursor: pointer; }
.ys-search-form__toggle input { accent-color: var(--color-primary); }

.ys-search-form__advanced { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--color-border-soft); }
.ys-search-form__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ys-search-form__field { display: flex; flex-direction: column; gap: 6px; }
.ys-search-form__field label { font-size: 12px; font-weight: 600; color: var(--color-text-muted); }
.ys-search-form__field select {
    height: 40px;
    padding: 0 12px;
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--color-text);
    outline: none;
}
.ys-search-form__field select:focus { border-color: var(--color-primary); }
.ys-search-form__field--check label { display: inline-flex; align-items: center; gap: 6px; }
.ys-search-form__field--check input { accent-color: var(--color-primary); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .ys-blog-grid { grid-template-columns: repeat(2, 1fr); }
    .ys-content__title { font-size: 28px; }
    .ys-auth-grid { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 780px) {
    .ys-content__hero { padding: 24px 0 28px; }
    .ys-content__title { font-size: 24px; }
    .ys-content__hero-inner { flex-direction: column; align-items: flex-start; }
    .ys-blog-grid { grid-template-columns: 1fr; }
    .ys-article { padding: 22px 18px; }
    .ys-search-form__row { flex-direction: column; }
    .ys-search-form__grid { grid-template-columns: 1fr; }
    .ys-auth-card, .ys-auth-side { padding: 26px 22px; }
    .ys-comment { padding: 14px 16px; flex-wrap: wrap; }
}

/* ==========================================================================
   Topic page (About Us, Shipping Info, Privacy, etc.)
   Uses .ys-content + .ys-article — extra styling here for popup + password gate.
   ========================================================================== */

.ys-topic-article {
    max-width: 900px;   /* readable prose width for typical topic content */
    margin: 0 auto;
}

/* Popup variant (when topic is opened in a modal) */
.ys-topic-popup {
    background: var(--color-bg);
    padding: 24px 28px;
    color: var(--color-text);
    line-height: 1.9;
}
.ys-topic-popup h1 {
    font-size: 22px; font-weight: 800;
    margin: 0 0 16px;
}

/* Password gate card — for password-protected topics */
.ys-topic-password {
    max-width: 480px;
    margin: 0 auto 24px;
    text-align: center;
}
.ys-topic-password__icon {
    width: 64px; height: 64px;
    margin: 4px auto 16px;
    display: grid; place-items: center;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border-radius: 16px;
}
.ys-topic-password__title {
    font-size: 20px; font-weight: 700;
    margin: 0 0 18px;
    color: var(--color-text);
}
.ys-topic-password__row {
    display: flex; gap: 8px; align-items: stretch;
    margin-bottom: 8px;
}
.ys-topic-password__row .ys-form-field__input { flex: 1; min-width: 0; }
.ys-topic-password__row .ys-btn { white-space: nowrap; }


