/*
   Theme Name: Kaveh Theme
   Description: Kaveh Theme is undoubtedly the best e-commerce theme produced in the WordPress industry of Iran.
   Theme URI: https://rtl-theme.com/author/moein757
   Version: 5.0.0
   Author: Moein WordPress
   Author URI: https://rtl-theme.com/author/moein757
   Requires at least: 6.2
   Tested up to: 6.4.2
   Requires PHP: 7.4
   License: GNU General Public License v2 or later
   License URI: http://www.gnu.org/licenses/gpl-2.0.html
   Text Domain: kavehTheme
   Tags: responsive, e-commerce, customizable
*/



.boostify-menu .megamenu{
   position: absolute;
   right: -3000px;
   opacity: 0;
   visibility: hidden;
   transition: opacity 0.3s ease, visibility 0.3s ease, right 0s 0.3s;
   pointer-events: none;
}
.boostify-menu .menu-item-has-children:has(> a:hover) .megamenu,
.boostify-menu .menu-item-has-children:has(> .megamenu:hover) .megamenu {
   right: 0;
   opacity: 1;
   visibility: visible;
   transition: opacity 0.3s ease, visibility 0.3s ease, right 0s;
   pointer-events: auto;
}

.boostify-menu .megamenu-two{
   position: absolute;
   right: -3000px;
   opacity: 0;
   visibility: hidden;
   transition: opacity 0.3s ease, visibility 0.3s ease, right 0s 0.3s;
   pointer-events: none;
}

.boostify-menu .menu-item-has-children:has(> a:hover) .megamenu-two,
.boostify-menu .menu-item-has-children:has(> .megamenu-two:hover) .megamenu-two {
   right: 0;
   opacity: 1;
   visibility: visible;
   transition: opacity 0.3s ease, visibility 0.3s ease, right 0s;
   pointer-events: auto;
}


/**/
.custom-menu .megamenu,
.custom-menu .megamenu-two,
.custom-menu .megamenu-three {
   position: absolute;
   right: -3000px;
   opacity: 0;
   visibility: hidden;
   /* Instant open/close — no slide-in that looks broken on refresh/hover */
   transition: opacity 0.12s ease, visibility 0.12s ease;
   pointer-events: none;
}

.custom-menu .menu-item.menu-item-has-children:has(> a:hover) .megamenu,
.custom-menu .menu-item.menu-item-has-children:has(> .custom-menu-child:hover) .megamenu,
.custom-menu .menu-item.menu-item-has-children:has(> .custom-menu-child .megamenu:hover) .megamenu {
   right: 0;
   opacity: 1;
   visibility: visible;
   transition: opacity 0.12s ease, visibility 0.12s ease;
   pointer-events: auto;
}

.custom-menu .menu-item.menu-item-has-children:has(> a:hover) .megamenu-two,
.custom-menu .menu-item.menu-item-has-children:has(> .custom-menu-child:hover) .megamenu-two,
.custom-menu .menu-item.menu-item-has-children:has(> .custom-menu-child .megamenu-two:hover) .megamenu-two {
   right: 0;
   opacity: 1;
   visibility: visible;
   transition: opacity 0.12s ease, visibility 0.12s ease;
   pointer-events: auto;
}

/* Megamenu three: open via .megamenu-three-open (JS). Full-width shell stays
   non-interactive so leaving sideways closes; only the panel gets pointer-events. */
.custom-menu .menu-item.menu-item-has-children.megamenu-three-open .megamenu-three,
.boostify-menu .menu-item-has-children.megamenu-three-open .megamenu-three {
   right: 0;
   opacity: 1;
   visibility: visible;
   transition: opacity 0.12s ease, visibility 0.12s ease;
   pointer-events: none;
}

.custom-menu .megamenu-three .megamenu-three-wrapper,
.boostify-menu .megamenu-three .megamenu-three-wrapper {
   pointer-events: none;
}

.custom-menu .menu-item.menu-item-has-children.megamenu-three-open .megamenu-three .megamenu-three-wrapper,
.boostify-menu .menu-item-has-children.megamenu-three-open .megamenu-three .megamenu-three-wrapper {
   pointer-events: auto;
}


.custom-menu .sub-menu-default{
    position: absolute;
    right: -3000px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, right 0s 0.3s;
    pointer-events: none;
 }

.custom-menu .menu-item.menu-item-has-children:has(> a:hover) .sub-menu-default,
.custom-menu .menu-item.menu-item-has-children:has(> .custom-menu-child:hover) .sub-menu-default,
.custom-menu .menu-item.menu-item-has-children:has(> .custom-menu-child .sub-menu-default:hover) .sub-menu-default {
    right: 0;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease, right 0s;
    pointer-events: auto;
 }







/* =====================================================
   Kaveh Variation Modal - Variable Product Selector
   ===================================================== */

.kaveh-variation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.kaveh-variation-modal.active {
    display: flex;
}

.kaveh-modal-open {
    overflow: hidden;
}

.kaveh-variation-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.kaveh-variation-modal__content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: kavehModalSlideIn 0.3s ease-out;
}

@keyframes kavehModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kaveh-variation-modal__close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    z-index: 10;
}

.kaveh-variation-modal__close:hover {
    background: #e0e0e0;
    color: #333;
}

.kaveh-variation-modal__header {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-top: 20px;
}

.kaveh-variation-modal__image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f9f9f9;
}

.kaveh-variation-modal__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kaveh-variation-modal__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kaveh-variation-modal__title {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 8px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kaveh-variation-modal__price {
    font-size: 18px;
    font-weight: 800;
    color: #212529;
}

.kaveh-variation-modal__price del {
    color: #9E9E9E;
    font-size: 14px;
    font-weight: 400;
    margin-left: 8px;
}

.kaveh-variation-modal__price ins {
    text-decoration: none;
}

.kaveh-variation-modal__body {
    margin-bottom: 24px;
}

.kaveh-variation-attr {
    margin-bottom: 16px;
}

.kaveh-variation-attr label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.kaveh-variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kaveh-variation-option {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kaveh-variation-option:hover {
    border-color: #333;
    color: #333;
}

.kaveh-variation-option.selected {
    border-color: #212529;
    background: #212529;
    color: #fff;
}

/* Color swatch options */
.kaveh-variation-option--color {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border-width: 3px;
    position: relative;
}

.kaveh-variation-option--color.selected {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #212529;
}

.kaveh-variation-option--color .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Out of stock options */
.kaveh-variation-option.out-of-stock {
    opacity: 0.5;
    position: relative;
}

.kaveh-variation-option.out-of-stock:not(.kaveh-variation-option--color)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #999;
    transform: rotate(-10deg);
}

.kaveh-variation-option--color.out-of-stock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #fff;
    transform: translate(-50%, -50%) rotate(-45deg);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.3);
}

.kaveh-variation-option.out-of-stock:hover {
    border-color: #999;
    color: #666;
}

.kaveh-variation-modal__quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    border-radius: 16px;
    border: 1px solid #e9ecef;
}

.kaveh-variation-modal__quantity label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.kaveh-quantity-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.kaveh-quantity-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kaveh-quantity-btn:hover {
    background: #212529;
    color: #fff;
    transform: scale(1.05);
}

.kaveh-quantity-btn:active {
    transform: scale(0.95);
}

.kaveh-quantity-input {
    width: 50px;
    height: 36px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    -moz-appearance: textfield;
}

.kaveh-quantity-input::-webkit-outer-spin-button,
.kaveh-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.kaveh-variation-modal__footer {
    margin-top: 16px;
}

.kaveh-variation-modal__add-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: #212529;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.kaveh-variation-modal__add-btn:hover:not(:disabled) {
    background: #000;
}

.kaveh-variation-modal__add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.kaveh-variation-modal__add-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.kaveh-variation-modal__add-btn.loading svg {
    display: none;
}

.kaveh-variation-modal__add-btn.loading::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: kavehSpinner 0.8s linear infinite;
}

@keyframes kavehSpinner {
    to {
        transform: rotate(360deg);
    }
}

/* Loading state for modal */
.kaveh-variation-modal.loading .kaveh-variation-modal__content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    border-radius: 20px;
}

.kaveh-variation-modal.loading .kaveh-variation-modal__content::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #212529;
    border-top-color: transparent;
    border-radius: 50%;
    animation: kavehSpinner 0.8s linear infinite;
    z-index: 11;
}

/* Toast notification */
.kaveh-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #28a745;
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s ease;
}

.kaveh-toast.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile responsive */
@media screen and (max-width: 480px) {
    .kaveh-variation-modal__content {
        width: 95%;
        padding: 16px;
        max-height: 85vh;
    }
    
    .kaveh-variation-modal__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .kaveh-variation-modal__image {
        width: 120px;
        height: 120px;
    }
    
    .kaveh-variation-modal__title {
        font-size: 14px;
    }
    
    .kaveh-variation-option {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .kaveh-variation-option--color {
        width: 32px;
        height: 32px;
    }
}

/* Loading state for ajax add to cart buttons */
.ajax_add_to_cart.kaveh-loading,
.kaveh-variation-modal-trigger.kaveh-loading {
    pointer-events: none;
    position: relative;
}

.ajax_add_to_cart.kaveh-loading i,
.kaveh-variation-modal-trigger.kaveh-loading i {
    visibility: hidden;
}

.ajax_add_to_cart.kaveh-loading::after,
.kaveh-variation-modal-trigger.kaveh-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: kavehSpinner 0.8s linear infinite;
}

.boostify-menu .megamenu-three{
   position: absolute;
   right: -3000px;
   opacity: 0;
   visibility: hidden;
   transition: opacity 0.3s ease, visibility 0.3s ease, right 0s 0.3s;
   pointer-events: none;
}


.swiper.swiper-detail-product-four-related{
 overflow: visible !important;
 padding-bottom: 40px;
}

/*
 * Related product cards are nested inside the single-product `.product` wrapper.
 * Without this, hovering one card (or anywhere on the page product shell) matches
 * `.product:hover .product-hover` on the ancestor and lights up every card.
 */
.insingle_pr.product:hover .product .product-hover {
  opacity: 0;
  visibility: hidden;
}
.insingle_pr.product .product:hover .product-hover {
  opacity: 1;
  visibility: visible;
}
.insingle_pr.product:hover .product .kaveh_compare_top {
  opacity: 0;
  transform: translateY(-20px);
}
.insingle_pr.product .product:hover .kaveh_compare_top {
  opacity: 1;
  transform: translateY(0);
}

/* Product card twelve (product-eleven): restore original layout */
.product-eleven .product-image {
  position: relative;
}

.product.product-eleven .product-image button.bookmark.btn,
.product-eleven .product-image .bookmark {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  direction: ltr !important;
}

.product.product-eleven .product-image button.bookmark.btn i,
.product-eleven .product-image .bookmark i {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  text-align: center !important;
}

.product.product-eleven .product-image button.bookmark.btn i::before,
.product-eleven .product-image .bookmark i::before {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.product-eleven .kaveh_compare_top {
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  opacity: 0;
  transform: translate(-50%, calc(-50% - 16px));
  z-index: 5;
}

.product-eleven:hover .kaveh_compare_top,
.product-eleven .product-image:hover .kaveh_compare_top {
  opacity: 1;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  transform: translate(-50%, -50%);
}

.insingle_pr.product .product-eleven:hover .kaveh_compare_top {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.product.product-eleven .detail,
.product-eleven .detail {
  display: flex !important;
  flex-direction: column !important;
  min-height: 220px !important;
  height: 100%;
  padding-top: 0;
}

.product-eleven .detail > :first-child:not(.offer) {
  margin: 0 !important;
  transform: none !important;
}

.product.product-eleven .detail-info,
.product-eleven .detail-info {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 140px !important;
  padding: 22px 0 18px !important;
}

.product-eleven .detail-info .price {
  margin: 0 !important;
}

.product-eleven .detail-info h2,
.product-eleven .detail h2 {
  margin: 10px 0 0 !important;
  min-height: 0 !important;
}

.product-eleven .detail .btns {
  flex-shrink: 0 !important;
  margin-top: 0 !important;
}

@media (max-width: 767.98px) {
  .product.product-eleven .detail,
  .product-eleven .detail {
    min-height: 0 !important;
  }

  .product.product-eleven .detail-info,
  .product-eleven .detail-info {
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
    padding: 12px 0 10px !important;
  }

  .product-eleven .detail-info h2,
  .product-eleven .detail h2 {
    margin: 6px 0 0 !important;
  }
}

.insingle_pr.product:hover .product .product-image > a > img {
  -webkit-filter: initial;
  filter: initial;
}
.insingle_pr.product .product:hover .product-image > a > img {
  -webkit-filter: unset;
  filter: unset;
}

.swiper-story-items .swiper-button-next svg, .swiper-story-items .swiper-button-prev svg {
    width: 20px;
    height: 20px;
    transform: rotate(180deg);
}

.col-lg-3 .widget{
    margin: 10px 0;
}

/* Equal spacing for blog/single style-2 sidebars (gap handles distance) */
.latest-articles-nk__sidebar > .widget {
    margin: 0;
    padding: 0;
    width: 100%;
    list-style: none;
}
.latest-articles-nk__sidebar > .widget > .latest-articles-nk__sidebar__box,
.latest-articles-nk__sidebar > .widget > .latest-articles-nk__sidebar__article {
    width: 100%;
    margin: 0;
}
.latest-articles-nk__sidebar__article.hot-articles-nk__item {
    border-radius: 20px;
}

.blog .swiper::after {
 display: none;
}


/*
 * Style 4: stable gallery frame, centered image, aligned thumbs, smooth variation swap.
 */
.detail-product-four .detail-product-four-gallery-origin {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Shared horizontal inset so main frame + thumb strip share the same edges */
.detail-product-four .detail-product-four-gallery-origin .swiper-detail-product-four-gallery > .swiper-wrapper > .swiper-slide {
  padding: 0 15px;
  box-sizing: border-box;
}

.detail-product-four .detail-product-four-gallery .woocommerce-product-gallery__image,
.detail-product-four .detail-product-four-gallery .woocommerce-product-gallery__image--placeholder,
.detail-product-four .detail-product-four-gallery-origin .swiper-slide > #img-container {
  position: relative;
  aspect-ratio: 451 / 474;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 15px;
  background: #f7f7f7;
}

.detail-product-four .detail-product-four-gallery .woocommerce-product-gallery__image > a,
.detail-product-four .detail-product-four-gallery .woocommerce-product-gallery__image--placeholder > a,
.detail-product-four .detail-product-four-gallery-origin .swiper-slide > #img-container > a {
  position: absolute;
  inset: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 15px 10px;
  box-sizing: border-box;
}

/* Magnify wraps the img — keep that shell filling + centering too */
.detail-product-four .detail-product-four-gallery .woocommerce-product-gallery__image .magnify,
.detail-product-four .detail-product-four-gallery .woocommerce-product-gallery__image > a > span {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
  position: relative;
}

.detail-product-four .detail-product-four-gallery .woocommerce-product-gallery__image img,
.detail-product-four .detail-product-four-gallery .woocommerce-product-gallery__image--placeholder img,
.detail-product-four .detail-product-four-gallery .wp-post-image,
.detail-product-four .detail-product-four-gallery-origin .swiper-slide img,
.detail-product-four .detail-product-four-gallery .magnify > img {
  display: block !important;
  width: auto !important;
  max-width: 80% !important;
  height: auto !important;
  max-height: 100% !important;
  object-fit: contain;
  object-position: center center;
  margin: 0 auto !important;
  float: none !important;
  position: static !important;
  border-radius: 12px;
}

@media only screen and (max-width: 990px) {
  .detail-product-four .detail-product-four-gallery .woocommerce-product-gallery__image img,
  .detail-product-four .detail-product-four-gallery .wp-post-image,
  .detail-product-four .detail-product-four-gallery-origin .swiper-slide img,
  .detail-product-four .detail-product-four-gallery .magnify > img {
    max-width: 100% !important;
  }
}

/* Thumb strip: same width as the padded slide content above */
.detail-product-four .detail-product-four-gallery-items {
  width: 100%;
  max-width: 100%;
  margin: 10px 0 0;
  min-height: 86px;
  flex-shrink: 0;
  box-sizing: border-box;
}

@media only screen and (max-width: 991px) {
  .detail-product-four .detail-product-four-gallery-items {
    margin: 12px 0 4px;
    padding: 10px 8px;
  }

  .detail-product-four .detail-product-four-gallery-items .item {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
  }

  .detail-product-four .detail-product-four-gallery-items .item img {
    width: 100%;
    height: auto;
    max-height: 48px;
    object-fit: contain;
  }
}

.detail-product-four .woocommerce-product-gallery__wrapper {
  transition: none;
}

.detail-product .woocommerce-product-gallery__wrapper,
.detail-product-two .woocommerce-product-gallery__wrapper,
.detail-product-three .woocommerce-product-gallery__wrapper {
  transition: none;
}

/*
 * Styles 1–3: stable frame + centered main image (same behavior as Style 4).
 * Style 1 shell is `.detail-product-info` (inside `.detail-product`).
 */
.detail-product-info .gallery-image-origin,
.detail-product .gallery-image-origin,
.detail-product-two .origin-image,
.detail-product-three .gallery-origin {
  width: 100%;
}

.detail-product-info .gallery-image-origin .woocommerce-product-gallery__wrapper,
.detail-product .gallery-image-origin .woocommerce-product-gallery__wrapper,
.detail-product-two .origin-image .woocommerce-product-gallery__wrapper,
.detail-product-three .gallery-origin .woocommerce-product-gallery__wrapper {
  width: 100%;
  max-width: 100%;
}

.detail-product-info .gallery-image-origin .woocommerce-product-gallery__image,
.detail-product-info .gallery-image-origin .woocommerce-product-gallery__image--placeholder,
.detail-product .gallery-image-origin .woocommerce-product-gallery__image,
.detail-product .gallery-image-origin .woocommerce-product-gallery__image--placeholder,
.detail-product-two .origin-image .woocommerce-product-gallery__image,
.detail-product-two .origin-image .woocommerce-product-gallery__image--placeholder,
.detail-product-three .gallery-origin .woocommerce-product-gallery__image,
.detail-product-three .gallery-origin .woocommerce-product-gallery__image--placeholder {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 20px;
  background: transparent;
}

/* Style 1 originally used a shorter frame (~235px); keep that feel but stable */
.detail-product-info .gallery-image-origin .woocommerce-product-gallery__image,
.detail-product-info .gallery-image-origin .woocommerce-product-gallery__image--placeholder {
  aspect-ratio: 16 / 10;
  max-height: 280px;
}

/* Style 3: keep main gallery smaller (theme used ~300px max-height) */
.detail-product-three .gallery-origin .woocommerce-product-gallery__image,
.detail-product-three .gallery-origin .woocommerce-product-gallery__image--placeholder {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 300px;
  max-height: 280px;
  margin-left: auto;
  margin-right: auto;
}

.detail-product-three .gallery-origin .woocommerce-product-gallery__image img,
.detail-product-three .gallery-origin .wp-post-image,
.detail-product-three .gallery-origin .magnify > img {
  max-width: 85% !important;
  max-height: 240px !important;
}

.detail-product-three .swiper-gallery-product-three {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.detail-product-three .swiper-gallery-product-three .gallery-product-three-item {
  width: 72px;
  height: 72px;
}

.detail-product-three .swiper-gallery-product-three .gallery-product-three-item img {
  height: auto;
  max-height: 52px;
  max-width: 52px;
  object-fit: contain;
}

.detail-product-info .gallery-image-origin .woocommerce-product-gallery__image > a,
.detail-product-info .gallery-image-origin .woocommerce-product-gallery__image--placeholder > a,
.detail-product .gallery-image-origin .woocommerce-product-gallery__image > a,
.detail-product .gallery-image-origin .woocommerce-product-gallery__image--placeholder > a,
.detail-product-two .origin-image .woocommerce-product-gallery__image > a,
.detail-product-two .origin-image .woocommerce-product-gallery__image--placeholder > a,
.detail-product-three .gallery-origin .woocommerce-product-gallery__image > a,
.detail-product-three .gallery-origin .woocommerce-product-gallery__image--placeholder > a {
  position: absolute;
  inset: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.detail-product-info .gallery-image-origin .woocommerce-product-gallery__image .magnify,
.detail-product .gallery-image-origin .woocommerce-product-gallery__image .magnify,
.detail-product-two .origin-image .woocommerce-product-gallery__image .magnify,
.detail-product-three .gallery-origin .woocommerce-product-gallery__image .magnify {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
  position: relative;
}

.detail-product-info .gallery-image-origin .woocommerce-product-gallery__image img,
.detail-product-info .gallery-image-origin .wp-post-image,
.detail-product .gallery-image-origin .woocommerce-product-gallery__image img,
.detail-product .gallery-image-origin .wp-post-image,
.detail-product-two .origin-image .woocommerce-product-gallery__image img,
.detail-product-two .origin-image .wp-post-image,
.detail-product-three .gallery-origin .woocommerce-product-gallery__image img,
.detail-product-three .gallery-origin .wp-post-image,
.detail-product-info .gallery-image-origin .magnify > img,
.detail-product .gallery-image-origin .magnify > img,
.detail-product-two .origin-image .magnify > img,
.detail-product-three .gallery-origin .magnify > img {
  display: block !important;
  width: auto !important;
  max-width: 90% !important;
  height: auto !important;
  max-height: 100% !important;
  object-fit: contain;
  object-position: center center;
  margin: 0 auto !important;
  float: none !important;
  position: static !important;
}

/* Style 1: kill bottom dead-space under thumb strip */
.detail-product-info .gallery-image {
  padding: 12px !important;
}

.detail-product-info .gallery-image > .woocommerce-product-gallery,
.detail-product-info .gallery-image .woocommerce-product-gallery.images {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
}

.detail-product-info .gallery-image-origin {
  margin-bottom: 12px !important;
}

.detail-product-info .gallery-image-items,
.detail-product-info .gallery-image-items.swiper {
  position: relative;
  width: 100%;
  height: 110px !important;
  max-height: 110px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
}

.detail-product-info .gallery-image-items .swiper-wrapper {
  align-items: stretch;
  height: 110px !important;
}

.detail-product-info .gallery-image-items .swiper-slide {
  height: 110px !important;
  display: flex;
}

.detail-product-info .gallery-image-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 110px !important;
  min-height: 110px !important;
  max-height: 110px !important;
  box-sizing: border-box;
  border-radius: 16px;
  overflow: hidden;
}

.detail-product-info .gallery-image-item img {
  max-width: 100%;
  max-height: 72px;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* Keep arrows on the thumb row; never reserve bottom space for them */
.detail-product-info .gallery-image .swiper-button-next,
.detail-product-info .gallery-image .swiper-button-prev,
.detail-product-info .gallery-image .gallery-image-items .swiper-button-next,
.detail-product-info .gallery-image .gallery-image-items .swiper-button-prev {
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  margin: 0 !important;
  margin-top: 0 !important;
  transform: translateY(-50%) !important;
  width: 28px !important;
  height: 44px !important;
  z-index: 3;
}

@media only screen and (max-width: 575px) {
  .detail-product-info .gallery-image .swiper-button-next,
  .detail-product-info .gallery-image .swiper-button-prev,
  .detail-product-info .gallery-image .gallery-image-items .swiper-button-next,
  .detail-product-info .gallery-image .gallery-image-items .swiper-button-prev {
    top: 50% !important;
    bottom: auto !important;
    height: 40px !important;
    width: 24px !important;
  }
}

/* Smooth variation gallery fade (styles 1–5) */
.detail-product .gallery-image.is-gallery-swapping,
.detail-product-two .gallery.is-gallery-swapping,
.detail-product-three .gallery.is-gallery-swapping,
.detail-product-four .detail-product-four-gallery-origin.is-gallery-swapping,
.kav-single-product-root .kav-single-product-image.is-gallery-swapping {
  min-height: var(--kaveh-gallery-swap-h, auto);
}

.insingle_pr .woocommerce-product-gallery.kaveh-gallery-is-fading,
.product .woocommerce-product-gallery.kaveh-gallery-is-fading {
  transition: opacity 0.26s ease;
  will-change: opacity;
}

.insingle_pr .woocommerce-product-gallery.kaveh-gallery-is-fading.is-fading-out,
.product .woocommerce-product-gallery.kaveh-gallery-is-fading.is-fading-out,
.insingle_pr .woocommerce-product-gallery.kaveh-gallery-is-fading.is-fading-in,
.product .woocommerce-product-gallery.kaveh-gallery-is-fading.is-fading-in {
  opacity: 0 !important;
}

.insingle_pr .woocommerce-product-gallery.kaveh-gallery-is-fading.is-fading-in.is-visible,
.product .woocommerce-product-gallery.kaveh-gallery-is-fading.is-fading-in.is-visible {
  opacity: 1 !important;
}

@media only screen and (min-width: 992px) {
  .detail-product-four .detail-product-four-gallery-origin .swiper-detail-product-four-gallery {
    overflow: visible;
  }

  .detail-product-four .detail-product-four-gallery-origin .swiper-detail-product-four-gallery .swiper-wrapper,
  .detail-product-four .detail-product-four-gallery-origin .swiper-detail-product-four-gallery .swiper-slide {
    overflow: visible;
  }
}

/*
 * Single product breadcrumb (styles 1–4): same trail + look as Style 4
 * Home → Shop → category trail (no product title).
 */
.detail-product > .container > .breadcrumb-nk,
.detail-product-two > .container > .breadcrumb-nk,
.detail-product-three > .container > .breadcrumb-nk,
.detail-product-four > .container > .breadcrumb-nk {
  margin: 18px 0 24px;
  padding: 0;
}

.detail-product > .container > .breadcrumb-nk ul,
.detail-product-two > .container > .breadcrumb-nk ul,
.detail-product-three > .container > .breadcrumb-nk ul,
.detail-product-four > .container > .breadcrumb-nk ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-product > .container > .breadcrumb-nk ul li,
.detail-product-two > .container > .breadcrumb-nk ul li,
.detail-product-three > .container > .breadcrumb-nk ul li,
.detail-product-four > .container > .breadcrumb-nk ul li {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
}

.detail-product > .container > .breadcrumb-nk ul li a,
.detail-product-two > .container > .breadcrumb-nk ul li a,
.detail-product-three > .container > .breadcrumb-nk ul li a,
.detail-product-four > .container > .breadcrumb-nk ul li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  text-decoration: none;
}

.detail-product > .container > .breadcrumb-nk ul li a:hover,
.detail-product-two > .container > .breadcrumb-nk ul li a:hover,
.detail-product-three > .container > .breadcrumb-nk ul li a:hover,
.detail-product-four > .container > .breadcrumb-nk ul li a:hover {
  color: #ea5656;
}

.detail-product > .container > .breadcrumb-nk ul li a i,
.detail-product-two > .container > .breadcrumb-nk ul li a i,
.detail-product-three > .container > .breadcrumb-nk ul li a i,
.detail-product-four > .container > .breadcrumb-nk ul li a i {
  font-size: 14px;
  line-height: 1;
  color: #9ca3af;
}

.detail-product > .container > .breadcrumb-nk ul li:not(:last-child)::after,
.detail-product-two > .container > .breadcrumb-nk ul li:not(:last-child)::after,
.detail-product-three > .container > .breadcrumb-nk ul li:not(:last-child)::after,
.detail-product-four > .container > .breadcrumb-nk ul li:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  color: rgba(0, 0, 0, 0.22);
}

.detail-product > .container > .breadcrumb-nk .breadcrumb-nk__current,
.detail-product-two > .container > .breadcrumb-nk .breadcrumb-nk__current,
.detail-product-three > .container > .breadcrumb-nk .breadcrumb-nk__current,
.detail-product-four > .container > .breadcrumb-nk .breadcrumb-nk__current,
.detail-product > .container > .breadcrumb-nk ul li.is-current,
.detail-product-two > .container > .breadcrumb-nk ul li.is-current,
.detail-product-three > .container > .breadcrumb-nk ul li.is-current,
.detail-product-four > .container > .breadcrumb-nk ul li.is-current {
  color: #1f2937;
  font-weight: 700;
}

@media only screen and (max-width: 991px) {
  .detail-product > .container > .breadcrumb-nk,
  .detail-product-two > .container > .breadcrumb-nk,
  .detail-product-three > .container > .breadcrumb-nk,
  .detail-product-four > .container > .breadcrumb-nk {
    margin: 14px 0 18px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .detail-product > .container > .breadcrumb-nk::-webkit-scrollbar,
  .detail-product-two > .container > .breadcrumb-nk::-webkit-scrollbar,
  .detail-product-three > .container > .breadcrumb-nk::-webkit-scrollbar,
  .detail-product-four > .container > .breadcrumb-nk::-webkit-scrollbar {
    display: none;
    height: 0;
  }

  .detail-product > .container > .breadcrumb-nk ul,
  .detail-product-two > .container > .breadcrumb-nk ul,
  .detail-product-three > .container > .breadcrumb-nk ul,
  .detail-product-four > .container > .breadcrumb-nk ul {
    flex-wrap: nowrap !important;
    width: max-content;
    max-width: none;
    padding: 0 2px;
  }

  .detail-product > .container > .breadcrumb-nk ul li,
  .detail-product-two > .container > .breadcrumb-nk ul li,
  .detail-product-three > .container > .breadcrumb-nk ul li,
  .detail-product-four > .container > .breadcrumb-nk ul li {
    font-size: 12.5px;
  }
}

/* Style-1 gallery modal: keep main preview size stable across official/buyer tabs.
   Buyer tab has a shorter right column, so a flex-growing origin used to expand. */
#modal-gallery.detail-product-four-modal-gallery .detail-product-four-modal-gallery-origin {
	position: relative;
	flex: 0 1 auto;
	width: 100%;
	aspect-ratio: 451 / 474;
	max-height: min(520px, 58vh);
	min-height: 0;
	overflow: hidden;
}

#modal-gallery.detail-product-four-modal-gallery .detail-product-four-modal-gallery-origin .swiper {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	max-height: 100%;
}

#modal-gallery.detail-product-four-modal-gallery .detail-product-four-modal-gallery-origin .swiper-wrapper,
#modal-gallery.detail-product-four-modal-gallery .detail-product-four-modal-gallery-origin .swiper-slide {
	height: 100% !important;
	max-height: 100%;
}

#modal-gallery.detail-product-four-modal-gallery .detail-product-four-modal-gallery-origin .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
}

#modal-gallery.detail-product-four-modal-gallery .detail-product-four-modal-gallery-origin img,
#modal-gallery.detail-product-four-modal-gallery .detail-product-four-modal-gallery-origin video,
#modal-gallery.detail-product-four-modal-gallery .detail-product-four-modal-gallery-origin .kav-buyer-video {
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

#modal-gallery.detail-product-four-modal-gallery .detail-product-four-modal-gallery-images,
#modal-gallery.detail-product-four-modal-gallery .detail-product-four-modal-gallery-images-users,
#modal-gallery.detail-product-four-modal-gallery .images-users {
	flex: 0 0 auto;
	max-height: 42%;
	overflow: auto;
}

@media (max-width: 991.98px) {
	#modal-gallery.detail-product-four-modal-gallery .detail-product-four-modal-gallery-origin {
		max-height: min(42vh, 360px);
		aspect-ratio: 1 / 1;
		margin-inline: auto;
	}
}

/* ==========================================================================
   Single product style 1 — contact tickets (Telegram / WhatsApp / ...)
   Equal-size 2-column grid; notch + dashed line sit at a fixed offset from
   the icon so every ticket lines up identically.
   ========================================================================== */
.detail-product .col-lg-5 > .butboxed.mt-3 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 18px !important;
}

.detail-product .col-lg-5 > .butboxed.mt-3 > a {
	display: block;
	min-width: 0;
	text-decoration: none;
}

.detail-product .col-lg-5 > .butboxed.mt-3 .butboxqr.qwe {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-width: 0;
	height: 56px;
	margin: 0;
	padding: 0 10px;
	border: 0;
	text-align: start;
	transition: transform .25s ease, filter .25s ease;
	-webkit-mask-image: radial-gradient(circle at calc(100% - 52px) 6px, transparent 6px, red 6.5px), linear-gradient(transparent 25%, red 0, red 75%, transparent 0);
	-webkit-mask-position: 0 -6px, calc(100% - 51px) 0;
}

body:not(.rtl) .detail-product .col-lg-5 > .butboxed.mt-3 .butboxqr.qwe {
	-webkit-mask-image: radial-gradient(circle at 52px 6px, transparent 6px, red 6.5px), linear-gradient(transparent 25%, red 0, red 75%, transparent 0);
	-webkit-mask-position: 0 -6px, 51px 0;
}

.detail-product .col-lg-5 > .butboxed.mt-3 > a:hover .butboxqr.qwe {
	transform: translateY(-2px);
	filter: brightness(1.04);
}

.detail-product .col-lg-5 > .butboxed.mt-3 .butboxqr.qwe img {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	max-height: none;
	margin: 0;
	padding: 7px;
	border-radius: 10px;
	object-fit: contain;
}

.detail-product .col-lg-5 > .butboxed.mt-3 .butboxqr.qwe p {
	display: -webkit-box !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.45;
	text-align: start;
}

/* ==========================================================================
   Single product style 1 — mobile summary (stock / category / brand + features)
   ========================================================================== */
@media (max-width: 575.98px) {
	/* Stock first, then category / brand in two aligned columns */
	.detail-product .detail ul.full-info {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
		gap: 16px 0;
		padding: 18px 0;
		margin-bottom: 28px;
	}

	.detail-product .detail ul.full-info > li {
		width: auto;
		margin: 0;
		text-align: start;
	}

	.detail-product .detail ul.full-info > li:first-child {
		order: -1;
		grid-column: 1 / -1;
		justify-self: start;
		display: inline-flex;
		align-items: center;
		gap: 6px;
		margin: 0;
		padding: 6px 12px;
		border-radius: 10px;
		background-color: #edf5e6;
		font-size: 13px;
		line-height: 1.4;
	}

	.detail-product .detail ul.full-info > li.oustock:first-child {
		background-color: #fff3f0;
	}

	.detail-product .detail ul.full-info > li.obstock:first-child {
		background-color: #eeb12726;
	}

	.detail-product .detail ul.full-info > li:first-child::after,
	.detail-product .detail ul.full-info > li:not(:first-child)::after {
		content: none;
	}

	.detail-product .detail ul.full-info > li:first-child i {
		font-size: 20px;
		line-height: 1;
		margin: 0;
	}

	.detail-product .detail ul.full-info > li:not(:first-child) {
		display: block;
		width: auto;
		min-width: 0;
		text-align: start;
		padding-inline-end: 14px;
		line-height: 1.5;
	}

	/* Divider between the two columns */
	.detail-product .detail ul.full-info > li:nth-child(odd):not(:first-child) {
		padding-inline-start: 16px;
		border-inline-start: 1px solid #eef0f4;
	}

	.detail-product .detail ul.full-info > li:not(:first-child) span {
		display: block;
		margin-bottom: 4px;
		font-size: 12px;
		line-height: 18px;
	}

	.detail-product .detail ul.full-info > li:not(:first-child) a {
		font-size: 14px;
		line-height: 22px;
		overflow-wrap: anywhere;
	}

	/* Product features: clean label / value rows */
	.detail-product .detail .options .title {
		margin-bottom: 4px;
	}

	.detail-product .detail .options ul.kaveh-pr-features {
		display: block !important;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.detail-product .detail .options ul.kaveh-pr-features > li {
		display: flex;
		align-items: flex-start;
		gap: 12px;
		width: 100%;
		max-width: 100%;
		padding: 10px 0;
		border-bottom: 1px solid #f1f2f6;
		font-size: 13px;
		line-height: 1.8;
		list-style: none;
	}

	.detail-product .detail .options ul.kaveh-pr-features > li:last-child {
		border-bottom: 0;
	}

	.detail-product .detail .options .kaveh-pr-feature-label {
		flex: 0 0 38%;
		max-width: 38%;
		color: #8a91a5;
		font-weight: 400;
	}

	.detail-product .detail .options .kaveh-pr-feature-sep {
		display: none;
	}

	.detail-product .detail .options .kaveh-pr-feature-value {
		flex: 1 1 auto;
		min-width: 0;
		color: #232323;
		font-weight: 600;
		text-align: start;
		overflow-wrap: anywhere;
	}

	.detail-product .detail .options .kaveh-pr-feature-value span,
	.detail-product .detail .options .kaveh-pr-feature-value a {
		color: inherit;
	}
}

/* Style-1 single: keep specs label + value on one row on mobile */
@media (max-width: 575.98px) {
	.detail-product #specifications ul li {
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: stretch !important;
		gap: 8px;
	}

	.detail-product #specifications ul li span {
		padding: 12px 14px !important;
	}

	.detail-product #specifications ul li span:first-child {
		flex: 0 0 38% !important;
		width: 38% !important;
		max-width: 38% !important;
	}

	.detail-product #specifications ul li span:last-child {
		flex: 1 1 auto !important;
		width: auto !important;
		max-width: none !important;
		min-width: 0 !important;
	}
}

/* Style-1 gallery icons: never let compare text inflate the icon pill */
.detail-product .detail-product-icons {
	width: 50px;
	max-width: 50px;
	overflow: hidden;
	box-sizing: border-box;
}

.detail-product .detail-product-icons .compare-button-wrapper,
.detail-product .detail-product-icons .compare-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	max-width: 28px !important;
	padding: 0 !important;
	gap: 0 !important;
	overflow: hidden;
	white-space: nowrap;
}

.detail-product .detail-product-icons .compare-button span,
.detail-product .detail-product-icons .compare-button > :not(svg):not(.kav-compare-spinner) {
	display: none !important;
}

/* Equal-height related cards (woorelatedkaveh / detail-product-four-related) */
.detail-product-four-related .swiper-detail-product-four-related .swiper-wrapper {
	align-items: stretch;
}
.detail-product-four-related .swiper-detail-product-four-related .swiper-slide {
	height: auto !important;
	display: flex !important;
	align-self: stretch;
}
.detail-product-four-related .swiper-detail-product-four-related .swiper-slide > * {
	width: 100%;
	height: 100%;
	min-height: 100%;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-self: stretch;
}
.detail-product-four-related .swiper-detail-product-four-related .swiper-slide > * > .product-nk,
.detail-product-four-related .swiper-detail-product-four-related .swiper-slide > .product,
.detail-product-four-related .swiper-detail-product-four-related .swiper-slide .product-nk {
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
	min-height: 100%;
	display: flex !important;
	flex-direction: column !important;
}
.detail-product-four-related .swiper-detail-product-four-related .swiper-slide .add-to-cart-price,
.detail-product-four-related .swiper-detail-product-four-related .swiper-slide .product-six-nk__footer,
.detail-product-four-related .swiper-detail-product-four-related .swiper-slide .price-rate,
.detail-product-four-related .swiper-detail-product-four-related .swiper-slide .product-nk > .btns,
.detail-product-four-related .swiper-detail-product-four-related .swiper-slide .detail > .btns {
	margin-top: auto !important;
}
.detail-product-four-related .swiper-detail-product-four-related .swiper-slide .product-nk .title.line-clamp-2 {
	min-height: 48px;
}

/* ==========================================================================
   Single product style 4 — contact tickets under gallery
   Desktop + mobile: 2-column grid; text hugs the dashed divider.
   ========================================================================== */
.detail-product-four .butboxed {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 12px 0 0;
	align-items: stretch;
}

.detail-product-four .butboxed > a {
	display: block;
	min-width: 0;
	margin: 0 !important;
	text-decoration: none;
}

.detail-product-four .butboxed > a.mb-4 {
	grid-column: 1 / -1;
	margin-top: 2px !important;
}

.detail-product-four .butboxed .butboxqr.qwe {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-width: 0 !important;
	height: 100%;
	margin: 0 !important;
	box-sizing: border-box;
	-webkit-mask-image: radial-gradient(circle at 68% 6px, transparent 6px, red 6.5px), linear-gradient(transparent 25%, red 0, red 75%, transparent 0);
	-webkit-mask-size: 100%, 2px 8px;
	-webkit-mask-repeat: repeat, repeat-y;
	-webkit-mask-position: 0 -6px, 68%;
	-webkit-mask-composite: source-out;
	mask-composite: subtract;
	padding: 3px 10px;
}

.detail-product-four .butboxed .butboxqr.qwe img {
	flex: 0 0 auto;
	width: 48px;
	max-height: 44px;
	padding: 8px 5px;
	/* Keeps icon clear of the 68% dashed divider */
	margin: 5px -5px 5px 22px !important;
}

body:not(.rtl) .detail-product-four .butboxed .butboxqr.qwe img {
	margin: 5px 22px 5px -5px !important;
}

.detail-product-four .butboxed .butboxqr.qwe p {
	display: block !important;
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	/* Hug the dashed divider (right side in RTL / icon side) */
	padding: 0;
	padding-inline-start: 4px;
	padding-inline-end: 6px;
	line-height: 1.35;
	text-align: start;
	overflow: hidden;
}

.detail-product-four-butboxed-desktop {
	margin-top: 4px;
}

.detail-product-four-butboxed-mobile {
	margin-top: 8px;
}

/* ==========================================================================
   Product card style 18 (.product-new-one) — title / price collision
   Global `.product h2 { height:44px }` + taller line-height made the price
   sit on the title. Reserve title space and push price below it.
   ========================================================================== */
.product.product-new-one {
	display: flex !important;
	flex-direction: column !important;
}

.product.product-new-one .title,
.product.product-new-one h2.title {
	height: auto !important;
	min-height: 48px;
	max-height: 60px;
	margin: 12px 5px 16px !important;
	padding: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 30px !important;
	overflow: hidden !important;
	display: -webkit-box !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	position: relative;
	z-index: 1;
}

/* Full product titles in cards (theme option kaveh_product_title_display) */
body.kaveh-full-product-titles .product h2,
body.kaveh-full-product-titles .product-two h2,
body.kaveh-full-product-titles .product-three h2,
body.kaveh-full-product-titles .product-four h2,
body.kaveh-full-product-titles .product-fiv h2,
body.kaveh-full-product-titles .product-six h2,
body.kaveh-full-product-titles .product-name,
body.kaveh-full-product-titles .product-twelve .detail h2,
body.kaveh-full-product-titles .product-eighteen .title,
body.kaveh-full-product-titles .product-twenty .title,
body.kaveh-full-product-titles .product-new-one .title,
body.kaveh-full-product-titles .product.product-new-one .title,
body.kaveh-full-product-titles .product.product-new-one h2.title,
body.kaveh-full-product-titles .product-new-two .image-title .title,
body.kaveh-full-product-titles .product-new-three .title,
body.kaveh-full-product-titles .product-new-four .title,
body.kaveh-full-product-titles .box-product-one .title-product,
body.kaveh-full-product-titles .product-bed-two .title-product,
body.kaveh-full-product-titles .product-bed-three .detail .title-product,
body.kaveh-full-product-titles .product-bed-four .detail .title-product,
body.kaveh-full-product-titles .product-book .title-product,
body.kaveh-full-product-titles .product-tech .title,
body.kaveh-full-product-titles .product-tech-two .detail .title,
body.kaveh-full-product-titles .product-travel-equipment-item .title-product,
body.kaveh-full-product-titles .popular-products-nk .product-nk .title,
body.kaveh-full-product-titles .product-cart-thirty-nk .title,
body.kaveh-full-product-titles .product-cart-thirty-one-nk .title,
body.kaveh-full-product-titles .product-cart-thirty-two-nk .title,
body.kaveh-full-product-titles .product-cart-thirty-three-nk .title,
body.kaveh-full-product-titles .popular-products-nk .line-clamp-2,
body.kaveh-full-product-titles .product-cart-thirty-nk .line-clamp-2,
body.kaveh-full-product-titles .product-cart-thirty-one-nk .line-clamp-2,
body.kaveh-full-product-titles .product-cart-thirty-two-nk .line-clamp-2,
body.kaveh-full-product-titles .product-cart-thirty-three-nk .line-clamp-2,
body.kaveh-full-product-titles h2.title.overflow-hidden,
body.kaveh-full-product-titles h2.title-product.overflow-hidden {
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	overflow: visible !important;
	display: block !important;
	-webkit-line-clamp: unset !important;
	line-clamp: unset !important;
	-webkit-box-orient: initial !important;
}

.product.product-new-one .offer-price {
	position: relative;
	z-index: 1;
	margin-top: auto;
	padding-top: 6px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	width: 100%;
	box-sizing: border-box;
}

.product.product-new-one .offer-price del {
	display: block;
	position: static !important;
	margin: 0;
	line-height: 1.3;
}

.product.product-new-one .offer-price .price {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	line-height: 1.3;
}

@media only screen and (max-width: 767px) {
	.product.product-new-one .title,
	.product.product-new-one h2.title {
		min-height: 40px;
		max-height: 48px;
		margin: 10px 4px 14px !important;
		font-size: 12px;
		line-height: 24px !important;
	}
	body.kaveh-full-product-titles .product.product-new-one .title,
	body.kaveh-full-product-titles .product.product-new-one h2.title {
		min-height: 0 !important;
		max-height: none !important;
	}
}

