/* ==========================================================
   Single Product Page Styles
   فقط روی صفحات محصول لود میشه — از single-product.php منتقل شد
   ========================================================== */

.site-header, #masthead, header.elementor-section { display: none !important; }

body {
    background-color: var(--bg-dark) !important;
    color: var(--text-primary, #ecfdf5) !important;
    overflow-x: hidden;
    font-family: 'Vazirmatn', sans-serif;
}

.glass-panel {
    background: color-mix(in srgb, var(--surface-dark) 60%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid color-mix(in srgb, var(--brand-500) 10%, transparent);
}

.glass-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border-radius: 1rem;
}

.plan-radio:checked + div {
    background: color-mix(in srgb, var(--brand-500) 10%, transparent);
    border-color: var(--brand-500);
    box-shadow: 0 0 20px -5px color-mix(in srgb, var(--brand-500) 30%, transparent);
}
.plan-radio:checked + div .check-icon { opacity: 1; transform: scale(1); }
.plan-radio:checked + div .plan-name { color: var(--brand-500); }

.tab-btn.active {
    color: var(--brand-500);
    border-bottom-color: var(--brand-500);
}

.no-scrollbar::-webkit-scrollbar { display: none; }

.woocommerce-variation-add-to-cart .quantity,
.woocommerce-variation-add-to-cart .single_add_to_cart_button,
form.cart .quantity,
form.cart .single_add_to_cart_button,
form.cart button[type="submit"] { display: none !important; }

.variations { display: none !important; }
form.cart { margin: 0 !important; padding: 0 !important; }

body.admin-bar header.fixed { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar header.fixed { top: 46px; } }
@media screen and (max-width: 600px) { body.admin-bar header.fixed { top: 0; } }

header.glass-panel {
    border-bottom: 1px solid color-mix(in srgb, var(--brand-500) 10%, transparent) !important;
    background: color-mix(in srgb, var(--surface-dark) 85%, transparent) !important;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

/* عنوان محصول */
.nestor-product-title {
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.5;
    color: #fff;
    letter-spacing: -0.01em;
}
.nestor-product-title em, .nestor-product-title span.highlight { color: var(--brand-400); font-style: normal; }

/* توضیح کوتاه */
.nestor-short-desc {
    display: flex; flex-direction: column; gap: .4rem;
    color: var(--text-secondary);
    font-size: clamp(.82rem, 1.2vw, .92rem);
    line-height: 1.85; margin-top: .75rem;
}
.nestor-short-desc p { margin: 0 0 .25rem; padding: 0; }
.nestor-short-desc ul, .nestor-short-desc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .3rem; }
.nestor-short-desc li { position: relative; padding-right: 1.4rem; font-size: .85rem; }
.nestor-short-desc li::before { content: "✓"; position: absolute; right: 0; top: 0; color: var(--brand-500); font-weight: 700; font-size: .8rem; }
.nestor-short-desc strong, .nestor-short-desc b { color: #fff; font-weight: 700; }
.nestor-short-desc a { color: var(--brand-400); text-decoration: underline; text-underline-offset: 3px; }

/* محتوای تب */
.nestor-tab-content { color: var(--text-secondary) !important; font-size: clamp(.92rem, 1.3vw, 1.05rem); line-height: 2.15; max-width: 64rem; margin-left: auto; margin-right: auto; direction: rtl; text-align: center; }
.nestor-tab-content h2, .nestor-tab-content h3, .nestor-tab-content h4 { color: #fff !important; font-weight: 800; margin: 2.5rem 0 1rem; line-height: 1.4; text-align: center; }
.nestor-tab-content h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.nestor-tab-content h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.nestor-tab-content h4 { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--brand-400) !important; }
.nestor-tab-content p { margin-bottom: 1.2rem; color: var(--text-secondary) !important; text-align: center; }
.nestor-tab-content ul, .nestor-tab-content ol { margin: 1rem auto; padding: 0; list-style: none; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.nestor-tab-content li { position: relative; padding-right: 1.8rem; line-height: 1.9; color: var(--text-secondary) !important; text-align: right; max-width: 42rem; width: 100%; }
.nestor-tab-content li::before { content: ""; position: absolute; right: 0; top: .65rem; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 8px rgba(var(--brand-rgb), .4); }
.nestor-tab-content strong, .nestor-tab-content b { color: #fff !important; font-weight: 700; }
.nestor-tab-content a { color: var(--brand-400) !important; text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.nestor-tab-content a:hover { color: var(--brand-500) !important; }
.nestor-tab-content img { border-radius: 1rem; margin: 2rem auto; max-width: 100%; border: 1px solid rgba(255,255,255,.06); }
.nestor-tab-content div[style*="background"], .nestor-tab-content .wp-block-group, .nestor-tab-content .wp-block-column, .nestor-tab-content .wp-block-cover { background: rgba(var(--brand-rgb), .04) !important; border: 1px solid rgba(var(--brand-rgb), .15) !important; border-radius: 1.25rem !important; padding: 1.5rem 2rem !important; margin: 2rem auto !important; max-width: 56rem; color: var(--text-secondary) !important; text-align: center; }
.nestor-tab-content div[style*="background"] *, .nestor-tab-content .wp-block-group *, .nestor-tab-content .wp-block-column * { color: inherit !important; background: transparent !important; }
.nestor-tab-content div[style*="background"] strong, .nestor-tab-content .wp-block-group strong { color: #fff !important; }
.nestor-tab-content div[style*="background"] h2, .nestor-tab-content div[style*="background"] h3, .nestor-tab-content div[style*="background"] h4, .nestor-tab-content .wp-block-group h2, .nestor-tab-content .wp-block-group h3, .nestor-tab-content .wp-block-group h4 { color: var(--brand-400) !important; }
.nestor-tab-content blockquote { margin: 1.5rem 0; padding: 1.2rem 1.5rem; border-right: 4px solid var(--brand-500); background: rgba(var(--brand-rgb), .05) !important; border-radius: 0 .75rem .75rem 0; color: #fff !important; font-weight: 500; }
.nestor-tab-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.nestor-tab-content th, .nestor-tab-content td { padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.08); text-align: right; }
.nestor-tab-content th { background: rgba(var(--brand-rgb), .08) !important; color: #fff !important; font-weight: 700; }
.nestor-tab-content td { color: var(--text-secondary) !important; }
.nestor-tab-content hr { border: 0; height: 1px; background: rgba(255,255,255,.08); margin: 2.5rem 0; }
.nestor-tab-content .nestor-callout, .nestor-tab-content .wp-block-group.is-style-nestor-callout { margin: 2rem 0; padding: 1.5rem 2rem; border: 1px solid rgba(var(--brand-rgb), .2) !important; border-radius: 1.25rem !important; background: linear-gradient(135deg, rgba(var(--brand-rgb), .06), transparent) !important; }

/* ویژگی‌ها */
.nestor-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 639px) {
    .nestor-features-grid { grid-template-columns: 1fr; }
    .nestor-product-title { font-size: 1.2rem; }
}
.nestor-feature-item { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: .75rem; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05); transition: border-color .2s, background .2s; }
.nestor-feature-item:hover { border-color: rgba(var(--brand-rgb), .2); background: rgba(var(--brand-rgb), .04); }
.nestor-feature-item .icon-wrap { flex-shrink: 0; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .5rem; background: rgba(var(--brand-rgb), .1); color: var(--brand-500); }
.nestor-feature-item .icon-wrap svg { width: 1rem; height: 1rem; }
.nestor-feature-item span { font-size: .82rem; font-weight: 700; color: var(--text-secondary); }

/* قیمت */
.nestor-final-price { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; direction: rtl; }
.nestor-final-price .label { font-size: .7rem; color: var(--text-secondary); }
.nestor-final-price .amount { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; direction: rtl; }
.nestor-final-price del { color: var(--text-secondary); font-size: .75em; opacity: .6; text-decoration: line-through; }
.nestor-final-price ins { text-decoration: none; color: #fff; }

/* بج */
.nestor-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 999px; font-size: .72rem; font-weight: 800; border: 1px solid rgba(var(--brand-rgb), .2); background: rgba(var(--brand-rgb), .08); color: var(--brand-400); }

/* دکمه خرید */
.nestor-buy-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem 2rem; border: none; border-radius: .85rem; background: var(--brand-600); color: #fff; font-size: 1rem; font-weight: 800; cursor: pointer; box-shadow: 0 0 24px -6px rgba(var(--brand-rgb), .35); transition: transform .2s, box-shadow .2s, background .2s; }
.nestor-buy-btn:hover { background: var(--brand-500); transform: translateY(-2px); box-shadow: 0 6px 32px -4px rgba(var(--brand-rgb), .5); }
.nestor-buy-btn:active { transform: translateY(0); }
.nestor-buy-btn svg { width: 1.2rem; height: 1.2rem; }

/* دیدگاه‌ها */
.nestor-reviews-section { max-width: 64rem; }
.nestor-reviews-section .comments-area { color: var(--text-secondary); }
.nestor-reviews-section .title-comments, .nestor-reviews-section .comment-reply-title { color: #fff !important; font-size: 1.3rem; font-weight: 800; margin-bottom: 1.5rem; }
.nestor-reviews-section .comment-notes { color: var(--text-secondary); font-size: .82rem; margin-bottom: 1.5rem; opacity: .7; }
.nestor-reviews-section .logged-in-as { color: var(--text-secondary); font-size: .85rem; margin-bottom: 1rem; }
.nestor-reviews-section .logged-in-as a { color: var(--brand-400); }
.nestor-reviews-section .comment-list { list-style: none; padding: 0; margin: 0 0 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.nestor-reviews-section .comment-list li.comment { padding: 1.25rem 1.5rem; border: 1px solid rgba(255,255,255,.06); border-radius: 1rem; background: rgba(255,255,255,.02); }
.nestor-reviews-section .comment-list .comment-author { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.nestor-reviews-section .comment-list .comment-author img { width: 36px !important; height: 36px !important; border-radius: 50%; border: 2px solid rgba(var(--brand-rgb), .2); }
.nestor-reviews-section .comment-list .comment-author .fn, .nestor-reviews-section .comment-list .comment-author b { color: #fff !important; font-weight: 700; font-size: .9rem; }
.nestor-reviews-section .comment-list .comment-author .says { display: none; }
.nestor-reviews-section .comment-list .comment-metadata { font-size: .75rem; color: var(--text-secondary); opacity: .6; margin-bottom: .5rem; }
.nestor-reviews-section .comment-list .comment-metadata a { color: inherit !important; text-decoration: none; }
.nestor-reviews-section .comment-list .comment-content { color: var(--text-secondary); font-size: .9rem; line-height: 1.85; }
.nestor-reviews-section .comment-list .comment-content p { margin: 0; }
.nestor-reviews-section .comment-list .reply a { color: var(--brand-400); font-size: .78rem; font-weight: 700; }
.nestor-reviews-section .star-rating, .nestor-reviews-section .stars { color: #facc15 !important; }
.nestor-reviews-section .star-rating::before { color: rgba(255,255,255,.15) !important; }
.nestor-reviews-section .stars a { color: #facc15 !important; }
.nestor-reviews-section p.stars a::before { color: rgba(255,255,255,.2) !important; }
.nestor-reviews-section p.stars a.active::before, .nestor-reviews-section p.stars a:hover ~ a::before { color: #facc15 !important; }
.nestor-reviews-section .comment-form { display: flex; flex-direction: column; gap: 1.25rem; }
.nestor-reviews-section .comment-form label { display: block; color: #fff; font-size: .82rem; font-weight: 700; margin-bottom: .4rem; }
.nestor-reviews-section .comment-form label .required { color: var(--brand-400); }
.nestor-reviews-section .comment-form input[type="text"], .nestor-reviews-section .comment-form input[type="email"], .nestor-reviews-section .comment-form textarea { width: 100%; padding: .85rem 1.1rem; border: 1px solid rgba(255,255,255,.08); border-radius: .75rem; background: rgba(255,255,255,.03) !important; color: #fff !important; font-size: .9rem; font-family: inherit; line-height: 1.7; transition: border-color .2s, box-shadow .2s; outline: none; resize: vertical; }
.nestor-reviews-section .comment-form input:focus, .nestor-reviews-section .comment-form textarea:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .1); }
.nestor-reviews-section .comment-form textarea { min-height: 140px; }
.nestor-reviews-section .comment-form .form-submit { margin-top: .5rem; }
.nestor-reviews-section .comment-form .submit, .nestor-reviews-section .comment-form input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; padding: .85rem 2rem; border: none; border-radius: .75rem; background: var(--brand-600) !important; color: #fff !important; font-size: .9rem; font-weight: 800; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; box-shadow: 0 0 20px -6px rgba(var(--brand-rgb), .3); }
.nestor-reviews-section .comment-form .submit:hover, .nestor-reviews-section .comment-form input[type="submit"]:hover { background: var(--brand-500) !important; transform: translateY(-1px); box-shadow: 0 4px 24px -4px rgba(var(--brand-rgb), .4); }
.nestor-reviews-section .woocommerce-noreviews, .nestor-reviews-section .no-comments { color: var(--text-secondary); font-size: .9rem; text-align: center; padding: 2rem; border: 1px dashed rgba(255,255,255,.08); border-radius: 1rem; margin-bottom: 2rem; }

/* انیمیشن */
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.animate-fade-in-up { animation: fadeInUp .6s ease both; }

/* تب‌ها */
.nestor-tabs-wrapper { max-width: 56rem; margin-left: auto; margin-right: auto; }
