/**
 * Phase 42 - Behin premium WooCommerce single-product presentation.
 * Loaded only on is_product(); native WooCommerce/WoodMart data and behavior
 * remain authoritative for gallery, pricing, cart, tabs and related products.
 */

.project-single-product {
  --behin-single-container: 1320px;
  --behin-single-gutter: 20px;
  --behin-single-canvas: #f8f2e8;
  --behin-single-cream: #fff5e6;
  --behin-single-surface: #fffdf9;
  --behin-single-red: #a90f1e;
  --behin-single-red-dark: #80121a;
  --behin-single-gold: #c89435;
  --behin-single-ink: #30231f;
  --behin-single-muted: #766963;
  --behin-single-border: rgba(126, 83, 40, 0.13);
}

.project-single-product .main-page-wrapper,
.project-single-product .wd-page-content {
  background: var(--behin-single-canvas);
}

.project-single-product .single-breadcrumbs-wrapper > .container,
.project-single-product .single-product-page > .container,
.project-single-product .product-tabs-inner,
.project-single-product .related-and-upsells {
  width: min(var(--behin-single-container), calc(100% - (2 * var(--behin-single-gutter))));
  max-width: var(--behin-single-container);
  margin-inline: auto;
  padding-inline: 0;
}

/* Compact native breadcrumb row. */
.project-single-product .single-breadcrumbs-wrapper {
  display: flex;
  min-height: 50px;
  align-items: center;
  border-bottom: 1px solid rgba(126, 83, 40, 0.09);
  background: rgba(255, 253, 249, 0.94);
}

.project-single-product .single-breadcrumbs-wrapper .breadcrumbs {
  color: var(--behin-single-muted);
  font-size: 13px;
  line-height: 1.8;
}

.project-single-product .single-breadcrumbs-wrapper a:hover {
  color: var(--behin-single-red);
}

/* Premium two-column product hero. In RTL, grid column 1 is the visual right. */
.project-single-product .product-image-summary {
  width: 100%;
  max-width: var(--behin-single-container);
  min-height: 0;
  margin: 26px auto 0;
}

.project-single-product .product-image-summary-inner {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  column-gap: 24px;
  align-items: start;
}

.project-single-product .product-image-summary-inner > .product-images {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 548px;
  margin: 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(174, 119, 38, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 10%, rgba(200, 148, 53, 0.12) 0 1px, transparent 2px) 0 0 / 28px 28px,
    linear-gradient(145deg, #fff9ee, #f8ecda);
  box-shadow: 0 14px 34px rgba(73, 42, 24, 0.08);
}

.project-single-product .product-image-summary-inner > .product-images::after {
  position: absolute;
  z-index: 0;
  bottom: -98px;
  left: -72px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(200, 148, 53, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(200, 148, 53, 0.035);
  content: '';
  pointer-events: none;
}

.project-single-product .product-image-summary-inner > .summary {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 38px 38px 34px;
  overflow: hidden;
  border: 1px solid var(--behin-single-border);
  border-radius: 24px;
  background: var(--behin-single-surface);
  box-shadow: 0 14px 34px rgba(73, 42, 24, 0.075);
  text-align: right;
}

.project-single-product .product-image-summary-inner > .summary::before {
  position: absolute;
  top: 32px;
  right: 0;
  width: 4px;
  height: 72px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, var(--behin-single-red), var(--behin-single-gold));
  content: '';
}

/* Preserve gallery, zoom and lightbox behavior while refining the media card. */
.project-single-product .woocommerce-product-gallery {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  align-items: center;
}

.project-single-product .woocommerce-product-gallery__wrapper {
  --wd-gap: 0px;
  width: 100%;
  margin: 0;
}

.project-single-product .woocommerce-product-gallery__image {
  display: flex;
  min-height: 498px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(126, 83, 40, 0.1);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.88);
}

.project-single-product .woocommerce-product-gallery__image > a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.project-single-product .woocommerce-product-gallery__image img {
  display: block;
  width: min(430px, 84%) !important;
  max-width: 430px;
  height: auto;
  max-height: 450px;
  margin-inline: auto;
  border-radius: 15px;
  object-fit: contain;
}

.project-single-product .thumbnails {
  margin-top: 12px;
}

.project-single-product .thumbnails .product-image-thumbnail {
  overflow: hidden;
  border: 1px solid var(--behin-single-border);
  border-radius: 10px;
  background: var(--behin-single-surface);
}

.project-single-product .thumbnails .product-image-thumbnail.active-thumb {
  border-color: var(--behin-single-red);
  box-shadow: 0 0 0 2px rgba(169, 15, 30, 0.1);
}

.project-single-product .product-images .product-labels {
  z-index: 3;
  top: 38px;
  right: 38px;
  left: auto;
  gap: 6px;
}

.project-single-product .product-images :is(.project-card-discount, .onsale) {
  display: inline-flex;
  min-width: 42px;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--behin-single-red);
  box-shadow: 0 5px 14px rgba(169, 15, 30, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.project-single-product .product-images .woocommerce-product-gallery__trigger {
  right: auto;
  bottom: 38px;
  left: 38px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(126, 83, 40, 0.13);
  background: rgba(255, 253, 249, 0.95);
  box-shadow: 0 6px 18px rgba(73, 42, 24, 0.08);
  color: var(--behin-single-red);
}

/* Dynamic product summary / purchase box. */
.project-single-product .summary .summary-inner {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.project-single-product .summary .product_title {
  margin: 0 0 18px;
  padding-inline-end: 8px;
  color: var(--behin-single-red-dark);
  font-size: clamp(29px, 2.5vw, 37px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.5;
}

.project-single-product .summary .woocommerce-product-rating {
  margin: -4px 0 16px;
}

.project-single-product .summary .woocommerce-product-details__short-description {
  max-width: 100%;
  margin: 0 0 22px;
  color: var(--behin-single-muted);
  font-size: 15px;
  line-height: 1.95;
}

.project-single-product .summary .summary-inner > .price {
  display: flex;
  min-height: 72px;
  margin: 0 0 22px;
  padding: 14px 18px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(169, 15, 30, 0.09);
  border-radius: 15px;
  background: linear-gradient(125deg, rgba(255, 247, 233, 0.9), rgba(255, 253, 249, 0.96));
  color: var(--behin-single-red);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
}

.project-single-product .summary .summary-inner > .price :is(del, ins) {
  display: block;
  line-height: 1.2;
}

.project-single-product .summary .summary-inner > .price del {
  color: #a79b94;
  font-size: 17px;
  font-weight: 500;
}

.project-single-product .summary .summary-inner > .price ins {
  color: var(--behin-single-red);
  text-decoration: none;
}

.project-single-product .summary .summary-inner > .price bdi {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: baseline;
  gap: 4px;
}

.project-single-product .summary .summary-inner > .price .woocommerce-Price-currencySymbol {
  font-size: .48em;
  font-weight: 700;
}

.project-single-product .summary .stock {
  display: inline-flex;
  min-height: 32px;
  margin: 0 0 16px;
  padding: 3px 12px;
  align-items: center;
  align-self: flex-start;
  border-radius: 999px;
  background: #edf7ed;
  color: #317b39;
  font-size: 13px;
}

.project-single-product .summary .stock.out-of-stock {
  background: #fff0f0;
  color: var(--behin-single-red);
}

.project-single-product .summary form.cart {
  display: flex;
  width: 100%;
  margin: 0 0 18px;
  align-items: stretch;
  gap: 10px;
}

.project-single-product .summary form.cart .quantity {
  width: 132px;
  height: 56px;
  flex: 0 0 132px;
  overflow: hidden;
  border: 1px solid rgba(126, 83, 40, 0.18);
  border-radius: 13px;
  background: #fff;
}

.project-single-product .summary form.cart .quantity :is(.minus, .plus) {
  width: 40px;
  min-width: 40px;
  border: 0;
  background: #fff8ee;
  color: var(--behin-single-red);
  font-size: 17px;
}

.project-single-product .summary form.cart .quantity .qty {
  min-width: 42px;
  border: 0;
  color: var(--behin-single-ink);
  font-weight: 700;
}

.project-single-product .summary form.cart .single_add_to_cart_button {
  width: auto;
  min-width: 0;
  min-height: 56px;
  flex: 1 1 auto;
  padding-inline: 26px;
  border: 1px solid var(--behin-single-red);
  border-radius: 13px;
  background: var(--behin-single-red);
  box-shadow: 0 8px 20px rgba(169, 15, 30, 0.18);
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-single-product .summary form.cart .single_add_to_cart_button:hover {
  background: var(--behin-single-red-dark);
  box-shadow: 0 10px 24px rgba(128, 18, 26, 0.22);
  transform: translateY(-1px);
}

.project-single-product .summary form.cart .single_add_to_cart_button:focus-visible,
.project-single-product .summary form.cart .quantity :is(button, input):focus-visible {
  outline: 3px solid rgba(200, 148, 53, 0.34);
  outline-offset: 2px;
}

.project-single-product .summary .wd-wishlist-btn {
  margin: 0 0 16px;
}

.project-single-product .summary .product_meta {
  display: flex;
  margin-top: auto;
  padding: 17px 18px;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(126, 83, 40, 0.1);
  border-radius: 13px;
  background: #fff9f0;
  color: var(--behin-single-muted);
  font-size: 13px;
  line-height: 1.85;
}

.project-single-product .summary .product_meta > span {
  display: block;
}

.project-single-product .summary .product_meta .meta-label {
  color: var(--behin-single-ink);
  font-weight: 700;
}

.project-single-product .summary .product_meta a {
  color: var(--behin-single-red);
}

/* Native WooCommerce tabs in one premium content card. */
.project-single-product .product-tabs-wrapper {
  margin: 30px 0 0;
  padding: 0 0 2px;
  background: transparent;
}

.project-single-product .woocommerce-tabs {
  width: 100%;
  max-width: var(--behin-single-container);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--behin-single-border);
  border-radius: 22px;
  background: var(--behin-single-surface);
  box-shadow: 0 12px 30px rgba(73, 42, 24, 0.06);
}

.project-single-product .woocommerce-tabs .wd-nav-tabs-wrapper {
  margin: 0 !important;
  padding: 14px;
  border-bottom: 1px solid rgba(126, 83, 40, 0.09);
  background: #fff5e7;
}

.project-single-product .woocommerce-tabs .tabs {
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 50px;
  margin: 0;
  padding: 0;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.project-single-product .woocommerce-tabs .tabs li a {
  min-height: 44px;
  padding: 9px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--behin-single-muted);
  font-size: 15px;
  font-weight: 700;
}

.project-single-product .woocommerce-tabs .tabs li.active a {
  border-color: rgba(169, 15, 30, 0.12);
  background: var(--behin-single-red);
  box-shadow: 0 5px 14px rgba(169, 15, 30, 0.15);
  color: #fff;
}

.project-single-product .woocommerce-tabs .woocommerce-Tabs-panel {
  padding: 34px 40px 42px;
  color: #625650;
  font-size: 15px;
  line-height: 2;
}

.project-single-product .woocommerce-tabs .woocommerce-Tabs-panel :is(h2, h3, h4) {
  margin-top: 1.25em;
  color: var(--behin-single-red-dark);
  font-weight: 800;
  line-height: 1.65;
}

.project-single-product .woocommerce-tabs .woocommerce-Tabs-panel > .wc-tab-inner > :first-child {
  margin-top: 0;
}

.project-single-product .woocommerce-tabs .wd-accordion-title {
  color: var(--behin-single-ink);
  font-size: 16px;
  font-weight: 750;
}

/* Native additional information, reviews and forms. */
.project-single-product #tab-additional_information .woocommerce-product-attributes {
  display: grid;
  width: 100%;
  max-width: none;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border: 0;
  border-collapse: separate;
  background: transparent;
}

.project-single-product #tab-additional_information .woocommerce-product-attributes tbody {
  display: contents;
}

.project-single-product #tab-additional_information .woocommerce-product-attributes-item {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 17px 18px;
  flex-direction: column;
  gap: 7px;
  border: 1px solid rgba(126, 83, 40, 0.1);
  border-radius: 13px;
  background: #fff9f0;
}

.project-single-product #tab-additional_information :is(.woocommerce-product-attributes-item__label, .woocommerce-product-attributes-item__value) {
  display: block;
  width: 100% !important;
  max-width: none;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: right !important;
}

.project-single-product #tab-additional_information .woocommerce-product-attributes-item__label {
  color: var(--behin-single-ink);
  font-size: 15px;
  font-weight: 750;
}

.project-single-product #tab-additional_information .woocommerce-product-attributes-item__value {
  color: var(--behin-single-muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.project-single-product #tab-additional_information .woocommerce-product-attributes-item__value p {
  margin: 0;
}

.project-single-product #reviews {
  width: 100%;
  margin-inline: 0;
}

.project-single-product #reviews :is(.woocommerce-Reviews-title, .comment-reply-title) {
  color: var(--behin-single-red-dark);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.55;
}

.project-single-product #reviews :is(textarea, input[type='text'], input[type='email']) {
  border: 1px solid rgba(126, 83, 40, 0.16);
  border-radius: 11px;
  background: #fff;
}

.project-single-product #reviews textarea {
  min-height: 150px;
}

.project-single-product #reviews input[type='submit'] {
  min-height: 44px;
  padding-inline: 25px;
  border-radius: 11px;
  background: var(--behin-single-red);
}

/* Related products: archive/homepage-approved compact card language. */
.project-single-product.project-single-product .related-products {
  --project-card-height: 310px;
  --project-card-image-zone: 158px;
  --project-card-image-width: 150px;
  --project-card-top-padding: 8px;
  --project-card-side-padding: 14px;
  --project-card-bottom-padding: 13px;
  --project-card-title-size: 15.5px;
  --project-card-title-line: 1.45;
  --project-card-price-size: 19px;
  --project-card-price-line: 27px;
  --project-card-old-price-size: 12px;
  --project-card-old-price-line: 18px;
  --project-card-discount-width: 30px;
  --project-card-discount-height: 23px;
  --project-card-discount-right: 12px;
  --project-card-discount-top: 12px;
}

.project-single-product .related-and-upsells {
  margin-top: 38px;
  margin-bottom: 54px;
  padding: 30px;
  border: 1px solid rgba(126, 83, 40, 0.11);
  border-radius: 22px;
  background: rgba(255, 250, 242, 0.82);
}

.project-single-product .related-products > :is(h2, h3, .title) {
  margin: 0 0 24px;
  color: var(--behin-single-red-dark);
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.5;
}

.project-single-product .related-products > :is(h2, h3, .title)::before {
  display: block;
  margin-bottom: 2px;
  color: var(--behin-single-gold);
  font-size: 18px;
  line-height: 1;
  content: '✦';
}

.project-single-product .related-products .wd-carousel {
  --wd-col-lg: 4 !important;
  --wd-col-md: 3 !important;
  --wd-col-sm: 1.55 !important;
  --wd-gap: 16px !important;
  --wd-gap-lg: 16px !important;
  --wd-gap-sm: 14px !important;
}

.project-single-product .related-products:has(.wd-carousel-item:nth-child(2):last-child) .wd-carousel-inner {
  width: 100%;
  max-width: 670px;
  margin-inline: auto;
}

.project-single-product .related-products:has(.wd-carousel-item:nth-child(2):last-child) .wd-carousel {
  --wd-col-lg: 2 !important;
  --wd-col-md: 2 !important;
}

.project-single-product.project-single-product .related-products .product-grid-item .product-wrapper {
  position: relative;
  height: var(--project-card-height) !important;
  min-height: var(--project-card-height) !important;
  overflow: hidden;
  border: 1px solid rgba(142, 84, 48, 0.11) !important;
  border-radius: 16px !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: 0 7px 20px rgba(68, 36, 23, 0.07) !important;
  transition: border-color 230ms ease, box-shadow 230ms ease, transform 230ms ease;
}

.project-single-product.project-single-product .related-products .product-grid-item .product-wrapper::after {
  display: none !important;
  content: none !important;
}

.project-single-product.project-single-product .related-products .product-grid-item :is(.wd-product-card-bg, .wd-product-cats) {
  display: none !important;
}

.project-single-product.project-single-product .related-products .product-grid-item .product-element-top {
  position: relative;
  z-index: 1;
  display: flex;
  height: var(--project-card-image-zone) !important;
  flex: 0 0 var(--project-card-image-zone) !important;
  align-items: center;
  justify-content: center;
  padding: var(--project-card-top-padding) 10px 0 !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #fffaf4 0%, #fff 100%);
}

.project-single-product.project-single-product .related-products .product-grid-item .product-image-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.project-single-product.project-single-product .related-products .product-grid-item .product-image-link img {
  display: block;
  width: var(--project-card-image-width) !important;
  max-width: calc(100% - 12px) !important;
  height: var(--project-card-image-width) !important;
  max-height: 150px;
  margin: 0 auto !important;
  object-fit: contain;
  transition: transform 230ms ease;
}

.project-single-product.project-single-product .related-products .product-grid-item .product-element-bottom {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  padding: 9px var(--project-card-side-padding) var(--project-card-bottom-padding) !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  column-gap: 10px !important;
  row-gap: 0 !important;
  text-align: right;
}

.project-single-product.project-single-product .related-products .product-grid-item .wd-entities-title {
  display: -webkit-box !important;
  min-height: calc(2em * var(--project-card-title-line)) !important;
  max-height: calc(2em * var(--project-card-title-line)) !important;
  margin: 0 !important;
  grid-column: 1 / span 2;
  grid-row: 1;
  overflow: hidden;
  color: #32241f !important;
  font-size: var(--project-card-title-size) !important;
  font-weight: 700 !important;
  line-height: var(--project-card-title-line) !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-single-product.project-single-product .related-products .product-grid-item .product-rating-price {
  min-width: 0;
  margin: 8px 0 0 !important;
  grid-column: 1;
  grid-row: 2;
  align-self: end;
}

.project-single-product.project-single-product .related-products .product-grid-item .wrapp-product-price {
  width: 100%;
  min-width: 0;
  align-items: flex-end !important;
}

.project-single-product.project-single-product .related-products .product-grid-item .price {
  display: flex !important;
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
  min-height: var(--project-card-price-line) !important;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  color: #b40d1a !important;
  font-size: var(--project-card-price-size) !important;
  font-weight: 800 !important;
  line-height: var(--project-card-price-line) !important;
}

.project-single-product.project-single-product .related-products .product-grid-item:has(.price del) .price {
  min-height: calc(var(--project-card-price-line) + var(--project-card-old-price-line)) !important;
}

.project-single-product.project-single-product .related-products .product-grid-item .price del {
  color: #998d87 !important;
  font-size: var(--project-card-old-price-size) !important;
  font-weight: 500 !important;
  line-height: var(--project-card-old-price-line) !important;
}

.project-single-product.project-single-product .related-products .product-grid-item .price :is(ins, .woocommerce-Price-amount),
.project-single-product.project-single-product .related-products .product-grid-item .price > .woocommerce-Price-amount {
  color: #b40d1a !important;
  font-size: var(--project-card-price-size) !important;
  font-weight: 800 !important;
  line-height: var(--project-card-price-line) !important;
}

.project-single-product.project-single-product .related-products .product-grid-item .price bdi {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: baseline;
  gap: 2px;
}

.project-single-product.project-single-product .related-products .product-grid-item .woocommerce-Price-currencySymbol {
  font-size: .58em;
}

.project-single-product.project-single-product .related-products .product-grid-item .product-labels {
  inset: 0;
  pointer-events: none;
}

.project-single-product.project-single-product .related-products .product-grid-item :is(.project-card-discount, .project-amazing-discount) {
  position: absolute !important;
  top: var(--project-card-discount-top) !important;
  right: var(--project-card-discount-right) !important;
  bottom: auto !important;
  display: flex !important;
  width: var(--project-card-discount-width) !important;
  min-width: var(--project-card-discount-width) !important;
  height: var(--project-card-discount-height) !important;
  min-height: var(--project-card-discount-height) !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border-radius: 999px !important;
  background: #c10917 !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.project-single-product.project-single-product .related-products .product-grid-item .wd-product-card-hover {
  position: static !important;
  z-index: 5;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: block !important;
  width: 40px;
  height: 40px;
  margin: 0 !important;
  padding: 0 !important;
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

.project-single-product.project-single-product .related-products .product-grid-item :is(.hover-content, .wrap-wishlist-button, .wrap-quickview-button) {
  display: none !important;
}

.project-single-product.project-single-product .related-products .product-grid-item :is(.wd-buttons, .wd-bottom-actions) {
  position: static !important;
  display: flex !important;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #c10917;
  box-shadow: 0 5px 14px rgba(193, 9, 23, 0.2);
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

.project-single-product.project-single-product .related-products .product-grid-item :is(.wd-add-btn, .add-to-cart-loop) {
  display: flex !important;
  width: 40px;
  height: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  visibility: visible !important;
}

.project-single-product.project-single-product .related-products .product-grid-item .add-to-cart-loop .wd-action-icon {
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.project-single-product.project-single-product .related-products .product-grid-item .add-to-cart-loop .wd-action-icon::before {
  display: block;
  color: #fff;
  font-family: woodmart-font;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  content: '\f123';
}

.project-single-product.project-single-product .related-products .product-grid-item .add-to-cart-loop .wd-check-icon,
.project-single-product.project-single-product .related-products .product-grid-item .wd-action-text {
  display: none !important;
}

.project-single-product .related-products .wd-btn-arrow {
  width: 34px !important;
  height: 34px !important;
  border: 1px solid rgba(169, 15, 30, 0.15) !important;
  background: rgba(255, 253, 249, 0.96) !important;
  box-shadow: 0 5px 14px rgba(73, 42, 24, 0.08);
  color: var(--behin-single-red) !important;
}

@media (hover: hover) and (pointer: fine) {
  .project-single-product.project-single-product .related-products .product-grid-item:hover .product-wrapper {
    border-color: rgba(193, 9, 23, 0.17) !important;
    box-shadow: 0 10px 24px rgba(68, 36, 23, 0.1) !important;
    transform: translateY(-2px);
  }

  .project-single-product.project-single-product .related-products .product-grid-item:hover .product-image-link img {
    transform: scale(1.025) !important;
  }
}

@media (max-width: 1024px) {
  .project-single-product .product-image-summary-inner {
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    column-gap: 18px;
  }

  .project-single-product .product-image-summary-inner > .product-images {
    min-height: 492px;
    padding: 18px;
  }

  .project-single-product .woocommerce-product-gallery__image {
    min-height: 454px;
  }

  .project-single-product .woocommerce-product-gallery__image img {
    width: min(370px, 86%) !important;
    max-width: 370px;
    max-height: 400px;
  }

  .project-single-product .product-image-summary-inner > .summary {
    padding: 30px 28px 28px;
  }

  .project-single-product .summary .product_title {
    font-size: 27px;
  }

  .project-single-product .summary .summary-inner > .price {
    font-size: 29px;
  }

  .project-single-product .related-and-upsells {
    padding-inline: 22px;
  }
}

@media (max-width: 900px) {
  .project-single-product .product-image-summary {
    margin-top: 20px;
  }

  .project-single-product .product-image-summary-inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 18px;
  }

  .project-single-product .product-image-summary-inner > :is(.product-images, .summary) {
    grid-column: 1;
    width: 100%;
  }

  .project-single-product .product-image-summary-inner > .product-images {
    grid-row: 1;
    min-height: 430px;
  }

  .project-single-product .product-image-summary-inner > .summary {
    grid-row: 2;
  }

  .project-single-product .woocommerce-product-gallery__image {
    min-height: 390px;
  }

  .project-single-product .woocommerce-product-gallery__image img {
    width: min(360px, 76%) !important;
    max-width: 360px;
    max-height: 350px;
  }

  .project-single-product .woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 28px 26px 34px;
  }

  .project-single-product .related-and-upsells {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .project-single-product .single-breadcrumbs-wrapper {
    min-height: 0;
    margin: 0 !important;
    border: 0;
    background: transparent;
  }

  .project-single-product .single-breadcrumbs-wrapper > .container {
    min-height: 52px;
    padding: 8px 10px;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    border: 1px solid rgba(126, 83, 40, 0.12);
    border-radius: 14px;
    background: #fff9f0;
    box-shadow: 0 5px 14px rgba(73, 42, 24, 0.045);
  }

  .project-single-product .single-breadcrumbs-wrapper .wd-breadcrumbs {
    display: block;
    min-width: 0;
    overflow: hidden;
    font-size: 11.5px;
    line-height: 1.6;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-single-product .single-breadcrumbs-wrapper .wd-breadcrumbs > * {
    display: inline !important;
  }

  .project-single-product .single-breadcrumbs-wrapper .wd-products-nav {
    display: flex;
    width: auto;
    height: 32px;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
  }

  .project-single-product .single-breadcrumbs-wrapper .wd-products-nav > .wd-event-hover {
    display: flex;
  }

  .project-single-product .single-breadcrumbs-wrapper .wd-product-nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(169, 15, 30, 0.12);
    border-radius: 10px;
    background: #fffdfa;
    color: var(--behin-single-red);
  }

  .project-single-product .single-breadcrumbs-wrapper .wd-product-nav-btn:is(:hover, :focus-visible) {
    border-color: rgba(169, 15, 30, 0.28);
    background: #fff3e5;
    color: var(--behin-single-red-dark);
    outline: 0;
  }

  .project-single-product .product-image-summary {
    margin-top: 14px;
  }

  .project-single-product .related-products .wd-carousel {
    --wd-col-sm: 2 !important;
    --wd-gap-sm: 16px !important;
  }
}

@media (max-width: 599px) {
  .project-single-product {
    --behin-single-gutter: 14px;
  }

  .project-single-product .product-image-summary-inner {
    row-gap: 14px;
  }

  .project-single-product .product-image-summary-inner > .product-images {
    min-height: 348px;
    padding: 12px;
    border-radius: 18px;
  }

  .project-single-product .product-image-summary-inner > .product-images::after {
    bottom: -130px;
    left: -112px;
  }

  .project-single-product .woocommerce-product-gallery__image {
    min-height: 322px;
    border-radius: 14px;
  }

  .project-single-product .woocommerce-product-gallery__image img {
    width: min(284px, 84%) !important;
    max-width: 284px;
    max-height: 286px;
  }

  .project-single-product .product-images .product-labels {
    top: 24px;
    right: 24px;
  }

  .project-single-product .product-images .woocommerce-product-gallery__trigger {
    bottom: 24px;
    left: 24px;
  }

  .project-single-product .product-image-summary-inner > .summary {
    padding: 24px 18px 20px;
    border-radius: 18px;
  }

  .project-single-product .product-image-summary-inner > .summary::before {
    top: 22px;
    height: 54px;
    width: 3px;
  }

  .project-single-product .summary .product_title {
    margin-bottom: 14px;
    padding-inline-end: 6px;
    font-size: 23px;
    line-height: 1.55;
  }

  .project-single-product .summary .woocommerce-product-details__short-description {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .project-single-product .summary .summary-inner > .price {
    min-height: 64px;
    margin-bottom: 16px;
    padding: 11px 13px;
    border-radius: 12px;
    font-size: 25px;
  }

  .project-single-product .summary .summary-inner > .price del {
    font-size: 14px;
  }

  .project-single-product .summary form.cart {
    gap: 8px;
  }

  .project-single-product .summary form.cart .quantity {
    width: 114px;
    height: 52px;
    flex-basis: 114px;
    border-radius: 11px;
  }

  .project-single-product .summary form.cart .quantity :is(.minus, .plus) {
    width: 34px;
    min-width: 34px;
  }

  .project-single-product .summary form.cart .single_add_to_cart_button {
    min-height: 52px;
    padding-inline: 12px;
    border-radius: 11px;
    font-size: 14px;
  }

  .project-single-product .summary .product_meta {
    padding: 14px;
    border-radius: 11px;
    font-size: 12px;
  }

  .project-single-product .product-tabs-wrapper {
    margin-top: 20px;
  }

  .project-single-product .woocommerce-tabs {
    border-radius: 17px;
  }

  .project-single-product .woocommerce-tabs .wd-nav-tabs-wrapper {
    display: none;
  }

  .project-single-product .woocommerce-tabs .wd-accordion-item {
    padding: 10px;
  }

  .project-single-product .woocommerce-tabs .wd-accordion-item + .wd-accordion-item {
    border-top: 1px solid rgba(126, 83, 40, 0.09);
  }

  .project-single-product .woocommerce-tabs .wd-accordion-title {
    min-height: 54px;
    padding: 13px 14px;
    border: 1px solid rgba(126, 83, 40, 0.1);
    border-radius: 11px;
    background: #fff7eb;
  }

  .project-single-product .woocommerce-tabs .wd-accordion-title.wd-active {
    border-color: rgba(169, 15, 30, 0.14);
    background: var(--behin-single-red);
    color: #fff;
  }

  .project-single-product .woocommerce-tabs .wd-accordion-title.wd-active :is(.wd-accordion-title-text, .wd-accordion-title-text span) {
    color: #fff !important;
  }

  .project-single-product .woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 20px 8px 12px;
    font-size: 14px;
    line-height: 1.95;
  }

  .project-single-product #tab-additional_information .woocommerce-product-attributes {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .project-single-product #reviews :is(.woocommerce-Reviews-title, .comment-reply-title) {
    font-size: 19px;
  }

  .project-single-product #reviews textarea {
    min-height: 130px;
  }

  .project-single-product.project-single-product .related-products {
    --project-card-height: 284px;
    --project-card-image-zone: 142px;
    --project-card-image-width: 132px;
    --project-card-side-padding: 12px;
    --project-card-bottom-padding: 12px;
    --project-card-title-size: 14px;
    --project-card-price-size: 15px;
    --project-card-price-line: 23px;
    --project-card-old-price-size: 11px;
    --project-card-old-price-line: 17px;
    --project-card-discount-width: 29px;
    --project-card-discount-height: 22px;
    --project-card-discount-right: 10px;
    --project-card-discount-top: 10px;
  }

  .project-single-product .related-and-upsells {
    margin-top: 24px;
    margin-bottom: 92px;
    padding: 22px 12px !important;
    border-radius: 17px;
  }

  .project-single-product .related-products .wd-carousel {
    --wd-col-sm: 1.22 !important;
    --wd-gap-sm: 12px !important;
  }

  .project-single-product .related-products > :is(h2, h3, .title) {
    margin-bottom: 18px;
    font-size: 23px;
  }

  .project-single-product.project-single-product .related-products .product-grid-item .wd-product-card-hover,
  .project-single-product.project-single-product .related-products .product-grid-item :is(.wd-buttons, .wd-bottom-actions),
  .project-single-product.project-single-product .related-products .product-grid-item :is(.wd-add-btn, .add-to-cart-loop) {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .project-single-product .related-products .wd-btn-arrow {
    display: none !important;
  }
}

@media (max-width: 375px) {
  .project-single-product .summary form.cart {
    flex-wrap: wrap;
  }

  .project-single-product .summary form.cart .quantity {
    width: 100%;
    flex: 1 1 100%;
  }

  .project-single-product .summary form.cart .single_add_to_cart_button {
    width: 100%;
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-single-product .summary form.cart .single_add_to_cart_button,
  .project-single-product.project-single-product .related-products .product-grid-item .product-wrapper,
  .project-single-product.project-single-product .related-products .product-grid-item .product-image-link img {
    transition: none !important;
  }
}
