/* ===== Product card alignment — classic WooCommerce loop ===== */
ul.products li.product {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  text-align: center !important;
}

ul.products li.product .product-details {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 3.2em !important;
  font-weight: 800 !important;
  font-size: 22px !important;
  line-height: 1.25 !important;
  color: #001F4D !important;
  text-align: center !important;
}

/* Product price */
.woocommerce ul.products li.product .price {
  display: block !important;
  margin-bottom: 50px !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #40E0E8 !important;
  text-align: center !important;
}

/* Add to cart button */
.woocommerce ul.products li.product .button {
  position: absolute !important;
  bottom: 16px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 40px) !important;
  text-align: center !important;
  background-color: #40E0E8 !important;
  color: #001F4D !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}

/* ===== Product card alignment — WooCommerce blocks loop ===== */
li.wc-block-product {
  display: flex !important;
  flex-direction: column !important;
  text-align: center !important;
}

li.wc-block-product .wp-block-post-title {
  min-height: 3.2em !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  font-weight: 800 !important;
  font-size: 22px !important;
  line-height: 1.25 !important;
  color: #001F4D !important;
  text-align: center !important;
}

li.wc-block-product .wp-block-woocommerce-product-price {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #001F4D !important;
  text-align: center !important;
}

li.wc-block-product .wp-block-woocommerce-product-button {
  margin-top: auto !important;
  width: 100% !important;
}

li.wc-block-product .wp-block-woocommerce-product-button button {
  width: 100% !important;
  box-sizing: border-box !important;
  background-color: #40E0E8 !important;
  color: #001F4D !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 18px 28px !important;
  font-size: 17px !important;
}

/* ===== Mobile product styling ===== */
@media (max-width: 768px) {
  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  li.wc-block-product .wp-block-post-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    min-height: 3.2em !important;
  }

  .woocommerce ul.products li.product .price,
  li.wc-block-product .wp-block-woocommerce-product-price {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #40EDE8 !important;
  }

  .woocommerce ul.products li.product .button {
    width: calc(100% - 20px) !important;
  }
}

/* ===== YITH product badge styling ===== */
.yith-wcbm-badge {
  top: 10px !important;
  left: 10px !important;
  font-family: 'Inter', sans-serif !important;
}

.yith-wcbm-badge p {
  color: #001F4D !important;
}

/* ===== Product sliders 277 + 683 ===== */
#sp-woo-product-slider-277 .swiper-slide,
#sp-woo-product-slider-683 .swiper-slide {
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 10px rgba(0, 31, 77, 0.08) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

#sp-woo-product-slider-277 .swiper-slide:hover,
#sp-woo-product-slider-683 .swiper-slide:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 24px rgba(0, 31, 77, 0.15) !important;
}

#sp-woo-product-slider-277 .sp-wps-product-image-area,
#sp-woo-product-slider-683 .sp-wps-product-image-area {
  border-radius: 16px !important;
  overflow: hidden !important;
  background-color: transparent !important;
  padding: 8px !important;
  box-shadow: none !important;
}

#sp-woo-product-slider-277 .sp-wps-product-details,
#sp-woo-product-slider-683 .sp-wps-product-details {
  background-color: #ffffff !important;
}

#sp-woo-product-slider-277 .wps-product-image,
#sp-woo-product-slider-683 .wps-product-image {
  border: none !important;
}

#sp-woo-product-slider-277 .wpsp-nav.swiper-button-prev,
#sp-woo-product-slider-277 .wpsp-nav.swiper-button-next,
#sp-woo-product-slider-683 .wpsp-nav.swiper-button-prev,
#sp-woo-product-slider-683 .wpsp-nav.swiper-button-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background-color: #001F4D !important;
  border: none !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
}

#sp-woo-product-slider-277 .wpsp-nav.swiper-button-prev,
#sp-woo-product-slider-683 .wpsp-nav.swiper-button-prev {
  left: -20px !important;
  right: auto !important;
}

#sp-woo-product-slider-277 .wpsp-nav.swiper-button-next,
#sp-woo-product-slider-683 .wpsp-nav.swiper-button-next {
  right: -20px !important;
  left: auto !important;
}

#sp-woo-product-slider-277 .wpsp-nav.swiper-button-prev i,
#sp-woo-product-slider-277 .wpsp-nav.swiper-button-next i,
#sp-woo-product-slider-683 .wpsp-nav.swiper-button-prev i,
#sp-woo-product-slider-683 .wpsp-nav.swiper-button-next i {
  color: #ffffff !important;
}

#sp-woo-product-slider-277 .wpsp-nav.swiper-button-prev:hover,
#sp-woo-product-slider-277 .wpsp-nav.swiper-button-next:hover,
#sp-woo-product-slider-683 .wpsp-nav.swiper-button-prev:hover,
#sp-woo-product-slider-683 .wpsp-nav.swiper-button-next:hover {
  background-color: #40E0E8 !important;
}

#sp-woo-product-slider-277 .wpsf-cart-button a,
#sp-woo-product-slider-683 .wpsf-cart-button a,
#sp-woo-product-slider-277 a.add_to_cart_button,
#sp-woo-product-slider-683 a.add_to_cart_button,
#sp-woo-product-slider-277 .button,
#sp-woo-product-slider-683 .button {
  background-color: #40E0E8 !important;
  color: #001F4D !important;
  border: none !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  font-family: inherit !important;
  padding: 18px 28px !important;
  font-size: 17px !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  text-align: center !important;
  width: 100% !important;
  display: block !important;
}

#sp-woo-product-slider-277 .wpsf-cart-button a:hover,
#sp-woo-product-slider-683 .wpsf-cart-button a:hover,
#sp-woo-product-slider-277 a.add_to_cart_button:hover,
#sp-woo-product-slider-683 a.add_to_cart_button:hover,
#sp-woo-product-slider-277 .button:hover,
#sp-woo-product-slider-683 .button:hover {
  background-color: #46E2EB !important;
  color: #001F4D !important;
}

#sp-woo-product-slider-277 .wpsf-product-title a,
#sp-woo-product-slider-683 .wpsf-product-title a {
  font-weight: 800 !important;
  color: #001F4D !important;
}

#sp-woo-product-slider-277 .wpsf-product-price,
#sp-woo-product-slider-683 .wpsf-product-price {
  font-weight: 800 !important;
  color: #40E0E8 !important;
}

/* ===== Nav menu widget ===== */
.widget_nav_menu ul {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.widget_nav_menu ul li {
  display: flex !important;
  align-items: center !important;
  margin: 0 16px !important;
}

.widget_nav_menu ul li:not(:last-child)::after {
  content: "|";
  margin-left: 16px;
  color: #a5b3c5;
}

/* ===== Page title spacing ===== */
.entry-hero-container-inner .entry-header,
.entry-header.product-archive-title {
  min-height: 0 !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}

.entry-header,
h1.entry-title {
  margin-bottom: 4px !important;
  padding-bottom: 0 !important;
}

.entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.entry-content > p:first-child {
  margin-top: 0 !important;
}

/* ===== Shop page heading alignment ===== */
.entry-hero .entry-header.title-align-center h1 {
  text-align: left !important;
}

/* ===== Hide author meta ===== */
.author,
.entry-author,
.posted-by,
.kb-post-author,
.author-name,
.meta-author {
  display: none !important;
}

/* ===== Removed obsolete mobile-only Featured Products rule ===== */
/*
 * The old rule hid Product Collection blocks on desktop but displayed them
 * on mobile, which caused a second/duplicate product section to appear.
 */

/* ===== Hide ph-footer in products header ===== */
.woocommerce-products-header .ph-footer {
  display: none;
}

/* ===== Product disclaimer ===== */
.ph-inline-disclaimer {
  margin-top: 30px;
  padding: 20px 24px;
  background: #F7FFFF;
  border: 1px solid rgba(111,234,228,.45);
  border-left: 5px solid #6FEAE4;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,31,77,.05);
}

.ph-inline-disclaimer strong {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #001F4D;
}

.ph-inline-disclaimer ul {
  margin: 0;
  padding-left: 20px;
}

.ph-inline-disclaimer li {
  margin: 8px 0;
  color: #425466;
  line-height: 1.7;
  font-size: 14px;
}

.ph-inline-disclaimer li::marker {
  color: #6FEAE4;
}

@media (max-width: 768px) {
  .ph-inline-disclaimer {
    padding: 18px;
  }
  .ph-inline-disclaimer li {
    font-size: 13px;
  }
}

/* ===== Hide related products and JP posts ===== */
.related.products {
  display: none;
}

#jp-relatedposts,
.jp-relatedposts {
  display: none !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
  padding: 0 30px;
}
/* ===== Slider product title — equal height on mobile ===== */
#sp-woo-product-slider-277 .wpsf-product-title,
#sp-woo-product-slider-683 .wpsf-product-title {
  min-height: 2.8em !important;
  max-height: 2.8em !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

/* ===== WooCommerce shop archive: full-width, four large cards per row ===== */

/*
 * Keep these width rules limited to WooCommerce product archives.
 * This avoids changing normal pages, posts, the header, or the footer.
 */
.woocommerce-shop .content-container,
.post-type-archive-product .content-container,
.tax-product_cat .content-container,
.tax-product_tag .content-container,
.woocommerce-shop #primary,
.post-type-archive-product #primary,
.tax-product_cat #primary,
.tax-product_tag #primary,
.woocommerce-shop .content-area,
.post-type-archive-product .content-area,
.tax-product_cat .content-area,
.tax-product_tag .content-area {
  width: 100% !important;
  max-width: none !important;
}

/* Four equal-width products across on desktop */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Reset theme float/width rules and create equal-height cards */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  padding: 20px 20px 90px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  text-align: center !important;
}

/* Let the image fill the available card width without distortion */
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 360px !important;
  margin: 0 auto 18px !important;
  object-fit: contain !important;
}

/* Three columns on medium desktop/tablet */
@media (min-width: 769px) and (max-width: 1100px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

/* Two columns on mobile */
@media (max-width: 768px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    padding: 12px 12px 72px !important;
  }

  .woocommerce ul.products li.product a img,
  .woocommerce-page ul.products li.product a img {
    max-height: 220px !important;
    margin-bottom: 12px !important;
  }
}

/* Keep two products per row on all mobile screen sizes */
@media (max-width: 768px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .wp-block-woocommerce-product-collection .wc-block-product-template,
  .wc-block-product-template {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .wc-block-product-template > li,
  li.wc-block-product,
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
}
/* ===== Shop product card hover effect ===== */
.woocommerce ul.products li.product {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease !important;
  will-change: transform;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 18px 40px rgba(0, 31, 77, 0.14) !important;
  border-color: #40E0E8 !important;
}

/* Slight image movement on hover */
.woocommerce ul.products li.product img {
  transition: transform 0.3s ease !important;
}

.woocommerce ul.products li.product:hover img {
  transform: scale(1.05);
}

/* Button highlight on hover */
.woocommerce ul.products li.product:hover .button {
  background-color: #001F4D !important;
  color: #ffffff !important;
}

/* Keep keyboard navigation accessible */
.woocommerce ul.products li.product:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 31, 77, 0.14) !important;
  border-color: #40E0E8 !important;
}

/* Disable movement on touch devices */
@media (hover: none) {
  .woocommerce ul.products li.product:hover,
  .woocommerce ul.products li.product:focus-within {
    transform: none;
  }

  .woocommerce ul.products li.product:hover img {
    transform: none;
  }
}
.wp-block-videopress,
.wp-block-video,
.wp-block-embed{
    border-radius:20px;
    overflow:hidden;
    border:1px solid #E5E7EB;
    box-shadow:0 10px 30px rgba(0,31,77,.08);
}
/* Remove all borders/shadows from VideoPress */
.wp-block-videopress,
.wp-block-videopress video,
.wp-block-videopress iframe,
.wp-block-video,
.wp-block-video video {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
}
.wp-block-videopress video,
.wp-block-video video{
    transform: scale(1.01);
}
/* Remove VideoPress frame completely */
.wp-block-videopress,
.wp-block-videopress iframe {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    display: block !important;
}

/* Remove tiny edge caused by the player */
.wp-block-videopress iframe {
    transform: scale(1.003);
    transform-origin: center;
}