/* ==================================================
   WOODFLIX STORE — frontend
   ================================================== */

.wfst-hero,
.wfst-store{
  --wfst-accent:#c60000;
  --wfst-ink:#111214;
  --wfst-bg:#f4f4f6;
  --wfst-radius:14px;
  --wfst-cols-m:3;
  --wfst-cols-d:6;
  --wfst-line:rgba(0,0,0,.08);
  --wfst-muted:#8b8b93;
}

.wfst-hero,
.wfst-hero *,
.wfst-store,
.wfst-store *{
  box-sizing:border-box;
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,
              "Helvetica Neue",Arial,sans-serif !important;
  -webkit-font-smoothing:antialiased;
}


/* ==================================================
   FULL WIDTH — kase konteneur tem nan (Astra/Elementor)
   ================================================== */
/* Olye pou nou eseye SOTI nan konteneur an (sa fe paj la deplase),
   nou RETIRE limit konteneur an sou paj sa a selman. */
body.wfst-fw .site-content .ast-container,
body.wfst-fw .ast-container,
body.wfst-fw .entry-content,
body.wfst-fw .site-content .entry-content,
body.wfst-fw .elementor-section-boxed > .elementor-container{
  max-width:100% !important;
  width:100% !important;
  padding-left:0 !important;
  padding-right:0 !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

body.wfst-fw #primary,
body.wfst-fw .site-main{
  padding-left:0 !important;
  padding-right:0 !important;
}

.wfst-full{
  width:100%;
  max-width:100%;
  margin-left:0;
  margin-right:0;
  overflow-x:clip;
}

/* Anpeche padding tem nan double sa nou genyen an */
.wfst-full .wfst-section,
.wfst-full .wfst-chips{
  padding-left:16px;
  padding-right:16px;
}
.wfst-full .wfst-chips-label{padding-left:16px;padding-right:16px}

/* ==================================================
   SLIDER
   ================================================== */
.wfst-hero{
  background:var(--wfst-ink);
  padding:18px 0 16px;
  position:relative;
}

.wfst-hero-viewport{overflow:hidden;padding:0 6vw}

.wfst-hero-track{
  display:flex;
  gap:0;                 /* ENPOTAN: gap kase kalkil translateX(-i*100%) */
  transition:transform .45s cubic-bezier(.4,0,.2,1);
  will-change:transform;
}

.wfst-hero-slide{
  position:relative;
  flex:0 0 100%;
  aspect-ratio:16/7;
  border-radius:16px;
  overflow:hidden;
  display:block;
  text-decoration:none;
  background:#1c1d21;
  box-shadow:0 6px 22px rgba(0,0,0,.28);
}

.wfst-hero .wfst-hero-img{
  width:100% !important;
  height:100% !important;
  object-fit:cover;
  display:block;
  margin:0 !important;
}

.wfst-hero-fallback{position:absolute;inset:0;display:block}
.wfst-bg-1{background:linear-gradient(135deg,#c60000,#7a0000)}
.wfst-bg-2{background:linear-gradient(135deg,#1f2937,#111214)}
.wfst-bg-3{background:linear-gradient(135deg,#7a0000,#1f2937)}
.wfst-bg-4{background:linear-gradient(135deg,#2b2b31,#c60000)}

.wfst-hero-badge{
  position:absolute;top:12px;right:12px;
  background:var(--wfst-accent);color:#fff;
  font-size:11px;font-weight:700;letter-spacing:.4px;
  padding:5px 10px;border-radius:6px;
  line-height:1;
}

.wfst-hero-text{
  position:absolute;left:0;right:0;bottom:0;
  display:flex;flex-direction:column;gap:3px;
  padding:38px 16px 14px;
  background:linear-gradient(to top,rgba(0,0,0,.78),transparent);
}
.wfst-hero-tag{
  font-size:10.5px;font-weight:600;text-transform:uppercase;
  letter-spacing:1px;color:#ff5a5a;
}
.wfst-hero-title{
  font-size:16px;font-weight:700;color:#fff;line-height:1.25;
}
.wfst-hero-price{font-size:12.5px;color:#d4d4dc}

.wfst-hero-dots{
  display:flex;justify-content:center;gap:6px;
  padding:14px 16px 0;
}
.wfst-dot{
  width:7px;height:7px;padding:0;border:none;
  border-radius:50%;background:rgba(255,255,255,.3);
  cursor:pointer;transition:width .2s ease,background .2s ease;
}
.wfst-dot.is-active{width:20px;border-radius:4px;background:#fff}

/* ==================================================
   CHIPS KATEGORI
   ================================================== */
.wfst-store{background:var(--wfst-bg);padding-bottom:26px}

.wfst-chips-wrap{
  position:sticky;top:0;z-index:20;
  background:var(--wfst-bg);
  padding:14px 0 10px;
  border-bottom:1px solid var(--wfst-line);
}
.wfst-chips-label{
  display:block;padding:0 16px 8px;
  font-size:10.5px;font-weight:600;text-transform:uppercase;
  letter-spacing:1px;color:var(--wfst-muted);
}

.wfst-chips{
  display:flex;gap:9px;
  overflow-x:auto;
  padding:2px 16px;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.wfst-chips::-webkit-scrollbar{display:none}

.wfst-chip{
  display:inline-flex;align-items:center;gap:7px;
  flex:0 0 auto;
  padding:9px 16px;
  border-radius:999px;
  border:1px solid var(--wfst-line);
  background:#fff;
  color:#3a3a40;
  font-size:13.5px !important;
  font-weight:500 !important;
  line-height:1.2 !important;
  cursor:pointer;
  white-space:nowrap;
  text-transform:none;
  transition:background .16s ease,border-color .16s ease,color .16s ease;
}
.wfst-chip,
.wfst-chip:hover,
.wfst-chip:focus,
.wfst-chip:active,
.wfst-chip:visited{
  background:#fff !important;
  color:#3a3a40 !important;
  border:1px solid var(--wfst-line) !important;
  box-shadow:none !important;
  text-shadow:none !important;
}
.wfst-chip:hover{border-color:rgba(0,0,0,.2) !important}
.wfst-chip-ico{width:15px;height:15px;flex-shrink:0;color:var(--wfst-muted)}

.wfst-chip.is-active,
.wfst-chip.is-active:hover,
.wfst-chip.is-active:focus,
.wfst-chip.is-active:active{
  background:#fff5f5 !important;
  border-color:#e6bcbc !important;
  color:var(--wfst-accent) !important;
  font-weight:600 !important;
}
.wfst-chip.is-active .wfst-chip-ico{color:var(--wfst-accent)}
.wfst-chip:focus-visible{outline:2px solid var(--wfst-accent);outline-offset:2px}

/* ==================================================
   SEKSYON + GRI
   ================================================== */
.wfst-section{padding:22px 16px 4px;scroll-margin-top:74px}

.wfst-store .wfst-section-title{
  font-size:19px !important;
  font-weight:700 !important;
  color:var(--wfst-ink) !important;
  margin:0 0 14px !important;
  padding:0 !important;
  letter-spacing:-.3px;
  line-height:1.2 !important;
}

.wfst-grid{
  display:grid;
  grid-template-columns:repeat(var(--wfst-cols-m),1fr);
  gap:18px 12px;
}

.wfst-card{
  display:flex;flex-direction:column;gap:8px;
  text-decoration:none !important;
  color:inherit;
}

.wfst-card-media{
  position:relative;
  display:block;
  aspect-ratio:1/1;
  border-radius:var(--wfst-radius);
  overflow:hidden;
  background:#e4e4e8;
  box-shadow:0 1px 3px rgba(0,0,0,.08);
  transition:transform .18s ease,box-shadow .18s ease;
}
.wfst-card:hover .wfst-card-media{
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(0,0,0,.14);
}

.wfst-store .wfst-card-img{
  width:100% !important;
  height:100% !important;
  object-fit:cover;
  display:block;
  margin:0 !important;
  border-radius:0 !important;
}
.wfst-card-noimg{
  position:absolute;inset:0;
  background:linear-gradient(135deg,#e9e9ed,#d8d8de);
}

/* Badj wouj anba imaj la */
.wfst-card-badge{
  position:absolute;left:0;right:0;bottom:0;
  background:var(--wfst-accent);
  color:#fff;
  font-size:11.5px;font-weight:600;
  letter-spacing:.2px;
  text-align:center;
  padding:6px 6px;
  line-height:1.15;
}

.wfst-store .wfst-card-title{
  display:-webkit-box !important;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:13px !important;
  font-weight:600 !important;
  color:var(--wfst-ink) !important;
  line-height:1.35 !important;
  margin:0 !important;
  min-height:2.7em;   /* 2 liy — kenbe ranje yo aliyen */
}

.wfst-card-btn{
  display:inline-block;
  margin-top:2px;
  padding:7px 0;
  text-align:center;
  border-radius:8px;
  background:var(--wfst-accent);
  color:#fff;
  font-size:12px;font-weight:600;
  letter-spacing:.3px;
}

/* ==================================================
   RESPONSIVE
   ================================================== */
@media (min-width:600px){
  .wfst-hero-slide{aspect-ratio:16/6}
  .wfst-hero-title{font-size:18px}
  .wfst-grid{grid-template-columns:repeat(4,1fr);gap:20px 16px}
}

@media (min-width:992px){
  .wfst-hero{padding:26px 0 20px}
  .wfst-hero-viewport{padding:0 12vw}
  .wfst-hero-slide{aspect-ratio:21/8;border-radius:18px}
  .wfst-hero-title{font-size:21px}
  .wfst-hero-text{padding:46px 22px 18px}

  .wfst-chips-wrap{padding:16px 0 12px}
  .wfst-chips{padding:2px max(16px,calc((100% - 1080px)/2))}

  .wfst-section{
    padding:28px max(16px,calc((100% - 1080px)/2)) 4px;
    scroll-margin-top:84px;
  }
  .wfst-store .wfst-section-title{font-size:22px !important;margin-bottom:18px !important}

  .wfst-grid{
    grid-template-columns:repeat(var(--wfst-cols-d),1fr);
    gap:24px 18px;
  }
  .wfst-store .wfst-card-title{font-size:13.5px !important}
}

@media (prefers-reduced-motion:reduce){
  .wfst-hero-track,
  .wfst-card-media,
  .wfst-chip{transition:none !important}
}
