/* Haven Product Widgets - Theme Adaptive */

.haven-pw-section,
.haven-pw-category-section {
  --haven-pw-accent: var(--e-global-color-primary, var(--wp--preset--color--primary, currentColor));
  --haven-pw-text: var(--e-global-color-text, var(--wp--preset--color--foreground, #111111));
  --haven-pw-muted: color-mix(in srgb, var(--haven-pw-text) 58%, transparent);
  --haven-pw-surface: var(--e-global-color-background, var(--wp--preset--color--background, #ffffff));
  --haven-pw-soft: color-mix(in srgb, var(--haven-pw-accent) 9%, #ffffff);
  --haven-pw-border: color-mix(in srgb, var(--haven-pw-text) 12%, transparent);
  --haven-pw-header-bg: var(--haven-pw-surface);
  --haven-pw-header-text: var(--haven-pw-text);
  width: 100%;
  background: var(--haven-pw-surface);
  color: var(--haven-pw-text);
  border: 1px solid var(--haven-pw-border);
  border-radius: var(--theme-border-radius, 12px);
  overflow: hidden;
  box-shadow: var(--theme-box-shadow, 0 10px 28px rgba(17,17,17,.06));
  margin-bottom: 22px;
  font-family: inherit;
}

.haven-pw-style-clean {
  --haven-pw-header-bg: var(--haven-pw-accent);
  --haven-pw-header-text: #ffffff;
}

.haven-pw-style-premium {
  --haven-pw-header-bg: #111111;
  --haven-pw-header-text: #ffffff;
}

.haven-pw-header,
.haven-pw-category-head {
  background: var(--haven-pw-header-bg);
  color: var(--haven-pw-header-text);
  min-height: 54px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--haven-pw-border);
}

.haven-pw-style-theme .haven-pw-header,
.haven-pw-style-theme .haven-pw-category-head {
  border-left: 4px solid var(--haven-pw-accent);
}

.haven-pw-header span {
  display: block;
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: .72;
  margin-bottom: 2px;
}

.haven-pw-header h3,
.haven-pw-category-head h3 {
  margin: 0;
  color: inherit;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.15;
  font-weight: 900;
  font-family: inherit;
}

.haven-pw-header a {
  color: inherit;
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
  font-size: 14px;
  opacity: .9;
}

.haven-pw-products {
  padding: 12px;
}

.haven-pw-grid {
  display: grid;
  grid-template-columns: repeat(var(--haven-pw-cols, 4), minmax(0, 1fr));
  gap: 12px;
}

.haven-pw-carousel-wrap {
  position: relative;
}

.haven-pw-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (12px * (var(--haven-pw-cols, 4) - 1))) / var(--haven-pw-cols, 4));
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.haven-pw-carousel .haven-pw-product-card {
  scroll-snap-align: start;
}

.haven-pw-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 54px;
  border: 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--haven-pw-text) 78%, transparent);
  color: var(--haven-pw-surface);
  font-size: 32px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: .2s ease;
}

.haven-pw-arrow:hover {
  background: var(--haven-pw-accent);
  color: #ffffff;
}

.haven-pw-prev {
  left: 8px;
}

.haven-pw-next {
  right: 8px;
}

.haven-pw-product-card {
  position: relative;
  background: var(--haven-pw-surface);
  border: 1px solid var(--haven-pw-border);
  min-width: 0;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.haven-pw-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(17,17,17,.10);
  border-color: color-mix(in srgb, var(--haven-pw-accent) 55%, transparent);
}

.haven-pw-product-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--haven-pw-soft);
  overflow: hidden;
}

.haven-pw-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .28s ease;
}

.haven-pw-product-card:hover .haven-pw-product-image img {
  transform: scale(1.04);
}

.haven-pw-badge,
.haven-pw-discount {
  position: absolute;
  z-index: 2;
  top: 8px;
  min-height: 22px;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.haven-pw-badge {
  left: 8px;
  background: var(--haven-pw-text);
  color: var(--haven-pw-surface);
}

.haven-pw-discount {
  right: 8px;
  background: var(--haven-pw-soft);
  color: var(--haven-pw-accent);
}

.haven-pw-product-body {
  padding: 10px;
}

.haven-pw-product-title {
  color: var(--haven-pw-text);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 650;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.haven-pw-price {
  margin-top: 7px;
  color: var(--haven-pw-text);
  font-size: 15px;
  font-weight: 900;
}

.haven-pw-price del {
  color: var(--haven-pw-muted);
  font-size: 12px;
  font-weight: 500;
}

.haven-pw-price ins {
  text-decoration: none;
}

.haven-pw-rating {
  min-height: 18px;
  margin: 5px 0 8px;
}

.haven-pw-rating .star-rating {
  font-size: 11px;
  color: var(--haven-pw-accent);
}

.haven-pw-cart {
  min-height: 34px;
  width: 100%;
  background: var(--haven-pw-accent);
  color: #ffffff !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--theme-button-border-radius, 6px);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .4px;
  opacity: 0;
  transform: translateY(6px);
  transition: .18s ease;
}

.haven-pw-product-card:hover .haven-pw-cart {
  opacity: 1;
  transform: translateY(0);
}

.haven-pw-cart:hover {
  background: var(--haven-pw-text);
}

.haven-pw-category-section {
  padding-bottom: 12px;
}

.haven-pw-category-strip {
  padding: 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(130px, 1fr);
  overflow-x: auto;
  gap: 12px;
  scroll-snap-type: x mandatory;
}

.haven-pw-category-card {
  scroll-snap-align: start;
  background: var(--haven-pw-surface);
  border: 1px solid var(--haven-pw-border);
  border-radius: var(--theme-border-radius, 10px);
  min-height: 135px;
  padding: 12px;
  text-decoration: none;
  color: var(--haven-pw-text);
  display: grid;
  place-items: center;
  text-align: center;
  transition: .18s ease;
}

.haven-pw-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(17,17,17,.10);
  border-color: color-mix(in srgb, var(--haven-pw-accent) 55%, transparent);
}

.haven-pw-category-img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--haven-pw-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 8px;
}

.haven-pw-category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.haven-pw-category-img span {
  color: var(--haven-pw-accent);
  font-weight: 900;
  font-size: 24px;
}

.haven-pw-category-card strong {
  color: var(--haven-pw-text);
  font-size: 13px;
  line-height: 1.25;
}

.haven-pw-category-card small {
  color: var(--haven-pw-muted);
}

.haven-pw-empty,
.haven-pw-notice {
  padding: 18px;
  background: var(--haven-pw-soft);
  color: var(--haven-pw-text);
  border: 1px solid var(--haven-pw-border);
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .haven-pw-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  .haven-pw-carousel {
    grid-auto-columns: calc((100% - 24px) / 3);
  }
}

@media (max-width: 768px) {
  .haven-pw-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .haven-pw-carousel {
    grid-auto-columns: calc((100% - 12px) / 2);
  }

  .haven-pw-cart {
    opacity: 1;
    transform: none;
  }

  .haven-pw-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .haven-pw-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
  }

  .haven-pw-products {
    padding: 8px;
  }

  .haven-pw-carousel {
    grid-auto-columns: calc((100% - 8px) / 2);
    gap: 8px;
  }

  .haven-pw-product-title {
    font-size: 12.5px;
  }

  .haven-pw-price {
    font-size: 14px;
  }
}


/* Theme adaptive WooCommerce product cards, cart and checkout */
body.haven-pw-woo-style {
  --haven-pw-accent: var(--e-global-color-primary, var(--wp--preset--color--primary, currentColor));
  --haven-pw-text: var(--e-global-color-text, var(--wp--preset--color--foreground, #111111));
  --haven-pw-surface: var(--e-global-color-background, var(--wp--preset--color--background, #ffffff));
  --haven-pw-soft: color-mix(in srgb, var(--haven-pw-accent) 8%, #ffffff);
  --haven-pw-border: color-mix(in srgb, var(--haven-pw-text) 12%, transparent);
  --haven-pw-muted: color-mix(in srgb, var(--haven-pw-text) 58%, transparent);
}

/* Normal WooCommerce shop cards */
body.haven-pw-woo-style.woocommerce ul.products,
body.haven-pw-woo-style .woocommerce ul.products {
  display: grid !important;
  gap: 18px !important;
}

body.haven-pw-woo-style.woocommerce ul.products.columns-4,
body.haven-pw-woo-style .woocommerce ul.products.columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.haven-pw-woo-style.woocommerce ul.products.columns-3,
body.haven-pw-woo-style .woocommerce ul.products.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.haven-pw-woo-style.woocommerce ul.products li.product,
body.haven-pw-woo-style .woocommerce ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  background: var(--haven-pw-surface);
  border: 1px solid var(--haven-pw-border);
  border-radius: var(--theme-border-radius, 12px);
  padding: 12px 12px 14px !important;
  overflow: hidden;
  box-shadow: var(--theme-box-shadow, 0 10px 28px rgba(17,17,17,.06));
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.haven-pw-woo-style.woocommerce ul.products li.product:hover,
body.haven-pw-woo-style .woocommerce ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(17,17,17,.10);
  border-color: color-mix(in srgb, var(--haven-pw-accent) 55%, transparent);
}

body.haven-pw-woo-style.woocommerce ul.products li.product img,
body.haven-pw-woo-style .woocommerce ul.products li.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--theme-border-radius, 12px) - 3px);
  background: var(--haven-pw-soft);
  margin-bottom: 12px !important;
}

body.haven-pw-woo-style.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.haven-pw-woo-style .woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--haven-pw-text);
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 750;
  line-height: 1.35;
  min-height: 38px;
  padding: 0 !important;
  margin: 0 0 7px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.haven-pw-woo-style.woocommerce ul.products li.product .price,
body.haven-pw-woo-style .woocommerce ul.products li.product .price {
  color: var(--haven-pw-text) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  margin-bottom: 10px;
}

body.haven-pw-woo-style.woocommerce ul.products li.product .price del,
body.haven-pw-woo-style .woocommerce ul.products li.product .price del {
  color: var(--haven-pw-muted);
  font-size: 12px;
}

body.haven-pw-woo-style.woocommerce ul.products li.product .button,
body.haven-pw-woo-style .woocommerce ul.products li.product .button,
body.haven-pw-woo-style .woocommerce a.add_to_cart_button {
  width: 100%;
  min-height: 38px;
  border-radius: var(--theme-button-border-radius, 8px) !important;
  background: var(--haven-pw-accent) !important;
  color: #ffffff !important;
  border: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: .4px;
}

body.haven-pw-woo-style.woocommerce ul.products li.product .button:hover,
body.haven-pw-woo-style .woocommerce ul.products li.product .button:hover,
body.haven-pw-woo-style .woocommerce a.add_to_cart_button:hover {
  background: var(--haven-pw-text) !important;
  color: var(--haven-pw-surface) !important;
}

/* Single product card feel */
body.haven-pw-woo-style.single-product .woocommerce-product-gallery,
body.haven-pw-woo-style.single-product .summary.entry-summary {
  background: var(--haven-pw-surface);
  border: 1px solid var(--haven-pw-border);
  border-radius: var(--theme-border-radius, 14px);
  box-shadow: var(--theme-box-shadow, 0 14px 35px rgba(17,17,17,.06));
  padding: clamp(16px, 2.4vw, 26px);
}

body.haven-pw-woo-style.single-product .product_title {
  color: var(--haven-pw-text);
  font-family: inherit;
  font-weight: 900;
}

body.haven-pw-woo-style.single-product .price {
  color: var(--haven-pw-text) !important;
  font-weight: 900;
}

body.haven-pw-woo-style.single-product form.cart .button {
  background: var(--haven-pw-accent) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: var(--theme-button-border-radius, 8px) !important;
  min-height: 46px;
  font-weight: 900 !important;
  text-transform: uppercase;
}

body.haven-pw-woo-style.single-product form.cart .button:hover {
  background: var(--haven-pw-text) !important;
}

/* Cart page */
body.haven-pw-woo-style.woocommerce-cart .woocommerce,
body.haven-pw-woo-style.woocommerce-checkout .woocommerce {
  color: var(--haven-pw-text);
}

body.haven-pw-woo-style.woocommerce-cart table.shop_table,
body.haven-pw-woo-style.woocommerce-checkout table.shop_table {
  background: var(--haven-pw-surface);
  border: 1px solid var(--haven-pw-border) !important;
  border-radius: var(--theme-border-radius, 14px);
  overflow: hidden;
  box-shadow: var(--theme-box-shadow, 0 12px 32px rgba(17,17,17,.05));
}

body.haven-pw-woo-style.woocommerce-cart table.shop_table th,
body.haven-pw-woo-style.woocommerce-checkout table.shop_table th {
  background: var(--haven-pw-soft);
  color: var(--haven-pw-text);
  font-weight: 900;
}

body.haven-pw-woo-style.woocommerce-cart table.shop_table td,
body.haven-pw-woo-style.woocommerce-checkout table.shop_table td {
  border-color: var(--haven-pw-border) !important;
}

body.haven-pw-woo-style.woocommerce-cart .cart_totals,
body.haven-pw-woo-style.woocommerce-cart .coupon,
body.haven-pw-woo-style.woocommerce-checkout #customer_details,
body.haven-pw-woo-style.woocommerce-checkout #order_review,
body.haven-pw-woo-style.woocommerce-checkout .woocommerce-checkout-review-order {
  background: var(--haven-pw-surface);
  border: 1px solid var(--haven-pw-border);
  border-radius: var(--theme-border-radius, 14px);
  box-shadow: var(--theme-box-shadow, 0 12px 32px rgba(17,17,17,.05));
  padding: clamp(16px, 2.4vw, 24px);
}

body.haven-pw-woo-style.woocommerce-cart .cart_totals h2,
body.haven-pw-woo-style.woocommerce-checkout h3 {
  color: var(--haven-pw-text);
  font-family: inherit;
  font-weight: 900;
  border-bottom: 1px solid var(--haven-pw-border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

body.haven-pw-woo-style .woocommerce .quantity .qty,
body.haven-pw-woo-style .woocommerce input.input-text,
body.haven-pw-woo-style .woocommerce textarea,
body.haven-pw-woo-style .woocommerce select,
body.haven-pw-woo-style .select2-container--default .select2-selection--single {
  border: 1px solid var(--haven-pw-border) !important;
  border-radius: var(--theme-form-field-border-radius, 8px) !important;
  min-height: 42px;
  background: var(--haven-pw-surface);
  color: var(--haven-pw-text);
}

body.haven-pw-woo-style .woocommerce input.input-text:focus,
body.haven-pw-woo-style .woocommerce textarea:focus,
body.haven-pw-woo-style .woocommerce select:focus {
  border-color: var(--haven-pw-accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--haven-pw-accent) 18%, transparent);
  outline: none;
}

body.haven-pw-woo-style .woocommerce button.button,
body.haven-pw-woo-style .woocommerce a.button,
body.haven-pw-woo-style .woocommerce input.button,
body.haven-pw-woo-style .woocommerce #payment #place_order,
body.haven-pw-woo-style.woocommerce-checkout #payment #place_order {
  border-radius: var(--theme-button-border-radius, 8px) !important;
  background: var(--haven-pw-accent) !important;
  color: #ffffff !important;
  border: 0 !important;
  min-height: 42px;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: .35px;
}

body.haven-pw-woo-style .woocommerce button.button:hover,
body.haven-pw-woo-style .woocommerce a.button:hover,
body.haven-pw-woo-style .woocommerce input.button:hover,
body.haven-pw-woo-style .woocommerce #payment #place_order:hover {
  background: var(--haven-pw-text) !important;
  color: var(--haven-pw-surface) !important;
}

body.haven-pw-woo-style.woocommerce-checkout #payment {
  background: var(--haven-pw-soft) !important;
  border-radius: var(--theme-border-radius, 14px);
  border: 1px solid var(--haven-pw-border);
}

body.haven-pw-woo-style.woocommerce-checkout #payment div.payment_box {
  background: var(--haven-pw-surface) !important;
  color: var(--haven-pw-text);
}

body.haven-pw-woo-style.woocommerce-checkout #payment div.payment_box:before {
  border-bottom-color: var(--haven-pw-surface) !important;
}

/* Checkout layout improvement */
body.haven-pw-woo-style.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 24px;
  align-items: start;
}

body.haven-pw-woo-style.woocommerce-checkout form.checkout #customer_details {
  grid-column: 1;
}

body.haven-pw-woo-style.woocommerce-checkout form.checkout #order_review_heading,
body.haven-pw-woo-style.woocommerce-checkout form.checkout #order_review {
  grid-column: 2;
}

body.haven-pw-woo-style.woocommerce-checkout form.checkout #order_review_heading {
  margin-top: 0;
}

@media (max-width: 1024px) {
  body.haven-pw-woo-style.woocommerce ul.products.columns-4,
  body.haven-pw-woo-style .woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.haven-pw-woo-style.woocommerce-checkout form.checkout {
    grid-template-columns: 1fr;
  }

  body.haven-pw-woo-style.woocommerce-checkout form.checkout #customer_details,
  body.haven-pw-woo-style.woocommerce-checkout form.checkout #order_review_heading,
  body.haven-pw-woo-style.woocommerce-checkout form.checkout #order_review {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  body.haven-pw-woo-style.woocommerce ul.products.columns-4,
  body.haven-pw-woo-style .woocommerce ul.products.columns-4,
  body.haven-pw-woo-style.woocommerce ul.products.columns-3,
  body.haven-pw-woo-style .woocommerce ul.products.columns-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px !important;
  }

  body.haven-pw-woo-style.woocommerce ul.products li.product,
  body.haven-pw-woo-style .woocommerce ul.products li.product {
    padding: 9px !important;
  }
}

@media (max-width: 480px) {
  body.haven-pw-woo-style.woocommerce ul.products.columns-4,
  body.haven-pw-woo-style .woocommerce ul.products.columns-4,
  body.haven-pw-woo-style.woocommerce ul.products.columns-3,
  body.haven-pw-woo-style .woocommerce ul.products.columns-3 {
    grid-template-columns: 1fr 1fr;
  }

  body.haven-pw-woo-style.woocommerce-cart .cart_totals,
  body.haven-pw-woo-style.woocommerce-checkout #customer_details,
  body.haven-pw-woo-style.woocommerce-checkout #order_review,
  body.haven-pw-woo-style.woocommerce-checkout .woocommerce-checkout-review-order {
    padding: 14px;
  }
}


/* Haven Slider Section */
.haven-pw-slider {
  --haven-pw-accent: var(--e-global-color-primary, var(--wp--preset--color--primary, currentColor));
  --haven-pw-text: var(--e-global-color-text, var(--wp--preset--color--foreground, #111111));
  --haven-pw-surface: var(--e-global-color-background, var(--wp--preset--color--background, #ffffff));
  --haven-pw-slider-height: 420px;
  --haven-pw-slider-mobile-height: 420px;
  position: relative;
  width: 100%;
  height: var(--haven-pw-slider-height);
  overflow: hidden;
  background: #111111;
  color: #ffffff;
  box-shadow: var(--theme-box-shadow, 0 16px 40px rgba(17,17,17,.12));
  margin-bottom: 24px;
}

.haven-pw-slider-track,
.haven-pw-slide {
  position: absolute;
  inset: 0;
}

.haven-pw-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s ease;
  display: flex;
  align-items: center;
  padding: clamp(26px, 5vw, 64px);
}

.haven-pw-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.haven-pw-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.haven-pw-slide-placeholder {
  background:
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--haven-pw-accent) 30%, transparent), transparent 28%),
    linear-gradient(135deg, #171717, #2a2a2a);
}

.haven-pw-slide.has-overlay:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.34), rgba(0,0,0,.10));
}

.haven-pw-slider-style-theme .haven-pw-slide:not(.has-overlay):after,
.haven-pw-slider-style-clean .haven-pw-slide:not(.has-overlay):after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--haven-pw-surface) 88%, transparent), color-mix(in srgb, var(--haven-pw-surface) 38%, transparent), transparent);
}

.haven-pw-slider-style-theme,
.haven-pw-slider-style-clean {
  color: var(--haven-pw-text);
  background: var(--haven-pw-surface);
}

.haven-pw-slider-style-premium {
  color: #ffffff;
  background: #111111;
}

.haven-pw-slide-content {
  position: relative;
  z-index: 2;
  color: inherit;
}

.haven-pw-slide-eyebrow {
  display: inline-flex;
  color: var(--haven-pw-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.haven-pw-slide-content h2 {
  color: inherit;
  font-family: inherit;
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 950;
  line-height: .98;
  margin: 0;
  max-width: 880px;
}

.haven-pw-slide-content p {
  color: inherit;
  opacity: .82;
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.65;
  margin: 16px 0 0;
  max-width: 650px;
}

.haven-pw-slide-btn {
  margin-top: 22px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--theme-button-border-radius, 8px);
  background: var(--haven-pw-accent);
  color: #ffffff !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.haven-pw-slide-btn:hover {
  background: var(--haven-pw-text);
  color: var(--haven-pw-surface) !important;
}

.haven-pw-slider-style-premium .haven-pw-slide-btn:hover,
.haven-pw-slide.has-overlay .haven-pw-slide-btn:hover {
  background: #ffffff;
  color: #111111 !important;
}

.haven-pw-slider-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 58px;
  border: 0;
  border-radius: 0;
  background: rgba(17,17,17,.62);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: .2s ease;
}

.haven-pw-slider-arrow:hover {
  background: var(--haven-pw-accent);
  color: #ffffff;
}

.haven-pw-slider-prev { left: 12px; }
.haven-pw-slider-next { right: 12px; }

.haven-pw-slider-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.haven-pw-slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  transition: .2s ease;
}

.haven-pw-slider-style-theme .haven-pw-slider-dot,
.haven-pw-slider-style-clean .haven-pw-slider-dot {
  background: color-mix(in srgb, var(--haven-pw-text) 26%, transparent);
}

.haven-pw-slider-dot.is-active {
  width: 26px;
  background: var(--haven-pw-accent);
}

@media (max-width: 768px) {
  .haven-pw-slider { height: var(--haven-pw-slider-mobile-height); }

  .haven-pw-slide {
    padding: 30px 22px 54px;
    align-items: flex-end;
  }

  .haven-pw-slide.has-overlay:after {
    background: linear-gradient(0deg, rgba(0,0,0,.78), rgba(0,0,0,.34), rgba(0,0,0,.10));
  }

  .haven-pw-slider-style-theme .haven-pw-slide:not(.has-overlay):after,
  .haven-pw-slider-style-clean .haven-pw-slide:not(.has-overlay):after {
    background: linear-gradient(0deg, color-mix(in srgb, var(--haven-pw-surface) 92%, transparent), color-mix(in srgb, var(--haven-pw-surface) 42%, transparent), transparent);
  }

  .haven-pw-slider-arrow {
    width: 36px;
    height: 48px;
  }

  .haven-pw-slide-content h2 {
    font-size: clamp(28px, 9vw, 42px);
  }
}


/* v2.4 - Always show Add to Cart button on product cards */
.haven-pw-cart {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.haven-pw-product-card .haven-pw-cart {
  margin-top: 8px;
}

.haven-pw-product-card:hover .haven-pw-cart {
  opacity: 1 !important;
  transform: none !important;
}

/* Keep normal WooCommerce product card buttons visible too */
body.haven-pw-woo-style.woocommerce ul.products li.product .button,
body.haven-pw-woo-style .woocommerce ul.products li.product .button,
body.haven-pw-woo-style .woocommerce a.add_to_cart_button {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  margin-top: 8px !important;
}

/* Better spacing so the always-visible button does not feel cramped */
.haven-pw-product-body {
  display: flex;
  flex-direction: column;
}

.haven-pw-rating {
  margin-bottom: 8px;
}

@media (min-width: 769px) {
  .haven-pw-product-card {
    min-height: 100%;
  }
}


/* v2.5 - Strong fix: Add to Cart visible without hover */
.haven-pw-section.haven-pw-cart-always .haven-pw-product-card .haven-pw-cart,
.haven-pw-section:not(.haven-pw-cart-hover):not(.haven-pw-cart-hide) .haven-pw-product-card .haven-pw-cart,
.elementor-widget-haven_product_section .haven-pw-product-card .haven-pw-cart,
.haven-pw-product-card .haven-pw-cart {
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 2 !important;
  margin-top: 10px !important;
}

.haven-pw-section.haven-pw-cart-hover .haven-pw-product-card .haven-pw-cart {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(6px) !important;
}

.haven-pw-section.haven-pw-cart-hover .haven-pw-product-card:hover .haven-pw-cart {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.haven-pw-section.haven-pw-cart-hide .haven-pw-product-card .haven-pw-cart {
  display: none !important;
}

.haven-pw-product-body {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
}

.haven-pw-product-card {
  display: flex !important;
  flex-direction: column !important;
}

.haven-pw-product-image {
  flex: 0 0 auto;
}

/* Also force normal WooCommerce card buttons visible if theme hides them until hover */
body.haven-pw-woo-style ul.products li.product .button,
body.haven-pw-woo-style .products li.product .button,
body.haven-pw-woo-style .product .add_to_cart_button,
.woocommerce ul.products li.product.haven-pw-theme-product-card .button,
.woocommerce ul.products li.product.haven-pw-theme-product-card .add_to_cart_button {
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  position: relative !important;
  pointer-events: auto !important;
}


/* v2.6 - final visible Add to Cart fix */
.haven-pw-section .haven-pw-product-card .haven-pw-cart,
.elementor-widget-haven_product_section .haven-pw-product-card .haven-pw-cart {
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 5 !important;
  margin-top: 10px !important;
}

.haven-pw-section.haven-pw-cart-hover .haven-pw-product-card .haven-pw-cart {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(6px) !important;
}

.haven-pw-section.haven-pw-cart-hover .haven-pw-product-card:hover .haven-pw-cart {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.haven-pw-section.haven-pw-cart-hide .haven-pw-product-card .haven-pw-cart {
  display: none !important;
}

.haven-pw-product-body {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
}

.haven-pw-product-card {
  display: flex !important;
  flex-direction: column !important;
}

body.haven-pw-woo-style ul.products li.product .button,
body.haven-pw-woo-style .products li.product .button,
body.haven-pw-woo-style .product .add_to_cart_button,
.woocommerce ul.products li.product.haven-pw-theme-product-card .button,
.woocommerce ul.products li.product.haven-pw-theme-product-card .add_to_cart_button {
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  position: relative !important;
  pointer-events: auto !important;
}


/* v2.7 - Theme Customizer / Blocksy / Elementor colour bridge
   This makes the widgets pick colours from theme customizer first, especially Blocksy. */
:root,
body,
.haven-pw-section,
.haven-pw-category-section,
.haven-pw-slider,
body.haven-pw-woo-style {
  --haven-pw-theme-accent: var(--theme-palette-color-1, var(--theme-button-background-initial-color, var(--theme-link-initial-color, var(--e-global-color-primary, var(--wp--preset--color--primary, #f4b719)))));
  --haven-pw-theme-accent-hover: var(--theme-palette-color-2, var(--theme-button-background-hover-color, var(--theme-link-hover-color, var(--haven-pw-theme-accent))));
  --haven-pw-theme-text: var(--theme-text-color, var(--theme-heading-color, var(--e-global-color-text, var(--wp--preset--color--foreground, #111111))));
  --haven-pw-theme-heading: var(--theme-heading-color, var(--haven-pw-theme-text));
  --haven-pw-theme-surface: var(--theme-content-background, var(--theme-background-color, var(--e-global-color-background, var(--wp--preset--color--background, #ffffff))));
  --haven-pw-theme-button-text: var(--theme-button-text-initial-color, #ffffff);
  --haven-pw-theme-button-text-hover: var(--theme-button-text-hover-color, #ffffff);
}

.haven-pw-section,
.haven-pw-category-section,
.haven-pw-slider,
body.haven-pw-woo-style {
  --haven-pw-accent: var(--haven-pw-theme-accent);
  --haven-pw-text: var(--haven-pw-theme-text);
  --haven-pw-surface: var(--haven-pw-theme-surface);
  --haven-pw-muted: color-mix(in srgb, var(--haven-pw-theme-text) 58%, transparent);
  --haven-pw-border: color-mix(in srgb, var(--haven-pw-theme-text) 12%, transparent);
  --haven-pw-soft: color-mix(in srgb, var(--haven-pw-theme-accent) 8%, var(--haven-pw-theme-surface));
}

.haven-pw-style-clean {
  --haven-pw-header-bg: var(--haven-pw-theme-accent);
  --haven-pw-header-text: var(--haven-pw-theme-button-text);
}

.haven-pw-style-theme .haven-pw-header,
.haven-pw-style-theme .haven-pw-category-head {
  background: var(--haven-pw-theme-surface) !important;
  color: var(--haven-pw-theme-heading) !important;
  border-left-color: var(--haven-pw-theme-accent) !important;
}

.haven-pw-style-clean .haven-pw-header,
.haven-pw-style-clean .haven-pw-category-head {
  background: var(--haven-pw-theme-accent) !important;
  color: var(--haven-pw-theme-button-text) !important;
}

.haven-pw-slide-btn,
.haven-pw-cart,
body.haven-pw-woo-style .woocommerce button.button,
body.haven-pw-woo-style .woocommerce a.button,
body.haven-pw-woo-style .woocommerce input.button,
body.haven-pw-woo-style .woocommerce #payment #place_order,
body.haven-pw-woo-style.woocommerce-checkout #payment #place_order,
body.haven-pw-woo-style.woocommerce ul.products li.product .button,
body.haven-pw-woo-style .woocommerce ul.products li.product .button,
body.haven-pw-woo-style .woocommerce a.add_to_cart_button {
  background: var(--haven-pw-theme-accent) !important;
  color: var(--haven-pw-theme-button-text) !important;
}

.haven-pw-slide-btn:hover,
.haven-pw-cart:hover,
body.haven-pw-woo-style .woocommerce button.button:hover,
body.haven-pw-woo-style .woocommerce a.button:hover,
body.haven-pw-woo-style .woocommerce input.button:hover,
body.haven-pw-woo-style .woocommerce #payment #place_order:hover,
body.haven-pw-woo-style.woocommerce ul.products li.product .button:hover,
body.haven-pw-woo-style .woocommerce ul.products li.product .button:hover,
body.haven-pw-woo-style .woocommerce a.add_to_cart_button:hover {
  background: var(--haven-pw-theme-accent-hover) !important;
  color: var(--haven-pw-theme-button-text-hover) !important;
}

.haven-pw-header h3,
.haven-pw-category-head h3,
.haven-pw-product-title,
.haven-pw-category-card strong,
.haven-pw-slide-content h2,
body.haven-pw-woo-style.single-product .product_title,
body.haven-pw-woo-style.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.haven-pw-woo-style .woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--haven-pw-theme-heading) !important;
}

.haven-pw-price,
body.haven-pw-woo-style.woocommerce ul.products li.product .price,
body.haven-pw-woo-style .woocommerce ul.products li.product .price,
body.haven-pw-woo-style.single-product .price {
  color: var(--haven-pw-theme-text) !important;
}

/* Fallback for themes that store customizer accent only on links/buttons */
.haven-pw-section a:not(.haven-pw-cart):not(.haven-pw-slide-btn),
.haven-pw-category-section a:not(.haven-pw-category-card),
.haven-pw-header a {
  color: inherit;
}

/* Ensure CSS is visible in Elementor editor as well */
.elementor-editor-active .haven-pw-section,
.elementor-editor-active .haven-pw-category-section,
.elementor-editor-active .haven-pw-slider {
  --haven-pw-accent: var(--haven-pw-theme-accent);
  --haven-pw-text: var(--haven-pw-theme-text);
  --haven-pw-surface: var(--haven-pw-theme-surface);
}


/* v2.8 - Order Now Button */
.haven-pw-order-now,
body.haven-pw-woo-style .haven-pw-order-now {
  min-height: 36px;
  width: 100%;
  margin-top: 8px;
  background: var(--haven-pw-theme-accent-hover, var(--haven-pw-text, #111111));
  color: var(--haven-pw-theme-button-text-hover, #ffffff) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: var(--theme-button-border-radius, 8px);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .4px;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  position: relative !important;
  z-index: 5;
}

.haven-pw-order-now:hover,
body.haven-pw-woo-style .haven-pw-order-now:hover {
  background: var(--haven-pw-theme-accent, var(--haven-pw-accent, #f4b719));
  color: var(--haven-pw-theme-button-text, #ffffff) !important;
}

.haven-pw-product-body .haven-pw-cart + .haven-pw-order-now {
  margin-top: 7px;
}

/* Two-button product card layout remains clean */
.haven-pw-product-body {
  gap: 0;
}

/* Normal WooCommerce archive Order Now button */
.woocommerce ul.products li.product .haven-pw-order-now,
body.haven-pw-woo-style ul.products li.product .haven-pw-order-now {
  margin-top: 8px !important;
}

/* Mobile visibility */
@media (max-width: 768px) {
  .haven-pw-order-now {
    min-height: 38px;
  }
}


/* v2.9 - faster image loading and stable product cards */
.haven-pw-product-image,
body.haven-pw-woo-style.woocommerce ul.products li.product img,
body.haven-pw-woo-style .woocommerce ul.products li.product img {
  background: var(--haven-pw-soft, #f6f6f6);
}

.haven-pw-product-image img {
  content-visibility: auto;
}

.haven-pw-product-card {
  contain: layout paint style;
}


/* v3.0 - slider text visibility defaults */
.haven-pw-slider {
  --haven-pw-overlay-opacity: .55;
}

.haven-pw-slider .haven-pw-slide.has-overlay:after {
  background: linear-gradient(
    90deg,
    rgba(0,0,0,var(--haven-pw-overlay-opacity)),
    rgba(0,0,0,calc(var(--haven-pw-overlay-opacity) * .55)),
    rgba(0,0,0,.12)
  ) !important;
}

.haven-pw-slider .haven-pw-slide-content h2 {
  color: #ffffff !important;
}

.haven-pw-slider .haven-pw-slide-content p {
  color: #ffffff !important;
  opacity: 1 !important;
}

.haven-pw-slider .haven-pw-slide-eyebrow {
  color: var(--haven-pw-accent, #f4b719) !important;
}

.haven-pw-slider-style-theme .haven-pw-slide.has-overlay .haven-pw-slide-content h2,
.haven-pw-slider-style-theme .haven-pw-slide.has-overlay .haven-pw-slide-content p,
.haven-pw-slider-style-clean .haven-pw-slide.has-overlay .haven-pw-slide-content h2,
.haven-pw-slider-style-clean .haven-pw-slide.has-overlay .haven-pw-slide-content p {
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .haven-pw-slider .haven-pw-slide.has-overlay:after {
    background: linear-gradient(
      0deg,
      rgba(0,0,0,var(--haven-pw-overlay-opacity)),
      rgba(0,0,0,calc(var(--haven-pw-overlay-opacity) * .55)),
      rgba(0,0,0,.12)
    ) !important;
  }
}


/* v3.1 - category controls and responsive section headers */
.haven-pw-category-head {
  min-height: 54px;
  align-items: center;
}

.haven-pw-category-head h3,
.haven-pw-header h3 {
  word-break: normal;
  overflow-wrap: anywhere;
}

.haven-pw-category-card {
  box-sizing: border-box;
}

.haven-pw-category-card strong {
  display: block;
  max-width: 100%;
}

.haven-pw-category-card small {
  display: block;
  margin-top: 4px;
}

/* Better tablet header flow */
@media (max-width: 1024px) {
  .haven-pw-header,
  .haven-pw-category-head {
    padding: 14px 16px;
    gap: 10px;
  }

  .haven-pw-header h3,
  .haven-pw-category-head h3 {
    font-size: clamp(17px, 2.8vw, 22px);
    line-height: 1.18;
  }

  .haven-pw-header a {
    font-size: 13px;
  }
}

/* Better mobile header flow: keep View All neat instead of awkwardly dropping */
@media (max-width: 768px) {
  .haven-pw-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    flex-direction: unset !important;
    padding: 13px 14px;
  }

  .haven-pw-header > div {
    min-width: 0;
  }

  .haven-pw-header h3 {
    font-size: 19px;
    line-height: 1.15;
    margin: 0;
  }

  .haven-pw-header span {
    font-size: 10px;
    letter-spacing: 1.2px;
  }

  .haven-pw-header a {
    background: color-mix(in srgb, var(--haven-pw-accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--haven-pw-accent) 22%, transparent);
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }

  .haven-pw-category-head {
    padding: 13px 14px;
  }

  .haven-pw-category-head h3 {
    font-size: 19px;
    line-height: 1.15;
  }

  .haven-pw-category-strip {
    grid-auto-columns: minmax(118px, 42%);
    gap: 10px;
    padding: 10px;
  }

  .haven-pw-category-card {
    min-height: 126px;
    padding: 11px;
  }

  .haven-pw-category-img {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 420px) {
  .haven-pw-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .haven-pw-header a {
    justify-self: start;
    margin-top: 3px;
  }

  .haven-pw-header h3,
  .haven-pw-category-head h3 {
    font-size: 18px;
  }
}


/* v3.2 - Premium Product Card + Checkout Card Override */
body.haven-pw-woo-style,
.haven-pw-section {
  --hpw-accent: var(--theme-palette-color-1, var(--theme-button-background-initial-color, var(--theme-link-initial-color, var(--e-global-color-primary, #f4b719))));
  --hpw-accent-hover: var(--theme-palette-color-2, var(--theme-button-background-hover-color, var(--theme-link-hover-color, #111111)));
  --hpw-text: var(--theme-text-color, var(--theme-heading-color, var(--e-global-color-text, #111111)));
  --hpw-heading: var(--theme-heading-color, var(--hpw-text));
  --hpw-card-bg: #ffffff;
  --hpw-muted: color-mix(in srgb, var(--hpw-text) 56%, transparent);
  --hpw-border: color-mix(in srgb, var(--hpw-text) 11%, transparent);
  --hpw-soft: color-mix(in srgb, var(--hpw-accent) 9%, #ffffff);
  --hpw-radius: var(--theme-border-radius, 16px);
  --hpw-button-radius: var(--theme-button-border-radius, 10px);
}

/* Elementor product cards */
.haven-pw-section .haven-pw-product-card {
  background: var(--hpw-card-bg) !important;
  border: 1px solid var(--hpw-border) !important;
  border-radius: var(--hpw-radius) !important;
  overflow: hidden !important;
  box-shadow: 0 10px 26px rgba(17,17,17,.055) !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
  min-height: 100%;
}

.haven-pw-section .haven-pw-product-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 48px rgba(17,17,17,.12) !important;
  border-color: color-mix(in srgb, var(--hpw-accent) 45%, transparent) !important;
}

.haven-pw-section .haven-pw-product-image {
  aspect-ratio: 1 / .86 !important;
  background: var(--hpw-soft) !important;
  border-bottom: 1px solid var(--hpw-border) !important;
}

.haven-pw-section .haven-pw-product-image img {
  object-fit: cover !important;
  transition: transform .35s ease, filter .35s ease !important;
}

.haven-pw-section .haven-pw-product-card:hover .haven-pw-product-image img {
  transform: scale(1.045) !important;
  filter: saturate(1.04) contrast(1.02) !important;
}

.haven-pw-section .haven-pw-product-body {
  padding: 14px !important;
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--hpw-soft) 28%, #ffffff) 100%) !important;
}

.haven-pw-section .haven-pw-product-title {
  color: var(--hpw-heading) !important;
  font-size: 14.5px !important;
  line-height: 1.35 !important;
  font-weight: 850 !important;
  min-height: 40px !important;
  letter-spacing: -.1px;
}

.haven-pw-section .haven-pw-price {
  color: var(--hpw-text) !important;
  font-size: 17px !important;
  font-weight: 950 !important;
  margin-top: 10px !important;
}

.haven-pw-section .haven-pw-badge {
  top: 10px !important;
  left: 10px !important;
  background: rgba(17,17,17,.86) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  padding: 6px 9px !important;
}

.haven-pw-section .haven-pw-discount {
  top: 10px !important;
  right: 10px !important;
  background: #ffffff !important;
  color: var(--hpw-accent) !important;
  border-radius: 999px !important;
  padding: 6px 9px !important;
  box-shadow: 0 8px 20px rgba(17,17,17,.12) !important;
}

.haven-pw-section .haven-pw-cart,
.haven-pw-section .haven-pw-order-now {
  min-height: 40px !important;
  border-radius: var(--hpw-button-radius) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}

.haven-pw-section .haven-pw-cart {
  background: var(--hpw-accent) !important;
  color: var(--theme-button-text-initial-color, #ffffff) !important;
}

.haven-pw-section .haven-pw-order-now {
  background: var(--hpw-accent-hover) !important;
  color: var(--theme-button-text-hover-color, #ffffff) !important;
}

/* Normal WooCommerce cards */
body.haven-pw-woo-style.woocommerce ul.products li.product,
body.haven-pw-woo-style .woocommerce ul.products li.product,
.woocommerce ul.products li.product.haven-pw-theme-product-card {
  background: var(--hpw-card-bg) !important;
  border: 1px solid var(--hpw-border) !important;
  border-radius: var(--hpw-radius) !important;
  padding: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 26px rgba(17,17,17,.055) !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}

body.haven-pw-woo-style.woocommerce ul.products li.product:hover,
body.haven-pw-woo-style .woocommerce ul.products li.product:hover,
.woocommerce ul.products li.product.haven-pw-theme-product-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 48px rgba(17,17,17,.12) !important;
  border-color: color-mix(in srgb, var(--hpw-accent) 45%, transparent) !important;
}

body.haven-pw-woo-style.woocommerce ul.products li.product img,
body.haven-pw-woo-style .woocommerce ul.products li.product img,
.woocommerce ul.products li.product.haven-pw-theme-product-card img {
  border-radius: calc(var(--hpw-radius) - 5px) !important;
  aspect-ratio: 1 / .86 !important;
  object-fit: cover !important;
  background: var(--hpw-soft) !important;
}

body.haven-pw-woo-style.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.haven-pw-woo-style .woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product.haven-pw-theme-product-card .woocommerce-loop-product__title {
  color: var(--hpw-heading) !important;
  font-size: 14.5px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
  min-height: 40px !important;
}

body.haven-pw-woo-style.woocommerce ul.products li.product .price,
body.haven-pw-woo-style .woocommerce ul.products li.product .price,
.woocommerce ul.products li.product.haven-pw-theme-product-card .price {
  color: var(--hpw-text) !important;
  font-size: 17px !important;
  font-weight: 950 !important;
}

body.haven-pw-woo-style.woocommerce ul.products li.product .button,
body.haven-pw-woo-style .woocommerce ul.products li.product .button,
.woocommerce ul.products li.product.haven-pw-theme-product-card .button {
  background: var(--hpw-accent) !important;
  color: var(--theme-button-text-initial-color, #ffffff) !important;
  border-radius: var(--hpw-button-radius) !important;
  min-height: 40px !important;
  font-weight: 950 !important;
}

/* Premium cart and checkout cards */
body.haven-pw-woo-style.woocommerce-cart table.shop_table,
body.haven-pw-woo-style.woocommerce-checkout table.shop_table,
body.haven-pw-woo-style.woocommerce-cart .cart_totals,
body.haven-pw-woo-style.woocommerce-cart .coupon,
body.haven-pw-woo-style.woocommerce-checkout #customer_details,
body.haven-pw-woo-style.woocommerce-checkout #order_review,
body.haven-pw-woo-style.woocommerce-checkout .woocommerce-checkout-review-order,
body.haven-pw-woo-style.woocommerce-checkout #payment {
  background: var(--hpw-card-bg) !important;
  border: 1px solid var(--hpw-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 42px rgba(17,17,17,.075) !important;
  overflow: hidden;
}

body.haven-pw-woo-style.woocommerce-checkout #customer_details,
body.haven-pw-woo-style.woocommerce-checkout #order_review,
body.haven-pw-woo-style.woocommerce-cart .cart_totals {
  padding: clamp(18px, 2.6vw, 30px) !important;
}

body.haven-pw-woo-style.woocommerce-checkout h3,
body.haven-pw-woo-style.woocommerce-cart .cart_totals h2,
body.haven-pw-woo-style.woocommerce-checkout #order_review_heading {
  color: var(--hpw-heading) !important;
  font-size: clamp(20px, 2.2vw, 28px) !important;
  line-height: 1.15 !important;
  font-weight: 950 !important;
  margin-bottom: 18px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid var(--hpw-border) !important;
}

body.haven-pw-woo-style.woocommerce-cart table.shop_table th,
body.haven-pw-woo-style.woocommerce-checkout table.shop_table th {
  background: var(--hpw-soft) !important;
  color: var(--hpw-heading) !important;
  font-weight: 950 !important;
  text-transform: uppercase;
  font-size: 12px;
}

body.haven-pw-woo-style.woocommerce-cart table.shop_table td,
body.haven-pw-woo-style.woocommerce-checkout table.shop_table td {
  color: var(--hpw-text) !important;
  border-color: var(--hpw-border) !important;
}

body.haven-pw-woo-style .woocommerce input.input-text,
body.haven-pw-woo-style .woocommerce textarea,
body.haven-pw-woo-style .woocommerce select,
body.haven-pw-woo-style .select2-container--default .select2-selection--single {
  background: #ffffff !important;
  border: 1px solid var(--hpw-border) !important;
  border-radius: 12px !important;
  min-height: 46px !important;
  color: var(--hpw-text) !important;
  box-shadow: none !important;
}

body.haven-pw-woo-style .woocommerce input.input-text:focus,
body.haven-pw-woo-style .woocommerce textarea:focus,
body.haven-pw-woo-style .woocommerce select:focus {
  border-color: var(--hpw-accent) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hpw-accent) 17%, transparent) !important;
  outline: none !important;
}

body.haven-pw-woo-style.woocommerce-checkout #payment {
  padding: 18px !important;
  background: linear-gradient(180deg, var(--hpw-card-bg), color-mix(in srgb, var(--hpw-soft) 38%, #ffffff)) !important;
}

body.haven-pw-woo-style .woocommerce button.button,
body.haven-pw-woo-style .woocommerce a.button,
body.haven-pw-woo-style .woocommerce input.button,
body.haven-pw-woo-style.woocommerce-checkout #payment #place_order,
body.haven-pw-woo-style.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: var(--hpw-accent) !important;
  color: var(--theme-button-text-initial-color, #ffffff) !important;
  border: 0 !important;
  border-radius: var(--hpw-button-radius) !important;
  min-height: 46px !important;
  font-weight: 950 !important;
  text-transform: uppercase;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--hpw-accent) 26%, transparent) !important;
}

body.haven-pw-woo-style .woocommerce button.button:hover,
body.haven-pw-woo-style .woocommerce a.button:hover,
body.haven-pw-woo-style .woocommerce input.button:hover,
body.haven-pw-woo-style.woocommerce-checkout #payment #place_order:hover,
body.haven-pw-woo-style.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--hpw-accent-hover) !important;
  color: var(--theme-button-text-hover-color, #ffffff) !important;
}

body.haven-pw-woo-style.woocommerce-checkout form.checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .76fr) !important;
  gap: 24px !important;
  align-items: start !important;
}

body.haven-pw-woo-style.woocommerce-checkout form.checkout #customer_details {
  grid-column: 1 !important;
}

body.haven-pw-woo-style.woocommerce-checkout form.checkout #order_review_heading,
body.haven-pw-woo-style.woocommerce-checkout form.checkout #order_review {
  grid-column: 2 !important;
}

body.haven-pw-woo-style.woocommerce-checkout form.checkout #order_review_heading {
  margin-top: 0 !important;
}

@media (max-width: 1024px) {
  body.haven-pw-woo-style.woocommerce-checkout form.checkout {
    grid-template-columns: 1fr !important;
  }

  body.haven-pw-woo-style.woocommerce-checkout form.checkout #customer_details,
  body.haven-pw-woo-style.woocommerce-checkout form.checkout #order_review_heading,
  body.haven-pw-woo-style.woocommerce-checkout form.checkout #order_review {
    grid-column: auto !important;
  }
}

@media (max-width: 768px) {
  .haven-pw-section .haven-pw-product-body {
    padding: 11px !important;
  }

  .haven-pw-section .haven-pw-product-title,
  body.haven-pw-woo-style.woocommerce ul.products li.product .woocommerce-loop-product__title,
  body.haven-pw-woo-style .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px !important;
  }

  .haven-pw-section .haven-pw-price,
  body.haven-pw-woo-style.woocommerce ul.products li.product .price,
  body.haven-pw-woo-style .woocommerce ul.products li.product .price {
    font-size: 15px !important;
  }

  body.haven-pw-woo-style.woocommerce-checkout #customer_details,
  body.haven-pw-woo-style.woocommerce-checkout #order_review,
  body.haven-pw-woo-style.woocommerce-cart .cart_totals {
    padding: 16px !important;
    border-radius: 14px !important;
  }
}
