/* ============================================================
   DMHouse — Single Product  v3  (Zitro-style, RTL, 1500px)
   ============================================================ */

/* ── Base ── */
.dm-single-product { direction: rtl; background: #fff; }
.dm-sp-inner { max-width: 1500px; margin: 0 auto; padding: 0 24px 60px; }

/* Breadcrumb */
.dm-sp-breadcrumb { padding: 14px 0; font-size: 12px; color: #aaa; }
.dm-sp-breadcrumb .woocommerce-breadcrumb { margin: 0; font-size: 12px; }
.dm-sp-breadcrumb a { color: #aaa; text-decoration: none; }
.dm-sp-breadcrumb a:hover { color: var(--dm-primary,#ff6600); }


/* ════════════════════════════════════════════
   MAIN LAYOUT: Flex RTL
   content (right, flex:1) | sidebar (left, 300px sticky)
   ════════════════════════════════════════════ */
.dm-sp-layout {
    display: flex;
    gap: 24px;
    direction: rtl;
    align-items: flex-start;
}
.dm-sp-form { display: contents; }   /* form invisible in flex, children participate */
.dm-sp-content { flex: 1; min-width: 0;max-width: 100%; }

/* ── Sidebar (LEFT in RTL = flex order last) ── */
.dm-sp-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 88px;
    order: 10;   /* last in flex = leftmost in RTL */
}


/* ════════════════════════════════════════════
   TOP ROW: Gallery (right) + Info (left)
   ════════════════════════════════════════════ */
.dm-sp-top-row {
    display: grid;
    grid-template-columns: 380px 1fr;
    direction: rtl;
    gap: 32px;
    align-items: start;
    margin-bottom: 32px;
}


/* ── Gallery Column ── */
.dm-sp-gallery-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

/* Social strip — right edge */
.dm-sp-social-strip {
    position: absolute;
    top: 0;
    right: -52px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}
.dm-sp-social-btn {
    width: 40px; height: 40px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #aaa;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.dm-sp-social-btn:hover { border-color: var(--dm-primary,#ff6600); color: var(--dm-primary,#ff6600); }

/* Main image */
.dm-sp-main-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    background: #fff;
    cursor: zoom-in;
}
.dm-sp-main-img {
    width: 88%; height: 88%;
    object-fit: contain;
    transition: transform 0.35s ease;
}
.dm-sp-main-img-wrap:hover .dm-sp-main-img { transform: scale(1.05); }
.dm-sp-zoom-btn {
    position: absolute;
    bottom: 14px; left: 14px;
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #666;
    transition: all 0.2s;
}
.dm-sp-zoom-btn:hover { border-color: var(--dm-primary,#ff6600); color: var(--dm-primary,#ff6600); }

/* Thumbnails */
.dm-sp-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.dm-sp-thumb {
    width: 68px; height: 68px;
    border: 1.5px solid #eee;
    border-radius: 10px;
    padding: 5px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s;
    flex-shrink: 0;
}
.dm-sp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.dm-sp-thumb.is-active { border-color: var(--dm-primary,#ff6600); }
.dm-sp-thumb:hover { border-color: var(--dm-primary,#ff6600); }


/* ── Info Column ── */
.dm-sp-info-col { display: flex; flex-direction: column; gap: 18px; padding-top: 4px; }

.dm-sp-title {
    font-size: 19px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.6;
    margin: 0;
}
.dm-sp-en-title { font-size: 12px; color: #aaa; margin: -10px 0 0; font-direction: ltr; }

/* Meta strip */
.dm-sp-meta-strip {
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px; color: #888;
    flex-wrap: wrap;
}
.dm-sp-meta-sep { color: #ddd; }
.dm-sp-meta-link { color: var(--dm-primary,#ff6600); text-decoration: none; font-weight: 600; }
.dm-sp-meta-link:hover { text-decoration: underline; }

/* Authentic badge */
.dm-sp-badges-row { margin-top: -6px; }
.dm-sp-badge-authentic {
    display: inline-flex; align-items: center; gap: 5px;
    background: #e8f8f0;
    color: #22c55e;
    font-size: 11.5px; font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Section rows (label + content) */
.dm-sp-section-row { display: flex; flex-direction: column; gap: 10px; }
.dm-sp-row-label { font-size: 13px; font-weight: 800; color: #333; }
.dm-sp-row-label-row { display: flex; align-items: center; justify-content: space-between; }
.dm-sp-show-all-link { font-size: 12px; color: #888; text-decoration: none; display: flex; align-items: center; gap: 4px; }
.dm-sp-show-all-link:hover { color: var(--dm-primary,#ff6600); }


/* ── Variation Attributes ── */
.dm-sp-variations-wrap { display: flex; flex-direction: column; gap: 16px; }
.dm-sp-attr-block { display: flex; flex-direction: column; gap: 10px; }
.dm-sp-attr-header { display: flex; align-items: center; gap: 6px; }
.dm-sp-attr-label { font-size: 13px; font-weight: 800; color: #333; }
.dm-sp-attr-current { font-size: 13px; color: var(--dm-primary,#ff6600); font-weight: 700; }
/* Hide WC select */
.dm-sp-attr-block select,
.dm-sp-variations-wrap select { display: none !important; }
.reset_variations { font-size: 12px; color: #aaa; text-decoration: none; display: inline-block; }

/* Color swatches */
.dm-sp-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.dm-swatch-circle {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 2.5px solid #fff;
    box-shadow: 0 0 0 1.5px #ddd;
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.15s;
    flex-shrink: 0;
    background: #eee;
}
.dm-swatch-circle:hover { box-shadow: 0 0 0 2px var(--dm-primary,#ff6600); transform: scale(1.1); }
.dm-swatch-circle.is-active { box-shadow: 0 0 0 2.5px var(--dm-primary,#ff6600); transform: scale(1.08); }
.dm-swatch-text {
    padding: 7px 16px;
    border-radius: 8px;
    border: 1.5px solid #eee;
    background: #fff;
    font-size: 13px; font-weight: 600; color: #444;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.dm-swatch-text:hover { border-color: var(--dm-primary,#ff6600); color: var(--dm-primary,#ff6600); }
.dm-swatch-text.is-active { border-color: var(--dm-primary,#ff6600); background: #fff9f4; color: var(--dm-primary,#ff6600); font-weight: 700; }

/* Guarantee */
.dm-sp-warranty-wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.dm-sp-warranty-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 16px;
    border: 1.5px solid #f5a623;
    border-radius: 10px;
    background: #fff;
    font-size: 13px; font-weight: 700; color: #333;
    cursor: pointer; transition: all 0.15s;
    font-family: inherit;
}
.dm-sp-warranty-btn svg { color: #f5a623; }
.dm-sp-warranty-btn.is-active { background: #fffbf0; border-color: #f5a623; }

/* Insurance card */
.dm-sp-insurance-card {
    background: #fffbf2;
    border: 1px solid #f5e4b8;
    border-radius: 10px;
    padding: 12px 14px;
}
.dm-sp-insurance-row { display: flex; align-items: center; gap: 8px; }
.dm-sp-ins-check {
    width: 22px; height: 22px;
    background: var(--dm-primary,#ff6600);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.dm-sp-ins-check svg { stroke: #fff; }
.dm-sp-ins-name { flex: 1; font-size: 12.5px; font-weight: 600; color: #444; }
.dm-sp-ins-more { font-size: 12px; color: var(--dm-primary,#ff6600); cursor: pointer; white-space: nowrap; }

/* Quick specs grid */
.dm-sp-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.dm-sp-quick-cell {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex; flex-direction: column; gap: 4px;
}
.dm-qc-key { font-size: 11px; color: #aaa; font-weight: 500; }
.dm-qc-val { font-size: 12.5px; color: #222; font-weight: 700; line-height: 1.4; }


/* ════════════════════════════════════════════
   SERVICE BADGES
   ════════════════════════════════════════════ */
.dm-sp-service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    margin-bottom: 28px;
    gap: 8px;
}
.dm-sp-service-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    flex: 1; text-align: center;
    font-size: 11.5px; color: #555; font-weight: 600;
    line-height: 1.4;
}
.dm-sp-service-icon { display: flex; align-items: center; justify-content: center; }


/* ════════════════════════════════════════════
   UPSELLS "نیازت میشه"
   ════════════════════════════════════════════ */
.dm-sp-upsells { margin-bottom: 32px; }
.dm-sp-block-title {
    font-size: 17px; font-weight: 900; color: #1a1a1a;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}
.dm-sp-upsells-grid {
    display: flex; gap: 12px; overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}
.dm-sp-upsell-card {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    width: 160px; flex-shrink: 0;
    padding: 16px 12px;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
    text-align: center;
}
.dm-sp-upsell-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.dm-sp-upsell-img-wrap { width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; }
.dm-sp-upsell-img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dm-sp-upsell-name {
    font-size: 12px; font-weight: 600; color: #333;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    line-height: 1.5; margin: 0;
}
.dm-sp-upsell-price { font-size: 11.5px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.dm-up-pct { background: #ef4056; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.dm-up-old { color: #bbb; font-size: 11px; text-decoration: line-through; }
.dm-up-cur { font-size: 13px; font-weight: 800; color: #222; }


/* ════════════════════════════════════════════
   ANCHOR NAV
   ════════════════════════════════════════════ */
.dm-sp-anchor-nav {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    padding: 4px;
    background: #f8f9fb;
    border-radius: 14px;
    margin-bottom: 32px;
}
.dm-sp-anchor-btn {
    display: flex; align-items: center; gap: 7px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px; font-weight: 700;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}
.dm-sp-anchor-btn:hover { background: #fff; color: #333; }
.dm-sp-anchor-btn.is-active { background: #fff; color: #222; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dm-sp-anchor-count {
    background: var(--dm-primary,#ff6600);
    color: #fff; font-size: 10px; font-weight: 800;
    padding: 1px 7px; border-radius: 20px;
}


/* ════════════════════════════════════════════
   SPECS TABLE
   ════════════════════════════════════════════ */
.dm-sp-specs-section { margin-bottom: 32px; }
.dm-sp-specs-tbl { width: 100%; border-collapse: collapse; }
.dm-sp-specs-tbl tr { border-bottom: 1px solid #f5f5f5; }
.dm-sp-specs-tbl tr:nth-child(even) { background: #fafafa; }
.dm-spec-extra { display: none; }
.dm-sp-specs-tbl tr.dm-spec-extra.is-visible { display: table-row; }
.dm-sp-specs-tbl th {
    text-align: right;
    padding: 13px 16px;
    font-size: 12.5px; font-weight: 500;
    color: #aaa; width: 30%;
    white-space: nowrap;
}
.dm-sp-specs-tbl td {
    padding: 13px 16px;
    font-size: 13px; font-weight: 600;
    color: #222;
}
.dm-sp-more-link {
    display: flex; align-items: center; gap: 4px;
    color: var(--dm-primary,#ff6600);
    font-size: 13px; font-weight: 700;
    text-decoration: none;
    padding: 14px 0;
    justify-content: center;
}


/* ════════════════════════════════════════════
   REVIEWS
   ════════════════════════════════════════════ */
.dm-sp-reviews-section { margin-bottom: 40px; }
.dm-sp-reviews-empty-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #f8f9fb;
    border-radius: 16px;
    padding: 28px 24px;
}
.dm-sp-reviews-left { flex: 1; }
.dm-sp-reviews-left h3 { font-size: 16px; font-weight: 800; color: #222; margin: 0 0 8px; }
.dm-sp-reviews-left p { font-size: 13px; color: #888; line-height: 1.7; margin: 0 0 14px; }
.dm-sp-btn-review {
    display: inline-flex; align-items: center;
    padding: 10px 20px;
    background: #1a1a2e; color: #fff;
    border-radius: 10px; font-size: 13px; font-weight: 700;
    text-decoration: none; transition: opacity 0.2s;
}
.dm-sp-btn-review:hover { opacity: 0.85; color: #fff; }
.dm-sp-reviews-empty-state {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    flex-shrink: 0;
}
.dm-sp-reviews-empty-state p { font-size: 12px; color: #bbb; margin: 0; text-align: center; }


/* ════════════════════════════════════════════
   RELATED SLIDER
   ════════════════════════════════════════════ */
.dm-sp-related { margin-bottom: 40px; }
.dm-sp-products-slider { overflow: hidden;padding: 8px 0 36px 0; }
.dm-sp-products-slider .swiper-button-next,
.dm-sp-products-slider .swiper-button-prev { color: var(--dm-primary,#ff6600); }


/* ════════════════════════════════════════════
   BUY BOX (sidebar)
   ════════════════════════════════════════════ */
.dm-sp-buy-box {
    background: #fff;
    border: 1.5px solid #eee;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Insurance toggle */
.dm-sp-bima-toggle {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 12px;
    background: #f8f9fb;
    border-radius: 10px;
}
.dm-sp-bima-check-icon {
    width: 22px; height: 22px; flex-shrink: 0;
    background: var(--dm-primary,#ff6600);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
}
.dm-sp-bima-title { font-size: 12px; font-weight: 600; color: #444; line-height: 1.5; }
.dm-sp-bima-reject-btn {
    display: flex; align-items: center; gap: 6px;
    background: transparent;
    border: 1.5px solid #ef4444;
    border-radius: 8px;
    color: #ef4444;
    font-size: 12px; font-weight: 700;
    padding: 7px 12px;
    cursor: pointer; transition: all 0.2s;
    font-family: inherit;
    align-self: flex-start;
}
.dm-sp-bima-reject-btn:hover { background: #fff0f0; }

.dm-sp-divider { border: none; border-top: 1px solid #f0f0f0; margin: 0; }

/* Price */
.dm-sp-price-display { min-height: 52px; }
.dm-sp-price-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.dm-sp-disc-badge {
    background: #ef4056; color: #fff;
    font-size: 11px; font-weight: 800;
    padding: 2px 7px; border-radius: 5px;
}
.dm-sp-old-price { font-size: 13px; color: #bbb; text-decoration: line-through; }
.dm-sp-old-price bdi { color: #bbb; }
.dm-sp-cur-price { font-size: 20px; font-weight: 900; color: #1a1a1a; direction: rtl; }
.dm-sp-cur-price bdi { font-size: 20px; }
.dm-sp-cur-price .woocommerce-Price-currencySymbol { font-size: 13px; font-weight: 500; }
.dm-sp-select-hint { font-size: 12px; color: #bbb; text-align: center; padding: 8px 0; margin: 0; }

/* WC dynamic variation price */
.woocommerce-variation.single_variation { direction: rtl; }
.woocommerce-variation.single_variation .woocommerce-variation-price .price { font-size: 20px; font-weight: 900; color: #1a1a1a; }
.woocommerce-variation.single_variation .woocommerce-variation-availability { font-size: 12px; color: #22c55e; font-weight: 700; }

/* Buy buttons */
.single_variation_wrap .woocommerce-variation-add-to-cart { display: flex; flex-direction: column; gap: 10px; }
.dm-sp-buy-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dm-btn-cash {
    padding: 12px 8px;
    background: #3db87a; color: #fff;
    border: none; border-radius: 10px;
    font-size: 14px; font-weight: 800;
    cursor: pointer; transition: opacity 0.2s;
    font-family: inherit; text-align: center;
    text-decoration: none; display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.dm-btn-cash:hover { opacity: 0.88; color: #fff; }
.dm-btn-cash:disabled,
.dm-btn-unavail { background: #ddd; color: #aaa; cursor: not-allowed; border-radius: 10px; padding: 12px 8px; font-size: 14px; font-weight: 700; border: none; font-family: inherit; }
.dm-btn-installment {
    padding: 12px 8px;
    background: #1a1a2e; color: #fff;
    border: none; border-radius: 10px;
    font-size: 14px; font-weight: 800;
    cursor: pointer; transition: opacity 0.2s;
    font-family: inherit;
}
.dm-btn-installment:hover { opacity: 0.88; }

/* Payment logos */
.dm-sp-payment-row { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.dm-sp-pay-logo { display: flex; align-items: center; justify-content: center; }

/* Promo banner */
.dm-sp-promo-banner {
    background: linear-gradient(135deg, #ff8c00, #ff6600);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex; align-items: center; gap: 8px;
    color: #fff; font-size: 13px; font-weight: 800;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}
.dm-sp-promo-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 10px);
}


/* ════════════════════════════════════════════
   WooCommerce overrides
   ════════════════════════════════════════════ */
.dm-single-product .woocommerce-product-rating { margin: 0; display: flex; align-items: center; gap: 6px; }
.dm-single-product .woocommerce-breadcrumb { margin: 0; }
.dm-single-product .quantity { display: none !important; }
.dm-single-product input.qty { display: none !important; }
/* comment form */
.dm-sp-reviews-section .comment-form { direction: rtl; }
.dm-sp-reviews-section .comment-form input,
.dm-sp-reviews-section .comment-form textarea {
    border: 1.5px solid #eee; border-radius: 8px;
    padding: 10px 12px; font-family: inherit;
    width: 100%; box-sizing: border-box;
    direction: rtl;
}
.dm-sp-reviews-section .comment-form input:focus,
.dm-sp-reviews-section .comment-form textarea:focus { border-color: var(--dm-primary,#ff6600); outline: none; }
.dm-sp-reviews-section .comment-form .submit input {
    background: var(--dm-primary,#ff6600); color: #fff; border: none;
    padding: 11px 24px; border-radius: 10px; font-size: 14px; font-weight: 700;
    cursor: pointer; width: auto;
}


/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 1280px) {
    .dm-sp-top-row { grid-template-columns: 320px 1fr; }
    .dm-sp-social-strip { right: -46px; }
    .dm-sp-sidebar { width: 270px; }
}
@media (max-width: 1024px) {
    .dm-sp-social-strip { position: static; flex-direction: row; margin-bottom: 8px; }
    .dm-sp-layout { flex-direction: column-reverse; }
    .dm-sp-sidebar { width: 100%; position: static; order: 0; }
    .dm-sp-top-row { grid-template-columns: 300px 1fr; gap: 20px; }
}
@media (max-width: 768px) {
    .dm-sp-inner { padding: 0 16px 40px; }
    .dm-sp-top-row { grid-template-columns: 1fr; }
    .dm-sp-gallery-col { max-width: 360px; margin: 0 auto; width: 100%; }
    .dm-sp-quick-grid { grid-template-columns: repeat(2, 1fr); }
    .dm-sp-service-row { flex-wrap: wrap; gap: 16px; }
    .dm-sp-service-item { min-width: calc(33% - 8px); }
    .dm-sp-reviews-empty-wrap { flex-direction: column-reverse; text-align: center; }
    .dm-sp-reviews-left { text-align: right; }
}
/* ══════════════════════════════════════════════════════
   SINGLE PRODUCT MOBILE — این CSS را به انتهای single-product.css اضافه کنید
   ══════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* ── Sidebar → Fixed buy bar at bottom ── */
    .dm-sp-sidebar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 100 !important;
        box-shadow: 0 -4px 24px rgba(0,0,0,0.13) !important;
        border-radius: 14px 14px 0 0 !important;
        order: 0 !important;
        top: auto;
    }

    .dm-sp-buy-box {
        padding: 10px 16px env(safe-area-inset-bottom, 12px) !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    /* پنهان کردن اجزای غیرضروری در buy bar موبایل */
    .dm-sp-bima-toggle,
    .dm-sp-bima-reject-btn,
    .dm-sp-divider,
    .dm-sp-payment-row,
    .dm-sp-promo-banner {
        display: none !important;
    }

    /* نمایش قیمت + دکمه در یک ردیف */
    .dm-sp-buy-box .dm-sp-price-display {
        margin: 0 !important;
    }

    .dm-sp-buy-box .dm-sp-price-display .dm-sp-price-wrap {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .dm-sp-buy-box .dm-sp-cur-price {
        font-size: 17px !important;
        font-weight: 900 !important;
    }

    .dm-sp-buy-box .dm-sp-price-top {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .dm-sp-buy-btns {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .dm-btn-cash, .dm-btn-installment {
        padding: 13px 8px !important;
        font-size: 14px !important;
    }

    /* فضا برای buy bar */
    .dm-sp-layout {
        padding-bottom: 130px !important;
    }

    /* Layout در موبایل: ستون عادی (نه reverse) */
    .dm-sp-layout {
        flex-direction: column !important;
    }

    /* گالری عکس full width */
    .dm-sp-gallery-col {
        max-width: 100% !important;
        margin: 0 !important;
    }

    .dm-sp-main-img-wrap {
        border-radius: 0 0 12px 12px !important;
        background: #f8f9fb !important;
    }

    /* Social strip در موبایل: افقی */
    .dm-sp-social-strip {
        position: static !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        padding: 8px 16px 0 !important;
        margin-bottom: 0 !important;
    }

    /* Info col padding */
    .dm-sp-info-col {
        padding: 0 !important;
    }

    /* breadcrumb کوچک‌تر */
    .dm-sp-inner {
        padding: 0 0 130px !important;
    }

    .dm-sp-breadcrumb {
        padding: 10px 16px !important;
    }

    /* عنوان محصول */
    .dm-sp-title {
        font-size: 16px !important;
        padding: 0 16px !important;
    }

    /* Meta strip */
    .dm-sp-meta-strip {
        padding: 0 16px !important;
    }

    /* بخش‌های داخلی */
    .dm-sp-variations-wrap,
    .dm-sp-section-row,
    .dm-sp-badges-row {
        padding: 0 16px !important;
    }

    /* Quick specs */
    .dm-sp-quick-grid {
        grid-template-columns: 1fr 1fr !important;
        padding: 0 16px !important;
    }

    /* Service badges */
    .dm-sp-service-row {
        padding: 0 16px !important;
        flex-wrap: wrap !important;
    }

    .dm-sp-service-item {
        min-width: calc(33.33% - 12px) !important;
        font-size: 11px !important;
    }

    /* اسلایدر مشابه */
    .dm-sp-related { padding: 0 16px !important; }

    /* Anchor nav */
    .dm-sp-anchor-nav {
        margin: 0 !important;
        border-radius: 0 !important;
    }

    /* Specs table */
    .dm-sp-specs-section {
        padding: 0 16px !important;
    }

    /* Reviews */
    .dm-sp-reviews-section {
        padding: 0 16px !important;
    }

    /* Hint متن انتخاب variation */
    .dm-sp-select-hint {
        font-size: 11px !important;
    }

    /* WooCommerce variation price */
    .woocommerce-variation.single_variation .woocommerce-variation-price .price {
        font-size: 16px !important;
    }
}

/* ════════════════════════════════════════════
   WAITLIST BUTTON — سازگاری با افزونه dm-product-engagement
   ════════════════════════════════════════════ */
.dm-sp-var-waitlist,
.dm-sp-buy-btns .dm-waitlist-btn-wrap,
.dm-sp-buy-btns [class*="dm-waitlist"],
.dm-sp-buy-btns [class*="waitlist"] {
    width: 100%;
}
/* دکمه خود افزونه رو به استایل قالب هماهنگ کن */
.dm-sp-var-waitlist a,
.dm-sp-var-waitlist button,
.dm-sp-buy-btns [class*="waitlist"] a,
.dm-sp-buy-btns [class*="waitlist"] button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 12px 8px;
    background: var(--dm-secondary, #2F2E96);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
    text-align: center;
}
.dm-sp-var-waitlist a:hover,
.dm-sp-var-waitlist button:hover,
.dm-sp-buy-btns [class*="waitlist"] a:hover,
.dm-sp-buy-btns [class*="waitlist"] button:hover { opacity: 0.88; }

/* ════════════════════════════════════════════
   SHARE TOOLTIP
   ════════════════════════════════════════════ */
.dm-sp-share-wrap {
    position: relative;
}

.dm-sp-share-tooltip {
    position: absolute;
    right: 48px;
    top: -6px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 140px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateX(6px);
    transition: opacity 0.18s, visibility 0.18s, transform 0.18s;
    pointer-events: none;
}

/* نگه داشتن tooltip با hover روی wrapper یا tooltip خودش */
.dm-sp-share-wrap:hover .dm-sp-share-tooltip,
.dm-sp-share-wrap:focus-within .dm-sp-share-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.dm-sp-share-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    width: 100%;
    text-align: right;
    direction: rtl;
}
.dm-sp-share-item:hover { background: #f5f5f5; color: #111; }
.dm-sp-share-item svg { flex-shrink: 0; color: #888; }
.dm-sp-share-item:nth-child(1) svg { color: #0088cc; }
.dm-sp-share-item:nth-child(2) svg { color: #25d366; }
.dm-sp-share-item:nth-child(3) svg { color: var(--dm-primary,#ff6600); }

/* ── Extra small ── */
@media (max-width: 360px) {
    .dm-sp-buy-btns {
        grid-template-columns: 1fr !important;
    }
    .dm-btn-cash, .dm-btn-installment {
        padding: 12px !important;
    }
}