/* Revival mobile UI polish for Aurore search/product experiences. */
:root {
  --revival-mobile-space-1: 4px;
  --revival-mobile-space-2: 8px;
  --revival-mobile-space-3: 12px;
  --revival-mobile-space-4: 16px;
  --revival-mobile-space-5: 20px;
  --revival-mobile-space-6: 24px;
  --revival-mobile-radius-sm: 8px;
  --revival-mobile-radius-md: 12px;
  --revival-mobile-shadow-sm: 0 8px 24px rgba(31, 31, 31, 0.08);
  --revival-mobile-shadow-md: 0 16px 48px rgba(31, 31, 31, 0.16);
  --revival-mobile-focus-ring: 0 0 0 3px rgba(180, 153, 52, 0.28);
}

.search-results .page-header--default,
.search-no-results .page-header--default {
  --lakit-pheader-height: clamp(140px, 32vw, 260px);
}

.search-results .entry-title,
.search-no-results .entry-title {
  overflow-wrap: anywhere;
}

.search-results .products-holder ul.products,
.search-results .wc-page-content ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
  margin-left: 0;
  margin-right: 0;
}

.search-results .products-holder ul.products::before,
.search-results .products-holder ul.products::after,
.search-results .wc-page-content ul.products::before,
.search-results .wc-page-content ul.products::after {
  content: none !important;
  display: none !important;
}

.search-results .products-holder ul.products > li.product,
.search-results .wc-page-content ul.products > li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  min-width: 0;
}

.search-results .product_item--inner,
.search-results ul.products li.product {
  border-radius: var(--revival-mobile-radius-md);
}

.search-results ul.products li.product img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.search-results ul.products li.product a.button,
.search-results ul.products li.product .button,
.search-results .woocommerce-pagination a,
.search-results .woocommerce-pagination span,
.search-results .pagination a,
.search-results .pagination span {
  min-height: 44px;
  min-width: 44px;
}

.search-results a:focus-visible,
.search-results button:focus-visible,
.search-results input:focus-visible,
.search-results select:focus-visible,
.search-results textarea:focus-visible {
  outline: none;
  box-shadow: var(--revival-mobile-focus-ring);
}

/* Product quickview modal: keep the close control visible and content scrollable on mobile. */
.revival-quickview-open .featherlight.is--qvpp,
.featherlight.is--qvpp.revival-mobile-qv {
  padding: var(--revival-mobile-space-2) var(--revival-mobile-space-3) calc(env(safe-area-inset-bottom, 0px) + var(--revival-mobile-space-5));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.revival-quickview-open .featherlight.is--qvpp::before,
.featherlight.is--qvpp.revival-mobile-qv::before {
  display: none;
}

.revival-quickview-open .featherlight.is--qvpp .featherlight-outer,
.featherlight.is--qvpp.revival-mobile-qv .featherlight-outer {
  display: block;
  width: min(100%, 960px);
  max-width: calc(100vw - (var(--revival-mobile-space-3) * 2));
  max-height: calc(100dvh - env(safe-area-inset-bottom, 0px) - var(--revival-mobile-space-6));
  margin: 0 auto;
  padding: 0;
}

.revival-quickview-open .featherlight.is--qvpp .featherlight-content,
.featherlight.is--qvpp.revival-mobile-qv .featherlight-content {
  width: 100%;
  max-height: calc(100dvh - env(safe-area-inset-bottom, 0px) - var(--revival-mobile-space-6));
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--revival-mobile-space-5));
  border-radius: var(--revival-mobile-radius-md);
  box-shadow: var(--revival-mobile-shadow-md);
  -webkit-overflow-scrolling: touch;
}

.revival-quickview-open .featherlight.is--qvpp .featherlight-close-icon,
.featherlight.is--qvpp.revival-mobile-qv .featherlight-close-icon {
  position: absolute;
  top: var(--revival-mobile-space-2);
  right: var(--revival-mobile-space-2);
  bottom: auto;
  left: auto;
  display: flex !important;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #1f1f1f;
  box-shadow: var(--revival-mobile-shadow-sm);
  line-height: 1;
}

.revival-quickview-open .featherlight.is--qvpp .featherlight-close-icon:focus-visible,
.featherlight.is--qvpp.revival-mobile-qv .featherlight-close-icon:focus-visible {
  outline: none;
  box-shadow: var(--revival-mobile-shadow-sm), var(--revival-mobile-focus-ring);
}

.revival-quickview-open .prod-qv-wrap,
.featherlight.is--qvpp.revival-mobile-qv .prod-qv-wrap {
  padding: var(--revival-mobile-space-5);
}

.revival-quickview-open .prod-qv-wrap .product--inner,
.featherlight.is--qvpp.revival-mobile-qv .prod-qv-wrap .product--inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: var(--revival-mobile-space-6);
  align-items: start;
}

.revival-quickview-open .prod-qv-wrap img,
.featherlight.is--qvpp.revival-mobile-qv .prod-qv-wrap img {
  max-width: 100%;
  height: auto;
}

/* A single image does not initialize Slick, so make its native gallery visible. */
.featherlight.is--qvpp .prod-qv-wrap .woocommerce-product-gallery,
.featherlight.is--qvpp .prod-qv-wrap .woocommerce-product-gallery__wrapper,
.featherlight.is--qvpp .prod-qv-wrap .woocommerce-product-gallery__image,
.revival-quickview-open .prod-qv-wrap .woocommerce-product-gallery,
.revival-quickview-open .prod-qv-wrap .woocommerce-product-gallery__wrapper,
.revival-quickview-open .prod-qv-wrap .woocommerce-product-gallery__image {
  display: block;
  width: 100%;
  min-height: 1px;
  opacity: 1 !important;
  visibility: visible !important;
}

.featherlight.is--qvpp .prod-qv-wrap .woocommerce-product-gallery__image img,
.revival-quickview-open .prod-qv-wrap .woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 991px) {
  .featherlight.is--qvpp .prod-qv-wrap .product--inner {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 1fr);
    gap: var(--revival-mobile-space-5);
  }

  body.search-results,
  body.search-no-results {
    --theme-container-width: 100%;
  }

  .search-results #site-content-wrap,
  .search-no-results #site-content-wrap {
    padding-left: var(--revival-mobile-space-4);
    padding-right: var(--revival-mobile-space-4);
  }

  .search-results #site-content-wrap .site-content--default,
  .search-no-results #site-content-wrap .site-content--default {
    order: 1;
    width: 100%;
  }

  .search-results #site-content-wrap .sidebar-container,
  .search-no-results #site-content-wrap .sidebar-container {
    order: 2;
    width: 100%;
    margin-top: var(--revival-mobile-space-6);
  }

  .search-results .sidebar-inner,
  .search-no-results .sidebar-inner {
    margin-bottom: var(--revival-mobile-space-6);
    padding: var(--revival-mobile-space-4);
    border: 1px solid var(--theme-border-color, #d9d9d9);
    border-radius: var(--revival-mobile-radius-md);
    box-shadow: var(--revival-mobile-shadow-sm);
  }

  .search-results .products-holder ul.products,
  .search-results .wc-page-content ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--revival-mobile-space-6) var(--revival-mobile-space-3);
  }

  .elementor-location-header [data-id="50628c5"] .lakit-logo__img,
  [data-id="50628c5"] .lakit-logo__img {
    max-height: 64px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .elementor-location-header [data-id="1fc3a5b"],
  [data-id="1fc3a5b"] {
    --min-height: 64px !important;
    min-height: 64px !important;
    --padding-top: 6px !important;
    --padding-bottom: 6px !important;
  }
}

@media (max-width: 767px) {
  body.single-product {
    overflow-x: hidden;
  }

  body.single-product #site-content-wrap,
  body.single-product .site-content--default,
  body.single-product .wc-page-content,
  body.single-product .site-content--default > .page-content > .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--revival-mobile-space-4) !important;
    padding-right: var(--revival-mobile-space-4) !important;
    box-sizing: border-box;
  }

  body.single-product #site-content-wrap .elementor-section .elementor-container,
  body.single-product #site-content-wrap .elementor-column,
  body.single-product #site-content-wrap .elementor-widget-wrap,
  body.single-product #site-content-wrap .elementor-widget-container,
  body.single-product #site-content-wrap .product--inner,
  body.single-product #site-content-wrap div.product {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }

  body.single-product #site-content-wrap .elementor-section .elementor-container,
  body.single-product #site-content-wrap .product--inner,
  body.single-product #site-content-wrap div.product {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  body.single-product #site-content-wrap .woocommerce-product-gallery-outer,
  body.single-product #site-content-wrap .woocommerce-product-gallery,
  body.single-product #site-content-wrap .summary.entry-summary,
  body.single-product #site-content-wrap .product--summary,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-images,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-tabs {
    float: none !important;
    clear: both !important;
    width: min(100%, 520px) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
    box-sizing: border-box;
  }

  body.single-product #site-content-wrap .woocommerce-product-gallery__wrapper,
  body.single-product #site-content-wrap .woocommerce-product-gallery__image,
  body.single-product #site-content-wrap .woocommerce-product-gallery__image a,
  body.single-product #site-content-wrap .woocommerce-product-gallery__image img,
  body.single-product #site-content-wrap .wp-post-image,
  body.single-product #site-content-wrap div.product img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    object-fit: contain;
    box-sizing: border-box;
  }

  body.single-product #site-content-wrap .woocommerce-product-gallery__image a {
    display: block;
  }

  body.single-product #site-content-wrap .summary.entry-summary,
  body.single-product #site-content-wrap .product--summary {
    margin-top: var(--revival-mobile-space-5) !important;
  }

  body.single-product #site-content-wrap .product_title,
  body.single-product #site-content-wrap .price,
  body.single-product #site-content-wrap .woocommerce-product-details__short-description,
  body.single-product #site-content-wrap .product_meta {
    text-align: center !important;
    overflow-wrap: anywhere;
  }

  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart form.cart,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .variations_form,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .woocommerce-variation-add-to-cart,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .swatch-control,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .lakit-wrap-core-wl-cp,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .lakit-wrap-buynow {
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .elementor-widget-container,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .elementor-add-to-cart,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart form.cart,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart form.variations_form,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .woocommerce-variation-add-to-cart,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .lakit-wrap-buynow,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .lakit-wrap-core-wl-cp {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart form.cart,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart form.variations_form,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .woocommerce-variation-add-to-cart {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: var(--revival-mobile-space-3) !important;
    align-items: stretch !important;
    justify-items: stretch !important;
  }

  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart table.variations,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart table.variations tbody,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart table.variations tr,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart table.variations th,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart table.variations td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart table.variations {
    margin-bottom: 0 !important;
  }

  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .swatch-control,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .select.swatch-control {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: var(--revival-mobile-space-2) !important;
    justify-content: center !important;
  }

  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart form.cart .quantity,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart form.cart div.quantity,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .single_add_to_cart_button,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .lakit-wrap-buynow,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .lakit-wrap-core-wl-cp {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart form.cart .quantity input,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart form.cart .quantity .qty {
    width: 100% !important;
    min-height: 46px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .single_add_to_cart_button,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart button.single_add_to_cart_button,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .button.alt,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .lakit-wrap-buynow .lakit-core-buynow {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }

  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .lakit-wrap-core-wl-cp {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: var(--revival-mobile-space-2) !important;
    max-width: 100% !important;
    justify-content: center !important;
  }

  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .lakit-wrap-core-wl-cp a,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart a[data-action="lakit_wishlist"],
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .la-core-wishlist,
  body.single-product #site-content-wrap .elementor-lakit-wooproduct-addtocart .la-core-compare {
    width: 100% !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* Keep every WooCommerce product type usable when an Elementor add-to-cart widget is narrow. */
  body.single-product .elementor-lakit-wooproduct-addtocart .elementor-add-to-cart,
  body.single-product .elementor-lakit-wooproduct-addtocart .single_variation_wrap,
  body.single-product .elementor-lakit-wooproduct-addtocart .woocommerce-variation,
  body.single-product .elementor-lakit-wooproduct-addtocart .woocommerce-variation-description,
  body.single-product .elementor-lakit-wooproduct-addtocart .woocommerce-variation-price,
  body.single-product .elementor-lakit-wooproduct-addtocart .ppc-button-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.single-product .elementor-lakit-wooproduct-addtocart form.cart select,
  body.single-product .elementor-lakit-wooproduct-addtocart form.cart .select2-container,
  body.single-product .elementor-lakit-wooproduct-addtocart form.cart input[type="number"],
  body.single-product .elementor-lakit-wooproduct-addtocart form.cart input[type="text"],
  body.single-product .elementor-lakit-wooproduct-addtocart form.cart .button,
  body.single-product .elementor-lakit-wooproduct-addtocart form.cart button,
  body.single-product .elementor-lakit-wooproduct-addtocart .ppc-button-wrapper iframe {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px;
    box-sizing: border-box !important;
  }

  body.single-product .elementor-lakit-wooproduct-addtocart form.grouped_form .group_table,
  body.single-product .elementor-lakit-wooproduct-addtocart form.grouped_form .group_table tbody,
  body.single-product .elementor-lakit-wooproduct-addtocart form.grouped_form .group_table tr,
  body.single-product .elementor-lakit-wooproduct-addtocart form.grouped_form .group_table td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    padding: var(--revival-mobile-space-2) 0 !important;
    text-align: center;
    box-sizing: border-box;
  }

  body.single-product .elementor-lakit-wooproduct-addtocart form.grouped_form .group_table tr + tr {
    border-top: 1px solid var(--theme-border-color, #d9d9d9);
  }

  body.single-product .elementor-lakit-wooproduct-addtocart .woocommerce-variation-description,
  body.single-product .elementor-lakit-wooproduct-addtocart .woocommerce-variation-price,
  body.single-product .elementor-lakit-wooproduct-addtocart .stock,
  body.single-product .elementor-lakit-wooproduct-addtocart .reset_variations {
    overflow-wrap: anywhere;
    text-align: center;
  }

  /* LaStudioKit adds inner gutters to variation controls; remove them so every action shares one edge. */
  body.single-product .elementor-lakit-wooproduct-addtocart form.cart,
  body.single-product .elementor-lakit-wooproduct-addtocart .woocommerce-variation-add-to-cart,
  body.single-product .elementor-lakit-wooproduct-addtocart .variations_button,
  body.single-product .elementor-lakit-wooproduct-addtocart .lakit-wrap-core-wl-cp,
  body.single-product .elementor-lakit-wooproduct-addtocart .lakit-wrap-buynow {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  body.single-product .elementor-lakit-wooproduct-addtocart .woocommerce-variation-add-to-cart > .quantity,
  body.single-product .elementor-lakit-wooproduct-addtocart .woocommerce-variation-add-to-cart > .single_add_to_cart_button,
  body.single-product .elementor-lakit-wooproduct-addtocart .variations_button > .quantity,
  body.single-product .elementor-lakit-wooproduct-addtocart .variations_button > .single_add_to_cart_button {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* A heart without configured text must not appear as an empty mobile row. */
  body.single-product .elementor-lakit-wooproduct-addtocart .lakit-wrap-core-wl-cp > a:only-child {
    gap: 8px !important;
  }

  body.single-product .elementor-lakit-wooproduct-addtocart .lakit-wrap-core-wl-cp > a.la-core-wishlist:only-child::after {
    content: "ADD TO WISHLIST";
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
  }

  body.single-product #site-content-wrap .summary.entry-summary .elementor-widget-icon-box,
  body.single-product #site-content-wrap .product--summary .elementor-widget-icon-box,
  body.single-product #site-content-wrap .summary.entry-summary a.la-popup,
  body.single-product #site-content-wrap .product--summary a.la-popup,
  body.single-product #site-content-wrap .summary.entry-summary a[lapopup],
  body.single-product #site-content-wrap .product--summary a[lapopup],
  body.single-product #site-content-wrap .summary.entry-summary a[data-lapopup],
  body.single-product #site-content-wrap .product--summary a[data-lapopup] {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.single-product #site-content-wrap .summary.entry-summary .elementor-icon-box-wrapper,
  body.single-product #site-content-wrap .product--summary .elementor-icon-box-wrapper,
  body.single-product #site-content-wrap .summary.entry-summary a.la-popup,
  body.single-product #site-content-wrap .product--summary a.la-popup,
  body.single-product #site-content-wrap .summary.entry-summary a[lapopup],
  body.single-product #site-content-wrap .product--summary a[lapopup],
  body.single-product #site-content-wrap .summary.entry-summary a[data-lapopup],
  body.single-product #site-content-wrap .product--summary a[data-lapopup] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--revival-mobile-space-2) !important;
    min-height: 44px !important;
  }

  body.single-product #site-content-wrap .woocommerce-tabs,
  body.single-product #site-content-wrap .woocommerce-tabs .tabs,
  body.single-product #site-content-wrap .woocommerce-Tabs-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }

  body.single-product #site-content-wrap .woocommerce-tabs .tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: var(--revival-mobile-space-2);
    padding-left: 0 !important;
  }

  body.single-product .woocommerce-product-gallery {
    opacity: 1 !important;
  }

  body.single-product #site-content-wrap .woocommerce-product-gallery-outer .slick-list,
  body.single-product #site-content-wrap .woocommerce-product-gallery-outer .slick-track,
  body.single-product #site-content-wrap .woocommerce-product-gallery-outer .slick-slide {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body.single-product #site-content-wrap .woocommerce-product-gallery-outer .slick-track {
    display: block !important;
    transform: none !important;
    width: 100% !important;
  }

  body.single-product #site-content-wrap .woocommerce-product-gallery-outer .slick-slide {
    float: none !important;
    display: block !important;
    width: 100% !important;
    margin-bottom: var(--revival-mobile-space-3);
  }

  body.single-product #site-content-wrap .woocommerce-product-gallery-outer .slick-slide:last-child {
    margin-bottom: 0;
  }

  body.single-product #site-content-wrap .woocommerce-product-gallery-outer .flex-direction-nav {
    display: none !important;
  }

  body.single-product #site-content-wrap .related.products,
  body.single-product #site-content-wrap .upsells.products,
  body.single-product #site-content-wrap .cross-sells {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  body.single-product #site-content-wrap .related.products ul.products,
  body.single-product #site-content-wrap .upsells.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--revival-mobile-space-4) var(--revival-mobile-space-3) !important;
    justify-items: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.single-product #site-content-wrap .related.products ul.products::before,
  body.single-product #site-content-wrap .related.products ul.products::after,
  body.single-product #site-content-wrap .upsells.products ul.products::before,
  body.single-product #site-content-wrap .upsells.products ul.products::after {
    display: none !important;
  }

  body.single-product #site-content-wrap .related.products ul.products > li.product,
  body.single-product #site-content-wrap .upsells.products ul.products > li.product {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body.single-product #site-content-wrap .woocommerce-breadcrumb,
  body.single-product #site-content-wrap .breadcrumb,
  body.single-product .woocommerce-breadcrumb {
    text-align: center !important;
    justify-content: center !important;
    width: 100%;
  }

  body.single-product #site-content-wrap .stock,
  body.single-product #site-content-wrap .sku,
  body.single-product #site-content-wrap .sku_wrapper {
    text-align: center !important;
  }

  body.single-product #site-content-wrap .woocommerce-product-gallery-outer .flex-viewport,
  body.single-product #site-content-wrap .woocommerce-product-gallery-outer .flex-control-nav,
  body.single-product #site-content-wrap .woocommerce-product-gallery-outer .flex-control-thumbs {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.single-product #site-content-wrap .woocommerce-product-gallery-outer .flex-control-thumbs {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--revival-mobile-space-2) !important;
    margin-top: var(--revival-mobile-space-2) !important;
  }

  body.single-product #site-content-wrap .woocommerce-product-gallery-outer .flex-control-thumbs li {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .revival-quickview-open .featherlight.is--qvpp,
  .featherlight.is--qvpp.revival-mobile-qv {
    padding: var(--revival-mobile-space-1) var(--revival-mobile-space-2) calc(env(safe-area-inset-bottom, 0px) + var(--revival-mobile-space-5));
  }

  .revival-quickview-open .featherlight.is--qvpp .featherlight-outer,
  .featherlight.is--qvpp.revival-mobile-qv .featherlight-outer {
    width: 100%;
    max-width: calc(100vw - (var(--revival-mobile-space-2) * 2));
    max-height: calc(100dvh - env(safe-area-inset-bottom, 0px) - var(--revival-mobile-space-6));
  }

  .revival-quickview-open .featherlight.is--qvpp .featherlight-content,
  .featherlight.is--qvpp.revival-mobile-qv .featherlight-content {
    max-height: calc(100dvh - env(safe-area-inset-bottom, 0px) - var(--revival-mobile-space-6));
    border-radius: var(--revival-mobile-radius-sm);
  }

  .revival-quickview-open .prod-qv-wrap,
  .featherlight.is--qvpp.revival-mobile-qv .prod-qv-wrap {
    padding: var(--revival-mobile-space-4);
    padding-top: calc(var(--revival-mobile-space-6) + 44px);
  }

  .revival-quickview-open .prod-qv-wrap .product--inner,
  .featherlight.is--qvpp.revival-mobile-qv .prod-qv-wrap .product--inner {
    display: block;
  }

  .revival-quickview-open .prod-qv-wrap .woocommerce-product-gallery-outer,
  .featherlight.is--qvpp.revival-mobile-qv .prod-qv-wrap .woocommerce-product-gallery-outer,
  .revival-quickview-open .prod-qv-wrap .summary.entry-summary,
  .featherlight.is--qvpp.revival-mobile-qv .prod-qv-wrap .summary.entry-summary {
    width: 100% !important;
    max-width: 100%;
    float: none !important;
  }

  .revival-quickview-open .prod-qv-wrap .summary.entry-summary,
  .featherlight.is--qvpp.revival-mobile-qv .prod-qv-wrap .summary.entry-summary {
    margin-top: var(--revival-mobile-space-5);
  }

  .revival-quickview-open .prod-qv-wrap .slick-list,
  .revival-quickview-open .prod-qv-wrap .flex-viewport,
  .featherlight.is--qvpp.revival-mobile-qv .prod-qv-wrap .slick-list,
  .featherlight.is--qvpp.revival-mobile-qv .prod-qv-wrap .flex-viewport {
    overflow: hidden !important;
  }

  .revival-quickview-open .prod-qv-wrap .flex-direction-nav,
  .featherlight.is--qvpp.revival-mobile-qv .prod-qv-wrap .flex-direction-nav {
    display: none !important;
  }

  .revival-quickview-open .featherlight-content .prod-qv-wrap .woocommerce-product-gallery,
  .featherlight.is--qvpp.revival-mobile-qv .featherlight-content .prod-qv-wrap .woocommerce-product-gallery {
    opacity: 1;
  }

  body:not(.elementor-editor-active) .elementor-invisible,
  html:not(.elementor-html) body:not(.elementor-editor-active) .elementor-widget:not(.disable-effect) .lakit-carousel:not(.lakit-slides) .swiper-container > .swiper-wrapper > .swiper-slide > *:first-child,
  html:not(.elementor-html) body:not(.elementor-editor-active) .elementor-widget:not(.disable-effect) .col-row > [class*="col-desk-"] > * {
    visibility: visible !important;
    opacity: 1 !important;
    animation: none !important;
  }

  .search-results .page-header-inner,
  .search-no-results .page-header-inner {
    padding-left: var(--revival-mobile-space-4);
    padding-right: var(--revival-mobile-space-4);
  }

  .search-results .entry-title,
  .search-no-results .entry-title {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.15;
  }

  .search-results .woocommerce-pagination,
  .search-results .pagination {
    margin-top: var(--revival-mobile-space-6);
  }
}

@media (max-width: 380px) {
  .search-results .products-holder ul.products,
  .search-results .wc-page-content ul.products {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  .revival-quickview-open .featherlight.is--qvpp .featherlight-content,
  .featherlight.is--qvpp.revival-mobile-qv .featherlight-content {
    background: #1f1f1f;
    color: #f7f4ec;
  }

  .revival-quickview-open .featherlight.is--qvpp .featherlight-close-icon,
  .featherlight.is--qvpp.revival-mobile-qv .featherlight-close-icon {
    background: rgba(31, 31, 31, 0.96);
    color: #f7f4ec;
    border: 1px solid rgba(255, 255, 255, 0.16);
  }

  .search-results .sidebar-inner,
  .search-no-results .sidebar-inner {
    background: #1f1f1f;
    border-color: rgba(255, 255, 255, 0.16);
    color: #f7f4ec;
  }
}

/* Final mobile product-form redesign. Kept at the end to override Elementor/LaStudioKit defaults. */
@media (max-width: 767px) {
  body.single-product .elementor-lakit-wooproduct-addtocart,
  body.single-product .elementor-lakit-wooproduct-addtocart .elementor-widget-container,
  body.single-product .elementor-lakit-wooproduct-addtocart .elementor-add-to-cart,
  body.single-product .elementor-lakit-wooproduct-addtocart form.cart {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  body.single-product .elementor-lakit-wooproduct-addtocart .elementor-add-to-cart {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 18px 14px !important;
    border: 1px solid #ececec !important;
    border-radius: 12px !important;
    background: #fff !important;
  }

  body.single-product .elementor-lakit-wooproduct-addtocart form.cart,
  body.single-product .elementor-lakit-wooproduct-addtocart .woocommerce-variation-add-to-cart {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 0 !important;
  }

  body.single-product .elementor-lakit-wooproduct-addtocart table.variations,
  body.single-product .elementor-lakit-wooproduct-addtocart .woocommerce-variation-add-to-cart,
  body.single-product .elementor-lakit-wooproduct-addtocart .lakit-wrap-core-wl-cp,
  body.single-product .elementor-lakit-wooproduct-addtocart .lakit-wrap-buynow {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  body.single-product .elementor-lakit-wooproduct-addtocart table.variations label,
  body.single-product .elementor-lakit-wooproduct-addtocart .attribute__picker_label {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .03em !important;
    text-align: center !important;
  }

  body.single-product .elementor-lakit-wooproduct-addtocart .swatch-control,
  body.single-product .elementor-lakit-wooproduct-addtocart .select.swatch-control {
    justify-content: center !important;
    gap: 8px !important;
    margin-bottom: 2px !important;
  }

  body.single-product .elementor-lakit-wooproduct-addtocart .swatch-wrapper,
  body.single-product .elementor-lakit-wooproduct-addtocart .select-option.swatch-wrapper {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 6px !important;
  }

  body.single-product .elementor-lakit-wooproduct-addtocart .quantity,
  body.single-product .elementor-lakit-wooproduct-addtocart .quantity input,
  body.single-product .elementor-lakit-wooproduct-addtocart .woocommerce-variation-add-to-cart > .quantity,
  body.single-product .elementor-lakit-wooproduct-addtocart .woocommerce-variation-add-to-cart > .single_add_to_cart_button,
  body.single-product .elementor-lakit-wooproduct-addtocart .single_add_to_cart_button,
  body.single-product .elementor-lakit-wooproduct-addtocart .lakit-wrap-buynow,
  body.single-product .elementor-lakit-wooproduct-addtocart .lakit-wrap-buynow .lakit-core-buynow,
  body.single-product .elementor-lakit-wooproduct-addtocart .lakit-wrap-core-wl-cp,
  body.single-product .elementor-lakit-wooproduct-addtocart .lakit-wrap-core-wl-cp > a {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 52px !important;
    height: 52px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  body.single-product .elementor-lakit-wooproduct-addtocart .quantity {
    border: 1px solid #dedede !important;
    border-radius: 8px !important;
    overflow: hidden !important;
  }

  body.single-product .elementor-lakit-wooproduct-addtocart .quantity input {
    border: 0 !important;
    background: transparent !important;
    text-align: center !important;
  }

  body.single-product .elementor-lakit-wooproduct-addtocart .single_add_to_cart_button,
  body.single-product .elementor-lakit-wooproduct-addtocart .lakit-wrap-buynow .lakit-core-buynow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .05em !important;
  }

  body.single-product .elementor-lakit-wooproduct-addtocart .lakit-wrap-core-wl-cp {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.single-product .elementor-lakit-wooproduct-addtocart .lakit-wrap-core-wl-cp > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    color: #EB238E !important;
    border: 1px solid #EB238E !important;
    border-radius: 8px !important;
    background: #fff !important;
  }

  /* Actual LaStudioKit CTA wrappers around quantity + Add to Cart. */
  body.single-product .elementor-lakit-wooproduct-addtocart .lakit-wrap-cart-cta,
  body.single-product .elementor-lakit-wooproduct-addtocart .wrap-cart-cta {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 12px !important;
    box-sizing: border-box !important;
  }

  body.single-product .elementor-lakit-wooproduct-addtocart .lakit-wrap-cart-cta .quantity,
  body.single-product .elementor-lakit-wooproduct-addtocart .lakit-wrap-cart-cta .single_add_to_cart_button,
  body.single-product .elementor-lakit-wooproduct-addtocart .wrap-cart-cta .quantity,
  body.single-product .elementor-lakit-wooproduct-addtocart .wrap-cart-cta .single_add_to_cart_button {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}
