.single-product .ep-pdp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.single-product .ep-pdp-topbar__meta > .kt-inside-inner-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.single-product .ep-pdp-topbar__title {
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.single-product .ep-pdp-topbar__like,
.single-product .ep-pdp-like {
  flex-shrink: 0;
  overflow: visible;
}

.single-product .ep-pdp-like .kt-inside-inner-col{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-direction: row !important;
}

.single-product .ep-pdp-like .kt-inside-inner-col.ep-share-like-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:6px;
}

.single-product .ep-pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
}

.single-product .ep-pdp-title-row--mobile {
  display: none !important;
}

.single-product .ep-pdp-summary > .kt-inside-inner-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.single-product .ep-pdp-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.single-product .ep-pdp-title-stack > .kt-inside-inner-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.single-product .ep-pdp-title-row .product_title {
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.single-product .ep-pdp-artist,
.single-product .ep-pdp-topbar__artist {
  font-size: 0.9rem;
}

.single-product form.cart .quantity {
  display: none;
}

.single-product form.cart button.single_add_to_cart_button {
  width: 100%;
  border-radius: 26px;
  background: #f70041;
  border-color: #f70041;
  color: #fff;
}

body.ep-gallery-open .ep-mvp {
  display: none !important;
}

body.single-product .pswp__caption,
body.single-product .pswp__caption__center,
body.single-product .slbCaption,
body.single-product .slbCaptionContainer {
  display: none !important;
}

.single-product .ep-pdp .woocommerce-product-gallery {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 12px;
  margin-bottom: 0 !important;
}

.single-product .ep-pdp .woocommerce-product-gallery .flex-viewport {
  order: 1;
  flex: 1 1 0;
  min-width: 0;
  height: var(--ep-gallery-height, auto) !important;
  aspect-ratio: auto !important;
}

.single-product .ep-pdp .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
.single-product .ep-pdp .woocommerce-product-gallery .woocommerce-product-gallery__image {
  height: var(--ep-gallery-height, auto) !important;
}

.single-product .ep-pdp .woocommerce-product-gallery .woocommerce-product-gallery__image {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  float: left !important;
}

.single-product .ep-pdp .woocommerce-product-gallery .woocommerce-product-gallery__image > a {
  height: auto !important;
  width: 100% !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  align-self: flex-start;
}

.single-product .ep-pdp .woocommerce-product-gallery .woocommerce-product-gallery__image img,
.single-product .ep-pdp .woocommerce-product-gallery .woocommerce-product-gallery__image img.wp-post-image {
  position: static !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: top center !important;
}

.single-product .ep-pdp .woocommerce-product-gallery .flex-control-thumbs {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px;
  width: 10% !important;
  max-width: none !important;
  flex: 0 0 10% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  order: 2;
  align-self: flex-start;
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

.single-product .ep-pdp .woocommerce-product-gallery .flex-control-thumbs li {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto !important;
  margin: 0 !important;
  width: 100% !important;
  height: var(--ep-thumb-height, auto) !important;
  box-sizing: border-box;
  overflow: visible;
  padding: 2px;
  border-radius: 6px;
}

.single-product .ep-pdp .woocommerce-product-gallery .flex-control-thumbs img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border: 0;
  border-radius: 4px;
  box-sizing: border-box;
}

@media (max-width: 980px) {
  .single-product .ep-pdp-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .single-product .ep-pdp .woocommerce-product-gallery {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .single-product .ep-pdp .woocommerce-product-gallery .flex-viewport {
    order: 1;
    flex: 0 0 auto !important;
  }

  .single-product .ep-pdp .woocommerce-product-gallery .flex-control-thumbs {
    display: none !important;
  }

  .single-product .ep-pdp .woocommerce-product-gallery .ep-pdp-dots {
    display: flex;
    order: 2;
    justify-content: center;
    margin: 4px 0 0 0;
    width: 100%;
    overflow: hidden;
  }

  .single-product .ep-pdp .woocommerce-product-gallery .ep-pdp-dots-track {
    display: flex;
    gap: 8px;
    transition: transform 0.25s ease;
  }

  .single-product .ep-pdp .woocommerce-product-gallery .ep-pdp-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: #cfcfcf;
    opacity: 0.5;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.25s ease;
  }

  .single-product .ep-pdp .woocommerce-product-gallery .ep-pdp-dot.is-overflow {
    width: 5px;
    height: 5px;
    opacity: 0.6;
  }

  .single-product .ep-pdp .woocommerce-product-gallery .ep-pdp-dot.is-active {
    background: #333;
    opacity: 1;
  }

  .single-product .ep-pdp-title-row--mobile {
    display: flex !important;
  }

  .single-product .ep-pdp-title-row--desktop {
    display: none;
  }

  .single-product .ep-pdp-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .single-product .kwt-add-to-cart-wrap.kwt-add-to-cart-single.kwt-add-to-cart-hide-quantity.kwt-add-to-cart-full-btn {
    display: none;
  }
}

@media (min-width: 981px) {
  /* Hide WooCommerce dropdown rows on desktop when inline buttons are present */
  .single-product .variations_form .variations tr.ep-mvp-hide-desktop-dropdown {
    display: none !important;
  }

  /* Fallback selectors for hiding dropdowns */
  .single-product .variations_form .variations tr:has(select#pa_color),
  .single-product .variations_form .variations tr:has(select#pa_size),
  .single-product .variations_form .variations tr:has(fieldset[data-attribute_name="attribute_pa_color"]),
  .single-product .variations_form .variations tr:has(fieldset[data-attribute_name="attribute_pa_size"]) {
    display: none !important;
  }

  .single-product .ep-pdp .woocommerce-product-gallery .flex-control-thumbs {
    order: 0;
    width: 10% !important;
    max-width: 10% !important;
    flex: 0 0 10% !important;
  }

  .single-product .ep-pdp .woocommerce-product-gallery .flex-viewport {
    order: 1;
    flex: 0 0 90% !important;
    width: 90% !important;
    max-width: 90% !important;
  }

  .single-product .ep-pdp .woocommerce-product-gallery .flex-control-thumbs img {
    border-color: transparent;
  }

  .single-product .ep-pdp .woocommerce-product-gallery .flex-control-thumbs li.flex-active,
  .single-product .ep-pdp .woocommerce-product-gallery .flex-control-thumbs li:hover {
    box-shadow: inset 0 0 0 2px #ff4f8b;
  }

  .single-product .woocommerce-product-gallery__trigger {
    display: none !important;
  }

  .single-product .ep-mvp {
    display: none !important;
  }

  .single-product .variations .reset_variations {
    display: none !important;
    visibility: hidden !important;
  }
}

@media (max-width: 600px) {
  .single-product .ep-pdp-title-row .product_title {
    font-size: 18px;
  }
}
