
/* ==========================================================
   Puzzle.ba Homepage · NESA CMS v2.2.0
   Theme Settings driven, intentionally compact.
   ========================================================== */
.puzzle-home{background:var(--bg);color:var(--ink)}
.puzzle-home .nesa-hero-slider{
  margin:0;
}
.puzzle-home .nesa-hero-button--primary{
  background:var(--primary);
  border-color:var(--primary);
  border-radius:var(--button-radius);
}
.puzzle-home .nesa-hero-button--primary:hover{
  background:color-mix(in srgb,var(--primary) 82%,#000);
}
.puzzle-home-fallback-hero{
  min-height:620px;
  display:grid;
  align-items:center;
  background:linear-gradient(135deg,var(--dark),color-mix(in srgb,var(--dark) 80%,var(--primary) 20%));
  color:#fff;
}
.puzzle-home-fallback-hero span,.puzzle-home-kicker,.puzzle-home-section-head>div>span{
  color:var(--primary);
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.puzzle-home-fallback-hero h1{
  max-width:850px;
  margin:12px 0;
  font-size:clamp(52px,7vw,92px);
  line-height:.96;
}
.puzzle-home-fallback-hero p{max-width:670px;font-size:19px;color:#d8dee6}
.puzzle-home-fallback-hero a{
  display:inline-flex;
  margin-top:24px;
  padding:14px 22px;
  border-radius:var(--button-radius);
  background:var(--primary);
  color:#fff;
  font-weight:900;
}
.puzzle-home-sale{
  padding:72px 0 82px;
  background:color-mix(in srgb,var(--bg) 96%,var(--primary) 4%);
}
.puzzle-home-section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:28px;
}
.puzzle-home-section-head h2{
  margin:8px 0 0;
  max-width:760px;
  font-size:clamp(36px,4.5vw,58px);
  line-height:1;
}
.puzzle-home-section-head>a{color:var(--primary);font-size:13px;font-weight:900}
.puzzle-home-sale-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.puzzle-home-product{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--card-radius);
  background:var(--surface);
  box-shadow:var(--card-shadow);
  transition:var(--transition-speed);
}
.puzzle-home-product:hover{transform:translateY(-4px)}
.puzzle-home-product__media{
  position:relative;
  display:block;
  aspect-ratio:1/1;
  background:color-mix(in srgb,var(--surface) 94%,var(--ink) 6%);
}
.puzzle-home-product__media img{width:100%;height:100%;object-fit:cover}
.puzzle-home-product__discount{
  position:absolute;
  z-index:2;
  top:14px;
  left:14px;
  padding:8px 10px;
  border-radius:999px;
  background:var(--primary);
  color:#fff;
  font-size:12px;
  font-weight:900;
  box-shadow:0 8px 24px color-mix(in srgb,var(--primary) 24%,transparent);
}
.puzzle-home-product__body{padding:18px}
.puzzle-home-product__body small{color:var(--muted);font-weight:900;font-size:10px;letter-spacing:.08em}
.puzzle-home-product__body h3{margin:7px 0 18px;font-size:18px;line-height:1.25}
.puzzle-home-product__price{display:flex;align-items:baseline;gap:9px}
.puzzle-home-product__price strong{font-size:22px}
.puzzle-home-product__price del{color:var(--muted);font-size:13px}
.puzzle-home-about{padding:96px 0;background:var(--surface)}
.puzzle-home-about__grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(420px,.82fr);
  gap:68px;
  align-items:center;
}
.puzzle-home-about__copy h2{
  margin:12px 0 20px;
  max-width:720px;
  font-size:clamp(40px,5vw,66px);
  line-height:1;
}
.puzzle-home-about__copy>p{max-width:720px;color:var(--muted);font-size:17px;line-height:1.8}
.puzzle-home-stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:30px 0;
}
.puzzle-home-stats article{
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:var(--card-radius);
  background:var(--bg);
}
.puzzle-home-stats strong,.puzzle-home-stats span{display:block}
.puzzle-home-stats strong{color:var(--primary);font-size:22px}
.puzzle-home-stats span{margin-top:3px;color:var(--muted);font-size:12px}
.puzzle-home-about__actions{display:flex;align-items:center;gap:18px}
.puzzle-home-about__actions a{font-weight:900;font-size:13px}
.puzzle-home-about__actions .is-primary{
  padding:13px 18px;
  border-radius:var(--button-radius);
  background:var(--primary);
  color:#fff;
}
.puzzle-home-about__media{
  min-height:550px;
  overflow:hidden;
  border-radius:var(--card-radius);
  box-shadow:var(--card-shadow);
  background:var(--bg);
}
.puzzle-home-about__media img{width:100%;height:550px;display:block;object-fit:cover}
.puzzle-home-about__placeholder{height:550px;display:grid;place-items:center;color:var(--muted);font-weight:900}
.puzzle-home-cta{
  position:relative;
  min-height:430px;
  display:grid;
  align-items:center;
  overflow:hidden;
  isolation:isolate;
  background:var(--dark);
  color:#fff;
}
.puzzle-home-cta>img{position:absolute;z-index:-3;inset:0;width:100%;height:100%;object-fit:cover}
.puzzle-home-cta__overlay{
  position:absolute;
  z-index:-2;
  inset:0;
  background:linear-gradient(90deg,color-mix(in srgb,var(--dark) 94%,transparent),color-mix(in srgb,var(--dark) 68%,transparent) 58%,color-mix(in srgb,var(--dark) 30%,transparent));
}
.puzzle-home-cta__inner{padding-top:72px;padding-bottom:72px}
.puzzle-home-cta__inner>span{color:var(--secondary);font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.puzzle-home-cta h2{max-width:850px;margin:11px 0 14px;color:#fff;font-size:clamp(42px,5.5vw,70px);line-height:.98}
.puzzle-home-cta p{max-width:650px;margin:0;color:#e0e5eb;font-size:16px;line-height:1.7}
.puzzle-home-cta a{
  display:inline-flex;
  margin-top:24px;
  padding:14px 22px;
  border-radius:var(--button-radius);
  background:var(--primary);
  color:#fff;
  font-weight:900;
}
@media(max-width:980px){
  .puzzle-home-sale-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .puzzle-home-about__grid{grid-template-columns:1fr}
  .puzzle-home-about__media,.puzzle-home-about__media img{height:460px;min-height:460px}
}
@media(max-width:620px){
  .puzzle-home-sale{padding:52px 0 58px}
  .puzzle-home-section-head{align-items:flex-start;flex-direction:column}
  .puzzle-home-sale-grid{grid-template-columns:1fr 1fr;gap:8px}
  .puzzle-home-product__body{padding:13px}
  .puzzle-home-product__body h3{font-size:15px}
  .puzzle-home-product__price strong{font-size:18px}
  .puzzle-home-about{padding:62px 0}
  .puzzle-home-stats{grid-template-columns:1fr 1fr}
  .puzzle-home-about__actions{align-items:flex-start;flex-direction:column}
  .puzzle-home-about__media,.puzzle-home-about__media img{height:360px;min-height:360px}
  .puzzle-home-cta{min-height:390px}
}


/* ==========================================================
   Puzzle Homepage v2.2.3 · Sale carousel polish
   ========================================================== */
.puzzle-home-sale{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 8% 0%,color-mix(in srgb,var(--secondary) 13%,transparent),transparent 30%),
    radial-gradient(circle at 95% 90%,color-mix(in srgb,var(--primary) 7%,transparent),transparent 28%),
    color-mix(in srgb,var(--bg) 96%,var(--primary) 4%);
}
.puzzle-home-sale::before,.puzzle-home-sale::after{
  content:"";
  position:absolute;
  pointer-events:none;
  border-radius:999px;
  filter:blur(2px);
  opacity:.35;
}
.puzzle-home-sale::before{width:360px;height:360px;left:-190px;top:120px;border:1px solid color-mix(in srgb,var(--primary) 15%,transparent)}
.puzzle-home-sale::after{width:280px;height:280px;right:-120px;bottom:-140px;border:1px solid color-mix(in srgb,var(--secondary) 20%,transparent)}
.puzzle-home-sale .container{position:relative;z-index:1}
.puzzle-home-sale-shell{position:relative}
.puzzle-home-sale-grid{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:calc((100% - 42px)/4);
  grid-template-columns:none;
  gap:14px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  padding:3px 2px 14px;
}
.puzzle-home-sale-grid::-webkit-scrollbar{display:none}
.puzzle-home-product{
  scroll-snap-align:start;
  border:1px solid color-mix(in srgb,var(--line) 84%,var(--surface) 16%);
  border-radius:calc(var(--card-radius) + 4px);
  background:linear-gradient(180deg,var(--surface),color-mix(in srgb,var(--surface) 97%,var(--primary) 3%));
  box-shadow:0 18px 45px rgba(20,30,44,.09);
  transform:translateZ(0);
}
.puzzle-home-product__media{
  margin:10px 10px 0;
  overflow:hidden;
  border-radius:calc(var(--card-radius) - 2px);
  background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 92%,var(--secondary) 8%),var(--surface));
}
.puzzle-home-product__media::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:28%;
  background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--surface) 28%,transparent));
  pointer-events:none;
}
.puzzle-home-product__media img{transition:transform var(--transition-speed) ease}
.puzzle-home-product:hover .puzzle-home-product__media img{transform:scale(1.025)}
.puzzle-home-product__body{padding:18px 20px 21px}
.puzzle-home-product__price strong{color:var(--primary);font-size:24px;font-weight:900}
.puzzle-home-product__price del{color:var(--muted);opacity:.72}
.puzzle-home-product__discount{
  top:13px;left:13px;
  background:var(--primary);
  box-shadow:0 9px 24px color-mix(in srgb,var(--primary) 26%,transparent);
}
.puzzle-home-sale-arrow{
  position:absolute;
  z-index:4;
  top:50%;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:999px!important;
  background:color-mix(in srgb,var(--surface) 92%,transparent);
  color:var(--ink);
  box-shadow:0 12px 30px rgba(20,30,44,.13);
  backdrop-filter:blur(10px);
  font-size:29px;
  line-height:1;
  cursor:pointer;
  transform:translateY(-50%);
  transition:.16s ease;
}
.puzzle-home-sale-arrow:hover{background:var(--primary);color:#fff;border-color:var(--primary)}
.puzzle-home-sale-arrow.is-prev{left:-23px}
.puzzle-home-sale-arrow.is-next{right:-23px}
.puzzle-home-about__media{
  position:relative;
  border-radius:calc(var(--card-radius) + 5px);
}
.puzzle-home-about__media::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--surface) 38%,transparent);
  pointer-events:none;
}
@media(max-width:980px){
  .puzzle-home-sale-grid{grid-auto-columns:calc((100% - 14px)/2)}
  .puzzle-home-sale-arrow.is-prev{left:-12px}.puzzle-home-sale-arrow.is-next{right:-12px}
}
@media(max-width:620px){
  .puzzle-home-sale-grid{grid-auto-columns:82%}
  .puzzle-home-sale-arrow{display:none}
}


/* ==========================================================
   Puzzle Homepage v2.2.7 · Sale cards = Commerce card language
   ========================================================== */
.puzzle-home-product{
  overflow:hidden!important;
  border:1px solid var(--line)!important;
  border-radius:var(--card-radius)!important;
  background:var(--surface)!important;
  box-shadow:0 8px 28px rgba(24,32,44,.04)!important;
}
.puzzle-home-product:hover{
  transform:translateY(-3px)!important;
  box-shadow:0 16px 40px rgba(16,24,40,.09)!important;
}
.puzzle-home-product__media{
  position:relative!important;
  display:block!important;
  width:100%!important;
  aspect-ratio:4/3!important;
  margin:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  background:var(--surface)!important;
}
.puzzle-home-product__media::after{display:none!important}
.puzzle-home-product__media img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.puzzle-home-product__body{
  display:flex!important;
  flex-direction:column!important;
  min-height:220px!important;
  padding:16px 18px 18px!important;
}
.puzzle-home-product__body small{
  color:var(--muted)!important;
  font-size:.72rem!important;
  font-weight:800!important;
  letter-spacing:.09em!important;
  text-transform:uppercase!important;
}
.puzzle-home-product__body h3{
  margin:7px 0 12px!important;
  min-height:2.7em!important;
  font-size:1rem!important;
  line-height:1.35!important;
}
.puzzle-home-product__body h3 a{
  color:var(--ink)!important;
  text-decoration:none!important;
}
.puzzle-home-product__stock{
  margin-top:auto!important;
  font-size:.78rem!important;
  font-weight:800!important;
}
.puzzle-home-product__stock.is-in-stock{color:#15803d!important}
.puzzle-home-product__stock.is-out-stock{color:#9b1c1c!important}
.puzzle-home-product__bottom{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-top:14px!important;
  padding-top:14px!important;
  border-top:1px solid var(--line)!important;
}
.puzzle-home-product__price{
  display:flex!important;
  align-items:baseline!important;
  flex-wrap:wrap!important;
  gap:5px!important;
}
.puzzle-home-product__price strong{
  color:var(--primary)!important;
  font-size:1.3rem!important;
  font-weight:900!important;
}
.puzzle-home-product__price del{
  color:var(--muted)!important;
  font-size:.76rem!important;
  opacity:.72!important;
}
.puzzle-home-product__action{
  flex:0 0 auto!important;
  padding:8px 11px!important;
  border-radius:var(--button-radius)!important;
  background:var(--primary)!important;
  color:#fff!important;
  font-size:.78rem!important;
  font-weight:850!important;
  text-decoration:none!important;
}
.puzzle-home-product__action:hover{
  background:color-mix(in srgb,var(--primary) 82%,#000)!important;
}
.puzzle-home-product__discount{
  top:14px!important;
  left:14px!important;
  background:var(--primary)!important;
  color:#fff!important;
}
@media(max-width:700px){
  .puzzle-home-product__body{min-height:205px!important;padding:12px!important}
  .puzzle-home-product__body h3{font-size:.86rem!important}
  .puzzle-home-product__bottom{display:block!important}
  .puzzle-home-product__action{display:flex!important;margin-top:10px!important;width:100%!important;justify-content:center!important}
}


/* v2.2.14 · homepage product cards are Commerce cards, not a separate design */
.puzzle-home-sale .puzzle-home-product{
  border:1px solid var(--commerce-card-border,#e7e2da)!important;
  border-radius:var(--commerce-card-radius,22px)!important;
  background:#fff!important;
  box-shadow:var(--commerce-card-shadow,0 8px 28px rgba(24,32,44,.04))!important;
}
.puzzle-home-sale .puzzle-home-product__media{
  height:250px!important;
  background:#f7f4ee!important;
}
.puzzle-home-sale .puzzle-home-product__media img{
  width:100%!important;height:100%!important;object-fit:cover!important;
}
.puzzle-home-sale .puzzle-home-product__price strong{
  font-size:1.38rem!important;
  color:var(--commerce-sale,#e31b2d)!important;
}
.puzzle-home-sale .puzzle-home-product__price:not(.commerce-price--cash) strong{
  color:#1d2530!important;
}
.puzzle-home-sale .puzzle-home-product__action{
  background:var(--primary)!important;
  color:#fff!important;
}
@media(max-width:520px){
  .puzzle-home-sale .puzzle-home-product__media{height:190px!important}
}


/* ==========================================================
   Puzzle Home 2.2.22 · use the shared Commerce product card skin.
   Slider behavior stays homepage-specific; product appearance does not.
   ========================================================== */
.puzzle-home-sale .puzzle-home-product{
  border:1px solid var(--commerce-card-border,#e8e2d8)!important;
  border-radius:var(--commerce-card-radius,20px)!important;
  background:#fff!important;
  box-shadow:var(--commerce-card-shadow,0 10px 30px rgba(28,35,45,.045))!important;
  overflow:hidden!important;
}
.puzzle-home-sale .puzzle-home-product__media{
  height:250px!important;
  margin:0!important;
  padding:0!important;
  border-radius:0!important;
  background:#f7f5ef!important;
}
.puzzle-home-sale .puzzle-home-product__media::after{display:none!important}
.puzzle-home-sale .puzzle-home-product__media img{width:100%!important;height:100%!important;object-fit:cover!important}
.puzzle-home-sale .puzzle-home-product__discount{
  background:var(--commerce-sale,#e91b2e)!important;
  color:#fff!important;
}
.puzzle-home-sale .puzzle-home-product__body{padding:14px 18px 18px!important}
.puzzle-home-sale .puzzle-home-product__body h3{font-size:1rem!important;line-height:1.35!important;color:#172033!important;min-height:2.7em!important;margin:7px 0 12px!important}
.puzzle-home-sale .puzzle-home-product__stock{font-size:.78rem!important;margin-bottom:8px!important}
.puzzle-home-sale .puzzle-home-product__bottom{border-top:1px solid var(--line)!important;padding-top:12px!important;margin-top:auto!important;align-items:flex-end!important}
.puzzle-home-sale .puzzle-home-product__price{display:grid!important;gap:4px!important}
.puzzle-home-sale .puzzle-home-product__price small{color:var(--commerce-sale,#e91b2e)!important;font-size:.69rem!important;font-weight:900!important;letter-spacing:.06em!important;text-transform:uppercase!important}
.puzzle-home-sale .puzzle-home-product__price .commerce-price-row{display:flex!important;align-items:baseline!important;gap:5px 7px!important}
.puzzle-home-sale .puzzle-home-product__price strong{font-size:1.35rem!important;font-weight:900!important;color:var(--commerce-sale,#e91b2e)!important}
.puzzle-home-sale .puzzle-home-product__price del{color:#98a2b3!important;font-size:.76rem!important}
.puzzle-home-sale .puzzle-home-product__action{background:var(--primary)!important;color:#fff!important;border-radius:0!important;min-height:36px!important}
@media(max-width:520px){.puzzle-home-sale .puzzle-home-product__media{height:190px!important}}
