/* Life Sport 6.3 — دسته‌بندی‌های تصویری، باکس تخفیفی‌ها، مقالات (کارت، لیست، تک‌مقاله) */

/* ==========================================================================
   ۱) دسته‌بندی‌ها — فقط عکس (همون اندازه و شکل قبلی: ۲ ستون موبایل، ۳ ستون دسکتاپ)
   تعداد دسته هرچی باشه، سطر آخر وسط‌چین می‌شه و همه‌ی کادرها هم‌اندازه می‌مونن.
   ========================================================================== */
.v6-cats{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px 10px; }
.v6-cat{
  position:relative; display:block; overflow:hidden;
  flex:0 0 calc((100% - 10px) / 2); aspect-ratio:2.1 / 1;
  border-radius:18px; background:#e9d3f8;
  box-shadow:0 3px 10px rgba(130,24,185,.10);
  transition:transform .25s, box-shadow .25s;
  -webkit-tap-highlight-color:transparent;
}
.v6-cat img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center;
  display:block; transition:transform .5s;
}
.v6-cat:hover{ transform:translateY(-3px); box-shadow:0 12px 24px rgba(130,24,185,.2); }
.v6-cat:hover img{ transform:scale(1.05); }
.v6-cat:focus-visible{ outline:3px solid var(--v6-p); outline-offset:3px; }
@media (min-width:760px){
  .v6-cats{ gap:12px 14px; }
  .v6-cat{ flex-basis:calc((100% - 28px) / 3); aspect-ratio:2.4 / 1; }
}

/* ==========================================================================
   ۲) باکس تخفیفی‌ها
   ========================================================================== */
.v6-salesec{ margin-top:22px; }
.v6-salesec[hidden]{ display:none!important; }
.v6-sale{
  --sx-bg1:#2b0f52; --sx-bg2:#54208c; --sx-glow:rgba(176,78,230,.55); --sx-glow2:rgba(255,120,200,.20);
  --sx-accent:#ffd76a; --sx-ink:#2b0f52; --sx-text:#fff; --sx-muted:rgba(255,255,255,.74);
  --sx-chip:rgba(255,255,255,.10); --sx-line:rgba(255,255,255,.16); --sx-shadow:rgba(43,15,82,.38);
  position:relative; isolation:isolate; overflow:hidden; color:var(--sx-text);
  border-radius:28px; padding:18px 16px 14px; border:1px solid var(--sx-line);
  background:
    radial-gradient(90% 120% at 100% 0%, var(--sx-glow) 0, transparent 55%),
    radial-gradient(70% 90% at 0% 100%, var(--sx-glow2) 0, transparent 60%),
    linear-gradient(135deg, var(--sx-bg1), var(--sx-bg2));
  box-shadow:0 18px 40px var(--sx-shadow);
}
.v6-sale--black{
  --sx-bg1:#0a0a0d; --sx-bg2:#1e1b24; --sx-glow:rgba(245,184,46,.26); --sx-glow2:rgba(245,184,46,.10);
  --sx-accent:#f5b82e; --sx-ink:#17120a; --sx-line:rgba(245,184,46,.30); --sx-shadow:rgba(0,0,0,.45);
}
.v6-sale--red{
  --sx-bg1:#86092a; --sx-bg2:#d4143f; --sx-glow:rgba(255,150,170,.45); --sx-glow2:rgba(255,214,120,.24);
  --sx-accent:#ffe27a; --sx-ink:#7a0a22; --sx-shadow:rgba(150,10,40,.4);
}
.v6-sale::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 15px);
}
.v6-sale__pct{
  position:absolute; z-index:-1; left:-8px; top:-30px; font:900 190px/1 'Montserrat','Segoe UI',sans-serif;
  color:rgba(255,255,255,.06); pointer-events:none; user-select:none;
}

.v6-sale__head{ position:relative; z-index:1; display:flex; flex-direction:column; gap:12px; margin-bottom:14px; }
.v6-sale__txt{ display:flex; flex-direction:column; align-items:flex-start; gap:6px; min-width:0; }
.v6-sale__badge{
  display:inline-flex; align-items:center; gap:6px; padding:5px 13px 5px 11px; border-radius:999px;
  background:var(--sx-accent); color:var(--sx-ink); font-size:12px; font-weight:900; letter-spacing:.3px; line-height:1.4;
  box-shadow:0 6px 16px rgba(0,0,0,.22);
}
.v6-sale__badge .v6-i{ width:14px; height:14px; fill:currentColor; stroke:none; animation:v6SaleBolt 2.2s ease-in-out infinite; }
@keyframes v6SaleBolt{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.25) rotate(-8deg); } }
.v6-sale__title{ margin:4px 0 0; font-size:clamp(22px,5.6vw,40px); font-weight:900; line-height:1.35; color:#fff; text-shadow:0 2px 14px rgba(0,0,0,.25); }
.v6-sale__sub{ margin:0; font-size:clamp(12px,3.1vw,15.5px); font-weight:700; line-height:1.8; color:var(--sx-muted); }

.v6-sale__side{ display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.v6-sale__timer{ display:flex; align-items:stretch; gap:5px; direction:rtl; }
.v6-sale__timer > div{
  min-width:46px; padding:7px 6px 6px; text-align:center; border-radius:14px;
  background:var(--sx-chip); border:1px solid var(--sx-line);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
}
.v6-sale__timer b{ display:block; font-size:20px; font-weight:900; line-height:1.25; color:var(--sx-accent); font-variant-numeric:tabular-nums; }
.v6-sale__timer small{ display:block; margin-top:1px; font-size:10px; font-weight:700; color:var(--sx-muted); }
.v6-sale__timer i{ align-self:center; font-style:normal; font-weight:900; color:var(--sx-muted); opacity:.7; }

.v6-sale .ls-latest__actions{ gap:8px; }
.v6-sale .ls-arrow{ background:var(--sx-chip); color:#fff; border-color:rgba(255,255,255,.45); }
.v6-sale .ls-arrow:hover:not(:disabled){ background:var(--sx-accent); border-color:var(--sx-accent); color:var(--sx-ink); }
.v6-sale .ls-all{ height:40px; padding:0 18px; background:var(--sx-accent); color:var(--sx-ink); box-shadow:0 10px 22px rgba(0,0,0,.28); }
.v6-sale .ls-all:hover{ color:var(--sx-ink); box-shadow:0 14px 28px rgba(0,0,0,.38); }

/* ریل و کارت‌ها روی زمینه‌ی تیره */
.v6-sale .ls-rail{ position:relative; z-index:1; margin-inline:-16px; padding-inline:16px; scroll-padding-inline:16px; gap:12px; }
.v6-sale .ls-rail > *{ flex-basis:clamp(150px,44vw,240px); }
.v6-sale .ls-card__media{ border-radius:20px; box-shadow:0 10px 24px rgba(0,0,0,.34); }
.v6-sale .ls-card__name, .v6-sale .ls-card__name a{ color:#fff; font-size:clamp(12px,3.2vw,14.5px); }
.v6-sale .ls-card__name a:hover{ color:var(--sx-accent); }
.v6-sale .ls-card__price{ color:#fff; }
.v6-sale .ls-card__price .woocommerce-Price-currencySymbol{ color:var(--sx-muted); }
.v6-sale .ls-card__price ins{ color:var(--sx-accent); }
.v6-sale .ls-card__price del, .v6-sale .ls-card__price del .woocommerce-Price-currencySymbol{ color:var(--sx-muted); opacity:.85; }
.v6-sale .ls-tag--sale{ background:var(--sx-accent); color:var(--sx-ink); box-shadow:0 6px 14px rgba(0,0,0,.3); }
.v6-sale .ls-card__add:not(.is-options){ background:var(--sx-accent); color:var(--sx-ink); box-shadow:0 10px 22px rgba(0,0,0,.35); }
.v6-sale .ls-card__add:not(.is-options).added{ background:#fff; color:var(--sx-ink); }
.v6-sale .ls-card__add:not(.is-options).loading::after{ border-color:rgba(0,0,0,.2); border-top-color:var(--sx-ink); }
.v6-sale .ls-progress{ position:relative; z-index:1; background:rgba(255,255,255,.16); }
.v6-sale .ls-progress > span{ background:var(--sx-accent); }
.v6-sale .ls-rail__more{
  aspect-ratio:auto; align-self:stretch; min-height:200px; border-radius:20px; font-size:15px;
  background:var(--sx-chip); border:1.5px dashed rgba(255,255,255,.4); box-shadow:none;
}
.v6-sale .ls-rail__more-ic{ background:var(--sx-accent); color:var(--sx-ink); }
.v6-sale a:focus-visible, .v6-sale button:focus-visible{ outline:3px solid var(--sx-accent); outline-offset:3px; }

@media (min-width:701px){
  .v6-sale{ padding:28px 28px 20px; border-radius:32px; }
  .v6-sale__pct{ font-size:300px; left:10px; top:-60px; }
  .v6-sale__head{ flex-direction:row; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:20px; }
  .v6-sale__side{ align-items:flex-end; flex:none; }
  .v6-sale__timer{ gap:7px; }
  .v6-sale__timer > div{ min-width:62px; padding:9px 8px 8px; border-radius:16px; }
  .v6-sale__timer b{ font-size:26px; }
  .v6-sale__timer small{ font-size:11px; }
  .v6-sale .ls-rail{ margin-inline:-28px; padding-inline:28px; scroll-padding-inline:28px; gap:16px; }
  .v6-sale .ls-rail > *{ flex-basis:calc((100% - 48px) / 4); }
  .v6-sale .ls-arrow{ display:grid; }
}
@media (min-width:1100px){ .v6-sale .ls-rail > *{ flex-basis:calc((100% - 64px) / 5); } }
@media (max-width:700px){ .v6-sale .ls-arrow{ display:none; } .v6-sale .ls-all{ height:36px; padding:0 14px; font-size:12.5px; } }
@media (prefers-reduced-motion:reduce){ .v6-sale__badge .v6-i{ animation:none; } }

/* ==========================================================================
   ۳) مقالات — کارت و گرید
   ========================================================================== */
.v6-blog__sub{ margin:-4px 0 14px; text-align:center; font-size:clamp(12px,3vw,14.5px); font-weight:700; color:var(--muted); }
.lsb-grid{ display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
@media (min-width:640px){ .lsb-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; } }
@media (min-width:960px){ .lsb-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; } }
/* صفحه اصلی روی گوشی: کارت‌ها اسلایدی (با انگشت بکش) */
@media (max-width:639px){
  .lsb-grid--home{
    display:flex; overflow-x:auto; gap:12px; margin-inline:-10px; padding:4px 10px 16px;
    scroll-snap-type:x mandatory; scroll-padding-inline:10px; scrollbar-width:none; -webkit-overflow-scrolling:touch;
  }
  .lsb-grid--home::-webkit-scrollbar{ display:none; }
  .lsb-grid--home > .lsb-card{ flex:0 0 80%; scroll-snap-align:start; }
}

.lsb-card{
  position:relative; display:flex; flex-direction:column; min-width:0; overflow:hidden;
  background:#fff; border-radius:22px; border:1px solid #efdcfa;
  box-shadow:0 8px 24px rgba(130,24,185,.10);
  transition:transform .3s, box-shadow .3s;
}
.lsb-card:hover{ transform:translateY(-5px); box-shadow:0 18px 38px rgba(130,24,185,.18); }
.lsb-card__img{ display:block; position:relative; overflow:hidden; aspect-ratio:16 / 10; background:#f1ddfb; }
.lsb-card__img img{ display:block; width:100%; height:100%; object-fit:cover; transition:transform .6s; }
.lsb-card:hover .lsb-card__img img{ transform:scale(1.06); }
.lsb-card__ph{
  display:grid; place-items:center; width:100%; height:100%;
  background:radial-gradient(80% 90% at 80% 10%, rgba(255,255,255,.7), transparent 60%), linear-gradient(135deg,#f1ddfb,#d9b2f2);
  color:var(--v6-p);
}
.lsb-card__ph .v6-i{ width:46px; height:46px; opacity:.55; }
.lsb-chip{
  position:absolute; top:12px; inset-inline-start:12px; z-index:2; max-width:70%;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  background:rgba(255,255,255,.95); color:var(--v6-p); font-size:11.5px; font-weight:800; line-height:1.4;
  padding:5px 12px; border-radius:999px; box-shadow:0 4px 12px rgba(43,15,82,.18);
}
.lsb-chip:hover{ background:var(--v6-p); color:#fff; }
.lsb-card__body{ display:flex; flex-direction:column; gap:8px; flex:1; padding:14px 16px 16px; }
.lsb-card__meta{ display:flex; align-items:center; gap:8px; font-size:12px; font-weight:600; color:var(--muted); }
.lsb-dot{ width:3px; height:3px; border-radius:50%; background:currentColor; opacity:.6; flex:none; }
.lsb-card__title{
  margin:0; font-size:clamp(15px,2.2vw,17.5px); font-weight:900; line-height:1.8; color:var(--v6-ink);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.lsb-card__title a{ color:inherit; }
.lsb-card__title a:hover{ color:var(--v6-p); }
.lsb-card__ex{
  margin:0; font-size:13px; line-height:2; color:#5b4a70;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.lsb-more{ margin-top:auto; padding-top:6px; align-self:flex-start; display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:800; color:var(--v6-p); }
.lsb-more .v6-i{ width:14px; height:14px; transition:transform .25s; }
.lsb-more:hover .v6-i{ transform:translateX(-4px); }
.lsb-all{ display:flex; justify-content:center; margin-top:6px; }
.lsb-card a:focus-visible{ outline:3px solid var(--v6-p); outline-offset:2px; border-radius:6px; }

/* کارت شاخص (اولین مقاله‌ی صفحه‌ی مقالات) */
@media (min-width:900px){
  .lsb-card--featured{ grid-column:1 / -1; flex-direction:row; }
  .lsb-card--featured .lsb-card__img{ flex:0 0 56%; aspect-ratio:auto; min-height:340px; }
  .lsb-card--featured .lsb-card__body{ justify-content:center; gap:12px; padding:30px 34px; }
  .lsb-card--featured .lsb-card__title{ font-size:26px; -webkit-line-clamp:3; }
  .lsb-card--featured .lsb-card__ex{ font-size:15px; -webkit-line-clamp:4; }
  .lsb-card--featured .lsb-more{ font-size:14.5px; }
}

/* ==========================================================================
   ۴) صفحه‌ی لیست مقالات (آرشیو / دسته / جستجو)
   ========================================================================== */
.lsb-page{ max-width:var(--v6-w); margin:0 auto; padding:14px 14px 10px; }
.lsb-hero{
  position:relative; overflow:hidden; text-align:center; margin:8px 0 18px; padding:26px 16px 24px;
  border-radius:28px; border:1px solid #eacdf8;
  background:radial-gradient(70% 120% at 100% 0%, rgba(204,140,245,.40), transparent 60%), linear-gradient(135deg,#f8edff,#efd8fb);
}
.lsb-hero h1{ margin:0; font-size:clamp(23px,5.4vw,38px); font-weight:900; line-height:1.5; color:#35125f; }
.lsb-hero p{ margin:6px auto 0; max-width:60ch; font-size:clamp(12.5px,3vw,15px); line-height:1.9; font-weight:600; color:#5a2c86; }
.lsb-tabs{ display:flex; gap:8px; overflow-x:auto; margin:0 -14px 16px; padding:2px 14px 8px; scrollbar-width:none; }
.lsb-tabs::-webkit-scrollbar{ display:none; }
@media (min-width:900px){ .lsb-tabs{ flex-wrap:wrap; justify-content:center; overflow:visible; margin-inline:0; padding-inline:0; } }
.lsb-tab{
  flex:none; display:inline-flex; align-items:center; padding:9px 18px; border-radius:999px;
  background:#fff; border:1.5px solid #e6cdf7; color:var(--v6-ink); font-size:13px; font-weight:800; white-space:nowrap;
  transition:background .2s, color .2s, border-color .2s;
}
.lsb-tab:hover{ border-color:var(--v6-p); color:var(--v6-p); }
.lsb-tab.is-on{ background:var(--v6-p); border-color:var(--v6-p); color:#fff; }
.lsb-pager{ margin-top:28px; }
.lsb-pager .nav-links{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.lsb-pager .page-numbers{
  min-width:42px; height:42px; padding:0 14px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px; background:#fff; border:1.5px solid #e6cdf7; color:var(--v6-ink); font-size:13.5px; font-weight:800;
}
.lsb-pager a.page-numbers:hover{ border-color:var(--v6-p); color:var(--v6-p); }
.lsb-pager .page-numbers.current{ background:var(--v6-p); border-color:var(--v6-p); color:#fff; }
.lsb-pager .page-numbers.dots{ border:0; background:none; min-width:0; padding:0 4px; }
.lsb-empty{ text-align:center; padding:54px 20px; border-radius:26px; background:#fff; border:1.5px dashed #d9b4f0; }
.lsb-empty .v6-i{ width:46px; height:46px; color:var(--v6-p); opacity:.6; }
.lsb-empty h2{ margin:10px 0 6px; font-size:18px; font-weight:900; color:#35125f; }
.lsb-empty p{ margin:0 0 16px; font-size:13.5px; color:var(--muted); }

/* ==========================================================================
   ۵) صفحه‌ی تک‌مقاله
   ========================================================================== */
.lsb-single{ max-width:820px; margin:0 auto; padding:14px 14px 8px; }
.lsb-single__cats{ display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.lsb-pill{ display:inline-flex; padding:5px 14px; border-radius:999px; background:#f4e2fc; color:var(--v6-p); font-size:12px; font-weight:800; }
.lsb-pill:hover{ background:var(--v6-p); color:#fff; }
.lsb-single__title{ margin:12px 0 10px; font-size:clamp(24px,5.6vw,40px); font-weight:900; line-height:1.65; color:#2b0f52; }
.lsb-single__meta{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 16px; font-size:13px; font-weight:600; color:var(--muted); }
.lsb-single__meta span{ display:inline-flex; align-items:center; gap:6px; }
.lsb-single__meta .v6-i{ width:16px; height:16px; color:var(--v6-p); }
.lsb-single__cover{ margin:20px 0 26px; aspect-ratio:16 / 9; overflow:hidden; border-radius:26px; background:#f1ddfb; box-shadow:0 14px 34px rgba(130,24,185,.18); }
.lsb-single__cover img{ display:block; width:100%; height:100%; object-fit:cover; }

.lsb-content{ font-size:clamp(15.5px,2.2vw,17.5px); line-height:2.15; color:#2e2540; overflow-wrap:anywhere; }
.lsb-content > * + *{ margin-top:1.1em; }
.lsb-content h2, .lsb-content h3, .lsb-content h4{ color:#2b0f52; font-weight:900; line-height:1.7; }
.lsb-content h2{ position:relative; margin-top:1.9em; padding-inline-start:16px; font-size:1.5em; }
.lsb-content h2::before{ content:""; position:absolute; inset-inline-start:0; top:.35em; bottom:.35em; width:5px; border-radius:6px; background:linear-gradient(180deg,#8218b9,#d9a8f5); }
.lsb-content h3{ margin-top:1.6em; font-size:1.25em; }
.lsb-content a{ color:var(--v6-p); font-weight:700; text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1.5px; }
.lsb-content a:hover{ color:#5d0f8a; }
.lsb-content img{ max-width:100%; height:auto; border-radius:18px; }
.lsb-content figure{ margin-inline:0; }
.lsb-content figcaption{ margin-top:8px; text-align:center; font-size:12.5px; color:var(--muted); }
.lsb-content ul, .lsb-content ol{ padding-inline-start:1.5em; }
.lsb-content ul{ list-style:disc; }
.lsb-content ol{ list-style:decimal; }
.lsb-content li + li{ margin-top:.35em; }
.lsb-content li::marker{ color:var(--v6-p); }
.lsb-content blockquote{ margin-inline:0; padding:14px 20px; border-radius:16px; border-inline-start:4px solid var(--v6-p); background:#faf2fe; color:#3b175f; font-weight:600; }
.lsb-content blockquote p{ margin:0; }
.lsb-content table{ display:block; max-width:100%; overflow-x:auto; border-collapse:collapse; font-size:.92em; }
.lsb-content th, .lsb-content td{ padding:10px 14px; border:1px solid #ead3f8; text-align:right; }
.lsb-content th{ background:#f6e5fd; font-weight:800; }
.lsb-content iframe, .lsb-content video{ max-width:100%; border-radius:16px; }
.lsb-content hr{ border:0; height:1.5px; background:linear-gradient(90deg,transparent,#d9b4f0,transparent); margin:2em 0; }

.lsb-tags{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:26px; }
.lsb-tags a{ padding:5px 13px; border-radius:999px; background:#f4e2fc; color:var(--v6-p); font-size:12px; font-weight:800; }
.lsb-tags a:hover{ background:var(--v6-p); color:#fff; }
.lsb-share{
  display:flex; flex-wrap:wrap; align-items:center; gap:10px 12px; margin-top:22px; padding:14px 18px;
  border-radius:20px; background:#fff; border:1px solid #efdcfa; box-shadow:0 6px 18px rgba(130,24,185,.08);
}
.lsb-share__label{ margin-inline-end:auto; font-size:13.5px; font-weight:800; color:var(--v6-ink); }
.lsb-share a, .lsb-share button{
  position:relative; width:40px; height:40px; padding:0; border:0; border-radius:50%; cursor:pointer;
  display:grid; place-items:center; background:#f4e2fc; color:var(--v6-p); transition:background .2s, color .2s, transform .2s;
}
.lsb-share a:hover, .lsb-share button:hover{ background:var(--v6-p); color:#fff; transform:translateY(-2px); }
.lsb-share .v6-i{ width:20px; height:20px; }
.lsb-share button.is-done{ background:#1d7a3a; color:#fff; }
.lsb-share button.is-done::after{
  content:"کپی شد"; position:absolute; bottom:calc(100% + 8px); left:50%; transform:translateX(-50%);
  padding:4px 10px; border-radius:8px; background:#2b0f52; color:#fff; font-size:11.5px; font-weight:700; white-space:nowrap;
}
.lsb-nav{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:18px; }
.lsb-nav a{ display:block; padding:14px 16px; border-radius:18px; background:#fff; border:1px solid #efdcfa; transition:border-color .2s, transform .2s; }
.lsb-nav a:hover{ border-color:var(--v6-p); transform:translateY(-2px); }
.lsb-nav small{ display:block; margin-bottom:4px; font-size:11.5px; font-weight:700; color:var(--muted); }
.lsb-nav span{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:13.5px; font-weight:800; line-height:1.8; color:var(--v6-ink); }
.lsb-nav .is-next{ text-align:left; }
.lsb-nav .is-next:only-child{ grid-column:2; }
.lsb-related{ max-width:var(--v6-w); margin:36px auto 0; padding:0 14px; }
.lsb-backlink{ display:flex; justify-content:center; margin:26px 0 4px; }
@media (max-width:520px){ .lsb-nav{ grid-template-columns:1fr; } .lsb-nav .is-next:only-child{ grid-column:auto; } }
