/* =========================================================
   0) GLOBAL BOX-SIZING
   ========================================================= */
.elementor-widget-loop-carousel,
.elementor-widget-loop-carousel *,
.single-product .elementor-widget-woocommerce-product-images,
.single-product .elementor-widget-woocommerce-product-images * {
  box-sizing: border-box;
}

/* =========================================================
   1) LOOP / KARUSELLI – YLIMENON ESTO
   ========================================================= */
.elementor-widget-loop-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  contain: layout paint;
}

@supports (overflow: clip) {
  .elementor-widget-loop-carousel { overflow: clip; }
}

.elementor-widget-loop-carousel .swiper,
.elementor-widget-loop-carousel .swiper-slide,
.elementor-widget-loop-carousel .swiper-wrapper {
  max-width: 100%;
}

.elementor-widget-loop-carousel .swiper-slide,
.elementor-widget-loop-carousel .swiper-slide > * {
  min-width: 0;
}

.elementor-widget-loop-carousel img {
  display: block;
  width: 100%;
  height: auto;
}

.elementor-widget-loop-carousel .swiper-slide * {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =========================================================
   2) MOBILE: TUOTELISTA 100% LEVEÄKSI
   ========================================================= */
@media (max-width: 767px) {
  .woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
  }

  .woocommerce ul.products li.product a img {
    width: 100% !important;
    height: auto !important;
    display: block;
  }
}

/* =========================================================
   3) MENU CART
   ========================================================= */
.elementor-widget-woocommerce-menu-cart .elementor-button,
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle_button {
  background-color: #3D524D !important;
}

/* =========================================================
   4) PIILOTA OP LASKU
   ========================================================= */
[class*="op-lasku"] {
  display: none !important;
}

/* =========================================================
   5) PIILOTA WOO ILMOITUKSET
   ========================================================= */
.woocommerce-message,
.woocommerce-notices-wrapper,
.wc-block-components-notice-banner {
  display: none !important;
}

/* =========================================================
   6) MINI CART VÄRIT
   ========================================================= */
.wc-block-mini-cart__footer .wc-block-components-button,
.wc-block-mini-cart__footer .wc-block-components-button span,
.wc-block-mini-cart__footer .wc-block-components-button__text,
.elementor-menu-cart__footer-buttons a.elementor-button,
.elementor-menu-cart__footer-buttons a.elementor-button .elementor-button-text {
  color: #1f3d2b !important;
}

/* =========================================================
   7) PIILOTA RELATED / UPSELLS
   ========================================================= */
.woocommerce div.product .related,
.woocommerce div.product .upsells {
  display: none !important;
}

/* =========================================================
   8) PIILOTA EXPRESS CHECKOUT
   ========================================================= */
.single-product .wcpay-payment-request-button,
.single-product .wc-block-components-express-payment {
  display: none !important;
}

/* =========================================================
   9) TUOTEKORTTI – HOVER KUVA
   ========================================================= */
.woocommerce ul.products li.product a {
  position: relative;
  display: block;
}

.woocommerce ul.products li.product a img:nth-of-type(2) {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .25s ease;
}

.woocommerce ul.products li.product:hover a img:nth-of-type(2) {
  opacity: 1;
}

.woocommerce ul.products li.product:hover a img:nth-of-type(1) {
  opacity: 0;
}

/* =========================================================
   10) LINKIT EI-KLIKATTAVIKSI (ILMAN VÄRIN RIKKOMISTA)
   ========================================================= */
:where(.woocommerce, .elementor) a:is(
  [href*="myyty"],
  [href*="sold"],
  [href*="vapaa"],
  [href*="available"],
  [href*="52cmx65cm"]
):not(.button):not(.elementor-button) {
  pointer-events: none !important;
  cursor: default !important;
  text-decoration: none !important;
}

/* =========================================================
   11) SOLD / MYYTY – PUNAISEKSI
   ========================================================= */
:where(.woocommerce, .elementor) a:is(
  [href*="myyty"],
  [href*="sold"]
):not(.button):not(.elementor-button) {
  color: #c15757 !important;
  font-weight: 600 !important;
}

/* =========================================================
   12) TUOTESIVU – MYYTY BADGE
   ========================================================= */
.single-product .product_meta a:is([href*="myyty"], [href*="sold"]) {
  background: #c15757 !important;
  color: #fff !important;
  padding: 3px 8px;
  display: inline-block;
}

/* =========================================================
   13) CART BUTTON
   ========================================================= */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: #3D524D !important;
  color: #F0CEE2 !important;
}

.single-product .post-navigation,
.single-product .nav-links,
.single-product .related-posts,
.single-product .related-articles,
.single-product .jp-relatedposts,
.single-product .crp_related,
.single-product .yarpp-related,
.single-product .widget_related_posts {
    display: none !important;
}

/* Mini cart / cart side panel buttons */
.woocommerce-mini-cart__buttons a,
.woocommerce-mini-cart__buttons a.button,
.widget_shopping_cart_content a.button {
    color: #ffffff !important;
}

/* Hover */
.woocommerce-mini-cart__buttons a:hover,
.woocommerce-mini-cart__buttons a.button:hover,
.widget_shopping_cart_content a.button:hover {
    color: #ffffff !important;
}
.elementor-menu-cart__footer-buttons a {
    color: #ffffff !important;
}