/* ==========================================================================
   Life Sport 5.1 — فوتر جدید + صفحه‌ی محصول لوکس
   بعد از style.css و premium.css لود میشه؛ فقط ظاهر رو عوض می‌کنه.
   ========================================================================== */
:root{ --lx-ink:#16151a; --lx-rose:#c91a65; --lx-blush:#fbe3ec; --lx-petal:#f6a8c6; --lx-ring:0 0 0 3px #fbe3ec; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } *{ transition-duration:.01ms!important; animation-duration:.01ms!important; } }

/* ============================== فوتر ============================== */
.site-footer{ background:var(--lx-ink); margin-top:96px; position:relative; }

/* نام برند غول‌پیکر پشت کپی‌رایت — تنها المان نمایشی فوتر */

.ls-to-top{
  position:fixed; right:20px; bottom:24px; z-index:900; width:46px; height:46px; border-radius:16px;
  display:flex; align-items:center; justify-content:center; color:#fff; background:linear-gradient(135deg,#e0357f,#c91a65 60%,#a8124f);
  box-shadow:0 14px 28px -8px rgba(201,26,101,.65); opacity:0; transform:translateY(14px); pointer-events:none;
  transition:opacity .25s, transform .25s;
}
.ls-to-top.show{ opacity:1; transform:none; pointer-events:auto; }
.ls-to-top:hover{ filter:brightness(1.08); }
.ls-to-top:focus-visible { outline:3px solid var(--lx-petal); outline-offset:3px; }

@media (max-width:900px){
  .site-footer{ margin-top:80px; }

  .ls-to-top{ bottom:calc(84px + env(safe-area-inset-bottom,0px)); right:14px; width:42px; height:42px; border-radius:14px; }
  body.single-product .ls-to-top{ bottom:calc(150px + env(safe-area-inset-bottom,0px)); }
  
}

/* ============================ صفحه محصول ============================ */
body div.product{ align-items:flex-start; gap:48px; margin-top:18px; }

@media (min-width:901px){
  body div.product .ls-gallery{ flex:1 1 470px; max-width:540px; position:sticky; top:20px; }
}
body div.product .ls-gallery-main{
  border-radius:30px!important; background:linear-gradient(160deg,#fff 0%,var(--lx-blush) 100%);
  box-shadow:0 40px 70px -34px rgba(201,26,101,.55), 0 0 0 1px rgba(246,168,198,.4)!important;
}
body div.product .ls-gallery-slide{ aspect-ratio:4/5; }
body div.product .ls-arrow{
  width:44px; height:44px; background:rgba(255,255,255,.72); backdrop-filter:blur(10px);
  box-shadow:0 8px 20px -8px rgba(22,21,26,.5), inset 0 0 0 1px rgba(255,255,255,.8);
}
body div.product .ls-arrow:hover{ background:#fff; color:var(--lx-rose); }
body div.product .ls-counter{
  bottom:14px; background:rgba(22,21,26,.55); backdrop-filter:blur(8px); padding:5px 14px; font-size:12px; font-weight:700;
}
body div.product .ls-thumbs-track{ gap:12px; padding:6px 4px; }
body div.product .ls-thumb-item{ width:72px; height:72px; border-radius:18px; border:2px solid transparent; opacity:.6; }
body div.product .ls-thumb-item.is-active{ opacity:1; border-color:var(--lx-rose); box-shadow:var(--lx-ring); }

/* کارت اصلی خرید */
body div.product .ls-title-box{
  border:none!important; border-radius:30px!important; padding:28px 24px 22px!important; background:#fff!important;
  box-shadow:0 30px 60px -34px rgba(22,21,26,.35), 0 0 0 1px #f3dfe8!important;
}
body div.product .ls-title-box::before{
  content:""; position:absolute; inset:0 0 auto 0; height:5px; z-index:2;
  background:linear-gradient(90deg,var(--lx-rose),var(--lx-petal) 60%,var(--lx-blush));
}
body div.product .ls-title-box .ls-title-watermark{ opacity:.18; }
body div.product .product_title{ font-size:26px; font-weight:900; line-height:1.65; margin-bottom:12px; }
body div.product p.price,body div.product p.price .woocommerce-Price-amount{ font-size:30px!important; letter-spacing:-.5px; }
body div.product p.price{ display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 12px; }
body div.product p.price del{ order:2; opacity:.7; }
body div.product p.price ins{ order:1; }

.ls-pdp-meta{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px!important; }
.ls-chip{ display:inline-flex; align-items:center; gap:6px; padding:6px 13px; border-radius:999px; font-size:12.5px; font-weight:800; line-height:1.4; }
.ls-chip-sale{ color:#fff; background:linear-gradient(135deg,#e0357f,#c91a65 60%,#a8124f); box-shadow:0 10px 18px -10px rgba(201,26,101,.8); }
.ls-chip-stock{ color:#8a4b00; background:#fff3dd; box-shadow:inset 0 0 0 1px #f4d9a6; }
.ls-chip-stock::before{ content:""; width:7px; height:7px; border-radius:50%; background:#f59e0b; }

/* کد محصول (SKU) زیر قیمت */
.ls-pdp-sku{ display:flex; align-items:center; gap:6px; margin:0 0 16px!important; font-size:13.5px; font-weight:700; color:#6b6670; }
.ls-pdp-sku[hidden]{ display:none; }
.ls-pdp-sku-val{ display:inline-block; padding:3px 12px; border-radius:999px; background:var(--lx-blush); color:var(--lx-rose); font-weight:900; font-size:13px; letter-spacing:.4px; unicode-bidi:isolate; }

/* سایز و رنگ */
body div.product table.variations th.label{ font-size:14px; font-weight:900; }
body div.product .variation-swatches{ gap:10px; padding:4px 2px 8px; }
body div.product .variation-swatches .swatch-btn:not(.swatch-color-square){
  min-width:50px; height:46px; padding:0 14px; border-radius:14px; border:1.5px solid #eadce3; background:#fff;
  font-weight:800; font-size:14px; color:var(--lx-ink); transition:all .2s;
}
body div.product .variation-swatches .swatch-btn:not(.swatch-color-square):hover{ border-color:var(--lx-rose); transform:translateY(-2px); }
body div.product .variation-swatches .swatch-btn.active:not(.swatch-color-square){
  background:var(--lx-ink); color:#fff; border-color:var(--lx-ink); box-shadow:0 12px 20px -10px rgba(22,21,26,.7);
}
body div.product .variation-swatches .swatch-color-square{
  width:40px; height:40px; border-radius:50%; border:0; box-shadow:inset 0 0 0 2px #fff, 0 0 0 1px #e3d3db; transition:box-shadow .2s, transform .2s;
}
body div.product .variation-swatches .swatch-color-square:hover{ transform:scale(1.1); }
body div.product .variation-swatches .swatch-color-square.active{ box-shadow:inset 0 0 0 2px #fff, 0 0 0 3px var(--lx-rose); }
body div.product .variation-swatches .swatch-btn.swatch-disabled{ opacity:.35; }

/* دکمه‌ی خرید با درخششِ هاور */
body div.product .single_add_to_cart_button{ position:relative; overflow:hidden; }
body div.product .single_add_to_cart_button::after{
  content:""; position:absolute; inset:0 auto 0 -60%; width:45%; transform:skewX(-20deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.38),transparent); transition:left .7s;
}
body div.product .single_add_to_cart_button:hover::after{ left:120%; }
body div.product .ls-action-row .quantity{ border-radius:16px!important; border:1.5px solid #f3dfe8; }

/* ردیف اعتماد */
body div.product .ls-pdp-trust{ max-width:none; gap:8px; margin-top:16px!important; }
body div.product .ls-pdp-trust > div{
  border:none; background:linear-gradient(160deg,#fff,var(--lx-blush)); box-shadow:inset 0 0 0 1px #f6d3e2; border-radius:18px; padding:14px 6px;
}
body div.product .ls-pdp-trust svg{ width:26px; height:26px; }

/* تب‌ها و مرتبط */
body div.product .ls-simple-tabs{ margin-top:30px; }
body div.product .ls-simple-tabs .ls-tab-link{ padding:12px 26px!important; font-size:14.5px; }
body div.product .ls-simple-tabs .ls-tab-panel.active{ border:none; border-radius:26px; padding:26px 28px; box-shadow:0 24px 50px -34px rgba(22,21,26,.4), 0 0 0 1px #f3dfe8; }
.related-products-section .section-head h2{ font-size:24px; font-weight:900; display:flex; align-items:center; gap:12px; }
.related-products-section .section-head h2::before{ content:""; width:8px; height:26px; border-radius:6px; background:linear-gradient(180deg,var(--lx-rose),var(--lx-petal)); }

@media (max-width:900px){
  body div.product{ gap:18px; }
  body div.product .ls-gallery-main{ border-radius:26px!important; }
  body div.product .product_title{ font-size:22px; }
  body div.product p.price,body div.product p.price .woocommerce-Price-amount{ font-size:26px!important; }
  body div.product .ls-title-box{ padding:24px 18px 18px!important; border-radius:26px!important; }
  body div.product .ls-thumb-item{ width:62px; height:62px; border-radius:16px; }
}
