/* Odessa card design on Yuzhnuy's own template and working cart controls.
 * Replace product-cards.css; remove older template-1292 rules from site-background.css.
 * Layout prerequisite: move widget 0d34be3 to the first child of container 9a0c233.
 * Relative eboshi-fon3.png is the verified Mykolaiv pattern in this theme directory.
 */
body .elementor-loop-container.elementor-grid:has(> .elementor.elementor-1292.e-loop-item.product) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
body .elementor.elementor-1292.e-loop-item.product {
  --eboshi-card-layout: odessa;
  min-width: 0;
  height: 100%;
  color: #ffffffb3;
  font-family: Rubik, sans-serif;
}
body .elementor.elementor-1292.e-loop-item.product > article.elementor-element-5298783 {
  position: relative;
  isolation: isolate;
  height: 100%;
  padding: 20px;
  border: 1px solid #41414180;
  border-radius: 8px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #e75a2280 0%, #1a1a1a 52%);
  box-shadow: 0 0 20px -7px rgb(231 90 34 / 70%);
  transition: transform 500ms ease, box-shadow 500ms ease;
}
body .elementor.elementor-1292.e-loop-item.product > article.elementor-element-5298783::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: url('mykolaiv-design/eboshi-fon3.png') center / cover repeat;
  opacity: .45;
  filter: blur(1px);
}
body .elementor.elementor-1292.e-loop-item.product > article > .e-con-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
  gap: 13px;
}
body .elementor.elementor-1292.e-loop-item.product > article > .e-con-inner > .elementor-element {
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
}
body .elementor.elementor-1292.e-loop-item.product > article > .e-con-inner > .elementor-element-90a515d {
  order: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -10px;
  border-radius: 0;
  background: radial-gradient(ellipse at center, #e75a2266 21%, #1a1a1a00 63%);
}
body .elementor.elementor-1292.e-loop-item.product .elementor-widget-theme-post-featured-image,
body .elementor.elementor-1292.e-loop-item.product .elementor-widget-theme-post-featured-image a {
  display: block;
  width: 100%;
  text-align: center;
}
body .elementor.elementor-1292.e-loop-item.product .elementor-widget-theme-post-featured-image img {
  display: block;
  width: min(300px, 100%);
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  margin-inline: auto;
  border-radius: 0;
}
body .elementor.elementor-1292.e-loop-item.product .elementor-element-9a0c233 {
  order: 1;
  width: 100%;
}
body .elementor.elementor-1292.e-loop-item.product .elementor-element-9a0c233 > .e-con-inner {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  gap: 5px;
}
body .elementor.elementor-1292.e-loop-item.product .elementor-element-9a0c233 > .e-con-inner > .elementor-element {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}
body .elementor.elementor-1292.e-loop-item.product .elementor-element-9a0c233 .elementor-heading-title {
  color: #ffffffb3;
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}
body .elementor.elementor-1292.e-loop-item.product .elementor-element-0d34be3 .price {
  display: block;
  color: #e75a22;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
body .elementor.elementor-1292.e-loop-item.product .elementor-element-0d34be3 .price .woocommerce-Price-currencySymbol {
  font-size: inherit;
  font-weight: inherit;
}
body .elementor.elementor-1292.e-loop-item.product .elementor-element-0d34be3 .price del {
  color: #e75a22;
  font-size: inherit;
  opacity: .5;
  margin-right: 5px;
}
body .elementor.elementor-1292.e-loop-item.product .elementor-element-0d34be3 .price ins {
  color: #d70916;
  font-weight: 700;
  text-decoration: none;
  background: none;
}
body .elementor.elementor-1292.e-loop-item.product .elementor-element-bf353c9 { order: 2; }
body .elementor.elementor-1292.e-loop-item.product .elementor-element-bf353c9 > .e-con-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  gap: 5px;
}
body .elementor.elementor-1292.e-loop-item.product h3.elementor-heading-title {
  color: #ffffffe6;
  margin: 0;
  min-height: 0;
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: normal;
  overflow-wrap: break-word;
}
body .elementor.elementor-1292.e-loop-item.product h3.elementor-heading-title a:hover { color: #d70916; }
body .elementor.elementor-1292.e-loop-item.product > article > .e-con-inner > .elementor-widget-woocommerce-product-add-to-cart {
  order: 3;
  margin-top: auto;
}
body .elementor.elementor-1292.e-loop-item.product .e-loop-add-to-cart-form {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start !important;
  width: 100%;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
}
body .elementor.elementor-1292.e-loop-item.product .eboshi-card-quantity {
  display: inline-flex !important;
  flex: 0 0 115px !important;
  align-items: center;
  width: 115px !important;
  height: 35px;
  padding: 0 !important;
  margin: 0 !important;
  gap: 5px !important;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}
body .elementor.elementor-1292.e-loop-item.product .eboshi-card-quantity :is(button, input.qty) {
  display: block;
  flex: 0 0 35px !important;
  box-sizing: border-box;
  width: 35px !important;
  min-width: 0;
  height: 35px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #252525 !important;
  -webkit-text-fill-color: #252525;
  background: #ffffffb3 !important;
  border: 1px solid #252525;
  border-radius: 3px;
  font: 500 16px / 24px Rubik, sans-serif;
  text-align: center;
  box-shadow: none;
}
body .elementor.elementor-1292.e-loop-item.product .eboshi-card-quantity input.qty {
  border-color: #666;
  font-weight: 400;
  appearance: textfield;
  -moz-appearance: textfield;
}
body .elementor.elementor-1292.e-loop-item.product .eboshi-card-quantity .qty::-webkit-inner-spin-button,
body .elementor.elementor-1292.e-loop-item.product .eboshi-card-quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
body .elementor.elementor-1292.e-loop-item.product .eboshi-card-quantity button { cursor: pointer; }
body .elementor.elementor-1292.e-loop-item.product .eboshi-card-quantity button:disabled { opacity: .65; cursor: default; }
body .elementor.elementor-1292.e-loop-item.product .eboshi-card-quantity button:not(:disabled):hover { background: #ffffffe6 !important; }
body .elementor.elementor-1292.e-loop-item.product .e-loop-add-to-cart-form a.button {
  display: flex;
  flex: 1 1 76px !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  min-height: 36px;
  padding: 10px 0;
  margin: 0 !important;
  color: #ffffffe6;
  background: #d70916;
  border: 0;
  border-radius: 3px;
  font: 500 16px / 16px Rubik, sans-serif;
  letter-spacing: normal;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background-color 200ms ease;
}
body .elementor.elementor-1292.e-loop-item.product .e-loop-add-to-cart-form a.button:hover { background: #e75a22; }
body .elementor.elementor-1292.e-loop-item.product .e-loop-add-to-cart-form a.button.added { background: #385b3b; }
body .elementor.elementor-1292.e-loop-item.product .e-loop-add-to-cart-form a.loading { opacity: .7; pointer-events: none; }
body .elementor.elementor-1292.e-loop-item.product :is(a, button, input):focus-visible { outline: 2px solid #e75a22; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  body .elementor.elementor-1292.e-loop-item.product > article.elementor-element-5298783:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgb(231 90 34 / 70%);
  }
}
@media (max-width: 1024px) {
  body .elementor-loop-container.elementor-grid:has(> .elementor.elementor-1292.e-loop-item.product) { gap: 15px; }
  body .elementor.elementor-1292.e-loop-item.product > article.elementor-element-5298783 { padding: 10px; }
  body .elementor.elementor-1292.e-loop-item.product > article > .e-con-inner > .elementor-element-90a515d { margin-top: 0; }
  body .elementor.elementor-1292.e-loop-item.product .elementor-element-9a0c233 .elementor-heading-title,
  body .elementor.elementor-1292.e-loop-item.product h3.elementor-heading-title { font-size: 14px; }
}
@media (max-width: 767px) {
  body .elementor-loop-container.elementor-grid:has(> .elementor.elementor-1292.e-loop-item.product) {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  body .elementor.elementor-1292.e-loop-item.product > article.elementor-element-5298783 { padding: 15px; }
  body .elementor.elementor-1292.e-loop-item.product > article > .e-con-inner > .elementor-element-90a515d { margin-top: -10px; }
  body .elementor.elementor-1292.e-loop-item.product .elementor-element-0d34be3 .price { font-size: 21px; }
  body .elementor.elementor-1292.e-loop-item.product .elementor-element-9a0c233 .elementor-heading-title { font-size: 16px; }
  body .elementor.elementor-1292.e-loop-item.product h3.elementor-heading-title { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  body .elementor.elementor-1292.e-loop-item.product :is(article, img, a.button) { transition: none; transform: none !important; }
}
