/* ===== GLOBAL STYLES ===== */
  .home-page {
    min-height: 100vh;
  }

  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* ===== QUICK ACTIONS (top-of-page CTAs) ===== */
  .home-quick-actions {
    padding: 14px 0 12px;
    direction: rtl;
    background: linear-gradient(180deg, #ffffff 0%, #fdf2f8 100%);
  }
  .home-quick-actions__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .qa-card,
  .qa-card:link,
  .qa-card:visited,
  .qa-card:hover,
  .qa-card:focus,
  .qa-card:active {
    color: #fff;
    text-decoration: none;
  }
  .qa-card * { color: inherit; }
  .qa-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
    transform: translateZ(0);
    transition: transform .28s cubic-bezier(.2,.7,.2,1.05), box-shadow .28s ease, filter .28s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .qa-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--qa-from), var(--qa-to));
    z-index: -2;
    transition: filter .28s ease, transform .5s ease;
  }
  .qa-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at top left, rgba(255,255,255,.32), transparent 55%),
      radial-gradient(circle at bottom right, rgba(0,0,0,.18), transparent 55%);
    z-index: -1;
    pointer-events: none;
    opacity: .9;
    transition: opacity .28s ease;
  }
  /* shimmer sweep on hover */
  .qa-card__shine {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 55%;
    left: -65%;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.28) 50%, transparent 100%);
    transform: skewX(-18deg);
    pointer-events: none;
    z-index: 0;
    transition: left .65s ease;
  }
  .qa-card:hover .qa-card__shine { left: 130%; }

  .qa-card:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 18px 36px -8px var(--qa-shadow, rgba(0,0,0,.28));
    filter: brightness(1.04) saturate(1.08);
  }
  .qa-card:hover::after { opacity: 1; }
  .qa-card:focus-visible {
    outline: none;
    box-shadow:
      0 0 0 3px #fff,
      0 0 0 5px var(--qa-from),
      0 14px 30px -8px var(--qa-shadow, rgba(0,0,0,.28));
  }
  .qa-card:active {
    transform: translateY(-1px) scale(.998);
    filter: brightness(.98);
    transition-duration: .12s;
  }
  .qa-card--hot  { --qa-from: #f43f5e; --qa-to: #f97316; --qa-shadow: rgba(244,63,94,.42);  box-shadow: 0 6px 18px rgba(244,63,94,.32); }
  .qa-card--list { --qa-from: #5CB8E4; --qa-to: #6366f1; --qa-shadow: rgba(78,167,216,.42); box-shadow: 0 6px 18px rgba(78,167,216,.32); }
  /* attractive coral-orange gradient */
  .qa-card--rep  { --qa-from: #f43f5e; --qa-to: #f97316; --qa-shadow: rgba(244,63,94,.42); box-shadow: 0 6px 18px rgba(244,63,94,.32); }
  .qa-card--app  { --qa-from: #a855f7; --qa-to: #ec4899; --qa-shadow: rgba(168,85,247,.45);  box-shadow: 0 6px 18px rgba(168,85,247,.32); }

  /* app card: shimmering aurora layer + subtle floating icon */
  .qa-card--app::after {
    background:
      radial-gradient(circle at 22% 18%, rgba(255,255,255,.34), transparent 52%),
      radial-gradient(circle at 82% 88%, rgba(236,72,153,.45), transparent 55%),
      radial-gradient(circle at bottom left, rgba(168,85,247,.40), transparent 55%);
    opacity: .95;
  }
  .qa-card--app .qa-card__icon {
    background: rgba(255,255,255,.20);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.32), 0 0 18px rgba(168,85,247,.40);
    animation: qaAppFloat 3.2s ease-in-out infinite;
  }
  .qa-card--app:hover .qa-card__icon { animation-play-state: paused; }
  @keyframes qaAppFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .qa-card--app .qa-card__icon { animation: none; }
  }

  /* "جدید" badge — top corner pill */
  .qa-card__badge {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 2;
    padding: 2px 9px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.6;
    letter-spacing: .02em;
    color: #a855f7;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
  }

  .qa-card__icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 13px;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
    transition: transform .28s cubic-bezier(.2,.7,.2,1.05), background .28s ease;
  }
  .qa-card:hover .qa-card__icon {
    transform: scale(1.08) rotate(-3deg);
    background: rgba(255,255,255,.32);
  }
  .qa-card__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
  }
  .qa-card__title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.01em;
    text-shadow: 0 1px 2px rgba(0,0,0,.12);
  }
  .qa-card__subtitle {
    font-size: 11.5px;
    font-weight: 500;
    opacity: .92;
    line-height: 1.3;
  }
  .qa-card__arrow {
    flex-shrink: 0;
    opacity: .9;
    transition: transform .22s ease;
  }
  .qa-card:hover .qa-card__arrow { transform: translateX(-4px); }

  /* Mobile: stack icon over text — 3 buttons side by side, compact and visible above the fold */
  @media (max-width: 768px) {
    .home-quick-actions {
      padding: 10px 0 8px;
    }
    .home-quick-actions .container {
      padding: 0 10px;
    }
    .home-quick-actions__grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
    }
    .qa-card {
      flex-direction: column;
      text-align: center;
      padding: 12px 6px 11px;
      gap: 7px;
      border-radius: 16px;
    }
    .qa-card__icon {
      width: 40px;
      height: 40px;
      border-radius: 11px;
    }
    .qa-card__text { align-items: center; gap: 1px; }
    .qa-card__title {
      font-size: 11.5px;
      font-weight: 700;
      line-height: 1.25;
      white-space: normal;
    }
    .qa-card__subtitle,
    .qa-card__arrow { display: none; }
  }
  @media (max-width: 380px) {
    .home-quick-actions__grid { gap: 6px; }
    .qa-card { padding: 10px 4px; border-radius: 14px; }
    .qa-card__icon { width: 36px; height: 36px; }
    .qa-card__title { font-size: 10.5px; }
  }

  /* ===== HERO SECTION ===== */
  .hero-section {
                      position: relative;
    height: 100vh;
    min-height: 600px;
                      overflow: hidden;
                    }

  .hero-slider {
    height: 100%;
    position: relative;
    padding: 0 clamp(8px, 2vw, 24px);
  }

  .hero-swiper {
    height: 100%;
    overflow: visible;
  }

  .hero-slide {
    height: 100%;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    transform: scale(0.96);
    opacity: 0.72;
    transition: transform 0.45s ease, opacity 0.45s ease;
  }

  .hero-slide.swiper-slide-active {
    transform: scale(1);
    opacity: 1;
  }

  .hero-slide__content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    pointer-events: none;
  }

  .hero-slide__text-line {
    position: absolute;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    padding: 10px 20px;
  }

  .hero-slide__text-line--small {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
  }

  .hero-slide__text-line--medium {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }

  .hero-slide__text-line--large {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }

  .hero-slide__text-line--xlarge {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
  }

  .hero-slide__text {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 600px;
    padding: 0;
  }

  .hero-slide__title {
    font-size: clamp(2.5rem, 8vw, 4rem);
                      font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  }

  .hero-slide__title--accent {
    color: #f97e9f;
    display: block;
  }

  .hero-slide__title--main {
    display: block;
    margin-top: 0.5rem;
  }

  .hero-slide__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(249, 126, 159, 0.3);
    pointer-events: auto;
    position: absolute;
    z-index: 11;
  }

  .hero-slide__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(249, 126, 159, 0.4);
  }

  /* Text line positioning helpers */
  .hero-slide__text-line {
    white-space: nowrap;
    max-width: 90%;
    word-wrap: break-word;
  }

  @media (max-width: 768px) {
    .hero-slide__text-line {
      white-space: normal;
      max-width: 80%;
    }
  }

  .hero-slide__image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
  }

  .hero-slide__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Overlay for better text readability */
  .hero-slide__image::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%); */
    z-index: 1;
  }

  .hero-pagination {
    display: none !important;
  }

  /* Hero: موبایل و تبلت — بدون فضای خالی زیر اسلایدر و با نمایش اسلایدهای کناری */
  @media (max-width: 991px) {
    .hero-section {
      height: auto;
      min-height: 0;
      aspect-ratio: 4/3;
      max-height: 80vh;
    }

    .hero-slider {
      padding: 10px 10px;
    }

    .hero-slide__image {
      height: 100%;
    }

    .hero-pagination {
      bottom: 14px;
    }
  }

  @media (max-width: 576px) {
    .hero-section {
      aspect-ratio: 3/2;
      max-height: 78vh;
    }

    .hero-pagination {
      bottom: 10px;
    }
  }

  /* ===== STORY / HIGHLIGHTS — shl-* system ===== */

  /* ── Section wrapper ─────────────────────────────────────────────── */
  .shl-section {
    padding: 8px 10px 6px;
    overflow: visible;
    position: relative;
    background: transparent;
    min-height: 108px;
  }

  /* ── Row: دو باکس کنار هم — daily چپ، هایلایت راست ────────────── */
  .shl-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: stretch;
    direction: ltr;
  }

  /* ── Daily Story Box ─────────────────────────────────────────────── */
  @keyframes neon-daily-pulse {
    0%, 100% {
      box-shadow:
        0 0 6px #5CB8E4,
        0 0 16px rgba(92,184,228,.6),
        0 0 32px rgba(92,184,228,.35),
        inset 0 0 20px rgba(92,184,228,.06);
    }
    50% {
      box-shadow:
        0 0 10px #7ecfef,
        0 0 26px rgba(92,184,228,.8),
        0 0 52px rgba(92,184,228,.5),
        inset 0 0 30px rgba(92,184,228,.1);
    }
  }
  .shl-daily-box {
    flex-shrink: 0;
    background: linear-gradient(145deg, #fff0f8 0%, #fbb6ce 40%, #ede9fe 72%, #fce7f3 100%);
    border-radius: 20px;
    border: 1.5px solid #5CB8E4;
    animation: neon-daily-pulse 2.8s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px 10px;
  }
  .shl-daily-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    color: inherit;
  }
  .shl-daily-btn:focus-visible .shl-ring { outline: 2px solid #f149a0; outline-offset: 2px; }
  .shl-daily-btn:hover .shl-ring,
  .shl-daily-btn:active .shl-ring { transform: scale(1.06); }
  .shl-daily-btn--empty .shl-ring { background: #d1d5db; animation: none; }
  .shl-daily-btn.is-seen .shl-ring {
    background: transparent;
    border: 2px solid #c7ccd4;
    padding: 2px;
    animation: none;
  }

  /* ── Add Daily Story button (admin only) ──────────────────────────── */
  .shl-add-daily {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .65rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    direction: rtl;
    background: linear-gradient(135deg, #f149a0 0%, #a855f7 60%, #4ea7d8 100%);
    border-radius: 30px;
    padding: 4px 11px 4px 9px;
    box-shadow: 0 2px 10px rgba(241,73,158,.35);
    transition: transform .15s, box-shadow .15s;
    letter-spacing: .01em;
  }
  .shl-add-daily:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 14px rgba(241,73,158,.5);
  }
  .shl-add-daily:active { transform: scale(.97); }
  .shl-add-daily svg { flex-shrink: 0; }

  /* ── Highlights Box ──────────────────────────────────────────────── */
  @keyframes neon-hl-pulse {
    0%, 100% {
      box-shadow:
        0 0 5px #f472b6,
        0 0 14px rgba(244,114,182,.55),
        0 0 26px rgba(244,114,182,.3);
    }
    50% {
      box-shadow:
        0 0 8px #fb7185,
        0 0 20px rgba(244,114,182,.75),
        0 0 40px rgba(244,114,182,.45);
    }
  }
  .shl-hl-box {
    flex: 1;
    min-width: 0;
    background: linear-gradient(145deg, #fff5fb 0%, #fce7f3 35%, #ede9fe 68%, #fce7f3 100%);
    border-radius: 20px;
    border: 1.5px solid #f472b6;
    animation: neon-hl-pulse 2.8s ease-in-out infinite;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
  }


  /* ── Label for daily (زیر دایره) ────────────────────────────────── */
  .shl-label--daily {
    font-size: .62rem;
    font-weight: 700;
    color: #9333ea;
    text-shadow: none;
    text-align: center;
    white-space: nowrap;
    direction: rtl;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
  }

  /* ── Scroll hint arrow ───────────────────────────────────────────── */
  @keyframes hint-bounce {
    0%, 100% { transform: translateX(0); }
    50%       { transform: translateX(4px); }
  }
  .shl-scroll-hint {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 6px;
    background: linear-gradient(to right, transparent 0%, rgba(255,240,251,.85) 55%, rgba(255,240,251,1) 100%);
    border-radius: 0 20px 20px 0;
    pointer-events: none;
    transition: opacity .3s;
    z-index: 2;
  }
  .shl-scroll-hint svg {
    color: #E64980;
    animation: hint-bounce 1.1s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(230,73,128,.5));
  }
  .shl-scroll-hint.hidden { opacity: 0; }

  /* ── Track (داخل باکس هایلایت) ──────────────────────────────────── */
  .shl-track-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 12px 10px;
    direction: ltr;
    width: 100%;
  }
  .shl-track-wrap::-webkit-scrollbar { display: none; }
  .shl-track {
    display: flex;
    gap: 14px;
    width: max-content;
    align-items: flex-start;
    direction: ltr;
  }

  /* Divider — no longer used */
  .shl-sep { display: none; }

  /* ── Item ────────────────────────────────────────────────────────── */
  .shl-item { display: flex; flex-direction: column; align-items: center; }

  /* ── Pill button ─────────────────────────────────────────────────── */
  .shl-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 0 0;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    text-decoration: none;
    color: inherit;
  }
  .shl-pill:focus-visible .shl-ring { outline: 2px solid #4ea7d8; outline-offset: 2px; }

  /* ── Ring (Instagram-like sizing: 72px outer, 3px gap) ───────────── */
  .shl-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: linear-gradient(to bottom right, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
    padding: 3px;
    transition: transform .18s ease;
  }
  @keyframes shl-ring-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(214,41,118,.22); }
    50%       { box-shadow: 0 0 0 4px rgba(214,41,118,.07); }
  }
  .shl-ring:not(.shl-ring--empty):not(.shl-ring--add):not(.shl-ring--seen) {
    animation: shl-ring-pulse 3.5s ease-in-out infinite;
  }
  .shl-pill:hover .shl-ring,
  .shl-pill:active .shl-ring {
    transform: scale(1.06);
    animation: none;
  }
  .shl-ring--empty {
    background: #d1d5db;
    animation: none;
  }
  .shl-ring--add {
    background: transparent;
    border: 2px dashed rgba(78,167,216,.4);
    animation: none;
    padding: 0;
  }
  /* Seen state: thin grey ring — مثل اینستاگرام */
  .shl-pill.is-seen .shl-ring {
    background: transparent;
    border: 2px solid #c7ccd4;
    padding: 2px;
    animation: none;
  }
  .shl-pill.is-seen:hover .shl-ring {
    border-color: #adb5c0;
    transform: scale(1.04);
  }

  /* ── Ring inner white gap circle ────────────────────────────────── */
  .shl-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-sizing: border-box;
  }
  .shl-pill.is-seen .shl-inner {
    border-color: #fff;
  }
  .shl-ring--add .shl-inner {
    background: rgba(78,167,216,.06);
    border-color: transparent;
    width: 76px;
    height: 76px;
  }
  .shl-inner img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
  .shl-inner--add { background: transparent; border: none; color: #9ca3af; }
  .shl-inner--daily { padding: 0; }
  /* shelby-avatar.png is a square gradient image — cover fills the circle perfectly */
  .shl-inner--daily img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

  /* Daily icon fallback — unused (shelby-avatar.png handles it) */

  /* Letter fallback */
  .shl-inner-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #fce7f3 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 900;
    color: #7c3aed;
  }

  /* Admin add-story link — removed from story row (use admin panel instead) */

  /* ── Label (single line + ellipsis like Instagram) ───────────────── */
  .shl-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #6b21a8;
    text-align: center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    direction: ltr;
  }

  .shl-admin-metrics {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 92px;
    direction: rtl;
    flex-wrap: wrap;
  }
  .shl-admin-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 17px;
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(248,247,250,.86);
    color: #1A131A;
    border: 1px solid rgba(91,194,231,.38);
    font-size: .58rem;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(91,194,231,.18);
  }
  .shl-admin-chip--pending {
    background: linear-gradient(90deg, rgba(231,107,163,.18) 0%, rgba(91,194,231,.15) 100%);
    color: #9f2d65;
    border-color: rgba(231,107,163,.45);
  }
  .shl-admin-chip[hidden] { display: none; }

  /* ===== VIEWER (shlv) ===== */
  .shlv {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    /* visibility:hidden در حالت close تضمین می‌کنه touch-action:none روی
       فرزندها (مثل .shlv__stage) باعث block شدن اسکرول صفحه نشه. */
    visibility: hidden;
    transition: opacity .2s ease;
  }
  .shlv.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
  /* backdrop */
  .shlv__bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .shlv__wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
  /* 9:16 card — desktop centered, mobile fullscreen */
  .shlv__card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(calc(100dvh * 9 / 16), min(400px, 100vw));
    max-height: 100dvh;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.7);
  }
  @media (max-width: 480px) {
    .shlv__card { width: 100vw; height: 100dvh; border-radius: 0; overflow: visible; }
  }
  /* Group transition: brief fade-scale when switching between highlights */
  @keyframes shlv-group-enter {
    0%   { opacity: .45; transform: scale(.97); }
    100% { opacity: 1;   transform: scale(1); }
  }
  .shlv__card--group-enter {
    animation: shlv-group-enter .28s ease;
  }

  /* Top/bottom gradient overlays for readability */
  .shlv__top-overlay {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, transparent 100%);
    z-index: 8;
    pointer-events: none;
  }
  .shlv__btm-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,.35) 0%, transparent 100%);
    z-index: 8;
    pointer-events: none;
  }

  /* ── Segments — Instagram exact ──────────────────────────────────── */
  .shlv__segs {
    position: absolute;
    top: 6px;
    left: 4px;
    right: 4px;
    z-index: 12;
    display: flex;
    gap: 2px;
    direction: ltr;
  }
  .shlv__seg {
    flex: 1;
    height: 2px;
    border-radius: 1px;
    background: rgba(255,255,255,.4);
    overflow: hidden;
  }
  .shlv__seg-fill {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: none;
  }
  .shlv__seg.is-done .shlv__seg-fill { width: 100%; }

  /* ── Header — Instagram exact ─────────────────────────────────────── */
  .shlv__head {
    position: absolute;
    top: 16px;
    left: 8px;
    right: 8px;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    pointer-events: none;
    direction: ltr;
  }
  .shlv.is-open .shlv__head > * { pointer-events: auto; }

  .shlv__identity {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
  }
  .shlv__avatar-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1499e, #4ea7d8);
    padding: 1.5px;
    flex-shrink: 0;
  }
  .shlv__avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #111;
    border: 1.5px solid #fff;
    display: block;
  }
  .shlv__id-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
  }
  .shlv__name {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
    flex-shrink: 1;
  }
  .shlv__time {
    color: rgba(255,255,255,.6);
    font-size: 12px;
    line-height: 1;
    direction: ltr;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .shlv__time:not([hidden])::before {
    content: '·';
    margin-right: 2px;
    opacity: 0.6;
  }
  .shlv__time[hidden] { display: none; }

  /* Header right side: mute + close */
  .shlv__head-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }
  /* mute & close — Instagram: بدون پس‌زمینه، فقط آیکون سفید */
  .shlv__mute-btn,
  .shlv__close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: opacity .12s;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.6));
  }
  .shlv__mute-btn[hidden] { display: none; }
  .shlv__mute-btn:active,
  .shlv__close:active { opacity: .7; }

  /* ── Stage ───────────────────────────────────────────────────────── */
  .shlv__stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: 9 / 16;
    background: #000;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    overflow: hidden;
  }
  @media (max-width: 480px) {
    /* روی موبایل stage تمام کارت رو پر می‌کنه — bottom bar روی عکس float میشه */
    .shlv__stage { aspect-ratio: unset; flex: 1 1 100%; isolation: isolate; }
    .shlv__bottom {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(0,0,0,.45);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      z-index: 10001;
    }
  }
  /* Blur background for contain fit mode */
  .shlv__blur-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    filter: blur(22px);
    transform: scale(1.12); /* prevent white edges */
  }
  .shlv__blur-bg[hidden] { display: none; }

  /* Media wrapper — animation target for the page-flip slide.
     Children (img/video) keep their own inline transforms (custom media_fit),
     so animating this wrapper composes cleanly with those. */
  .shlv__media {
    position: absolute;
    inset: 0;
    z-index: 2;
    will-change: transform, opacity;
  }

  .shlv__img, .shlv__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    opacity: 0;
    transition: opacity .18s ease;
    z-index: 2;
  }
  .shlv__img.is-active, .shlv__video.is-active {
    display: block;
    opacity: 1;
  }

  /* ── Page-flip / sweep animation when navigating next/prev ──────── */
  /* z-index 20 → above loading(6), taps(7), top/btm-overlay(8), overlay-text(9)
     so the sweep is never hidden behind the dark loading background. */
  .shlv__sweep {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
    transform: translate3d(-120%, 0, 0);
    background: linear-gradient(
      100deg,
      transparent 0%,
      rgba(255, 255, 255, .10) 28%,
      rgba(255, 255, 255, .38) 50%,
      rgba(255, 255, 255, .10) 72%,
      transparent 100%
    );
  }
  .shlv__stage.shlv-anim-next .shlv__sweep {
    animation: shlv-sweep-next 420ms cubic-bezier(.4, 0, .2, 1);
  }
  .shlv__stage.shlv-anim-prev .shlv__sweep {
    animation: shlv-sweep-prev 420ms cubic-bezier(.4, 0, .2, 1);
  }
  @keyframes shlv-sweep-next {
    0%   { opacity: 0; transform: translate3d(-120%, 0, 0); }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { opacity: 0; transform: translate3d(120%, 0, 0); }
  }
  @keyframes shlv-sweep-prev {
    0%   { opacity: 0; transform: translate3d(120%, 0, 0); }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { opacity: 0; transform: translate3d(-120%, 0, 0); }
  }

  /* Tiny brightness pulse on the new media — adds a "polished" feel.
     Animates only filter so it never conflicts with inline transforms. */
  @keyframes shlv-media-enter {
    0%   { filter: brightness(.85); }
    55%  { filter: brightness(1.08); }
    100% { filter: brightness(1); }
  }
  .shlv__img.shlv-anim-enter.is-active,
  .shlv__video.shlv-anim-enter.is-active {
    animation: shlv-media-enter 320ms cubic-bezier(.22, .61, .36, 1);
  }

  /* Dim overlay — replaces filter:brightness for Safari-iOS reliability.
     A semi-transparent black layer fades in then out across the transition. */
  .shlv__dim {
    position: absolute;
    inset: 0;
    z-index: 19;
    pointer-events: none;
    background: #000;
    opacity: 0;
    will-change: opacity;
  }
  .shlv__stage.shlv-anim-next .shlv__dim,
  .shlv__stage.shlv-anim-prev .shlv__dim {
    animation: shlv-dim 420ms cubic-bezier(.4, 0, .2, 1);
  }
  @keyframes shlv-dim {
    0%   { opacity: 0; }
    35%  { opacity: .35; }
    100% { opacity: 0; }
  }

  /* Slide-in on the *new* media only — keyed off `.shlv-anim-enter` which is
     added when the new img/video gains `.is-active`. The wrapper is never
     animated, so the old (still-fading) media doesn't get yanked sideways. */
  @keyframes shlv-slide-in-next {
    0%   { transform: translate3d(18%, 0, 0); opacity: 0; }
    100% { transform: translate3d(0, 0, 0);   opacity: 1; }
  }
  @keyframes shlv-slide-in-prev {
    0%   { transform: translate3d(-18%, 0, 0); opacity: 0; }
    100% { transform: translate3d(0, 0, 0);    opacity: 1; }
  }
  .shlv__media[data-dir="1"]  .shlv__img.shlv-anim-enter.is-active:not([data-fit="custom"]),
  .shlv__media[data-dir="1"]  .shlv__video.shlv-anim-enter.is-active:not([data-fit="custom"]) {
    animation: shlv-slide-in-next 380ms cubic-bezier(.22, .61, .36, 1);
  }
  .shlv__media[data-dir="-1"] .shlv__img.shlv-anim-enter.is-active:not([data-fit="custom"]),
  .shlv__media[data-dir="-1"] .shlv__video.shlv-anim-enter.is-active:not([data-fit="custom"]) {
    animation: shlv-slide-in-prev 380ms cubic-bezier(.22, .61, .36, 1);
  }

  @media (prefers-reduced-motion: reduce) {
    .shlv__stage.shlv-anim-next .shlv__sweep,
    .shlv__stage.shlv-anim-prev .shlv__sweep,
    .shlv__stage.shlv-anim-next .shlv__dim,
    .shlv__stage.shlv-anim-prev .shlv__dim,
    .shlv__stage.shlv-anim-next .shlv__media,
    .shlv__stage.shlv-anim-prev .shlv__media,
    .shlv__img.shlv-anim-enter.is-active,
    .shlv__video.shlv-anim-enter.is-active {
      animation: none !important;
    }
  }

  /* Loading skeleton */
  .shlv__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    background: #111;
  }
  .shlv__loading[hidden] { display: none; }
  .shlv__spinner {
    width: 32px;
    height: 32px;
    border: 2.5px solid rgba(255,255,255,.22);
    border-top-color: rgba(255,255,255,.85);
    border-radius: 50%;
    animation: shlv-spin .65s linear infinite;
  }
  @keyframes shlv-spin { to { transform: rotate(360deg); } }

  /* Tap areas */
  .shlv__taps {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: flex;
    direction: ltr; /* چپ=قبلی، راست=بعدی — مثل اینستاگرام */
  }
  .shlv__tap {
    flex: 1;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
  }

  /* ── Text overlay ────────────────────────────────────────────────── */
  .shlv__overlay-text {
    position: absolute;
    /* Default: bottom centre — overridden by text_style JS when set */
    left: 14px;
    right: 14px;
    bottom: 116px;
    z-index: 9;
    font-size: .92rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,.8);
    text-align: center;
    pointer-events: none;
    line-height: 1.5;
    direction: rtl;
    word-break: break-word;
    /* خطوط جدید رو حفظ کن (یکسان با preview ادمین) */
    white-space: pre-wrap;
    box-sizing: border-box;
  }
  .shlv__overlay-text[hidden] { display: none; }

  /* ── Bottom bar — Instagram exact, سکشن جداگانه ────────────────── */
  .shlv__bottom {
    flex-shrink: 0;
    position: relative;
    z-index: 12;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
  }

  /* CTA — Instagram-style swipe-up link */
  .shlv__cta {
    display: block;
    text-align: center;
    padding: 9px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f1499e 0%, #4ea7d8 100%);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: opacity .15s;
  }
  .shlv__cta:hover { opacity: .88; }
  .shlv__cta[hidden] { display: none; }

  .shlv__comments-popover {
    position: absolute;
    inset: 0;
    z-index: 28;
    pointer-events: auto;
    direction: rtl;
  }
  .shlv__comments-popover[hidden] { display: none; }
  .shlv__comments-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .shlv__comments-sheet {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 16px;
    max-height: min(62%, 430px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    background:
      linear-gradient(135deg, rgba(248,247,250,.82), rgba(248,247,250,.62)),
      linear-gradient(90deg, rgba(231,107,163,.16) 0%, rgba(91,194,231,.16) 100%);
    border: 1px solid rgba(255,255,255,.70);
    box-shadow:
      0 18px 46px rgba(26,19,26,.24),
      0 0 0 1px rgba(91,194,231,.18) inset;
    backdrop-filter: blur(24px) saturate(1.15);
    -webkit-backdrop-filter: blur(24px) saturate(1.15);
    color: #1A131A;
    overflow: hidden;
  }
  .shlv__comments-sheet::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(231,107,163,.20) 0%, rgba(91,194,231,.20) 100%);
    opacity: .38;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    padding: 1px;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }
  .shlv__comments-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    z-index: 1;
  }
  .shlv__comments-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .shlv__comments-eyebrow {
    color: #E76BA3;
    font-size: .66rem;
    font-weight: 900;
    line-height: 1;
    direction: ltr;
    text-align: right;
  }
  .shlv__comments-title {
    color: #1A131A;
    font-size: .9rem;
    font-weight: 950;
    line-height: 1.15;
  }
  .shlv__comments-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(26,19,26,.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.58);
    color: #1A131A;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(26,19,26,.08);
  }
  .shlv__social-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: min(46dvh, 330px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 1px 2px 3px;
    direction: rtl;
    scrollbar-width: thin;
    position: relative;
    z-index: 1;
  }
  .shlv__social-panel[hidden],
  .shlv__approved-wrap[hidden],
  .shlv__admin-panel[hidden] { display: none; }
  .shlv__approved-wrap,
  .shlv__admin-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
  }
  .shlv__social-head,
  .shlv__admin-head {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }
  .shlv__social-title,
  .shlv__admin-title {
    color: #1A131A;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
  }
  .shlv__social-count,
  .shlv__admin-stat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 3px 7px;
    border-radius: 8px;
    background: rgba(255,255,255,.62);
    color: #1A131A;
    border: 1px solid rgba(91,194,231,.28);
    font-size: .66rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
  }
  .shlv__admin-stat--pending {
    margin-right: auto;
    background: rgba(231,107,163,.14);
    color: #9f2d65;
    border-color: rgba(231,107,163,.34);
  }
  .shlv__comments-strip {
    display: flex;
    flex-direction: column;
    gap: 7px;
    overflow: visible;
    padding-bottom: 0;
  }
  .shlv__comment-card {
    flex: 0 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.74);
    background: rgba(255,255,255,.56);
    color: #1A131A;
    min-width: 0;
    box-shadow: 0 8px 20px rgba(26,19,26,.08);
  }
  .shlv__comment-avatar,
  .shlv__pending-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #E76BA3 0%, #5BC2E7 100%);
    color: #fff;
    font-size: .76rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(91,194,231,.24);
  }
  .shlv__comment-name,
  .shlv__pending-name {
    display: block;
    color: #1A131A;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .shlv__comment-text,
  .shlv__pending-text {
    margin: 3px 0 0;
    color: rgba(26,19,26,.78);
    font-size: .72rem;
    line-height: 1.55;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .shlv__pending-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .shlv__pending-card {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(231,107,163,.13), rgba(91,194,231,.11)), rgba(255,255,255,.58);
    border: 1px solid rgba(231,107,163,.26);
    box-shadow: 0 8px 20px rgba(26,19,26,.08);
  }
  .shlv__pending-meta {
    color: rgba(26,19,26,.48);
    font-size: .63rem;
    font-weight: 700;
    margin-top: 3px;
  }
  .shlv__pending-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    flex-wrap: wrap;
  }
  .shlv__moderate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    border: 0;
    font: inherit;
    font-size: .68rem;
    font-weight: 900;
    cursor: pointer;
    color: #fff;
    transition: transform .12s ease, opacity .12s ease;
  }
  .shlv__moderate-btn:active { transform: scale(.96); }
  .shlv__moderate-btn:disabled { opacity: .58; cursor: wait; }
  .shlv__moderate-btn--approve { background: linear-gradient(90deg, #E76BA3 0%, #5BC2E7 100%); }
  .shlv__moderate-btn--reject { background: #1A131A; }
  .shlv__pending-empty {
    margin: 0;
    color: rgba(26,19,26,.62);
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.5;
  }
  @media (max-width: 480px) {
    .shlv__comments-sheet {
      left: 12px;
      right: 12px;
      bottom: 86px;
      max-height: min(58dvh, 430px);
    }
    .shlv__social-panel {
      max-height: min(48dvh, 360px);
    }
    .shlv__comment-card { width: 100%; }
  }

  /* bar row: input + icons */
  .shlv__bar {
    display: flex;
    align-items: center;
    gap: 4px;
    direction: ltr;
    height: 44px;
  }
  .shlv__bar-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    background: rgba(30,30,30,.85);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px;
    color: #fff;
    font-size: 16px;        /* ≥16px — جلوگیری از zoom روی iPhone */
    font-family: inherit;
    padding: 0 14px;
    outline: none;
    direction: rtl;
    text-align: right;
    caret-color: #fff;
    -webkit-text-fill-color: #fff;
    transition: border-color .15s;
    box-sizing: border-box;
  }
  .shlv__bar-input::placeholder {
    color: rgba(255,255,255,.55);
    -webkit-text-fill-color: rgba(255,255,255,.55);
  }
  .shlv__bar-input:focus {
    background: #fff;
    border-color: rgba(255,255,255,.5);
    color: #111;
    -webkit-text-fill-color: #111;
    caret-color: #111;
  }
  .shlv__bar-input:focus::placeholder {
    color: rgba(0,0,0,.35);
    -webkit-text-fill-color: rgba(0,0,0,.35);
  }
  .shlv__bar-input:-webkit-autofill,
  .shlv__bar-input:-webkit-autofill:hover,
  .shlv__bar-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #111;
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    caret-color: #111;
    transition: background-color 5000s ease-in-out 0s;
  }

  /* icon buttons — 40px hit area */
  .shlv__bar-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    outline: none;
    border-radius: 50%;
    transition: transform .1s;
  }
  .shlv__bar-btn:active { transform: scale(.82); }

  .shlv__comments-btn {
    position: relative;
    background:
      linear-gradient(#1A131A, #1A131A) padding-box,
      linear-gradient(90deg, #E76BA3 0%, #5BC2E7 100%) border-box;
    border: 1.5px solid transparent;
    color: #F8F7FA;
    box-shadow: 0 7px 20px rgba(91,194,231,.18);
  }
  .shlv__comments-btn[hidden] { display: none; }
  .shlv__comments-btn.is-active {
    background: linear-gradient(90deg, #E76BA3 0%, #5BC2E7 100%);
    color: #fff;
  }
  .shlv__comments-btn-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #E76BA3;
    color: #fff;
    border: 2px solid rgba(26,19,26,.92);
    font-size: .58rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 5px 12px rgba(231,107,163,.28);
  }
  .shlv__comments-btn-count:empty { display: none; }

  /* send button */
  .shlv__bar-send {
    background: linear-gradient(90deg, #E76BA3 0%, #5BC2E7 100%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .shlv__bar-send[hidden] { display: none; }
  .shlv__bar-send svg { display: block; }
  @keyframes shlv-send-pop {
    from { transform: scale(.6); opacity: 0; }
    to   { transform: scale(1);  opacity: 1; }
  }
  .shlv__bar-send:not([hidden]) { animation: shlv-send-pop .15s ease; }

  /* Like active state */
  .shlv__bar-like.is-liked svg { fill: #ef4444; stroke: #ef4444; }
  .shlv__bar-like.is-liked { animation: shlv-like-pop .25s ease; }
  @keyframes shlv-like-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.35); }
    100% { transform: scale(1); }
  }

  /* Comment feedback */
  .shlv__comment-msg {
    color: #a7f3d0;
    font-size: .78rem;
    text-align: center;
    margin: 0;
    direction: rtl;
  }
  .shlv__comment-msg[hidden] { display: none; }
  .shlv__comment-msg.is-error { color: #fca5a5; }

  /* ── Empty/Expired overlays ──────────────────────────────────────── */
  .shlv__empty-msg,
  .shlv__expired {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    width: 100%;
  }
  .shlv__empty-msg[hidden], .shlv__expired[hidden] { display: none; }
  .shlv__expired-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }
  .shlv__empty-msg p,
  .shlv__expired-text {
    color: rgba(255,255,255,.85);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.5;
    direction: rtl;
    margin: 0;
    flex: 1;
  }
  .shlv__expired-btn {
    flex-shrink: 0;
    padding: 9px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #E64980, #5CB8E4);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    cursor: pointer;
    transition: opacity .15s;
    -webkit-tap-highlight-color: transparent;
    direction: rtl;
    white-space: nowrap;
  }
  .shlv__expired-btn:hover { opacity: .88; }

  /* ── Toast ────────────────────────────────────────────────────────── */
  .shl-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15,15,15,.92);
    color: #fff;
    font-size: .83rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 999px;
    z-index: 99999;
    box-shadow: 0 6px 24px rgba(0,0,0,.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap;
    direction: rtl;
    transition: opacity .2s ease;
    pointer-events: none;
  }
  .shl-toast[hidden] { display: none; }

  /* ════════════════════════════════════════════════════════════════════
     Story Gate — دروازهٔ عضویت برای مهمان‌ها (رنگ‌های رسمی برند شلبی)
     Shelby Pink #E76BA3 · Shelby Blue #5BC2E7 · پس‌زمینهٔ Dark Plum #1A131A
     ════════════════════════════════════════════════════════════════════ */
  .shl-gate {
    --sg-pink: #E76BA3;
    --sg-blue: #5BC2E7;
    --sg-grad: linear-gradient(135deg, #E76BA3 0%, #5BC2E7 100%);
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;                  /* ارتفاع واقعی نما روی موبایل (با نوار آدرس کروم) */
    z-index: 100000;                 /* بالاتر از FAB پشتیبانی (99990) و toast (99999) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    direction: rtl;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    font-family: 'Vazirmatn RD UI FD NL', 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }
  .shl-gate.is-open { opacity: 1; visibility: visible; }

  /* پس‌زمینهٔ لوکس تیره با هالهٔ دو رنگ برند */
  .shl-gate__backdrop {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(120% 90% at 18% 12%, rgba(231,107,163,0.30), transparent 55%),
      radial-gradient(120% 90% at 82% 90%, rgba(91,194,231,0.28), transparent 55%),
      rgba(26,19,26,0.88);           /* Dark Plum #1A131A */
    backdrop-filter: blur(8px) saturate(1.1);
    -webkit-backdrop-filter: blur(8px) saturate(1.1);
  }

  /* کارت */
  .shl-gate__card {
    position: relative;
    width: 100%;
    max-width: 392px;
    max-height: 100%;                /* داخل کانتینرِ پد‌دار جا می‌گیرد؛ سرریز داخلی اسکرول می‌شود */
    overflow-y: auto;
    background: linear-gradient(180deg, #ffffff 0%, #fffafd 100%);
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow:
      0 40px 90px rgba(26,19,26,0.55),
      0 14px 30px rgba(231,107,163,0.22),
      0 0 0 1px rgba(91,194,231,0.10);
    transform: translateY(22px) scale(0.94);
    transition: transform .42s cubic-bezier(0.34,1.4,0.64,1);
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .shl-gate__card::-webkit-scrollbar { display: none; }
  .shl-gate.is-open .shl-gate__card { transform: translateY(0) scale(1); }

  /* ─── هدر گرادیانی ─── */
  .shl-gate__header {
    position: relative;
    padding: 30px 22px 24px;
    background: var(--sg-grad);
    color: #fff;
    text-align: center;
    overflow: hidden;
  }
  .shl-gate__header::after {
    content: "";
    position: absolute;
    top: -55%; left: -15%;
    width: 60%; height: 200%;
    background: radial-gradient(closest-side, rgba(255,255,255,0.35), rgba(255,255,255,0));
    pointer-events: none;
  }
  .shl-gate__close {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
    width: 36px; height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, transform .15s;
    -webkit-tap-highlight-color: transparent;
  }
  .shl-gate__close:hover { background: rgba(255,255,255,0.30); transform: rotate(90deg); }
  .shl-gate__close svg { width: 18px; height: 18px; }

  /* آواتار با حلقهٔ استوری و تپش ملایم */
  .shl-gate__avatar-wrap {
    position: relative;
    width: 84px; height: 84px;
    margin: 4px auto 14px;
  }
  .shl-gate__avatar-pulse {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    animation: sgPulse 2.4s ease-out infinite;
    pointer-events: none;
  }
  @keyframes sgPulse {
    0%   { transform: scale(1);    opacity: .75; }
    70%  { transform: scale(1.22); opacity: 0; }
    100% { transform: scale(1.22); opacity: 0; }
  }
  .shl-gate__avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.22);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18), inset 0 0 0 2.5px rgba(255,255,255,0.92);
  }
  .shl-gate__avatar img { width: 100%; height: 100%; object-fit: cover; }
  .shl-gate__eyebrow {
    display: block;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .92;
  }
  .shl-gate__head-title { margin: 5px 0 0; font-size: 1.18rem; font-weight: 800; line-height: 1.3; }
  .shl-gate__head-sub {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.92);
    display: flex; align-items: center; justify-content: center; gap: 6px;
  }
  .shl-gate__dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #eafff2;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.35);
  }

  /* ─── بدنه ─── */
  .shl-gate__body { padding: 24px 22px 22px; text-align: center; }
  .shl-gate__title {
    margin: 0 0 18px;
    font-size: 1.16rem;
    font-weight: 800;
    color: #2d2230;
    line-height: 1.6;
  }
  .shl-gate__perks {
    list-style: none;
    margin: 0 0 22px;
    padding: 14px 16px;
    text-align: right;
    background: linear-gradient(135deg, rgba(231,107,163,0.07), rgba(91,194,231,0.07));
    border: 1px solid rgba(231,107,163,0.13);
    border-radius: 16px;
  }
  .shl-gate__perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #4a4350;
    font-weight: 600;
    padding: 7px 0;
  }
  .shl-gate__check {
    flex-shrink: 0;
    width: 23px; height: 23px;
    border-radius: 50%;
    background: var(--sg-grad);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(231,107,163,0.32);
  }
  .shl-gate__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 18px;
    border-radius: 16px;
    background: var(--sg-grad);
    color: #fff !important;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(231,107,163,0.42), 0 4px 10px rgba(91,194,231,0.28);
    transition: transform .18s cubic-bezier(0.34,1.56,0.64,1), box-shadow .2s ease;
  }
  .shl-gate__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(231,107,163,0.52), 0 6px 14px rgba(91,194,231,0.34);
    color: #fff !important;
  }
  .shl-gate__cta:active { transform: translateY(0) scale(0.98); }
  .shl-gate__cta svg { width: 20px; height: 20px; }
  .shl-gate__login {
    display: block;
    margin-top: 14px;
    font-size: 0.87rem;
    color: #8a8190 !important;
    text-decoration: none;
    transition: color .15s;
  }
  .shl-gate__login strong { color: var(--sg-pink); font-weight: 800; }
  .shl-gate__login:hover { color: var(--sg-pink) !important; }
  .shl-gate__note {
    margin: 16px 0 0;
    font-size: 0.75rem;
    color: #a99fb0;
    line-height: 1.7;
  }

  /* دروازه باز است → ویجت پشتیبانی پنهان شود (مثل رفتار viewer) */
  html.shl-gate-open #shelby-support-widget {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  @media (max-width: 480px) {
    /* مارجین امن بالا/پایین تا با نوار آدرس و ناچ کروم بریده نشود */
    .shl-gate { padding: calc(env(safe-area-inset-top, 0px) + 14px) 14px calc(env(safe-area-inset-bottom, 0px) + 14px); }
    .shl-gate__card { max-width: 100%; }
    .shl-gate__header { padding: 26px 20px 22px; }
    .shl-gate__body { padding: 22px 18px 20px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .shl-gate, .shl-gate__card { transition: opacity .15s ease, visibility .15s ease !important; }
    .shl-gate__card { transform: none !important; }
    .shl-gate__avatar-pulse { animation: none !important; }
  }

  /* ===== CATEGORIES SECTION ===== */
  .categories-section {
    padding: 20px 0;
    background: #ffffff;
  }

  .categories-header {
    text-align: center;
    margin-bottom: 20px;
  }

  .categories-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
                      color: #2d3748;
    margin-bottom: 1rem;
                    }

  .categories-title--accent {
                      color: #2ca1ed;
  }

  .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }

  /* موبایل: دو ستون کنار هم (اولویت بالا) */
  @media (max-width: 575px) {
    .home-page .categories-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 12px;
    }
  }

  .category-card {
                      position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
  }

  .category-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
  }

  .category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }

  .category-card__image {
    position: relative;
    overflow: hidden;
  }

  .category-card__bg {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .category-card:hover .category-card__bg {
    transform: scale(1.05);
  }

  .category-card__overlay-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    animation: categoryOverlayFloat 3s ease-in-out infinite;
    pointer-events: none;
  }

  @keyframes categoryOverlayFloat {
    0%, 100% {
      transform: translate(0, 0);
    }
    25% {
      transform: translate(3px, -3px);
    }
    50% {
      transform: translate(-2px, 2px);
    }
    75% {
      transform: translate(2px, 3px);
    }
  }

  .category-card:hover .category-card__overlay-image {
    animation-duration: 2s;
  }

  .category-card__content {
    padding: 6px;
    text-align: center;
  }

  .category-card__title {
    margin: 0 0 6px 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2d3748;
    transition: color 0.3s ease;
  }

  .category-card:hover .category-card__title {
    color: #f97e9f;
  }

  .category-card__count {
                      color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
  }

  .categories-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #718096;
    font-size: 1.1rem;
  }

  /* ===== SECTIONS ===== */
  .seasonal-section {
    padding: 20px 0;
  }

  /* ===== BEST SELLING & NEWEST SECTIONS ===== */
  .best-selling-section {
    padding: 12px 0;
    background: transparent;
  }

  .newest-products-section {
    padding: 12px 0;
    background: transparent;
  }

  .blog-section {
    padding: 10px 0 10px;
  }

  /* ── Panel wrappers ── */
  .best-selling-section .home-product-strip-panel,
  .newest-products-section .home-product-strip-panel {
    position: relative;
    border-radius: 22px;
    padding: 20px 18px 16px;
    overflow: hidden;
  }

  .best-selling-section .home-product-strip-panel {
    background: linear-gradient(155deg, #fff8f2 0%, #fff2f8 55%, #fff0f5 100%);
    border: 1.5px solid rgba(249, 126, 159, 0.22);
    box-shadow:
      0 4px 24px rgba(249, 126, 159, 0.13),
      0 1px 4px rgba(0, 0, 0, 0.04);
  }

  /* Subtle decorative glow blobs */
  .best-selling-section .home-product-strip-panel::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(249, 126, 159, 0.12) 0%, transparent 70%);
    pointer-events: none;
  }

  .newest-products-section .home-product-strip-panel {
    background: linear-gradient(155deg, #fff8fb 0%, #fce7f3 55%, #fff2f8 100%);
    border: 1.5px solid rgba(249, 126, 159, 0.22);
    box-shadow:
      0 4px 24px rgba(249, 126, 159, 0.13),
      0 1px 4px rgba(0, 0, 0, 0.04);
  }

  .newest-products-section .home-product-strip-panel::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(249, 126, 159, 0.12) 0%, transparent 70%);
    pointer-events: none;
  }

  /* ── Title color override ── */
  .best-selling-section .strip-title--outside .section-title--accent,
  .newest-products-section .strip-title--outside .section-title--accent {
    color: #0f172a;
  }

  /* عنوان بیرون از کادر */
  .strip-title--outside {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px 0;
    font-size: clamp(1.25rem, 3.4vw, 1.75rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.2;
    direction: rtl;
  }

  .strip-title--outside .section-title__icon {
    font-size: 1.1rem;
    line-height: 1;
    display: inline-block;
  }

  .blog-section.home-product-strip-section .section-title--strip,
  .blog-section.home-product-strip-section .section-title--strip .section-title--accent {
    color: #fff;
  }


  .blog-section.home-product-strip-section .section-strip__view-all {
    color: #fff;
  }

  .blog-section.home-product-strip-section .section-strip__view-all:hover {
    color: rgba(255, 255, 255, 0.88);
  }

  .best-selling-section .home-product-strip-panel .products-empty,
  .newest-products-section .home-product-strip-panel .products-empty {
    color: #64748b;
  }

  .blog-section .products-empty {
    color: rgba(255, 255, 255, 0.95);
  }

  .best-selling-section .product-ribbon__arrow,
  .newest-products-section .product-ribbon__arrow {
    display: none;
  }

  .best-selling-section .product-ribbon,
  .newest-products-section .product-ribbon {
    margin: 0;
    gap: 0;
  }

  .best-selling-section .product-ribbon__track,
  .newest-products-section .product-ribbon__track {
    padding-left: 0;
    padding-right: 0;
    gap: 10px;
  }

  .blog-section .product-ribbon__arrow {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.65);
    color: #1e293b;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  }

  .best-selling-section .product-ribbon__arrow:hover:not(:disabled),
  .newest-products-section .product-ribbon__arrow:hover:not(:disabled),
  .blog-section .product-ribbon__arrow:hover:not(:disabled) {
    color: #0da8ed;
    border-color: rgba(255, 255, 255, 0.9);
  }

  .newest-products-section .product-ribbon__arrow:hover:not(:disabled) {
    color: #c400c9;
  }

  .section-header {
    text-align: center;
    margin-bottom: 20px;
  }

  .section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
  }

  .section-title--accent {
    color: #f97e9f;
  }

  .section-subtitle {
    color: #718096;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
  }

  .section-link {
                      display: inline-flex;
                      align-items: center;
    gap: 0.5rem;
    color: #f97e9f;
                      text-decoration: none;
                      font-weight: 600;
    font-size: 1rem;
                      transition: all 0.3s ease;
  }

  .section-link:hover {
    color: #e53e3e;
    gap: 0.75rem;
  }

  /* Home: compact product strips (جدیدترین / پرفروش‌ترین) */
  .home-product-strip-section .section-header--product-strip {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    text-align: right;
    margin-bottom: 16px;
    direction: rtl;
  }

  .home-product-strip-section .section-header__text {
    flex: 1;
    min-width: 0;
  }

  .home-product-strip-section .section-title--strip {
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    margin-bottom: 0.35rem;
    line-height: 1.25;
  }

  .home-product-strip-section .section-subtitle--strip {
    margin: 0;
    max-width: none;
    font-size: 0.9rem;
    color: #94a3b8;
  }

  .section-strip__view-all {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f97e9f;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .section-strip__view-all:hover {
    color: #e53e3e;
  }

  .section-strip__view-all svg {
    flex-shrink: 0;
  }

  /* ===== HOME STRIP PRODUCT CARD ===== */
  .home-strip-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  }

  .home-strip-card:hover {
    border-color: rgba(249, 126, 159, 0.4);
    box-shadow: 0 8px 28px rgba(249, 126, 159, 0.2), 0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-3px);
  }

  /* ── Image area ── */
  .home-strip-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 155px;
    background: #ffffff;
    overflow: hidden;
    text-decoration: none;
    flex-shrink: 0;
  }

  .home-strip-card__media img {
    max-width: 90%;
    max-height: 138px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
  }

  .home-strip-card:hover .home-strip-card__media img {
    transform: scale(1.05);
  }

  .home-strip-card__media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #e2e8f0;
  }

  /* ── Discount badge (on image) ── */
  .home-strip-card__sale-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.01em;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
    direction: ltr;
  }

  /* ── Out-of-stock image overlay ── */
  .home-strip-card__oos-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    z-index: 3;
    letter-spacing: 0.02em;
  }

  /* ── Body ── */
  .home-strip-card__body {
    padding: 10px 11px 11px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: right;
    direction: rtl;
  }

  /* ── Title ── */
  .home-strip-card__title {
    margin: 0;
    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1.38;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
  }

  .home-strip-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
  }

  .home-strip-card__title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .home-strip-card__title a:hover {
    color: #e84c87;
  }

  /* ── Pricing ── */
  .home-strip-card__pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-top: auto;
  }

  .home-strip-card__old {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 500;
    direction: ltr;
  }

  .home-strip-card__price-row {
    display: flex;
    align-items: baseline;
    gap: 3px;
    direction: ltr;
  }

  .home-strip-card__price {
    font-weight: 800;
    font-size: 0.96rem;
    color: #0f172a;
    letter-spacing: -0.025em;
  }

  .home-strip-card__currency {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
  }

  /* ── Add to cart button (full-width) ── */
  .home-strip-card__add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 10px;
    background: linear-gradient(135deg, #f97e9f 0%, #e84c87 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 3px 10px rgba(232, 76, 135, 0.32);
    direction: rtl;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
  }

  .home-strip-card__add-btn:hover {
    background: linear-gradient(135deg, #e84c87 0%, #c8185e 100%);
    box-shadow: 0 5px 16px rgba(232, 76, 135, 0.48);
    transform: translateY(-1px);
  }

  .home-strip-card__add-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(232, 76, 135, 0.3);
  }

  .home-strip-card__add-btn:disabled {
    opacity: 0.75;
    cursor: wait;
  }

  .home-strip-card__add-btn svg {
    flex-shrink: 0;
    opacity: 0.9;
  }

  /* ── OOS button ── */
  .home-strip-card__oos-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 10px;
    background: #f1f5f9;
    color: #94a3b8;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 600;
    direction: rtl;
    text-align: center;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
  }

  /* ===== PRODUCTS GRID ===== */
                    .products-grid {
                      display: grid;
                      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
                      gap: 30px;
                    }

                    .product-card {
                      background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
                      overflow: hidden;
                      transition: all 0.3s ease;
                      position: relative;
    border: 1px solid #f1f5f9;
                    }

                    .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
                    }

                    .product-card__image {
                      position: relative;
    height: 280px;
                      overflow: hidden;
                      background: #f8f9fa;
                    }

  .product-card__image a,
  .product-card__image--placeholder {
    display: flex;
    align-items: center;
    background-color: white;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .product-card__image--placeholder {
    background: #fff;
    color: #fff;
  }

  .product-card__image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
    margin: auto;
  }

  .product-card__image img[src=""],
  .product-card__image img:not([src]) {
    display: none;
  }

  .product-card:hover .product-card__image img {
    transform: scale(1.05);
  }

  .product-card__badge {
                      position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
                      border-radius: 20px;
    font-size: 0.75rem;
                      font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
                    }

  .product-card__badge--new {
    background: linear-gradient(135deg, #10b981, #34d399);
                      color: white;
                    }

  .product-card__badge--hit {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
                      color: white;
                    }

  .product-card__badge--sale {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
  }

  .product-card__badge--featured {
    background: linear-gradient(135deg, #805ad5, #9f7aea);
    color: white;
  }

                    .product-card__content {
                      padding: 20px;
                    }

                    .product-card__category {
    font-size: 0.8rem;
                      color: #f97e9f;
                      font-weight: 600;
                      text-transform: uppercase;
                      letter-spacing: 0.5px;
                      margin-bottom: 8px;
    display: block;
                    }

                    .product-card__title {
                      margin: 0 0 12px 0;
                      font-size: 1.1rem;
    font-weight: 600;
                      line-height: 1.4;
                    }

  .product-card__title a {
                      color: #2d3748;
                      text-decoration: none;
                      transition: color 0.3s ease;
                    }

  .product-card__title a:hover {
                      color: #f97e9f;
                    }

                    .product-card__description {
                      color: #4a5568;
    line-height: 1.6;
                      margin: 0 0 15px 0;
                      font-size: 0.9rem;
                    }

  .product-card__price,
  .product-card__pricing .product-card__price {
                      font-size: 1.2rem;
                      font-weight: 700;
                      color: #2d3748;
                    }

                    .product-card__price--original {
                      font-size: 1rem;
                      color: #a0aec0;
                      text-decoration: line-through;
                      margin-right: 10px;
                    }

  .product-card__price--sale {
    color: #e53e3e;
  }

                    .product-card__actions {
                      padding: 0 20px 20px 20px;
                      display: flex;
                      flex-direction: column;
                      gap: 8px;
                      align-items: stretch;
                    }

                    .product-card__actions-row {
                      display: flex;
                      flex-direction: row;
                      align-items: stretch;
                      gap: 16px;
                    }

                    .product-card__actions-row--icons .product-card__add-to-cart--icon,
                    .product-card__actions-row--icons .product-card__wishlist--icon {
                      flex: 1 1 0;
                      min-width: 0;
                    }

                    .product-card__actions-row--oos .product-card__stock-label {
                      flex: 1 1 0;
                      display: flex;
                      align-items: center;
                      justify-content: center;
                      padding: 10px 14px;
                      background: linear-gradient(135deg, #f44336, #d32f2f);
                      color: white;
                      border-radius: 12px;
                      font-size: 0.85rem;
                      font-weight: 600;
                      box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
                    }

                    .product-card__actions-row--oos .product-card__wishlist--icon {
                      flex: 0 0 38px;
                      width: 38px;
                      min-width: 38px;
                    }

                    .product-card__notify-link {
                      display: block;
                      text-align: center;
                      font-size: 0.8rem;
                      font-weight: 600;
                      color: #c44569;
                      text-decoration: underline;
                    }

                    .product-card__notify-link:hover {
                      color: #e53e3e;
                    }

                    .sr-only {
                      position: absolute;
                      width: 1px;
                      height: 1px;
                      padding: 0;
                      margin: -1px;
                      overflow: hidden;
                      clip: rect(0, 0, 0, 0);
                      white-space: nowrap;
                      border: 0;
                    }

                    .product-card__add-to-cart--icon {
                      display: flex;
                      align-items: center;
                      justify-content: center;
                      min-height: 38px;
                      padding: 0;
                      background: linear-gradient(135deg, #f97e9f, #ff9eb5);
                      color: white;
                      border: none;
                      border-radius: 10px;
                      font-weight: 600;
                      font-size: 1.12rem;
                      cursor: pointer;
                      transition: all 0.3s ease;
                      box-shadow: 0 4px 12px rgba(249, 126, 159, 0.3);
                      line-height: 1;
                    }

                    .product-card__add-to-cart--icon:hover {
                      transform: translateY(-2px);
                      box-shadow: 0 6px 16px rgba(249, 126, 159, 0.4);
                      background: linear-gradient(135deg, #e53e3e, #f97e9f);
                    }

                    .product-card__wishlist--icon {
                      display: flex;
                      align-items: center;
                      justify-content: center;
                      border: 2px solid #e2e8f0;
                      background: white;
                      border-radius: 10px;
                      cursor: pointer;
                      transition: all 0.3s ease;
                      padding: 0;
                      min-height: 38px;
                      font-size: 1.12rem;
                      line-height: 1;
                    }

  .product-card__wishlist--icon:hover {
                      border-color: #f97e9f;
                      background: #fef5f7;
    transform: scale(1.03);
  }

                    .product-card__add-to-cart:not(.product-card__add-to-cart--icon) {
                      flex: 1;
                      display: flex;
                      align-items: center;
                      justify-content: center;
                      gap: 8px;
                      padding: 12px 16px;
                      background: linear-gradient(135deg, #f97e9f, #ff9eb5);
                      color: white;
                      border: none;
                      border-radius: 12px;
                      font-weight: 600;
                      font-size: 0.9rem;
                      cursor: pointer;
                      transition: all 0.3s ease;
                      box-shadow: 0 4px 12px rgba(249, 126, 159, 0.3);
    text-decoration: none;
    white-space: nowrap;
                    }

                    .product-card__wishlist:not(.product-card__wishlist--icon) {
                      display: flex;
                      align-items: center;
                      justify-content: center;
                      width: 44px;
                      height: 44px;
                      border: 2px solid #e2e8f0;
                      background: white;
                      border-radius: 12px;
                      cursor: pointer;
                      transition: all 0.3s ease;
    padding: 0;
                    }

  .product-card__wishlist:not(.product-card__wishlist--icon):hover {
                      border-color: #f97e9f;
                      background: #fef5f7;
    transform: scale(1.05);
  }

  .product-card__wishlist:not(.product-card__wishlist--icon) svg {
                      color: #cbd5e0;
                      transition: color 0.3s ease;
                    }

  .product-card__wishlist:not(.product-card__wishlist--icon):hover svg {
    color: #f97e9f;
  }

  /* ===== BLOG SECTION ===== */
                    .blog-section__header {
                      display: flex;
                      justify-content: space-between;
                      align-items: flex-start;
                      margin-bottom: 50px;
                      flex-wrap: wrap;
                      gap: 20px;
                    }

                    .blog-section__title {
                      flex: 1;
                      min-width: 300px;
                    }

                    .blog-section__title--main {
                      font-size: 2.5rem;
                      font-weight: 700;
                      line-height: 1.2;
                      margin: 0 0 10px 0;
                      color: #2d3748;
                    }

                    .blog-section__title--highlight {
                      color: #f97e9f;
                    }

                    .blog-section__subtitle {
                      color: #718096;
    font-size: 1.1rem;
                      margin: 0;
                    }

                    .blog-section__view-all {
    flex-shrink: 0;
                    }

                    .blog-section__view-all--link {
                      display: inline-flex;
                      align-items: center;
                      gap: 8px;
    color: #f97e9f;
                      text-decoration: none;
                      font-weight: 600;
    font-size: 1rem;
                      transition: all 0.3s ease;
                    }

                    .blog-section__view-all--link:hover {
    color: #e53e3e;
    gap: 12px;
                    }

  .blog-section__content {
    margin-bottom: 50px;
                    }

  .blog-section__content--ribbon {
    margin-bottom: 0;
  }

  /* ریبون مقالات صفحه اصلی (هم‌رفتار با اسلایدر محصولات) */
  .blog-home-ribbon .product-ribbon__cell {
    flex: 0 0 min(300px, 82vw);
    min-width: min(300px, 82vw);
    max-width: min(300px, 82vw);
  }

  .blog-card--ribbon {
    height: 100%;
  }

  .blog-card--ribbon .blog-card__image {
    height: 170px;
  }

  .blog-card--ribbon .blog-card__content {
    padding: 16px 18px 18px;
  }

  .blog-card--ribbon .blog-card__meta {
    gap: 10px 14px;
    margin-bottom: 10px;
  }

  .blog-card--ribbon .blog-card__meta--item {
    font-size: 0.78rem;
  }

  .blog-card--ribbon .blog-card__title {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }

  .blog-card--ribbon .blog-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .blog-card--ribbon .blog-card__tags {
    display: none;
  }

  .blog-card--ribbon .blog-card__footer {
    padding-top: 12px;
    margin-top: 0;
  }

                    .blog-grid {
                      display: grid;
                      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
                      gap: 30px;
                    }

                    .blog-card {
                      background: white;
                      border-radius: 20px;
                      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
                      transition: all 0.3s ease;
                      border: 1px solid #f1f5f9;
                    }

                    .blog-card__link {
                      display: block;
                      text-decoration: none;
                      color: inherit;
                    }

                    .blog-card:hover {
                      transform: translateY(-8px);
                      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
                    }

                    .blog-card__image {
                      position: relative;
                      height: 220px;
                      overflow: hidden;
                    }

                    .blog-card__image--img {
                      width: 100%;
                      height: 100%;
                      object-fit: contain;
                      transition: transform 0.3s ease;
                    }

                    .blog-card:hover .blog-card__image--img {
                      transform: scale(1.05);
                    }

                    .blog-card__image--placeholder {
                      display: flex;
                      align-items: center;
                      justify-content: center;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    color: #cbd5e0;
                    }

                    .blog-card__badge {
                      position: absolute;
                      top: 15px;
                      right: 15px;
                      background: linear-gradient(135deg, #f97e9f, #ff9eb5);
                      color: white;
                      padding: 6px 12px;
                      border-radius: 20px;
                      font-size: 0.8rem;
                      font-weight: 600;
                      box-shadow: 0 4px 12px rgba(249, 126, 159, 0.3);
                    }

                    .blog-card__content {
                      padding: 25px;
                    }

                    .blog-card__meta {
                      display: flex;
                      align-items: center;
                      gap: 20px;
                      margin-bottom: 15px;
                      flex-wrap: wrap;
                    }

                    .blog-card__meta--item {
                      display: flex;
                      align-items: center;
                      gap: 6px;
                      font-size: 0.85rem;
                      color: #718096;
                    }

                    .blog-card__meta--icon {
                      color: #f97e9f;
                    }

                    .blog-card__title {
                      margin: 0 0 15px 0;
                      font-size: 1.2rem;
                      line-height: 1.4;
                      color: #2d3748;
                      font-weight: 600;
                      transition: color 0.3s ease;
                    }

                    .blog-card:hover .blog-card__title {
                      color: #f97e9f;
                    }

                    .blog-card__excerpt {
                      color: #4a5568;
                      line-height: 1.6;
                      margin: 0 0 20px 0;
                      font-size: 0.95rem;
                    }

                    .blog-card__tags {
                      display: flex;
                      gap: 8px;
                      margin-bottom: 20px;
                      flex-wrap: wrap;
                    }

                    .blog-card__tag {
                      background: #f1f5f9;
                      color: #475569;
                      padding: 4px 12px;
                      border-radius: 15px;
                      font-size: 0.8rem;
                      font-weight: 500;
                    }

                    .blog-card__footer {
                      display: flex;
                      justify-content: space-between;
                      align-items: center;
                      padding-top: 20px;
                      border-top: 1px solid #e2e8f0;
                    }

                    .blog-card__read-time {
                      display: flex;
                      align-items: center;
                      gap: 6px;
                      font-size: 0.85rem;
                      color: #718096;
                    }

                    .blog-card__read-more {
                      display: flex;
                      align-items: center;
                      gap: 6px;
                      color: #f97e9f;
                      font-weight: 600;
                      font-size: 0.9rem;
                      transition: all 0.3s ease;
                    }

                    .blog-card:hover .blog-card__read-more {
                      color: #e53e3e;
                      gap: 10px;
                    }

  .blog-section__footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
  }

  .blog-section__view-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #f97e9f, #ff9eb5);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 126, 159, 0.3);
    border: 2px solid transparent;
  }

  .blog-section__view-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 126, 159, 0.4);
    background: linear-gradient(135deg, #e53e3e, #f97e9f);
    color: white;
    border-color: #f97e9f;
  }

  .blog-section__view-more--icon {
                      transition: transform 0.3s ease;
                    }

  .blog-section__view-more:hover .blog-section__view-more--icon {
    transform: translateX(5px);
  }

  /* ===== RESPONSIVE DESIGN ===== */

  /* Large Desktop (1440px+) */
  @media (min-width: 1440px) {
    .container {
      max-width: 1400px;
      padding: 0 30px;
    }

    .products-grid,
                      .blog-grid {
      gap: 35px;
    }

    .categories-grid {
      gap: 35px;
    }
  }

  /* Desktop Large (1200px - 1439px) */
  @media (min-width: 1200px) and (max-width: 1439px) {
    .container {
      max-width: 1200px;
      padding: 0 25px;
    }

    .products-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
                      }

                      .blog-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
    }

    .categories-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
    }
  }

  /* Desktop (992px - 1199px) */
  @media (min-width: 992px) and (max-width: 1199px) {
    .container {
      padding: 0 20px;
    }

    .products-grid,
    .blog-grid {
      grid-template-columns: repeat(3, 1fr);
                        gap: 25px;
                      }

    .categories-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 25px;
    }

    .section-title {
      font-size: 2.5rem;
    }

    .categories-title {
      font-size: 2.5rem;
    }
  }

  /* Tablet Large (768px - 991px) */
  @media (min-width: 768px) and (max-width: 991px) {
    .container {
      padding: 0 15px;
    }

    .hero-slide__text {
      right: 3%;
      max-width: 500px;
    }

    .hero-slide__title {
      font-size: clamp(2rem, 6vw, 3rem);
      margin-bottom: 1.5rem;
    }

    .products-grid,
    .blog-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 25px;
    }

    .categories-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 25px;
    }

    .section-title {
      font-size: 2rem;
    }

    .categories-title {
      font-size: 2rem;
    }

    .product-card__image,
    .blog-card__image {
      height: 240px;
    }
  }

  /* Tablet Small (576px - 767px) */
  @media (min-width: 576px) and (max-width: 767px) {
    .container {
      padding: 0 15px;
    }

    .hero-slide__text {
      right: 50%;
      transform: translate(50%, -50%);
      text-align: center;
      max-width: 90%;
    }

    .products-grid,
    .blog-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }

    .categories-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }

    .section-title {
      font-size: 1.8rem;
    }

    .categories-title {
      font-size: 1.8rem;
    }

    .product-card__image,
    .blog-card__image {
      height: 220px;
    }

    .product-card__actions {
      flex-direction: column;
      gap: 8px;
    }

    .product-card__add-to-cart:not(.product-card__add-to-cart--icon) {
      width: 100%;
    }
  }

  /* Mobile Large (480px - 575px) */
  @media (min-width: 480px) and (max-width: 575px) {
    .container {
      padding: 0 10px;
    }

    .hero-slide__text {
      right: 50%;
      transform: translate(50%, -50%);
      text-align: center;
      max-width: 90%;
    }

    .products-grid,
    .blog-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }

    .home-page .categories-grid,
    .categories-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 12px;
    }

    .section-title {
      font-size: 1.5rem;
    }

    .categories-title {
      font-size: 1.5rem;
    }

    .product-card__image,
    .blog-card__image {
      height: 240px;
    }

    .product-card__content,
    .blog-card__content {
      padding: 18px;
    }

    .product-card__actions {
      padding: 0 18px 18px 18px;
      gap: 10px;
    }
  }

  /* Mobile (320px - 479px) */
  @media (max-width: 479px) {
    .container {
      padding: 0 8px;
    }

    .hero-slide__text {
      right: 50%;
      transform: translate(50%, -50%);
      text-align: center;
      max-width: 95%;
      padding: 0 10px;
    }

    .hero-slide__title {
      font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .products-grid,
    .blog-grid {
      grid-template-columns: 1fr;
      gap: 16px;
    }

    .home-page .categories-grid,
    .categories-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 12px;
    }

    html {
      font-size: 14px;
    }

    .section-title {
      font-size: 1.3rem;
    }

    .categories-title {
      font-size: 1rem;
    }

    .product-card {
      border-radius: 12px;
    }

    .blog-card {
      border-radius: 16px;
    }

    .product-card__image,
    .blog-card__image {
      height: 200px;
    }

    .product-card__content,
    .blog-card__content {
      padding: 16px;
    }

    .product-card__actions {
      padding: 0 16px 16px 16px;
      gap: 8px;
    }

    .product-card__add-to-cart:not(.product-card__add-to-cart--icon) {
      padding: 10px 14px;
      font-size: 0.85rem;
    }

    .product-card__wishlist:not(.product-card__wishlist--icon) {
      width: 40px;
      height: 40px;
    }

    .product-card__add-to-cart--icon,
    .product-card__wishlist--icon {
      min-height: 36px;
      font-size: 1.05rem;
    }

    .product-card__actions-row {
      gap: 14px;
    }

    .blog-card__meta {
      gap: 12px;
      flex-direction: column;
      align-items: flex-start;
    }

    .blog-card__footer {
      flex-direction: column;
      gap: 10px;
      align-items: flex-start;
    }

    .blog-card__read-more {
      padding: 8px 16px;
      background: linear-gradient(135deg, #f97e9f, #ff9eb5);
      color: white;
      border-radius: 8px;
      width: 100%;
      justify-content: center;
    }

    .blog-card__read-more:hover {
      background: linear-gradient(135deg, #e53e3e, #f97e9f);
      color: white;
    }

    .blog-section__header {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .blog-section__title--main {
      font-size: 2rem;
    }

    .blog-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }

    .blog-card__content {
      padding: 20px;
    }

    .blog-card__meta {
      gap: 15px;
    }

    .blog-section__view-more {
      padding: 12px 24px;
      font-size: 0.9rem;
    }
  }

  /* Tablet Small (576px - 767px) */
  @media (min-width: 576px) and (max-width: 767px) {
    .blog-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }

    .blog-section__header {
      flex-direction: row;
      text-align: right;
    }

    .blog-section__title--main {
      font-size: 2.2rem;
    }
  }

  /* Tablet Large (768px - 991px) */
  @media (min-width: 768px) and (max-width: 991px) {
    .blog-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 25px;
    }

    .blog-section__title--main {
      font-size: 2.3rem;
    }
  }

  /* Desktop (992px - 1199px) */
  @media (min-width: 992px) and (max-width: 1199px) {
    .blog-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 25px;
    }

    .blog-section__title--main {
      font-size: 2.4rem;
    }
  }

  /* Desktop Large (1200px - 1439px) */
  @media (min-width: 1200px) and (max-width: 1439px) {
    .blog-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
    }
  }

  /* Large Desktop (1440px+) */
  @media (min-width: 1440px) {
    .blog-grid {
      gap: 35px;
    }
  }

  /* ===== Product ribbon strip ===== */
  .product-ribbon {
    display: flex;
    align-items: stretch;
    gap: 12px;
    position: relative;
    margin: 0 -4px;
    direction: ltr;
  }

  .product-ribbon__viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  .product-ribbon__track {
    display: flex;
    flex-direction: row-reverse;
    gap: 24px;
    width: 100%;
    min-width: 0;
    padding: 6px 4px 18px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    direction: ltr;
    scrollbar-width: thin;
    scrollbar-color: rgba(249, 126, 159, 0.45) transparent;
    cursor: grab;
  }

  .product-ribbon__track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
  }

  .product-ribbon__track.is-dragging * {
    pointer-events: none;
  }

  .product-ribbon__track::-webkit-scrollbar {
    height: 6px;
  }

  .product-ribbon__track::-webkit-scrollbar-thumb {
    background: rgba(249, 126, 159, 0.4);
    border-radius: 999px;
  }

  .product-ribbon__cell {
    flex: 0 0 min(300px, 82vw);
    min-width: min(300px, 82vw);
    max-width: min(300px, 82vw);
    direction: rtl;
  }

  .product-ribbon--compact .product-ribbon__track {
    gap: 10px;
    padding-bottom: 12px;
  }

  .product-ribbon--compact .product-ribbon__cell {
    flex: 0 0 clamp(166px, 22vw, 200px);
    min-width: clamp(166px, 22vw, 200px);
    max-width: clamp(166px, 22vw, 200px);
  }

  .product-ribbon__cell .product-card {
    width: 100%;
    height: 100%;
  }

  .product-ribbon__arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    align-self: center;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    color: #4a5568;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    z-index: 2;
  }

  .product-ribbon__arrow:hover:not(:disabled) {
    color: #f97e9f;
    border-color: #f9c4d4;
    box-shadow: 0 4px 14px rgba(249, 126, 159, 0.2);
  }

  .product-ribbon__arrow:disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
  }

  .product-ribbon--no-scroll .product-ribbon__arrow {
    display: none;
  }

  @media (max-width: 575px) {
    .best-selling-section .home-product-strip-panel,
    .newest-products-section .home-product-strip-panel {
      border-radius: 18px;
      padding: 16px 12px 12px;
    }

    .product-ribbon {
      gap: 8px;
    }

    .product-ribbon__arrow {
      width: 38px;
      height: 38px;
    }

    .product-ribbon:not(.product-ribbon--compact) .product-ribbon__cell {
      flex-basis: min(280px, 88vw);
      min-width: min(280px, 88vw);
      max-width: min(280px, 88vw);
    }

    .product-ribbon--compact .product-ribbon__cell {
      flex-basis: clamp(156px, 48vw, 190px);
      min-width: clamp(156px, 48vw, 190px);
      max-width: clamp(156px, 48vw, 190px);
    }

    .home-product-strip-section .section-header--product-strip {
      flex-wrap: wrap;
      align-items: flex-start;
    }
  }

  /* ── Strip scroll hint (next arrow) ── */
  .strip-scroll-hint {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid rgba(232, 76, 135, 0.35);
    color: #e84c87;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.13);
    transition: opacity 0.25s ease, transform 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    padding: 0;
  }

  .strip-scroll-hint.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(-8px);
  }

  @keyframes strip-hint-bounce {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50%       { transform: translateY(-50%) translateX(-4px); }
  }

  .strip-scroll-hint:not(.is-hidden) {
    animation: strip-hint-bounce 1.4s ease-in-out infinite;
  }

  .strip-scroll-hint svg {
    flex-shrink: 0;
  }
