/** AYESH v1.0.155 — isolated reference quantity/heart/compare controls. */
html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p155-controls-row {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  align-self: flex-start !important;
  width: max-content !important;
  max-width: 100% !important;
  min-width: 0 !important;
  gap: 8px !important;
  margin: 12px 0 15px !important;
  padding: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
/* The existing native input is used for both Add to Cart and Buy Now. */
html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p155-controls-row > .quantity {
  display: inline-flex !important;
  float: none !important;
  flex: 0 0 116px !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 116px !important;
  min-width: 116px !important;
  max-width: 116px !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 6px !important;
  border: 1px solid #dedede !important;
  border-radius: 12px !important;
  background: #fff !important;
  overflow: hidden !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}
html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p155-controls-row .quantity .hb-qty-btn {
  display: inline-flex !important;
  flex: 0 0 28px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #121212 !important;
  -webkit-text-fill-color: #121212 !important;
  border: 0 !important;
  font-family: Arial, sans-serif !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}
html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p155-controls-row .quantity input.qty {
  display: block !important;
  flex: 1 1 36px !important;
  width: 36px !important;
  min-width: 0 !important;
  max-width: 44px !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #0f0f0f !important;
  -webkit-text-fill-color: #0f0f0f !important;
  text-align: center !important;
  font-size: 17px !important;
  font-weight: 650 !important;
  line-height: 42px !important;
  outline-offset: -2px;
  box-shadow: none !important;
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}
html body.single-product .ayesh-p155-controls-row .quantity input.qty::-webkit-inner-spin-button,
html body.single-product .ayesh-p155-controls-row .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none !important; margin: 0 !important; }
html body.single-product #hb-main-content div.product div.summary form.cart .hb-qty-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p155-icon-actions {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p155-icon-button {
  display: inline-flex !important;
  flex: 0 0 46px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 9px !important;
  border: 1px solid #dedede !important;
  border-radius: 12px !important;
  background: #fff !important;
  background-image: none !important;
  color: #101010 !important;
  -webkit-text-fill-color: #101010 !important;
  outline-offset: 2px;
  box-shadow: none !important;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p155-icon-button svg {
  display: block !important;
  width: 25px !important;
  height: 25px !important;
  overflow: visible !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.1 !important;
  stroke-linejoin: round !important;
  stroke-linecap: round !important;
  pointer-events: none;
}
html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p155-icon-button:hover,
html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p155-icon-button:focus-visible {
  border-color: #b9b9b9 !important;
  background: #fafafa !important;
}
html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p155-wishlist[aria-pressed="true"] {
  color: #e22b43 !important;
  -webkit-text-fill-color: #e22b43 !important;
  border-color: #ffc7cf !important;
  background: #fff7f8 !important;
}
html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p155-wishlist[aria-pressed="true"] svg { fill: #ffe6eb !important; }
html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p155-compare[aria-pressed="true"] {
  color: #e65a18 !important;
  -webkit-text-fill-color: #e65a18 !important;
  border-color: #ffd7c1 !important;
  background: #fff7f0 !important;
}
html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p155-icon-button:focus-visible,
html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p155-controls-row .quantity :is(input,button):focus-visible {
  outline: 2px solid #111 !important;
  outline-offset: 2px !important;
}
html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p155-controls-row:has(> input[type="hidden"]) > .quantity,
html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p155-controls-row > .quantity:has(input[type="hidden"]) { display: none !important; }
/* Match the reference's quantity/wishlist/compare first, CTA buttons second. */
@media (min-width: 1024px) {
  html body.single-product #hb-main-content div.product div.summary form.cart:not(.variations_form):has(> .ayesh-p148-purchase-actions),
  html body.single-product #hb-main-content div.product div.summary form.variations_form .woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    gap: 0 !important;
  }
  html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p148-purchase-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 !important;
  }
  html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p148-purchase-actions > button.single_add_to_cart_button,
  html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p148-purchase-actions > button.ayesh-p5-buy-now {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    border-radius: 16px !important;
  }
}
/* On phones the native quantity must remain visible despite the sticky CTA. */
@media (max-width: 800px) {
  html body.single-product.ayesh-p160-sticky-ready #hb-main-content div.product div.summary form.cart .ayesh-p155-controls-row > .quantity,
  html body.single-product.ayesh-p160-sticky-ready .woocommerce div.product div.summary form.cart .ayesh-p155-controls-row > .quantity {
    display: inline-flex !important;
  }
  html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p155-controls-row {
    margin-top: 16px !important;
    margin-bottom: 14px !important;
  }
  html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p155-controls-row > .quantity {
    flex-basis: 116px !important;
  }
  html body.single-product .ayesh-p155-controls-row > .quantity:has(input[type="hidden"]) { display: none !important; }
}
@media (max-width: 360px) {
  html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p155-controls-row { gap: 7px !important; }
  html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p155-controls-row > .quantity { width: 108px !important; min-width: 108px !important; max-width: 108px !important; flex-basis: 108px !important; }
  html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p155-icon-actions { gap: 7px !important; }
  html body.single-product #hb-main-content div.product div.summary form.cart .ayesh-p155-icon-button { width: 44px !important; min-width: 44px !important; max-width: 44px !important; flex-basis: 44px !important; }
}
/* Comparison drawer / responsive comparison table. */
html body.single-product .ayesh-p155-compare-dock[hidden],
html body.single-product .ayesh-p155-toast[hidden],
html body.single-product .ayesh-p155-dialog[hidden] { display: none !important; }
html body.single-product .ayesh-p155-compare-dock {
  position: fixed;
  z-index: 990;
  right: 16px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #111;
  color: #fff;
  box-shadow: 0 4px 18px rgb(0 0 0 / 13%);
  font-size: 13px;
  font-weight: 650;
}
html body.single-product .ayesh-p155-compare-dock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html body.single-product .ayesh-p155-toast {
  position: fixed;
  z-index: 1105;
  bottom: 73px;
  right: 16px;
  width: max-content;
  max-width: min(310px, calc(100vw - 32px));
  padding: 10px 15px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fff;
  color: #191919;
  box-shadow: 0 6px 20px rgb(0 0 0 / 10%);
  font-size: 13px;
}
html body.single-product .ayesh-p155-dialog { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center; padding: 22px; }
html body.single-product .ayesh-p155-dialog__backdrop { position: absolute; inset: 0; background: rgb(13 13 13 / 68%); }
html body.single-product .ayesh-p155-dialog__panel { position: relative; display: flex; flex-direction: column; width: min(100%, 990px); max-height: min(800px, 92dvh); overflow: hidden; border-radius: 18px; background: #fff; color: #161616; box-shadow: 0 15px 60px rgb(0 0 0 / 23%); }
html body.single-product .ayesh-p155-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid #ececec; }
html body.single-product .ayesh-p155-dialog__header h2 { font-size: 22px; line-height: 1.3; margin: 0 0 4px; font-weight: 750; }
html body.single-product .ayesh-p155-dialog__header p { margin: 0; color: #6c6c6c; font-size: 13px; }
html body.single-product .ayesh-p155-dialog__close { width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid #ddd; border-radius: 50%; background: #fff; color: #151515; font-size: 24px; line-height: 1; }
html body.single-product .ayesh-p155-dialog__body { flex: 1 1 auto; min-height: 70px; overflow: auto; padding: 16px 24px; }
html body.single-product .ayesh-p155-table-scroll { overflow-x: auto; max-width: 100%; }
html body.single-product .ayesh-p155-table { width: 100%; min-width: 520px; border-spacing: 0; border-collapse: collapse; table-layout: fixed; text-align: left; }
html body.single-product .ayesh-p155-table th, html body.single-product .ayesh-p155-table td { padding: 11px 12px; border: 1px solid #e9e9e9; vertical-align: top; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; }
html body.single-product .ayesh-p155-table th[scope="row"] { min-width: 110px; width: 130px; background: #fafafa; font-weight: 700; }
html body.single-product .ayesh-p155-table th[scope="col"] { min-width: 170px; font-weight: 600; }
html body.single-product .ayesh-p155-table__product { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
html body.single-product .ayesh-p155-table__product img { width: 94px; height: 94px; object-fit: contain; border-radius: 8px; background: #fafafa; }
html body.single-product .ayesh-p155-table__product a { font-weight: 650; color: #151515; text-decoration: none; }
html body.single-product .ayesh-p155-table__product button { padding: 0; border: 0; background: transparent; color: #c62928; text-decoration: underline; font-size: 12px; }
html body.single-product .ayesh-p155-dialog__footer { display: flex; justify-content: space-between; gap: 14px; align-items: center; border-top: 1px solid #ececec; padding: 15px 24px; }
html body.single-product .ayesh-p155-dialog__footer a, html body.single-product .ayesh-p155-dialog__footer button { padding: 10px 14px; min-height: 40px; font-size: 13px; border-radius: 9px; border: 1px solid #d9d9d9; background: #fff; color: #111; font-weight: 650; text-decoration: none; }
html body.single-product .ayesh-p155-dialog__footer button { color: #c62928; }
html body.single-product .ayesh-p155-dialog__empty { padding: 24px 8px; text-align: center; color: #5c5c5c; }
@media (max-width: 800px) {
  html body.single-product .ayesh-p155-compare-dock { right: 12px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  html body.single-product .ayesh-p155-toast { right: 12px; bottom: calc(142px + env(safe-area-inset-bottom, 0px)); }
  html body.single-product .ayesh-p155-dialog { align-items: flex-end; padding: 0; }
  html body.single-product .ayesh-p155-dialog__panel { max-height: 90dvh; width: 100%; border-radius: 18px 18px 0 0; }
  html body.single-product .ayesh-p155-dialog__header { padding: 17px 16px 12px; }
  html body.single-product .ayesh-p155-dialog__header h2 { font-size: 19px; }
  html body.single-product .ayesh-p155-dialog__body { padding: 12px; }
  html body.single-product .ayesh-p155-dialog__footer { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  html body.single-product .ayesh-p155-table th, html body.single-product .ayesh-p155-table td { padding: 10px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html body.single-product .ayesh-p155-icon-button { transition: none !important; }
}
