/* ============================= */
/* HERO IMAGE */
/* ============================= */

.features_product .wp-block-image {
  max-width: fit-content;
  position: relative;
  z-index: 1;
}

.features_product .wp-block-image img {
  width: 100%;
  min-height: 400px;
  max-height: 466px;
  display: block;
}

.features_product  .wc-block-grid__product-rating .wc-block-grid__product-rating__stars span:before {
  color: var(--wp--preset--color--accent-5) !important;
  font-size: 15px;
}
/* Decorative background behind image */

.features_product .wp-block-image::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 80%;
  height: 80%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);

  background: linear-gradient(
    180deg,
    var(--wp--preset--color--base) 0%,
    color-mix(in srgb, var(--wp--preset--color--accent-7) 5%, transparent) 100%
  );

  border-radius: 12px;
}
.features_product .wp-block-image::after{
      transform: translate(-50%, -62%) rotate(7deg);
}

/* ============================= */
/* SLIDER STRUCTURE */
/* ============================= */

.features_product {
  width: 100%;
  overflow: hidden;
}

.features_product .swiper-wrapper {
  display: flex;
}

.features_product .swiper-slide {
  flex-shrink: 0;
  position: relative;
  opacity: 0.2;
  transition: all 1s ease;
}

.features_product .swiper-slide-active {
  opacity: 1;
}

/* ============================= */
/* HEADINGS */
/* ============================= */

.features_product h2 {
  color: var(--wp--preset--color--accent-7);
  line-height: 1.1;
  margin: var(--wp--preset--spacing--20);
}

.features_product .lux-title-top {
  position: absolute;
  z-index: 2;
  top: -100px;
  left: 60px;
  opacity: 0.35;
  transform: translateY(0);
  transition: all 0.9s ease-in-out;
}

.features_product .lux-title-bottom {
  position: absolute;
  z-index: 2;
  bottom: -12%;
  right: 60px;
  opacity: 0.35;
  transform: translateY(0);
  transition: all 0.9s ease-in-out;
}

/* Right framed title */

.features_product .lux-title-top-right {
  position: absolute;
  z-index: 2;
  top: -60px;
  right: 0;

  text-align: center;
  max-width: 328px;

  border: 2px solid var(--wp--preset--color--contrast);
  color: var(--wp--preset--color--contrast);
  font-weight: 400;
  line-height: 1.2;

  display: inline-block;
  background: transparent;
  padding-block: var(--wp--preset--spacing--20);
}
@media screen and (max-width: 768px) {
  .features_product .lux-title-top-right {
    top: -7px;
    right: 9px;
    width: 91px;
    margin: 0;
  }
  .features_product .swiper-wrapper {
    padding-bottom: 0 !important;
    padding-top: 30px !important;
  }
  .features_product h2.lux-title-top-right {
    top: 0;
    right: 10px;
    max-width: 91px;
    font-size: 14px !important;
  }
  .features_product .lux-title-top {
    top: 0;
    left: 10px;
  }
  .features_product h2.lux-title-top {
    font-size: 36px !important;
  }
  .features_product h2.lux-title-bottom {
    bottom: -10px;
    right: 10px;
    font-size: 36px !important;
  }
  .features_product .swiper-slide {
    padding-bottom: 100px;
  }
  .features_product .wp-block-woocommerce-single-product {
    bottom: 45px !important;
    left: 10px !important;
  }
  .features_product .wp-block-image {
    padding-top: 30px;
    padding-bottom: 45px;
  }
  .features_product .wp-block-image img {
    min-height: 132px;
    max-height: 132px;
  }
}
/* border cut lines */

.features_product .lux-title-top-right::before,
.features_product .lux-title-top-right::after {
  content: "";
  position: absolute;
  left: 25%;
  width: 50%;
  height: 2px;
  background: var(--wp--preset--color--base);
  z-index: 2;
}

.features_product .lux-title-top-right::before {
  top: -2px;
}

.features_product .lux-title-top-right::after {
  bottom: -2px;
}

/* ============================= */
/* PRODUCT CARD */
/* ============================= */
.features_product .woocommerce {
  a {
    color: var(--wp--preset--color--accent-7);
  }
}
.features_product .woocommerce * {
  margin: 0 !important;
  
}
.features_product .wc-block-components-product-summary {
  p {
    margin: 0 !important;
  }
}
.features_product .wp-block-woocommerce-single-product {
  position: absolute;
  left: 60px;
  bottom: 120px;
  z-index: 9;

  border: 1px solid var(--wp--preset--color--accent-7);
  padding: var(--wp--preset--spacing--20);

  max-width: 372px;
  min-width: 255px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  opacity: 1;
  transform: translateX(0);
  transition: all 0.9s ease-in-out;
}
@media (max-width: 768px) {
  .features_product .wp-block-woocommerce-single-product {
     max-width: 175px;
  min-width: 150px;

  }}

/* card hidden when slide inactive */

.features_product
  .swiper-slide:not(.swiper-slide-active)
  .wp-block-woocommerce-single-product {
  transform: translateX(-100%);
  opacity: 0;
}

/* ============================= */
/* TEXT & SUMMARY */
/* ============================= */

.features_product .wp-block-post-title {
  margin: var(--wp--preset--spacing--20);
}
@media (max-width: 768px) {
  .features_product .wp-block-post-title {
    font-size: 14px !important;
  }
  .features_product .wc-block-components-product-summary p {
    font-size: 12px !important;
  }
}

.features_product .wp-block-post-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
font-weight: 500;
line-height: 125%;
letter-spacing: 0%;
font-size: var(--wp--preset--font-size--medium);
}

.features_product .wp-block-woocommerce-product-summary {
  margin: var(--wp--preset--spacing--20);
}

.features_product .wc-block-components-product-summary p {
  margin: var(--wp--preset--spacing--20);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================= */
/* PRICE */
/* ============================= */

.features_product .price,
.features_product .woocommerce-Price-amount {
  color: var(--wp--preset--color--contrast);
  font-weight: 500;
}

.features_product ins {
  background-color: transparent !important;
}
/* .features_product .woocommerce-Price-amount.amount > bdi{
  opacity: .8;
} */
/* ============================= */
/* BUTTON */
/* ============================= */
/* ── Idle: cart icon ─────────────────────────────────────── */
:root :where(.features_product .wp-element-button,.features_product .wp-block-button__link) {
  border-radius: 4px;
  padding: 10px 8px !important;
} */
.wc-block-components-product-button__button span {
  font-size: 0 !important;
}
.wc-block-components-product-button__button span::before {
  content: "";
  display: inline-block;
  width: 20px !important;
  height: 20px !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M8.73 6.6C9.18 6.6 9.576 6.354 9.78 5.982L11.928 2.088C12.15 1.692 11.862 1.2 11.406 1.2H2.526L1.962 0H0V1.2H1.2L3.36 5.754L2.55 7.218C2.112 8.022 2.688 9 3.6 9H10.8V7.8H3.6L4.26 6.6H8.73ZM3.096 2.4H10.386L8.73 5.4H4.518L3.096 2.4ZM3.6 9.6C2.94 9.6 2.406 10.14 2.406 10.8C2.406 11.46 2.94 12 3.6 12C4.26 12 4.8 11.46 4.8 10.8C4.8 10.14 4.26 9.6 3.6 9.6ZM9.6 9.6C8.94 9.6 8.406 10.14 8.406 10.8C8.406 11.46 8.94 12 9.6 12C10.26 12 10.8 11.46 10.8 10.8C10.8 10.14 10.26 9.6 9.6 9.6Z' fill='%23EAE9E9'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Loading: spinner ────────────────────────────────────── */
.wc-block-components-product-button__button[data-wc-state="loading"]
  span::before {
  content: "";
  width: 14px;
  height: 14px;
  background-image: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: wcSpin 0.6s linear infinite;
}

/* ── Success: checkmark + green ──────────────────────────── */
.wc-block-components-product-button__button[data-wc-state="success"] {
  background: #27ae60;
  transition: background 0.3s ease;
}

.wc-block-components-product-button__button[data-wc-state="success"]
  span::before {
  content: "";
  width: 20px !important;
  height: 10px !important;
  background-image: none;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg) translateY(2px);
  animation: wcCheck 0.3s ease forwards;
}

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes wcSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes wcCheck {
  from {
    opacity: 0;
    transform: rotate(-45deg) translateY(-2px) scale(0.5);
  }
  to {
    opacity: 1;
    transform: rotate(-45deg) translateY(-2px) scale(1);
  }
}
/* ============================= */
/* CART ANIMATION */
/* ============================= */

@keyframes cartPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.18);
  }

  100% {
    transform: scale(1);
  }
}

/* ============================= */
/* SLIDE ANIMATION */
/* ============================= */

.features_product .swiper-slide:not(.swiper-slide-active) .lux-title-bottom {
  transform: translateY(120px);
}

.features_product .swiper-slide:not(.swiper-slide-active) .lux-title-top {
  transform: translateY(-120px);
}

/* لازم عشان التموضع */
.features_product {
  position: relative;
}

/* الكونتينر تحت شمال */
.navigation-container {
  position: absolute;
    bottom: 167px;
    left: 130px;
  display: flex;
  flex-direction: row-reverse;
  gap: 10px;
  z-index: 10;
  .swiper-navigation-icon {
    height: 20px !important;
    stroke-width: 2px;
    stroke: white;
  }
}
@media (max-width: 768px) {
  .navigation-container {
    display: none;
  }
}

/* شكل مربع */
.navigation-container .swiper-button-next,
.navigation-container .swiper-button-prev {
  position: static; /* مهم عشان يبقوا جنب بعض */
  width: 40px;
  height: 40px;
  background: #000;
  color: #fff;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* hover effect */
.navigation-container .swiper-button-next:hover,
.navigation-container .swiper-button-prev:hover {
  background: #333;
  transform: translateY(-3px);
}
.navigation-container .swiper-button-next::after,
.navigation-container .swiper-button-prev::after {
  font-size: 16px;
}
/* تكبير الأيقونة */
.swiper-navigation-icon {
  width: 14px;
  height: 24px;
}