body #page.site {
  background-color: #fff;
  background-image: linear-gradient(rgba(255,255,255,.95), rgba(255,255,255,.95)), url('../img/swiateczne-tlo.png');
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

/* Festive surfaces keep their own solid backdrop above the page illustration. */
body.home #bestsellers-section { background-color: #fff !important; }
body #site-footer.joy-footer-shell { background-color: #f8fafc !important; }

body.home #hero-slider-section .joy-hero-slider {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
}

/* Ribbon colors alternate while the white icons remain legible. */
#store-features-bar .joy-feature-icon-box,
#store-features-bar [id^="feature-box-"] > .md\:hidden {
  position: relative;
  border: 2px solid rgba(255,255,255,.7) !important;
  background: linear-gradient(90deg, transparent 42%, rgba(255,255,255,.22) 42% 58%, transparent 58%),
    linear-gradient(0deg, transparent 42%, rgba(255,255,255,.22) 42% 58%, transparent 58%), linear-gradient(180deg, #e14048, #c92f37) !important;
  box-shadow: 0 4px 12px rgba(85, 30, 30, .12);
}
#store-features-bar [id^="feature-box-"] .joy-mask-icon { background-color: #fff !important; }
@media (max-width: 767px) {
  #store-features-bar [id^="feature-box-"] > .md\:hidden {
    width: 56px; height: 56px; border-radius: 14px;
  }
}

/* A masked overlay leaves cards and controls untouched. */
body.home #promo-box-left::after,
body.home #store-shop-section .joy-home-product-card::after,
body.home #bestsellers-section .joy-home-product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  border-radius: inherit;
  padding: 3px;
  background: repeating-linear-gradient(135deg, #d52f35 0 8px, #fff 8px 16px, #16824e 16px 24px, #fff 24px 32px);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

@media (max-width: 1023px) {
  body.home #promo-box-left {
    position: relative !important;
    top: auto !important;
  }
}

#slide-cta-overlay {
  flex-direction: column;
  gap: 10px;
  padding: 18px 22px;
  border-radius: 30px;
  overflow: visible;
  width: max-content;
  max-width: min(94%, 720px);
}

.joy-hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 100%;
}

#slide-cta-overlay .joy-pulse {
  animation: joy-cta-breathe 2.1s ease-in-out infinite;
  box-shadow: 0 5px 18px rgba(244, 130, 40, .45);
  opacity: 1;
}

@keyframes joy-cta-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

.joy-hero-recommendation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid #f48228;
  border-radius: 999px;
  background: rgba(244, 130, 40, .05);
  color: #332d3b;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}

.joy-hero-stars {
  color: #f48228;
  background: radial-gradient(circle at bottom, #f48228 0%, #ef5d45 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1px rgba(133, 91, 0, .24));
  white-space: nowrap;
}

#store-features-bar .joy-feature-icon-box {
  border: 2px solid transparent;
  border-color: rgba(244, 130, 40, .4);
  background: linear-gradient(45deg, #ffe4cd, #fff 75%) padding-box;
}

.single-product .summary > .joy-hero-recommendation {
  display: inline-flex;
  margin-bottom: 12px;
}

#why-us-section [id^="why-card-"] > div:first-child { border-width: 2px; }

@media (max-width: 639px) {
  #slide-cta-overlay { gap: 7px; padding: 10px 12px; border-radius: 20px; }
  .joy-hero-cta-row { gap: 8px; }
  #slide-cta-overlay .joy-hero-title { white-space: normal; line-height: 1.15; }
  .joy-hero-recommendation { font-size: 10px; padding: 4px 8px; gap: 2px 5px; }
}

.single-product .joy-product-gallery-container { position: static; }

@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  body.single-product, body.single-product #page { overflow-x: clip !important; overflow-y: visible !important; }
  .single-product .joy-single-product-layout > .flex > div:first-child { align-self: stretch !important; }
  .single-product .joy-product-gallery-container { position: sticky !important; top: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  #slide-cta-overlay .joy-pulse { animation: none; }
}
