/* =========================================================
   HYPER CCTV — SINGLE PRODUCT
   نسخه یکپارچه استایل صفحه محصول
   بارگذاری فقط در صفحات محصول از طریق functions.php
========================================================= */

/* =========================================================
   01. عنوان محصول
========================================================= */

body.single-product .summary-inner > .product_title {
    margin: 0 0 20px !important;
    padding: 0 0 15px;
    border-bottom: 1px solid #edf0f3;
    color: #202a36;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.8;
}

/* =========================================================
   02. کارت گالری و پوسته خلاصه محصول
========================================================= */

body.single-product .product-image-summary-inner {
    align-items: start;
}

body.single-product .product-image-summary-inner > .product-images {
    align-self: start;
    height: fit-content;
    min-height: 0;
    box-sizing: border-box;
    padding: 16px;
    border: 1px solid #e5e9ef;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 3px 16px rgba(25, 39, 55, 0.04);
}

body.single-product .product-image-summary-inner > .summary {
    align-self: start;
    height: auto;
    min-height: 0;
    box-sizing: border-box;
    padding: 20px;
    border: 1px solid #e5e9ef;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 3px 16px rgba(25, 39, 55, 0.04);
}

/* گالری تصاویر بندانگشتی */
body.single-product .product-images .wd-thumbs {
    margin-top: 14px;
    padding: 2px;
}

body.single-product .product-images .wd-thumbs .wd-carousel-item {
    box-sizing: border-box;
    overflow: visible;
    padding: 0 5px !important;
    border: 0 !important;
    background: transparent !important;
}

body.single-product .product-images .wd-thumbs .wd-carousel-item img {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 84px;
    padding: 4px;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    background: #ffffff;
    object-fit: contain;
    transition: border-color 0.2s ease, background 0.2s ease;
}

body.single-product .product-images .wd-thumbs
.wd-carousel-item.wd-thumb-active img,
body.single-product .product-images .wd-thumbs
.wd-carousel-item:hover img {
    border-color: #0866cc;
}

/* =========================================================
   03. ساختار اصلی اطلاعات محصول
========================================================= */

body.single-product .hc-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(270px, 0.92fr);
    gap: 20px;
    align-items: start;
    direction: rtl;
    width: 100%;
    box-sizing: border-box;
}

body.single-product .hc-product-layout.no-highlights {
    grid-template-columns: minmax(0, 1fr);
}

/*
 * اگر محصول توضیح کوتاه، برند یا امتیاز نداشته باشد،
 * پوسته خالی مخفی می‌شود؛ اگر JS اطلاعات دیگری به آن اضافه کند،
 * پوسته خالی نخواهد بود و اطلاعات نمایش داده می‌شوند.
 */
body.single-product .hc-product-layout.no-highlights
.hc-product-highlights:empty {
    display: none !important;
}

body.single-product .hc-product-highlights {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
    padding: 5px 3px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* =========================================================
   04. ردیف برند و امتیاز
========================================================= */

body.single-product .hc-product-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    width: 100%;
    margin: 0;
    direction: rtl;
}

body.single-product .hc-product-brand {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
}

body.single-product .hc-meta-label {
    color: #858e99;
    font-weight: 400;
}

body.single-product .hc-product-brand a {
    color: #273444;
    font-weight: 600;
    text-decoration: none;
}

body.single-product .hc-product-brand a:hover {
    color: #0866cc;
}

body.single-product .hc-brand-separator {
    color: #9aa3ad;
}

body.single-product .hc-product-rating .woocommerce-product-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 !important;
}

body.single-product .hc-product-rating .star-rating {
    float: none;
    margin: 0;
    color: #efa900;
}

body.single-product .hc-product-rating .woocommerce-review-link {
    color: #788391;
    font-size: 12px;
    text-decoration: none;
}

/* =========================================================
   05. توضیحات کوتاه و بولت‌های محصول
========================================================= */

body.single-product .hc-product-highlights .custom-product-info-box {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #4b5663;
    font-size: 13px;
    line-height: 2;
    box-sizing: border-box;
}

body.single-product .custom-product-info-box ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 !important;
    padding: 0 18px 0 0 !important;
    list-style: none !important;
}

body.single-product .custom-product-info-box li {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    color: #4b5663;
    font-size: 13px;
    line-height: 1.9;
    list-style: none !important;
}

body.single-product .custom-product-info-box li::before {
    position: absolute;
    top: 12px;
    right: -16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e96b27;
    content: "";
}

/* =========================================================
   06. عناصر تکمیلی، شمارشگر، اشتراک‌گذاری و متادیتا
========================================================= */

body.single-product .hc-product-extras {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin-top: 3px;
}

body.single-product .hc-product-promo-row {
    display: flex;
    align-items: center;
    width: 100%;
}

body.single-product .hc-product-promo-row .wd-countdown-timer {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: fit-content !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100%;
    margin: 0 !important;
    padding: 6px 10px !important;
    border: 1px solid #f4e0d9 !important;
    border-radius: 8px !important;
    background: #fff6f3 !important;
    box-shadow: none !important;
    direction: ltr;
}

body.single-product .hc-product-promo-row .wd-countdown-timer .wd-timer {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    width: fit-content !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    direction: ltr;
}

body.single-product .hc-product-promo-row .wd-timer .wd-item {
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    flex-direction: row !important;
    gap: 3px !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.single-product .hc-product-promo-row .wd-timer-value {
    color: #c74c38 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
}

body.single-product .hc-product-promo-row .wd-timer-text {
    color: #858e99 !important;
    font-size: 10px !important;
    line-height: 1.5 !important;
}

body.single-product .hc-product-promo-row .wd-timer::before,
body.single-product .hc-product-promo-row .wd-timer::after,
body.single-product .hc-product-promo-row .wd-item::before,
body.single-product .hc-product-promo-row .wd-item::after {
    display: none !important;
    content: none !important;
}

/* ردیف اشتراک‌گذاری و دکمه‌های علاقه‌مندی/مقایسه */
body.single-product .hc-product-actions-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    direction: rtl;
}

body.single-product .hc-product-actions-row .product-share {
    display: flex !important;
    flex: 1 1 270px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
    width: auto !important;
    min-width: 0;
    max-width: 100%;
    float: none !important;
    margin: 0 !important;
}

body.single-product .hc-product-actions-row .product-share .share-title {
    margin-left: 4px;
    color: #858e99;
    font-size: 11px;
}

body.single-product .hc-product-actions-row .product-share .wd-social-icon {
    display: inline-flex !important;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    border-radius: 9px;
    background: #f5f7fa;
}

/* گروه دکمه‌های علاقه‌مندی و مقایسه */
body.single-product .hc-product-quick-actions {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    margin: 0 !important;
    direction: rtl;
}

body.single-product .hc-product-quick-actions .wd-wishlist-btn,
body.single-product .hc-product-quick-actions .wd-compare-btn {
    display: inline-flex !important;
    flex: 0 0 auto;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.single-product .hc-product-quick-actions .wd-wishlist-btn > a,
body.single-product .hc-product-quick-actions .wd-compare-btn > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 13px !important;
    border: 1px solid #e5eaf0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    color: #344256 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.single-product .hc-product-quick-actions .wd-action-text {
    display: inline-block !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    color: #344256 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

body.single-product .hc-product-quick-actions .wd-wishlist-btn i,
body.single-product .hc-product-quick-actions .wd-compare-btn i,
body.single-product .hc-product-quick-actions .wd-wishlist-btn svg,
body.single-product .hc-product-quick-actions .wd-compare-btn svg {
    flex-shrink: 0;
}

body.single-product .hc-product-quick-actions .wd-wishlist-btn > a:hover,
body.single-product .hc-product-quick-actions .wd-compare-btn > a:hover {
    border-color: #cbd9e8 !important;
    background: #f5f8fc !important;
    color: #0866cc !important;
}

/* SKU و دسته‌بندی‌ها */
body.single-product .hc-product-meta-footer {
    width: 100%;
}

body.single-product .hc-product-meta-footer .product_meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 15px;
    width: 100%;
    margin: 0 !important;
    padding: 12px 0 0;
    border-top: 1px solid #edf0f3;
    background: transparent;
    box-shadow: none;
    color: #788391;
    font-size: 11px;
    line-height: 1.9;
}

/* =========================================================
   07. کارت خرید
========================================================= */

body.single-product .hc-purchase-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: start;
    min-width: 0;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    padding: 18px;
    border: 1px solid #e5eaf0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(25, 39, 55, 0.055);
}

/* باکس فروشنده، گارانتی و ارسال */
body.single-product .hc-purchase-card .hyper-box {
    width: 100%;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

body.single-product .hc-purchase-card .hyper-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f2f5;
    box-sizing: border-box;
}

body.single-product .hc-purchase-card .hyper-item:last-child {
    border-bottom: 0;
}

body.single-product .hc-purchase-card .h-icon {
    display: inline-flex;
    flex: 0 0 31px;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 9px;
    background: #fff4ed;
    color: #e96b27;
}

body.single-product .hc-purchase-card .h-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.single-product .hc-purchase-card .hyper-item__label {
    color: #788391;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

body.single-product .hc-purchase-card .hyper-item__value {
    min-width: 0;
    margin-inline-start: auto;
    color: #273444;
    font-size: 12px;
    font-weight: 600;
    text-align: start;
    overflow-wrap: anywhere;
}

/* وضعیت موجودی */
body.single-product .hc-purchase-card > p.stock {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    width: fit-content;
    margin: 4px 0 8px !important;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
}

body.single-product .hc-purchase-card p.stock.in-stock {
    color: #21834d;
    background: #edf8f1;
}

body.single-product .hc-purchase-card p.stock.out-of-stock {
    color: #c63b3b;
    background: #fff0f0;
}

/* قیمت */
body.single-product .hc-purchase-card > .price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin: 4px 0 13px !important;
    color: #202a36;
    line-height: 1.8;
}

body.single-product .hc-purchase-card > .price ins {
    color: #202a36;
    font-size: 23px;
    font-weight: 800;
    text-decoration: none !important;
}

body.single-product .hc-purchase-card > .price del {
    color: #9aa2ac;
    font-size: 13px;
    font-weight: 400;
}

body.single-product .hc-purchase-card .woocommerce-Price-currencySymbol {
    font-size: 0.65em;
    font-weight: 500;
}

/* فرم افزودن به سبد خرید */
body.single-product .hc-purchase-card form.cart {
    width: 100%;
    margin: 8px 0 12px !important;
    box-sizing: border-box;
}

body.single-product .hc-purchase-card
form.cart:not(.variations_form):not(.grouped_form) {
    display: flex;
    align-items: stretch;
    gap: 9px;
}

body.single-product .hc-purchase-card form.cart .quantity {
    display: flex;
    flex: 0 0 95px;
    align-items: center;
    min-width: 0;
    margin: 0 !important;
}

body.single-product .hc-purchase-card
form.cart .single_add_to_cart_button {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 49px;
    margin: 0 !important;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: #0866cc;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease;
}

body.single-product .hc-purchase-card
form.cart .single_add_to_cart_button:hover {
    background: #0756ad;
}

/* محصولات متغیر و گروهی */
body.single-product .hc-purchase-card form.cart.variations_form,
body.single-product .hc-purchase-card form.cart.grouped_form {
    display: block;
}

body.single-product .hc-purchase-card
.variations_form .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: stretch;
    gap: 9px;
}

/* دیجی‌پی */
body.single-product .hc-purchase-card .digipay-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 8px 0 0 !important;
    padding: 11px 12px;
    border: 1px solid #e6edf8;
    border-radius: 10px;
    background: #f6f9ff;
    box-sizing: border-box;
}

body.single-product .hc-purchase-card .digipay-widget-image {
    display: block;
    max-width: 43px;
    max-height: 30px;
    object-fit: contain;
}

body.single-product .hc-purchase-card .digipay-widget-title {
    color: #344256;
    font-size: 12px;
    font-weight: 600;
}

/* =========================================================
   08. جدول ویژگی‌های محصول
========================================================= */

body.single-product table.woocommerce-product-attributes,
body.single-product table.shop_attributes {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 9px !important;
    background: transparent !important;
}

body.single-product .woocommerce-product-attributes th,
body.single-product .woocommerce-product-attributes td {
    padding: 14px 18px !important;
    border: 0 !important;
    vertical-align: middle !important;
    font-size: 14px !important;
    line-height: 1.9 !important;
}

body.single-product .woocommerce-product-attributes th {
    width: 28% !important;
    border-radius: 0 10px 10px 0 !important;
    background: #eeeeee !important;
    color: #666666 !important;
    font-weight: 600 !important;
    text-align: right !important;
}

body.single-product .woocommerce-product-attributes td {
    width: 72% !important;
    border-radius: 10px 0 0 10px !important;
    background: #f7f7f7 !important;
    color: #222222 !important;
    text-align: right !important;
}

body.single-product .woocommerce-product-attributes td p {
    margin: 0 !important;
}

body.single-product .woocommerce-product-attributes,
body.single-product .woocommerce-product-attributes tr,
body.single-product .woocommerce-product-attributes th,
body.single-product .woocommerce-product-attributes td {
    border: 0 !important;
}

/* =========================================================
   09. تب‌های صفحه محصول
========================================================= */

body.single-product .woocommerce-tabs {
    overflow: hidden;
    margin: 28px 0 0 !important;
    padding: 0 !important;
    border: 1px solid #e5eaf0 !important;
    border-radius: 15px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(25, 39, 55, 0.045) !important;
}

body.single-product .woocommerce-tabs .wd-nav-wrapper {
    margin: 0 !important;
    padding: 0 24px;
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.single-product .woocommerce-tabs .wd-nav-tabs {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 18px;
    min-height: 66px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.single-product .woocommerce-tabs .wd-nav-tabs > li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.single-product .woocommerce-tabs .wd-nav-tabs > li > a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 66px;
    padding: 0 15px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #7a8491 !important;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

body.single-product .woocommerce-tabs .wd-nav-tabs > li > a:hover {
    background: transparent !important;
    color: #1769d2 !important;
}

body.single-product .woocommerce-tabs .wd-nav-tabs > li.active > a {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: inset 0 -3px 0 #1769d2 !important;
    color: #1769d2 !important;
    font-weight: 700;
}

/* حذف خطوط و pseudo-elementهای پیش‌فرض وودمارت */
body.single-product .woocommerce-tabs .wd-nav-tabs > li::before,
body.single-product .woocommerce-tabs .wd-nav-tabs > li::after,
body.single-product .woocommerce-tabs .wd-nav-tabs > li > a::before,
body.single-product .woocommerce-tabs .wd-nav-tabs > li > a::after,
body.single-product .woocommerce-tabs .wd-nav-tabs > li:hover::before,
body.single-product .woocommerce-tabs .wd-nav-tabs > li:hover::after,
body.single-product .woocommerce-tabs .wd-nav-tabs > li.active::before,
body.single-product .woocommerce-tabs .wd-nav-tabs > li.active::after,
body.single-product .woocommerce-tabs .wd-nav-tabs > li:hover > a::before,
body.single-product .woocommerce-tabs .wd-nav-tabs > li:hover > a::after,
body.single-product .woocommerce-tabs .wd-nav-tabs > li.active > a::before,
body.single-product .woocommerce-tabs .wd-nav-tabs > li.active > a::after {
    display: none !important;
    border: 0 !important;
    box-shadow: none !important;
    content: none !important;
}

body.single-product .woocommerce-tabs
.wd-nav.wd-style-underline-reverse > li > a > .nav-link-text::after {
    display: none !important;
    content: none !important;
}

/* محتوای تب‌ها */
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
    margin: 0 !important;
    padding: 28px 26px 26px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel h2 {
    margin: 0 0 20px;
    padding-bottom: 13px;
    border-bottom: 1px solid #edf0f3;
    color: #202a36;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.8;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel h3 {
    margin: 28px 0 13px;
    padding-right: 12px;
    border-right: 3px solid #1769d2;
    color: #273444;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.8;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel p {
    margin-bottom: 17px;
    color: #626d79;
    font-size: 14px;
    line-height: 2.15;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel ul,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel ol {
    padding-right: 24px;
    color: #626d79;
    line-height: 2;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel li {
    margin-bottom: 8px;
}

/* =========================================================
   10. تبلت
========================================================= */

@media (min-width: 768px) and (max-width: 1024px) {

    body.single-product .product-image-summary-inner > .product-images {
        padding: 14px;
    }

    body.single-product .product-images .wd-thumbs .wd-carousel-item img {
        height: 72px;
    }
}

/* =========================================================
   11. موبایل و موبایل افقی
========================================================= */

@media (max-width: 767px) {

    body.single-product .summary-inner > .product_title {
        margin-bottom: 14px !important;
        padding: 8px 15px 11px;
        font-size: 18px;
        line-height: 1.8;
        box-sizing: border-box;
    }

    body.single-product .product-image-summary-inner > .product-images {
        padding: 12px;
        border-radius: 12px;
        box-shadow: none;
    }

    body.single-product .product-image-summary-inner > .summary {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }

    body.single-product .hc-product-layout {
        gap: 15px;
    }

    body.single-product .hc-purchase-card {
        width: calc(100% - 16px) !important;
        max-width: calc(100% - 16px) !important;
        margin-right: auto !important;
        margin-left: auto !important;
        padding: 14px;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(25, 39, 55, 0.045);
        box-sizing: border-box !important;
    }

    body.single-product .hc-purchase-card .hyper-box {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        box-sizing: border-box !important;
    }

    body.single-product .hc-product-highlights {
        gap: 12px;
    }

    body.single-product .hc-product-extras {
        gap: 10px;
    }

    body.single-product .hc-product-actions-row {
        gap: 7px;
    }

    body.single-product .hc-purchase-card
    form.cart:not(.variations_form):not(.grouped_form) {
        gap: 7px;
    }

    body.single-product .hc-purchase-card form.cart .quantity {
        flex-basis: 85px;
    }

    body.single-product .hc-product-quick-actions .wd-wishlist-btn > a,
    body.single-product .hc-product-quick-actions .wd-compare-btn > a {
        height: 40px !important;
        gap: 6px !important;
        padding: 0 10px !important;
    }

    body.single-product .hc-product-quick-actions .wd-action-text {
        font-size: 11px !important;
    }

    /* جدول ویژگی‌ها */
    body.single-product .woocommerce-product-attributes th,
    body.single-product .woocommerce-product-attributes td {
        padding: 10px 11px !important;
        font-size: 13px !important;
    }

    body.single-product .woocommerce-product-attributes th {
        width: 35% !important;
    }

    body.single-product .woocommerce-product-attributes td {
        width: 65% !important;
        overflow-wrap: anywhere;
    }

    /* تب‌های محصول */
    body.single-product .woocommerce-tabs {
        margin-top: 18px !important;
        border-radius: 12px !important;
    }

    body.single-product .woocommerce-tabs .wd-nav-wrapper {
        padding: 0 8px;
    }

    body.single-product .woocommerce-tabs .wd-nav-tabs {
        gap: 5px;
        min-height: 54px;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    body.single-product .woocommerce-tabs .wd-nav-tabs::-webkit-scrollbar {
        display: none;
    }

    body.single-product .woocommerce-tabs .wd-nav-tabs > li {
        flex: 0 0 auto;
    }

    body.single-product .woocommerce-tabs .wd-nav-tabs > li > a {
        min-height: 54px;
        padding: 0 11px !important;
        font-size: 13px;
    }

    body.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
        padding: 20px 14px !important;
    }

    body.single-product .woocommerce-tabs .woocommerce-Tabs-panel h2 {
        font-size: 17px;
    }

    body.single-product .woocommerce-tabs .woocommerce-Tabs-panel h3 {
        margin-top: 22px;
        font-size: 15px;
    }

    body.single-product .woocommerce-tabs .woocommerce-Tabs-panel p {
        font-size: 13px;
        line-height: 2;
    }

    /* تصاویر بندانگشتی */
    body.single-product .product-images .wd-thumbs .wd-carousel-item {
        padding: 0 3px !important;
    }

    body.single-product .product-images .wd-thumbs .wd-carousel-item img {
        height: 68px;
    }

    /* آکاردئون تب‌ها در نمایش موبایل */
    body.single-product .woocommerce-tabs .wd-accordion-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.single-product .woocommerce-tabs .tab-title-description,
    body.single-product .woocommerce-tabs .tab-title-additional_information,
    body.single-product .woocommerce-tabs .tab-title-reviews {
        width: 100% !important;
        max-width: 100% !important;
        margin-inline: 0 !important;
        box-sizing: border-box !important;
    }

    body.single-product .woocommerce-tabs .wd-accordion-title {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        min-height: 54px;
        padding: 14px 50px 14px 16px !important;
        text-align: right !important;
        box-sizing: border-box !important;
    }

    body.single-product .woocommerce-tabs .wd-accordion-title-text {
        display: block !important;
        min-width: 0;
        margin: 0 !important;
        text-align: right !important;
    }

    body.single-product .woocommerce-tabs .wd-accordion-title-text h2 {
        margin: 0 !important;
        font-size: 14px;
        line-height: 1.8;
    }

    body.single-product .woocommerce-tabs .wd-accordion-opener {
        position: absolute !important;
        top: 50% !important;
        right: 14px !important;
        bottom: auto !important;
        left: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 26px !important;
        height: 26px !important;
        margin: 0 !important;
        transform: translateY(-50%) !important;
    }
}

/* موبایل‌های باریک */
@media (max-width: 380px) {

    body.single-product .hc-purchase-card {
        padding: 11px;
    }

    body.single-product .hc-purchase-card form.cart .quantity {
        flex-basis: 75px;
    }
}

/* =========================================================
   12. سبد خرید چسبان موبایل و تبلت
========================================================= */

@media (max-width: 1024px) {

    body.single-product .wd-sticky-btn,
    body.single-product .wd-sticky-btn.wd-sticky-btn-shown {
        display: block !important;
        height: auto !important;
        min-height: 76px !important;
        padding: 12px 0 !important;
        border-top: 1px solid #e8edf3 !important;
        background: #ffffff !important;
        box-shadow: 0 -4px 18px rgba(20, 35, 55, 0.08) !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translate3d(0, 0, 0) !important;
        bottom: 0 !important;
        pointer-events: auto !important;
        z-index: 9990 !important;
        transition: none !important;
        box-sizing: border-box !important;
    }

    body.single-product .wd-sticky-btn-content,
    body.single-product .wd-sticky-btn-actions {
        display: none !important;
    }

    body.single-product .wd-sticky-btn-container {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 50px !important;
        margin: 0 !important;
        padding: 0 14px !important;
        box-sizing: border-box !important;
    }

    body.single-product .wd-sticky-btn-cart {
        display: grid !important;
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr) !important;
        grid-template-areas: "price form";
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        min-height: 50px !important;
        margin: 0 !important;
        padding: 0 !important;
        direction: ltr !important;
        box-sizing: border-box !important;
    }

    body.single-product .wd-sticky-btn-cart > .price {
        display: block !important;
        grid-area: price !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 3px !important;
        color: #202a36 !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        line-height: 1.6 !important;
        text-align: center !important;
        direction: rtl !important;
    }

    body.single-product .wd-sticky-btn-cart .woocommerce-Price-amount {
        white-space: nowrap !important;
    }

    body.single-product .wd-sticky-btn-cart .price del {
        display: block !important;
        color: #9299a2 !important;
        font-size: 11px !important;
        font-weight: 400 !important;
    }

    body.single-product .wd-sticky-btn-cart .price ins {
        display: block !important;
        text-decoration: none !important;
    }

    body.single-product .wd-sticky-btn-cart > .stock {
        display: none !important;
    }

    body.single-product .wd-sticky-btn-cart > form.cart {
        display: block !important;
        grid-area: form !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.single-product .wd-sticky-btn-cart form.cart .quantity {
        display: none !important;
    }

    body.single-product .wd-sticky-btn-cart .single_add_to_cart_button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 48px !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 0 8px !important;
        border: 0 !important;
        border-radius: 9px !important;
        background: #0666cc !important;
        color: #ffffff !important;
        font-family: inherit !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        box-shadow: none !important;
        transition: background 0.2s ease !important;
    }

    body.single-product .wd-sticky-btn-cart .single_add_to_cart_button:hover {
        background: #0057b8 !important;
    }

    /* قیمت و فرم ثابت در کارت خرید پنهان می‌شوند؛
       نسخه چسبان پایین صفحه باقی می‌ماند. */
    body.single-product .hc-purchase-card > .price {
        display: none !important;
    }

    body.single-product
    .hc-purchase-card > form.cart:not(.variations_form):not(.grouped_form) {
        display: none !important;
    }

    /* در محصولات متغیر، انتخاب ویژگی‌ها باقی می‌ماند. */
    body.single-product .hc-purchase-card > form.variations_form
    .woocommerce-variation-price,
    body.single-product .hc-purchase-card > form.variations_form
    .woocommerce-variation-add-to-cart {
        display: none !important;
    }
}

/* موبایل‌های باریک: تنظیمات نهایی نوار چسبان */
@media (max-width: 380px) {

    body.single-product .wd-sticky-btn,
    body.single-product .wd-sticky-btn.wd-sticky-btn-shown {
        min-height: 68px !important;
        padding: 9px 0 !important;
    }

    body.single-product .wd-sticky-btn-cart {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important;
        gap: 6px !important;
    }

    body.single-product .wd-sticky-btn-cart > .price {
        font-size: 13px !important;
    }

    body.single-product .wd-sticky-btn-cart .single_add_to_cart_button {
        height: 44px !important;
        min-height: 44px !important;
        font-size: 12px !important;
    }
}