/* طراحی فارسی صفحه محصول کیهان - نسخه ۱، اصلاح ابعاد و ریسپانسیو */
body.kppd-product-page-active { direction: rtl; }

/* حذف فاصله اضافه وودمارت فقط وقتی نوار شناور پایین افزونه غیرفعال است */
@media (min-width: 769px) {
  body.kppd-product-page-active.kppd-sticky-bar-disabled.wd-sticky-btn-on {
    padding-bottom: 0 !important;
    --wd-sticky-btn-height: 0px !important;
  }
}

@media (min-width: 1025px) {
  body.kppd-product-page-active.kppd-sticky-bar-disabled.admin-bar {
    --wd-admin-bar-h: 0px !important;
  }
}

body.kppd-product-page-active.kppd-sticky-bar-disabled .kppd-sticky-bar {
  display: none !important;
}

body.kppd-product-page-active.kppd-sticky-bar-disabled .kppd-page {
  margin-bottom: 24px !important;
}

/* مخفی‌سازی خروجی‌های پیش‌فرض قالب/وودمارت/ووکامرس که نباید کنار قالب اختصاصی دیده شوند */
body.kppd-product-page-active .product_meta,
body.kppd-product-page-active .woocommerce-tabs,
body.kppd-product-page-active .summary.entry-summary,
body.kppd-product-page-active .woodmart-single-product-summary,
body.kppd-product-page-active .wd-single-product-summary,
body.kppd-product-page-active .single-product-content:not(.kppd-product),
body.kppd-product-page-active .single-product-page > .container > .product:not(.kppd-product),
body.kppd-product-page-active .wd-single-product-content:not(.kppd-product),
body.kppd-product-page-active .product-image-summary:not(.kppd-hero),
body.kppd-product-page-active .product-tabs-wrapper:not(.kppd-tabs-section),
body.kppd-product-page-active .related-and-upsells,
body.kppd-product-page-active .related.products:not(.kppd-related-products),
body.kppd-product-page-active .up-sells,
body.kppd-product-page-active .cross-sells { display:none !important; }

body.kppd-product-page-active .woodmart-sticky-btn,
body.kppd-product-page-active .wd-sticky-btn,
body.kppd-product-page-active .wd-sticky-add-to-cart,
body.kppd-product-page-active .sticky-add-to-cart,
body.kppd-product-page-active .woocommerce-sticky-add-to-cart,
body.kppd-product-page-active .wd-sticky-btn-cart,
body.kppd-product-page-active .wd-sticky-spacer,
body.kppd-product-page-active .product-add-to-cart-sticky,
body.kppd-product-page-active .wd-sticky-atc,
body.kppd-product-page-active .wd-product-sticky,
body.kppd-product-page-active .sticky-product-bar:not(.kppd-sticky-bar),
body.kppd-product-page-active .product-sticky-bar:not(.kppd-sticky-bar),
body.kppd-product-page-active .wd-toolbar[class*="sticky"] { display:none !important; visibility:hidden !important; opacity:0 !important; pointer-events:none !important; height:0 !important; overflow:hidden !important; }

.kppd-page, .kppd-page * { box-sizing:border-box; }
.kppd-page { width:min(var(--kppd-max-width,1240px), calc(100% - 48px)); margin:18px auto 116px; color:#111827; direction:rtl; font-family:inherit; font-size:14px; line-height:1.8; }
.kppd-page img { max-width:100%; height:auto; }
.kppd-breadcrumb { margin:4px 0 16px; color:#98a1ad; font-size:12px; line-height:1.8; }
.kppd-breadcrumb a { color:#98a1ad; text-decoration:none; }
.kppd-breadcrumb-sep { display:inline-flex; margin:0 8px; color:#c4cad3; }

.kppd-hero { display:grid; grid-template-columns:minmax(0,1fr) 420px; grid-template-areas:"gallery info"; gap:22px; align-items:stretch; direction:rtl; }
.kppd-info-card, .kppd-gallery-card, .kppd-palette-panel, .kppd-tabs-section { background:#fff; border:1px solid #eef0f4; border-radius:22px; box-shadow:0 10px 30px rgba(15,23,42,.045); direction:rtl; }
.kppd-info-card { grid-area:info; position:relative; padding:24px 24px 20px; display:flex; flex-direction:column; min-height:520px; }
.kppd-gallery-card { grid-area:gallery; padding:16px; min-height:520px; }

.kppd-next-product { position:absolute; top:22px; left:22px; width:42px; height:42px; border-radius:14px; border:1px solid #edf0f5; background:#fff; color:#111827; display:inline-flex; align-items:center; justify-content:center; text-decoration:none !important; box-shadow:0 6px 16px rgba(15,23,42,.06); z-index:2; }
.kppd-next-product svg { width:22px; height:22px; fill:currentColor; }
.kppd-next-product:hover { color:var(--kppd-primary,#f26722); border-color:rgba(255,91,24,.35); }

.kppd-category-pill { align-self:flex-start; display:inline-flex; gap:6px; align-items:center; background:#fff8f2; color:var(--kppd-primary,#f26722); border:1px solid rgba(255,91,24,.24); padding:6px 12px; border-radius:999px; font-size:12px; margin:0 0 15px; max-width:calc(100% - 58px); line-height:1.7; }
.kppd-category-pill a { color:var(--kppd-primary,#f26722); text-decoration:none; font-weight:800; }
.kppd-title { font-size:clamp(24px,2vw,32px); line-height:1.5; margin:0 0 12px; font-weight:900; color:#111827; letter-spacing:-.3px; }
.kppd-short-description { color:#626b78; font-size:13.5px; line-height:2; margin-bottom:20px; text-align:center; }
.kppd-short-description p { margin:0; }

.kppd-benefits { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:4px 0 20px; border-top:1px solid #f0f2f6; border-bottom:1px solid #f0f2f6; padding:15px 0; }
.kppd-benefit-item { min-width:0; text-align:center; color:#5f6672; font-size:11.5px; line-height:1.65; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:8px; }
.kppd-benefit-icon { width:40px; height:40px; border-radius:14px; border:1px solid #edf0f5; display:inline-flex; align-items:center; justify-content:center; background:#fff; color:var(--kppd-primary,#f26722); flex:0 0 auto; }
.kppd-benefit-icon svg, .kppd-service-box svg, .kppd-consult-button svg, .kppd-sticky-cta svg { width:20px; height:20px; fill:currentColor; }
.kppd-benefit-text { min-height:34px; display:flex; align-items:center; justify-content:center; }

.kppd-price-stack { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; margin-top:auto; margin-bottom:14px; text-align:center; }
.kppd-price { font-weight:900; font-size:24px; color:var(--kppd-primary,#f26722); line-height:1.35; }
.kppd-price del { color:#a3a8b2; font-size:13px; margin-inline-end:8px; }
.kppd-price ins { text-decoration:none; }
.kppd-stock { font-weight:800; color:#22a35b; font-size:12.5px; white-space:nowrap; }
.kppd-stock.is-out-of-stock { color:#d33; }

.kppd-add-to-cart { margin-bottom:11px; }
.kppd-add-to-cart form.cart { display:flex !important; gap:10px; align-items:center; flex-wrap:wrap; margin:0 !important; }
.kppd-add-to-cart .quantity, .kppd-add-to-cart .qty, .kppd-add-to-cart .quantity-button { display:none !important; }
.kppd-add-to-cart .single_add_to_cart_button, .kppd-add-to-cart button.single_add_to_cart_button { flex:1 1 100%; width:100%; min-height:54px; border:0 !important; border-radius:14px !important; background:linear-gradient(135deg,var(--kppd-primary,#f26722),#ff3f12) !important; color:#fff !important; font-weight: var(--kppd-strong-weight, 600) !important; font-size:15.5px !important; box-shadow:0 10px 22px rgba(255,96,21,.20); line-height:1 !important; padding:0 20px !important; }
.kppd-add-to-cart .variations { width:100%; margin-bottom:10px; border:0 !important; }
.kppd-add-to-cart .variations td, .kppd-add-to-cart .variations th { padding:7px 0; text-align:right; border:0 !important; background:transparent !important; }
.kppd-add-to-cart select, .kppd-add-to-cart input.qty { border:1px solid #e5e7eb !important; border-radius:12px !important; min-height:42px; padding:0 12px; background:#fff !important; }

.kppd-consult-button { min-height:50px; border-radius:14px; border:1px solid #e7e9ef; display:flex; align-items:center; justify-content:center; gap:9px; color:#2f343c; text-decoration:none !important; font-weight:850; margin-bottom:16px; background:#fff; font-size:14px; }
.kppd-services { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.kppd-service-box { border:1px solid #edf0f5; border-radius:15px; padding:11px 7px; min-height:78px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:7px; text-align:center; background:#fbfcfe; color:var(--kppd-primary,#f26722); }
.kppd-service-box strong { font-size:11.5px; line-height:1.65; color:#343a43; }

.kppd-gallery-shell { display:grid; grid-template-columns:84px 1fr; gap:16px; height:464px; direction:rtl; }
.kppd-thumbs { display:flex; flex-direction:column; gap:12px; overflow:auto; padding-left:3px; }
.kppd-thumb { width:78px; height:78px; border:1px solid #eef0f4; border-radius:0; background:#f7f7f7; padding:6px; cursor:pointer; overflow:hidden; transition:border-color .18s ease, box-shadow .18s ease; }
.kppd-thumb.is-active, .kppd-thumb:hover { border-color:var(--kppd-primary,#f26722); box-shadow:inset 0 0 0 1px var(--kppd-primary,#f26722); }
.kppd-thumb img { width:100%; height:100%; object-fit:contain; display:block; }
.kppd-main-image-wrap { position:relative; background:#f7f7f7; border-radius:18px; height:100%; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.kppd-main-image, .kppd-main-image-wrap > img { width:100%; height:100%; object-fit:contain; padding:24px; transition:transform .25s ease, opacity .18s ease; }
.kppd-main-image.is-rotating { transform:rotateY(180deg); }
.kppd-gallery-nav { position:absolute; top:50%; transform:translateY(-50%); z-index:3; width:44px; height:54px; border:0; background:rgba(255,255,255,.90); color:#111827; border-radius:16px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 8px 24px rgba(15,23,42,.08); padding:0; }
.kppd-gallery-nav svg { width:28px; height:28px; fill:currentColor; }
.kppd-gallery-prev { right:14px; }
.kppd-gallery-next { left:14px; }
.kppd-gallery-nav:hover { color:var(--kppd-primary,#f26722); }
.kppd-gallery-tools { display:flex; justify-content:center; gap:12px; margin-top:14px; }
.kppd-tool-button { border:1px solid #edf0f5; background:#fff; border-radius:0; padding:9px 15px; color:#4b5563; cursor:pointer; font-size:12.5px; font-weight:800; }

.kppd-palette-panel { margin-top:22px; padding:20px 22px; display:grid; grid-template-columns:220px minmax(0,1fr); gap:22px; align-items:start; }
.kppd-palette-heading h2 { margin:0 0 7px; font-size:20px; font-weight:900; color:#111827; }
.kppd-palette-heading p { margin:0; font-size:12.5px; color:#777f8d; line-height:1.9; }
.kppd-palette-content { min-height:60px; width:100%; }
.kppd-palette-empty { width:100%; border:1px dashed #e5e7eb; border-radius:14px; padding:14px; color:#7b8491; font-size:13px; background:#fbfcfe; }
.kppd-palette-content .occp-palettes { margin:0 !important; clear:none !important; }
.kppd-palette-content .occp-palette { margin:0 0 14px !important; padding:14px !important; border-radius:16px !important; box-shadow:none !important; }
.kppd-palette-content .occp-palette-title { font-size:14px !important; }
.kppd-palette-content .occp-color-grid { gap:9px !important; grid-template-columns:repeat(auto-fill,minmax(76px,1fr)) !important; }
.kppd-palette-content .occp-color-card { border-radius:14px !important; padding:7px 5px !important; }
.kppd-palette-content .occp-color-image { width:48px !important; height:48px !important; }
.kppd-palette-content .occp-color-name { font-size:10.5px !important; }
.kppd-palette-content .occp-color-sku { font-size:11px !important; }

.kppd-tabs-section { margin-top:26px; padding:0; overflow:hidden; }
.kppd-tabs-nav { display:flex; justify-content:center; gap:38px; border-bottom:1px solid #eef0f4; padding:0 22px; background:#fff; }
.kppd-tabs-nav button { position:relative; border:0; background:transparent; padding:18px 4px 16px; font-size:15.5px; font-weight:900; color:#111827; cursor:pointer; line-height:1.4; }
.kppd-tabs-nav button::after { content:""; position:absolute; right:0; left:0; bottom:-1px; height:3px; border-radius:999px; background:transparent; }
.kppd-tabs-nav button.is-active::after { background:var(--kppd-primary,#f26722); }
.kppd-tab-panel { display:none; border:0; box-shadow:none; border-radius:0; padding:38px 52px 48px; min-height:280px; background:#fff; direction:rtl; }
.kppd-tab-panel.is-active { display:block; }
.kppd-tab-panel h2 { margin:0 0 20px; font-size:26px; font-weight:900; color:#111827; }
.kppd-description-content { color:#555d69; line-height:2.2; font-size:14.5px; }
.kppd-description-content h2, .kppd-description-content h3 { color:#1f2937; margin-top:24px; }

.kppd-attributes-box { width:100%; overflow:visible !important; }
.kppd-attributes-box table.shop_attributes, .kppd-attributes-box table.woocommerce-product-attributes { display:table !important; width:100% !important; max-width:100% !important; table-layout:fixed !important; border-collapse:separate !important; border-spacing:0 !important; border:1px solid #eef0f4 !important; border-radius:18px !important; overflow:hidden !important; background:#fff !important; margin:0 !important; direction:rtl !important; }
.kppd-attributes-box table.shop_attributes tbody, .kppd-attributes-box table.woocommerce-product-attributes tbody { display:table-row-group !important; width:100% !important; }
.kppd-attributes-box table.shop_attributes tr, .kppd-attributes-box table.woocommerce-product-attributes tr { display:table-row !important; background:#fff !important; }
.kppd-attributes-box table.shop_attributes th, .kppd-attributes-box table.shop_attributes td, .kppd-attributes-box table.woocommerce-product-attributes th, .kppd-attributes-box table.woocommerce-product-attributes td { display:table-cell !important; border:0 !important; border-bottom:1px solid #eef0f4 !important; padding:14px 18px !important; text-align:right !important; vertical-align:middle !important; font-size:13.5px !important; height:auto !important; min-height:0 !important; line-height:1.9 !important; white-space:normal !important; overflow:visible !important; text-overflow:clip !important; word-break:normal !important; }
.kppd-attributes-box table.shop_attributes tr:last-child th, .kppd-attributes-box table.shop_attributes tr:last-child td, .kppd-attributes-box table.woocommerce-product-attributes tr:last-child th, .kppd-attributes-box table.woocommerce-product-attributes tr:last-child td { border-bottom:0 !important; }
.kppd-attributes-box table.shop_attributes th, .kppd-attributes-box table.woocommerce-product-attributes th { width:32% !important; color:#111827 !important; font-weight: var(--kppd-strong-weight, 600) !important; background:#fbfcfe !important; }
.kppd-attributes-box table.shop_attributes td, .kppd-attributes-box table.woocommerce-product-attributes td { width:68% !important; color:#4b5563 !important; background:#fff !important; }
.kppd-attributes-box p { margin:0 !important; padding:0 !important; }

.kppd-reviews-box #reviews, .kppd-reviews-box #comments, .kppd-reviews-box #review_form_wrapper { max-width:100%; }
.kppd-reviews-box .commentlist { padding:0; margin:0 0 26px; list-style:none; }
.kppd-reviews-box .comment_container, .kppd-reviews-box .review { border:1px solid #eef0f4; border-radius:16px; padding:16px; margin-bottom:14px; background:#fff; }
.kppd-reviews-box textarea, .kppd-reviews-box input[type=text], .kppd-reviews-box input[type=email] { width:100%; border:1px solid #e5e7eb; border-radius:13px; padding:11px 14px; background:#fff; }
.kppd-reviews-box .form-submit input, .kppd-reviews-box button, .kppd-reviews-box input[type=submit] { min-height:44px; border:0; border-radius:13px; background:var(--kppd-primary,#f26722) !important; color:#fff !important; font-weight:900; padding:0 24px; }
.kppd-reviews-box .comment-reply-title { font-weight:900; font-size:19px; }
.kppd-empty-reviews { color:#7b8491; background:#fbfcfe; border:1px dashed #e5e7eb; border-radius:14px; padding:16px; }

.kppd-sticky-bar { position:fixed; right:max(18px,calc((100vw - var(--kppd-max-width,1240px))/2)); left:max(18px,calc((100vw - var(--kppd-max-width,1240px))/2)); bottom:14px; z-index:999999; min-height:72px; background:rgba(255,255,255,.98); backdrop-filter:blur(12px); border:1px solid #edf0f5; border-radius:18px; box-shadow:0 12px 35px rgba(15,23,42,.13); display:flex; align-items:center; gap:12px; padding:9px 14px; direction:rtl; opacity:0; transform:translateY(16px); pointer-events:none; transition:opacity .2s ease, transform .2s ease; }
.kppd-sticky-bar.is-visible { opacity:1; transform:translateY(0); pointer-events:auto; }
.kppd-sticky-actions { display:flex; gap:6px; align-items:center; order:1; }
.kppd-sticky-icon { width:38px; height:46px; border:0; background:#fff; color:#20242a; font-size:22px; cursor:pointer; padding:0; }
.kppd-sticky-cta { order:2; min-width:160px; height:50px; border-radius:14px; background:linear-gradient(135deg,var(--kppd-primary,#f26722),#ff3f12); color:#fff !important; display:inline-flex; justify-content:center; align-items:center; gap:8px; text-decoration:none !important; font-weight:900; box-shadow:0 10px 24px rgba(255,96,21,.22); font-size:14px; }
.kppd-sticky-related-list { order:3; display:flex; align-items:center; gap:9px; min-width:0; flex:1; overflow:hidden; }
.kppd-sticky-heading { order:4; font-weight:900; color:#171a1f; white-space:nowrap; font-size:13.5px; padding-inline:6px; }
.kppd-sticky-current-thumb { order:5; width:54px; height:54px; border-radius:14px; background:#f7f7f7; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.kppd-sticky-current-thumb img { width:100%; height:100%; object-fit:contain; }
.kppd-sticky-related-item { min-width:0; flex:1; max-width:198px; display:flex; align-items:center; gap:8px; border:1px solid #eef0f4; border-radius:14px; padding:6px; text-decoration:none !important; color:#222; background:#fff; }
.kppd-sticky-related-thumb { width:44px; height:44px; border-radius:11px; overflow:hidden; background:#f7f7f7; flex:0 0 auto; }
.kppd-sticky-related-thumb img { width:100%; height:100%; object-fit:contain; }
.kppd-sticky-related-info { display:flex; flex-direction:column; gap:3px; min-width:0; }
.kppd-sticky-related-info strong { font-size:11.5px; line-height:1.45; color:#20242a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kppd-sticky-related-info em { font-size:11.5px; color:var(--kppd-primary,#f26722); font-style:normal; font-weight:900; white-space:nowrap; }
.kppd-no-related { color:#7b8491; font-size:13px; }

.kppd-lightbox { position:fixed; inset:0; z-index:1000000; background:rgba(0,0,0,.82); display:flex; align-items:center; justify-content:center; padding:32px; }
.kppd-lightbox img { max-width:min(980px,94vw); max-height:88vh; object-fit:contain; }
.kppd-lightbox button { position:absolute; top:24px; left:24px; border:0; width:42px; height:42px; border-radius:50%; background:#fff; cursor:pointer; font-size:22px; }

@media (max-width:1120px){
  .kppd-hero{grid-template-columns:minmax(0,1fr) 380px; gap:18px;}
  .kppd-info-card{padding:22px 20px 18px;}
  .kppd-title{font-size:clamp(23px,2.1vw,29px);}
  .kppd-benefits{grid-template-columns:repeat(2,1fr);}
  .kppd-sticky-related-item:nth-child(n+3){display:none;}
}
@media (max-width:1024px){
  .kppd-page{width:min(100% - 28px,760px);}
  .kppd-hero{grid-template-columns:1fr; grid-template-areas:"gallery" "info";}
  .kppd-info-card,.kppd-gallery-card{min-height:auto;}
  .kppd-gallery-shell{height:430px;}
  .kppd-palette-panel{grid-template-columns:1fr;}
  .kppd-sticky-heading,.kppd-sticky-current-thumb{display:none;}
}
@media (max-width:768px){
  .kppd-page{width:calc(100% - 24px); margin-top:14px; margin-bottom:172px; font-size:13.5px;}
  .kppd-info-card,.kppd-gallery-card,.kppd-palette-panel,.kppd-tabs-section{border-radius:18px;}
  .kppd-info-card,.kppd-gallery-card,.kppd-palette-panel{padding:15px;}
  .kppd-category-pill{max-width:calc(100% - 58px); font-size:11.5px;}
  .kppd-title{font-size:clamp(21px,6vw,27px); line-height:1.55;}
  .kppd-short-description{text-align:right; font-size:13px; margin-bottom:16px;}
  .kppd-benefits,.kppd-services{grid-template-columns:repeat(2,1fr);}
  .kppd-benefit-icon{width:38px;height:38px;}
  .kppd-price{font-size:22px;}
  .kppd-gallery-shell{grid-template-columns:1fr; height:auto;}
  .kppd-main-image-wrap{height:340px;}
  .kppd-main-image,.kppd-main-image-wrap > img{padding:18px;}
  .kppd-thumbs{flex-direction:row; order:2; padding:0 0 4px;}
  .kppd-thumb{width:70px;height:70px;flex:0 0 auto;}
  .kppd-gallery-nav{width:40px;height:50px;border-radius:14px;}
  .kppd-gallery-nav svg{width:25px;height:25px;}
  .kppd-gallery-tools{flex-wrap:wrap;}
  .kppd-tabs-nav{overflow-x:auto; justify-content:flex-start; gap:24px; padding:0 16px;}
  .kppd-tabs-nav button{font-size:14.5px; white-space:nowrap;}
  .kppd-tab-panel{padding:26px 18px 32px; min-height:220px;}
  .kppd-tab-panel h2{font-size:22px;}
  .kppd-attributes-box table.shop_attributes th,.kppd-attributes-box table.woocommerce-product-attributes th{width:42% !important;}
  .kppd-attributes-box table.shop_attributes td,.kppd-attributes-box table.woocommerce-product-attributes td{width:58% !important;}
  .kppd-sticky-bar{right:10px;left:10px;bottom:10px;flex-wrap:wrap;padding:9px;gap:9px;}
  .kppd-sticky-related-list{flex:1 1 100%;order:1;overflow-x:auto;padding-bottom:3px;}
  .kppd-sticky-related-item{flex:0 0 205px;max-width:none;}
  .kppd-sticky-cta{order:2;flex:1;min-width:auto;height:48px;}
  .kppd-sticky-actions{order:3;}
}
@media (max-width:480px){
  .kppd-page{width:calc(100% - 16px); margin-bottom:182px;}
  .kppd-main-image-wrap{height:290px;}
  .kppd-benefits,.kppd-services{gap:8px;}
  .kppd-service-box{min-height:72px;}
  .kppd-palette-content .occp-color-grid{grid-template-columns:repeat(auto-fill,minmax(68px,1fr)) !important;}
  .kppd-add-to-cart .single_add_to_cart_button,.kppd-add-to-cart button.single_add_to_cart_button{min-height:50px;font-size:14.5px !important;}
  .kppd-consult-button{min-height:48px;}
  .kppd-sticky-related-item{flex-basis:190px;}
}

/* اصلاحات نسخه ۱: تناسب هرو، گالری، پالت رنگ و مسیر راهنما */
body.kppd-product-page-active .kppd-page .kppd-hero{
  grid-template-columns:minmax(0,58%) minmax(430px,42%);
  gap:18px;
  align-items:stretch;
}
body.kppd-product-page-active .kppd-page .kppd-info-card,
body.kppd-product-page-active .kppd-page .kppd-gallery-card{
  min-height:0 !important;
  height:100%;
}
body.kppd-product-page-active .kppd-page .kppd-gallery-card{
  display:flex;
  flex-direction:column;
  padding:14px;
}
body.kppd-product-page-active .kppd-page .kppd-gallery-shell{
  flex:1 1 auto;
  min-height:0;
  height:auto !important;
  grid-template-columns:76px minmax(0,1fr);
  gap:13px;
}
body.kppd-product-page-active .kppd-page .kppd-main-image-wrap{
  min-height:0;
  height:100%;
}
body.kppd-product-page-active .kppd-page .kppd-main-image,
body.kppd-product-page-active .kppd-page .kppd-main-image-wrap > img{
  padding:20px;
}
body.kppd-product-page-active .kppd-page .kppd-thumb{
  width:70px;
  height:70px;
  padding:5px;
}
body.kppd-product-page-active .kppd-page .kppd-gallery-tools{
  flex:0 0 auto;
  margin-top:12px;
}
body.kppd-product-page-active .kppd-page .kppd-gallery-nav{
  top:50% !important;
  width:58px;
  height:66px;
  border-radius:18px;
  background:rgba(255,255,255,.96);
  color:#111827;
  box-shadow:0 10px 28px rgba(15,23,42,.12);
}
body.kppd-product-page-active .kppd-page .kppd-gallery-nav svg{
  width:38px;
  height:38px;
}
body.kppd-product-page-active .kppd-page .kppd-gallery-prev{right:18px;}
body.kppd-product-page-active .kppd-page .kppd-gallery-next{left:18px;}

/* حذف موجودی اضافه ووکامرس داخل فرم خرید؛ موجودی اختصاصی کیهان باقی می‌ماند */
body.kppd-product-page-active .kppd-add-to-cart p.stock,
body.kppd-product-page-active .kppd-add-to-cart .stock,
body.kppd-product-page-active .kppd-add-to-cart .woocommerce-variation-availability,
body.kppd-product-page-active .kppd-add-to-cart .availability,
body.kppd-product-page-active .kppd-add-to-cart .in-stock,
body.kppd-product-page-active .kppd-add-to-cart .out-of-stock{
  display:none !important;
}

/* مسیر راهنما خواناتر با جداکننده مشخص */
.kppd-breadcrumb{display:flex;align-items:center;justify-content:flex-start;gap:0;font-size:12.5px;}
.kppd-breadcrumb-inner{display:flex;align-items:center;gap:0;flex-wrap:wrap;}
.kppd-breadcrumb-sep{font-weight:900;color:#c5cad3;margin:0 9px;font-size:16px;line-height:1;}
.kppd-breadcrumb a{color:#8b95a3 !important;}

/* پالت رنگ: حذف تیتر بیرونی، چیدمان خودکار، دکمه وسط و بزرگنمایی */
body.kppd-product-page-active .kppd-page .kppd-palette-panel{
  display:block;
  padding:18px 22px 20px;
  margin-top:22px;
}
body.kppd-product-page-active .kppd-page .kppd-palette-heading{display:none !important;}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-palettes{margin:0 !important;}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-palette{
  margin:0 0 16px !important;
  padding:12px 0 0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-palette:last-child{margin-bottom:0 !important;}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-palette-header{
  margin-bottom:10px !important;
  justify-content:flex-start !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-palette-title{font-size:14px !important;font-weight: var(--kppd-strong-weight, 600) !important;}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-selected-label{font-size:11.5px !important;padding:5px 9px !important;}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(78px,1fr)) !important;
  gap:10px !important;
  align-items:stretch;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-card{
  min-height:96px !important;
  border-radius:14px !important;
  padding:7px 5px 8px !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-image{
  width:50px !important;
  height:50px !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-show-more{
  display:block !important;
  margin:14px auto 0 !important;
  min-width:150px;
  border:1px solid #e7e9ef !important;
  background:#fff !important;
  color:#111827 !important;
  border-radius:999px !important;
  padding:8px 18px !important;
  font-size:12.5px !important;
  font-weight: var(--kppd-strong-weight, 600) !important;
  cursor:pointer;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-auto-hidden{display:none !important;}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-zoom{
  position:absolute;
  right:6px;
  bottom:6px;
  width:24px;
  height:24px;
  border-radius:50%;
  border:1px solid #e5e7eb;
  background:rgba(255,255,255,.95);
  color:#111827;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  line-height:1;
  cursor:pointer;
  z-index:4;
  padding:0;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-zoom:hover{color:var(--kppd-primary,#f26722);border-color:rgba(255,91,24,.35);}

@media (max-width:1120px){
  body.kppd-product-page-active .kppd-page .kppd-hero{grid-template-columns:minmax(0,55%) minmax(390px,45%);}
}
@media (max-width:1024px){
  body.kppd-product-page-active .kppd-page .kppd-hero{grid-template-columns:1fr;grid-template-areas:"gallery" "info";}
  body.kppd-product-page-active .kppd-page .kppd-gallery-shell{height:420px !important;}
}
@media (max-width:768px){
  body.kppd-product-page-active .kppd-page .kppd-gallery-shell{grid-template-columns:1fr;height:auto !important;}
  body.kppd-product-page-active .kppd-page .kppd-main-image-wrap{height:330px;}
  body.kppd-product-page-active .kppd-page .kppd-gallery-nav{width:48px;height:58px;border-radius:16px;}
  body.kppd-product-page-active .kppd-page .kppd-gallery-nav svg{width:32px;height:32px;}
  body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-grid{grid-template-columns:repeat(auto-fit,minmax(72px,1fr)) !important;}
}
@media (max-width:480px){
  body.kppd-product-page-active .kppd-page .kppd-main-image-wrap{height:285px;}
  body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-grid{grid-template-columns:repeat(auto-fit,minmax(66px,1fr)) !important;}
  body.kppd-product-page-active .kppd-page .kppd-gallery-nav{width:44px;height:52px;}
  body.kppd-product-page-active .kppd-page .kppd-gallery-nav svg{width:28px;height:28px;}
}

/* اصلاح دقیق‌تر: مسیر راهنما، فلش گالری، و پالت رنگ تک‌ردیفی */
body.kppd-product-page-active .kppd-breadcrumb{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  margin:2px 0 14px !important;
  color:#8b95a3 !important;
  font-size:12.5px !important;
  white-space:normal !important;
}
body.kppd-product-page-active .kppd-breadcrumb-inner{
  display:flex !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:0 !important;
}
body.kppd-product-page-active .kppd-breadcrumb a,
body.kppd-product-page-active .kppd-breadcrumb-current{
  color:#8b95a3 !important;
  text-decoration:none !important;
  line-height:1.8 !important;
}
body.kppd-product-page-active .kppd-breadcrumb-sep{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 9px !important;
  color:#c1c8d2 !important;
  font-size:22px !important;
  font-weight: var(--kppd-strong-weight, 600) !important;
  line-height:1 !important;
  transform:translateY(-1px) !important;
}

body.kppd-product-page-active .kppd-page .kppd-gallery-nav{
  top:50% !important;
  transform:translateY(-50%) !important;
  width:76px !important;
  height:96px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#0f172a !important;
  opacity:1 !important;
  visibility:visible !important;
  z-index:20 !important;
}
body.kppd-product-page-active .kppd-page .kppd-gallery-nav svg{
  width:62px !important;
  height:62px !important;
  filter:drop-shadow(0 4px 8px rgba(255,255,255,.9));
}
body.kppd-product-page-active .kppd-page .kppd-gallery-prev{right:6px !important;left:auto !important;}
body.kppd-product-page-active .kppd-page .kppd-gallery-next{left:6px !important;right:auto !important;}
body.kppd-product-page-active .kppd-page .kppd-gallery-nav:hover{color:var(--kppd-primary,#f26722) !important;}

/* پالت رنگ: حالت پیش‌فرض فقط یک ردیف، حالت باز همه رنگ‌ها */
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-grid{
  display:flex !important;
  gap:12px !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  width:100% !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-palette:not(.is-expanded) .occp-color-grid{
  flex-wrap:nowrap !important;
  overflow:hidden !important;
  max-height:112px !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-palette.is-expanded .occp-color-grid{
  flex-wrap:wrap !important;
  overflow:visible !important;
  max-height:none !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-option{
  flex:0 0 82px !important;
  width:82px !important;
  min-width:82px !important;
  max-width:82px !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-auto-hidden,
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-hidden-color{
  display:block !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-card{
  position:relative !important;
  min-height:108px !important;
  height:108px !important;
  padding:7px 5px 6px !important;
  overflow:hidden !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-image{
  width:54px !important;
  height:54px !important;
  margin:0 auto 5px !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-info{
  display:block !important;
  min-height:32px !important;
  padding:0 0 0 !important;
  overflow:hidden !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-sku,
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-name{
  display:block !important;
  max-width:100% !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  font-size:10.5px !important;
  line-height:1.45 !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-zoom{
  right:auto !important;
  left:5px !important;
  top:48px !important;
  bottom:auto !important;
  width:22px !important;
  height:22px !important;
  font-size:14px !important;
  z-index:6 !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-show-more{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  margin:18px auto 0 !important;
  min-width:160px !important;
}
@media (max-width:768px){
  body.kppd-product-page-active .kppd-page .kppd-gallery-nav{width:60px !important;height:78px !important;}
  body.kppd-product-page-active .kppd-page .kppd-gallery-nav svg{width:48px !important;height:48px !important;}
  body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-option{flex-basis:76px !important;width:76px !important;min-width:76px !important;max-width:76px !important;}
}
@media (max-width:480px){
  body.kppd-product-page-active .kppd-page .kppd-gallery-nav{width:52px !important;height:68px !important;}
  body.kppd-product-page-active .kppd-page .kppd-gallery-nav svg{width:42px !important;height:42px !important;}
  body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-option{flex-basis:70px !important;width:70px !important;min-width:70px !important;max-width:70px !important;}
}


/* اصلاح هدر و سربرگ وودمارت در صفحه محصول اختصاصی کیهان */
body.kppd-product-page-active .whb-top-bar,
body.kppd-product-page-active .whb-header-top,
body.kppd-product-page-active .topbar-wrapp,
body.kppd-product-page-active .woodmart-top-bar,
body.kppd-product-page-active .wd-top-bar,
body.kppd-product-page-active #top-bar,
body.kppd-product-page-active .top-bar,
body.kppd-product-page-active .header-top,
body.kppd-product-page-active .site-topbar{
  display:none !important;
  visibility:hidden !important;
  height:0 !important;
  min-height:0 !important;
  max-height:0 !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  opacity:0 !important;
  overflow:hidden !important;
}

body.kppd-product-page-active .whb-header,
body.kppd-product-page-active .whb-main-header,
body.kppd-product-page-active .whb-general-header,
body.kppd-product-page-active .whb-header-bottom,
body.kppd-product-page-active .main-header,
body.kppd-product-page-active .site-header,
body.kppd-product-page-active header.header,
body.kppd-product-page-active .website-wrapper header{
  background:#fff !important;
  box-shadow:none !important;
  border-bottom:1px solid #f0f2f5 !important;
}

body.kppd-product-page-active .whb-row,
body.kppd-product-page-active .whb-general-header .whb-row,
body.kppd-product-page-active .whb-header-bottom .whb-row{
  min-height:62px !important;
  height:auto !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
}

body.kppd-product-page-active .whb-header-bottom,
body.kppd-product-page-active .whb-general-header{
  margin:0 !important;
}

body.kppd-product-page-active .whb-main-header .container,
body.kppd-product-page-active .whb-general-header .container,
body.kppd-product-page-active .whb-header-bottom .container{
  padding-top:0 !important;
  padding-bottom:0 !important;
}

/* حذف فرم جستجوی عریض داخل هدر و نگه داشتن آیکون جستجو */
body.kppd-product-page-active .whb-header .wd-search-form,
body.kppd-product-page-active .whb-header .searchform,
body.kppd-product-page-active .whb-header form.searchform,
body.kppd-product-page-active .whb-header .search-by-category,
body.kppd-product-page-active .whb-header .wd-header-search-form,
body.kppd-product-page-active .whb-header .woodmart-search-form{
  display:none !important;
}

body.kppd-product-page-active .kppd-header-actions{
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
  padding:0 12px !important;
  margin-inline-start:18px !important;
  background:#fff !important;
  border:0 !important;
  box-shadow:none !important;
  vertical-align:middle !important;
}

body.kppd-product-page-active .kppd-header-actions > *,
body.kppd-product-page-active .kppd-header-actions .wd-tools-element,
body.kppd-product-page-active .kppd-header-actions .woodmart-shopping-cart,
body.kppd-product-page-active .kppd-header-actions .woodmart-wishlist-info-widget,
body.kppd-product-page-active .kppd-header-actions .woodmart-compare-info-widget{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:34px !important;
  height:34px !important;
  padding:0 7px !important;
  margin:0 !important;
  background:#fff !important;
  border-inline-start:1px solid #eef0f4 !important;
  color:#1f2937 !important;
  font-size:16px !important;
  line-height:1 !important;
}

body.kppd-product-page-active .kppd-header-actions > *:first-child{
  border-inline-start:0 !important;
}

body.kppd-product-page-active .kppd-header-actions form,
body.kppd-product-page-active .kppd-header-actions input,
body.kppd-product-page-active .kppd-header-actions .searchform,
body.kppd-product-page-active .kppd-header-actions .wd-search-form{
  display:none !important;
}

body.kppd-product-page-active .kppd-header-actions a,
body.kppd-product-page-active .kppd-header-actions button{
  color:#1f2937 !important;
  text-decoration:none !important;
}

body.kppd-product-page-active .kppd-header-actions .wd-tools-text,
body.kppd-product-page-active .kppd-header-actions .wd-tools-count,
body.kppd-product-page-active .kppd-header-actions .subtotal-divider,
body.kppd-product-page-active .kppd-header-actions .wd-cart-subtotal,
body.kppd-product-page-active .kppd-header-actions .amount{
  display:none !important;
}

body.kppd-product-page-active .kppd-header-search-icon{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:34px !important;
  height:34px !important;
  color:#1f2937 !important;
  background:#fff !important;
  border-inline-start:1px solid #eef0f4 !important;
  cursor:pointer !important;
}
body.kppd-product-page-active .kppd-header-search-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;}

/* فشرده‌سازی فاصله بالای قالب اختصاصی تا محصول بدون اسکرول زودتر دیده شود */
body.kppd-product-page-active .main-page-wrapper,
body.kppd-product-page-active .site-content,
body.kppd-product-page-active .content-layout-wrapper,
body.kppd-product-page-active .container > .content{
  padding-top:0 !important;
  margin-top:0 !important;
}
body.kppd-product-page-active .kppd-page{ margin-top:10px !important; }
body.kppd-product-page-active .kppd-breadcrumb{ margin-top:0 !important; margin-bottom:12px !important; }

@media (max-width: 1024px){
  body.kppd-product-page-active .kppd-header-actions{gap:5px;margin-inline-start:8px;padding:0 6px !important;}
  body.kppd-product-page-active .kppd-header-actions > *,
  body.kppd-product-page-active .kppd-header-search-icon{min-width:32px !important;width:32px !important;height:32px !important;padding:0 5px !important;}
}

@media (max-width: 767px){
  body.kppd-product-page-active .whb-row,
  body.kppd-product-page-active .whb-general-header .whb-row,
  body.kppd-product-page-active .whb-header-bottom .whb-row{min-height:54px !important;}
  body.kppd-product-page-active .kppd-header-actions{display:none !important;}
  body.kppd-product-page-active .kppd-page{margin-top:8px !important;}
}

/* اصلاح نهایی هدر: یک‌خطی شدن لوگو، منو، ابزارها و سرچ فعال */
body.kppd-product-page-active.kppd-compact-header-ready .whb-header,
body.kppd-product-page-active.kppd-compact-header-ready .whb-main-header,
body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header,
body.kppd-product-page-active.kppd-compact-header-ready .whb-header-bottom,
body.kppd-product-page-active.kppd-compact-header-ready .main-header,
body.kppd-product-page-active.kppd-compact-header-ready .site-header,
body.kppd-product-page-active.kppd-compact-header-ready header.header,
body.kppd-product-page-active.kppd-compact-header-ready .website-wrapper header{
  background:#fff !important;
  border:0 !important;
  border-bottom:0 !important;
  box-shadow:none !important;
}

body.kppd-product-page-active .kppd-header-empty-row,
body.kppd-product-page-active .kppd-header-empty-row .whb-row,
body.kppd-product-page-active .kppd-header-empty-row .container{
  display:none !important;
  height:0 !important;
  min-height:0 !important;
  max-height:0 !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  overflow:hidden !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .whb-row,
body.kppd-product-page-active.kppd-compact-header-ready .whb-header-bottom .whb-row,
body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .whb-row,
body.kppd-product-page-active.kppd-compact-header-ready .whb-main-header .whb-row,
body.kppd-product-page-active.kppd-compact-header-ready .site-header-inner,
body.kppd-product-page-active.kppd-compact-header-ready .header-container{
  min-height:54px !important;
  height:54px !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  display:flex !important;
  align-items:center !important;
  gap:18px !important;
  border:0 !important;
  box-shadow:none !important;
}

body.kppd-product-page-active .kppd-inline-logo{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  flex:0 0 auto !important;
  margin:0 !important;
  padding:0 !important;
  max-width:190px !important;
  height:46px !important;
  order:-20 !important;
}
body.kppd-product-page-active .kppd-inline-logo img,
body.kppd-product-page-active .kppd-inline-logo svg{
  max-height:42px !important;
  width:auto !important;
  object-fit:contain !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .wd-header-nav,
body.kppd-product-page-active.kppd-compact-header-ready .main-nav,
body.kppd-product-page-active.kppd-compact-header-ready .navigation-wrap,
body.kppd-product-page-active.kppd-compact-header-ready nav{
  flex:1 1 auto !important;
  min-width:0 !important;
  margin:0 !important;
  order:0 !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  flex:0 0 auto !important;
  gap:10px !important;
  margin:0 !important;
  padding:0 !important;
  background:#fff !important;
  border:0 !important;
  box-shadow:none !important;
  order:20 !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-actions > *{
  box-sizing:border-box !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-search-form,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-actions form.kppd-header-search-form{
  display:flex !important;
  align-items:center !important;
  flex-direction:row !important;
  width:230px !important;
  height:36px !important;
  min-width:190px !important;
  max-width:260px !important;
  padding:0 12px !important;
  margin:0 0 0 6px !important;
  border:1px solid #e7eaf0 !important;
  border-radius:999px !important;
  background:#fff !important;
  overflow:hidden !important;
  order:-1 !important;
}
body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-search-form input[type="search"]{
  display:block !important;
  flex:1 1 auto !important;
  width:100% !important;
  height:34px !important;
  min-width:0 !important;
  padding:0 8px !important;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  color:#111827 !important;
  font-size:13px !important;
  line-height:34px !important;
}
body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-search-form button{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 24px !important;
  width:24px !important;
  height:24px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  background:transparent !important;
  color:#111827 !important;
  cursor:pointer !important;
}
body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-search-form svg{
  width:18px !important;
  height:18px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:2 !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-actions .wd-tools-element,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-actions .woodmart-shopping-cart,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-actions .woodmart-wishlist-info-widget,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-actions .woodmart-compare-info-widget,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-actions > a,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-actions > button{
  width:34px !important;
  min-width:34px !important;
  height:34px !important;
  padding:0 !important;
  margin:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:0 !important;
  border-inline-start:1px solid #eef0f4 !important;
  background:#fff !important;
  color:#111827 !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .kppd-breadcrumb{
  margin-top:6px !important;
  margin-bottom:10px !important;
}

@media (max-width:1200px){
  body.kppd-product-page-active .kppd-inline-logo{max-width:150px !important;}
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-search-form{width:180px !important;min-width:150px !important;}
  body.kppd-product-page-active.kppd-compact-header-ready .whb-row{gap:10px !important;}
}
@media (max-width:1024px){
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-search-form{display:none !important;}
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-actions{gap:6px !important;}
}
@media (max-width:767px){
  body.kppd-product-page-active.kppd-compact-header-ready .whb-row,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-header-bottom .whb-row,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .whb-row{min-height:50px !important;height:50px !important;}
  body.kppd-product-page-active .kppd-inline-logo{max-width:120px !important;height:40px !important;}
}

/* v1 hotfix: لوگو باید داخل همان ردیف منو باشد و فضای سفید بالای هدر حذف شود */
body.kppd-product-page-active.kppd-compact-header-ready .whb-header,
body.kppd-product-page-active.kppd-compact-header-ready .whb-main-header,
body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header,
body.kppd-product-page-active.kppd-compact-header-ready .whb-header-bottom,
body.kppd-product-page-active.kppd-compact-header-ready .site-header,
body.kppd-product-page-active.kppd-compact-header-ready header.header{
  min-height:0 !important;
  height:auto !important;
  padding:0 !important;
  margin:0 !important;
  background:#fff !important;
}
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row{
  min-height:56px !important;
  height:56px !important;
  padding:0 max(18px, calc((100vw - var(--kppd-max-width)) / 2)) !important;
  margin:0 auto !important;
  display:flex !important;
  align-items:center !important;
  flex-direction:row !important;
  direction:rtl !important;
  gap:18px !important;
  width:100% !important;
  max-width:none !important;
  box-sizing:border-box !important;
  border:0 !important;
  background:#fff !important;
  box-shadow:none !important;
}
body.kppd-product-page-active.kppd-compact-header-ready .kppd-inline-logo{
  order:-30 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  width:158px !important;
  max-width:158px !important;
  min-width:128px !important;
  height:46px !important;
  margin:0 0 0 10px !important;
  padding:0 !important;
  text-decoration:none !important;
  color:#111827 !important;
  font-size:28px !important;
  font-weight: var(--kppd-strong-weight, 600) !important;
  line-height:1 !important;
}
body.kppd-product-page-active.kppd-compact-header-ready .kppd-inline-logo img,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-inline-logo svg{
  display:block !important;
  max-height:42px !important;
  max-width:158px !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain !important;
}
body.kppd-product-page-active .kppd-original-logo-hidden,
body.kppd-product-page-active .kppd-header-empty-row{
  display:none !important;
  visibility:hidden !important;
  height:0 !important;
  min-height:0 !important;
  max-height:0 !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  overflow:hidden !important;
}
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row .wd-header-nav,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row .main-nav,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row .navigation-wrap,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row nav{
  order:0 !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  margin:0 !important;
}
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row .kppd-header-actions{
  order:30 !important;
  flex:0 0 auto !important;
  margin:0 !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  background:#fff !important;
}
body.kppd-product-page-active.kppd-compact-header-ready .kppd-breadcrumb{
  margin-top:8px !important;
}
@media (max-width:1200px){
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row{gap:12px !important;padding-inline:14px !important;}
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-inline-logo{width:130px !important;max-width:130px !important;min-width:110px !important;}
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-inline-logo img,
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-inline-logo svg{max-width:130px !important;max-height:38px !important;}
}
@media (max-width:1024px){
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row{min-height:52px !important;height:52px !important;}
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-inline-logo{width:118px !important;max-width:118px !important;min-width:96px !important;height:40px !important;}
}

/* v1 final header alignment fix: لوگو + فهرست + ابزارها فقط در یک ردیف */
body.kppd-product-page-active.kppd-compact-header-ready .whb-top-bar,
body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header.kppd-header-empty-row,
body.kppd-product-page-active.kppd-compact-header-ready .whb-row.kppd-header-empty-row,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-empty-row{
  display:none !important;
  visibility:hidden !important;
  height:0 !important;
  min-height:0 !important;
  max-height:0 !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  opacity:0 !important;
  overflow:hidden !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .whb-main-header,
body.kppd-product-page-active.kppd-compact-header-ready .whb-header-bottom,
body.kppd-product-page-active.kppd-compact-header-ready .whb-row.kppd-active-header-row{
  height:56px !important;
  min-height:56px !important;
  max-height:56px !important;
  padding:0 !important;
  margin:0 !important;
  background:#fff !important;
  border:0 !important;
  box-shadow:none !important;
  overflow:visible !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-container{
  width:100% !important;
  max-width:none !important;
  height:56px !important;
  min-height:56px !important;
  max-height:56px !important;
  padding:0 max(18px, calc((100vw - var(--kppd-max-width)) / 2)) !important;
  margin:0 auto !important;
  display:block !important;
  background:#fff !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row{
  width:100% !important;
  height:56px !important;
  min-height:56px !important;
  max-height:56px !important;
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:16px !important;
  direction:rtl !important;
  padding:0 !important;
  margin:0 !important;
  background:#fff !important;
  border:0 !important;
  box-shadow:none !important;
  overflow:visible !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row > .whb-column,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row > .whb-column.whb-col-left,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row > .whb-column.whb-col-center,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row > .whb-column.whb-col-right{
  display:contents !important;
  width:auto !important;
  flex:initial !important;
  max-width:none !important;
  min-width:0 !important;
  padding:0 !important;
  margin:0 !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .kppd-inline-logo{
  order:-30 !important;
  flex:0 0 142px !important;
  width:142px !important;
  min-width:142px !important;
  max-width:142px !important;
  height:42px !important;
  max-height:42px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
}
body.kppd-product-page-active.kppd-compact-header-ready .kppd-inline-logo img,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-inline-logo svg{
  width:auto !important;
  max-width:142px !important;
  height:auto !important;
  max-height:38px !important;
  object-fit:contain !important;
  display:block !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row .wd-header-nav,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row .wd-header-main-nav{
  order:0 !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  width:auto !important;
  height:56px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
}
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row .wd-nav,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row #menu-main-navigation{
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:0 !important;
  width:100% !important;
  height:56px !important;
  margin:0 !important;
  padding:0 !important;
  white-space:nowrap !important;
  overflow:visible !important;
}
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row .wd-nav > li,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row #menu-main-navigation > li{
  flex:0 0 auto !important;
  margin:0 !important;
  padding:0 !important;
  white-space:nowrap !important;
}
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row .wd-nav > li > a,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row #menu-main-navigation > li > a,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row .woodmart-nav-link{
  height:56px !important;
  min-height:56px !important;
  line-height:56px !important;
  padding:0 7px !important;
  font-size:13px !important;
  font-weight:700 !important;
  letter-spacing:0 !important;
  white-space:nowrap !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row .kppd-header-actions{
  order:30 !important;
  flex:0 0 auto !important;
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:6px !important;
  height:56px !important;
  margin:0 !important;
  padding:0 !important;
  background:#fff !important;
  overflow:visible !important;
}
body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-search-form,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-actions form.kppd-header-search-form{
  width:190px !important;
  min-width:170px !important;
  max-width:190px !important;
  height:34px !important;
  margin:0 !important;
  padding:0 10px !important;
  flex:0 0 190px !important;
}
body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-actions .wd-tools-element,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-actions > a,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-actions > button{
  width:30px !important;
  min-width:30px !important;
  max-width:30px !important;
  height:34px !important;
  min-height:34px !important;
  padding:0 !important;
  border-inline-start:1px solid #eef0f4 !important;
}
body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-actions .wd-tools-icon:before,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-actions .wd-tools-icon{
  font-size:18px !important;
  line-height:1 !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .kppd-breadcrumb{
  margin-top:8px !important;
}

@media (max-width:1320px){
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row{gap:10px !important;}
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-inline-logo{flex-basis:124px !important;width:124px !important;min-width:124px !important;max-width:124px !important;}
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-inline-logo img,
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-inline-logo svg{max-width:124px !important;max-height:34px !important;}
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row .woodmart-nav-link{padding-inline:5px !important;font-size:12.5px !important;}
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-search-form{width:160px !important;min-width:150px !important;max-width:160px !important;flex-basis:160px !important;}
}
@media (max-width:1100px){
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-search-form{display:none !important;}
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row .woodmart-nav-link{font-size:12px !important;padding-inline:4px !important;}
}

/* v1 responsive header separation + mobile hamburger fix */
body.kppd-product-page-active.kppd-compact-header-ready .whb-main-header,
body.kppd-product-page-active.kppd-compact-header-ready .whb-header-bottom,
body.kppd-product-page-active.kppd-compact-header-ready .whb-row.kppd-active-header-row,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-container{
  border-bottom:1px solid #e9edf3 !important;
}
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-container{
  margin-bottom:10px !important;
}
body.kppd-product-page-active.kppd-compact-header-ready .kppd-breadcrumb{
  margin-top:12px !important;
}
body.kppd-product-page-active.kppd-compact-header-ready .kppd-page,
body.kppd-product-page-active.kppd-compact-header-ready .site-main.kppd-page{
  padding-top:0 !important;
}

@media (max-width:1199px){
  /* hide desktop compact header */
  body.kppd-product-page-active.kppd-compact-header-ready .whb-header-bottom,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-header-bottom .container,
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-row,
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-container,
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-inline-logo,
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-header-actions{
    display:none !important;
    visibility:hidden !important;
    height:0 !important;
    min-height:0 !important;
    max-height:0 !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    overflow:hidden !important;
  }

  /* restore theme mobile header */
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header.kppd-header-empty-row,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-main-header .whb-general-header{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    height:auto !important;
    min-height:58px !important;
    max-height:none !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-bottom:1px solid #e9edf3 !important;
    background:#fff !important;
    overflow:visible !important;
  }
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .container,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .whb-flex-row,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .whb-general-header-inner{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    visibility:visible !important;
    opacity:1 !important;
    min-height:58px !important;
    height:auto !important;
    max-height:none !important;
    padding:0 12px !important;
    margin:0 !important;
    background:#fff !important;
    overflow:visible !important;
  }
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .whb-visible-lg,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .whb-col-left.whb-visible-lg,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .whb-col-center.whb-visible-lg,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .whb-col-right.whb-visible-lg{
    display:none !important;
  }
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .whb-hidden-lg,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .whb-mobile-left,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .whb-mobile-center,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .whb-mobile-right{
    display:flex !important;
    align-items:center !important;
    visibility:visible !important;
    opacity:1 !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
  }
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .whb-mobile-left{
    order:3 !important;
    flex:0 0 auto !important;
    gap:10px !important;
  }
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .whb-mobile-center{
    order:1 !important;
    flex:1 1 auto !important;
    justify-content:flex-start !important;
    min-width:0 !important;
  }
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .whb-mobile-right{
    order:2 !important;
    flex:0 0 auto !important;
    justify-content:flex-end !important;
  }
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .site-logo,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .site-logo.kppd-original-logo-hidden,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .wd-logo,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .wd-main-logo{
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
    width:auto !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
  }
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .site-logo img,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .wd-main-logo img{
    display:block !important;
    width:auto !important;
    max-width:128px !important;
    max-height:34px !important;
    height:auto !important;
    object-fit:contain !important;
  }
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .wd-header-mobile-nav a,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .wd-header-search-mobile a{
    width:40px !important;
    height:40px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .wd-tools-icon:before,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header .wd-tools-icon{
    font-size:20px !important;
  }
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-breadcrumb{
    margin-top:10px !important;
  }
}


/* v1 hard header overlap fix: جداسازی قطعی هدر از بدنه محصول */
body.kppd-product-page-active.kppd-compact-header-ready .whb-main-header,
body.kppd-product-page-active.kppd-compact-header-ready .whb-header,
body.kppd-product-page-active.kppd-compact-header-ready header.whb-header,
body.kppd-product-page-active.kppd-compact-header-ready .whb-header-bottom,
body.kppd-product-page-active.kppd-compact-header-ready .whb-row.kppd-active-header-row,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-container{
  position:relative !important;
  top:auto !important;
  bottom:auto !important;
  transform:none !important;
  translate:none !important;
  z-index:80 !important;
  background:#fff !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .whb-header-bottom,
body.kppd-product-page-active.kppd-compact-header-ready .whb-row.kppd-active-header-row,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-container{
  border-bottom:1px solid #e6eaf1 !important;
  box-shadow:0 1px 0 rgba(15,23,42,.03) !important;
}

/* مقدار اصلی با JS دقیق می‌شود؛ این fallback برای جلوگیری از افتادن محتوا زیر هدر است. */
body.kppd-product-page-active.kppd-compact-header-ready .site-main.kppd-page,
body.kppd-product-page-active.kppd-compact-header-ready main.kppd-page,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-page{
  padding-top:var(--kppd-header-safe-offset, 74px) !important;
  margin-top:0 !important;
  clear:both !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .kppd-breadcrumb{
  margin-top:0 !important;
  padding-top:0 !important;
}

/* اگر قالب وودمارت هدر چسبان/absolute را روی صفحه محصول تحمیل کند، این بخش جلوی هم‌پوشانی را می‌گیرد. */
body.kppd-product-page-active.kppd-compact-header-ready .whb-sticked,
body.kppd-product-page-active.kppd-compact-header-ready .whb-sticky-row.whb-sticked,
body.kppd-product-page-active.kppd-compact-header-ready .whb-sticky-shadow{
  position:relative !important;
  top:auto !important;
  transform:none !important;
}

/* breakpoint دقیق‌تر: در عرض‌های کوچک، منوی دسکتاپ جمع شود و هدر موبایل خود قالب کار کند. */
@media (max-width:1199px){
  body.kppd-product-page-active.kppd-compact-header-ready .site-main.kppd-page,
  body.kppd-product-page-active.kppd-compact-header-ready main.kppd-page,
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-page{
    padding-top:var(--kppd-header-safe-offset, 66px) !important;
  }
}

@media (max-width:767px){
  body.kppd-product-page-active.kppd-compact-header-ready .site-main.kppd-page,
  body.kppd-product-page-active.kppd-compact-header-ready main.kppd-page,
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-page{
    padding-top:var(--kppd-header-safe-offset, 62px) !important;
  }
}


/* v1 header spacing cleanup: حذف خط‌های اضافه و کم کردن فاصله بالا */
body.kppd-product-page-active.kppd-compact-header-ready .whb-main-header,
body.kppd-product-page-active.kppd-compact-header-ready .whb-header,
body.kppd-product-page-active.kppd-compact-header-ready header.whb-header,
body.kppd-product-page-active.kppd-compact-header-ready .whb-header-bottom,
body.kppd-product-page-active.kppd-compact-header-ready .whb-row.kppd-active-header-row,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-container{
  border:0 !important;
  border-bottom:0 !important;
  box-shadow:none !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-container{
  margin-bottom:0 !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .site-main.kppd-page,
body.kppd-product-page-active.kppd-compact-header-ready main.kppd-page,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-page{
  padding-top:var(--kppd-header-safe-offset, 46px) !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .kppd-breadcrumb{
  margin-top:0 !important;
  padding-top:0 !important;
}

@media (max-width:1199px){
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header.kppd-header-empty-row,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-main-header .whb-general-header{
    border:0 !important;
    border-bottom:0 !important;
    box-shadow:none !important;
  }

  body.kppd-product-page-active.kppd-compact-header-ready .site-main.kppd-page,
  body.kppd-product-page-active.kppd-compact-header-ready main.kppd-page,
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-page{
    padding-top:var(--kppd-header-safe-offset, 44px) !important;
  }
}

@media (max-width:767px){
  body.kppd-product-page-active.kppd-compact-header-ready .site-main.kppd-page,
  body.kppd-product-page-active.kppd-compact-header-ready main.kppd-page,
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-page{
    padding-top:var(--kppd-header-safe-offset, 40px) !important;
  }
}


/* v1 final safe 5px spacing: فاصله دقیق ۵ پیکسل از هدر، با حفظ حالت امن و همبرگری */
body.kppd-product-page-active.kppd-compact-header-ready .whb-main-header,
body.kppd-product-page-active.kppd-compact-header-ready .whb-header,
body.kppd-product-page-active.kppd-compact-header-ready header.whb-header,
body.kppd-product-page-active.kppd-compact-header-ready .whb-header-bottom,
body.kppd-product-page-active.kppd-compact-header-ready .whb-row.kppd-active-header-row,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-container,
body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header{
  border:0 !important;
  border-bottom:0 !important;
  box-shadow:none !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .kppd-primary-header-container{
  margin-bottom:0 !important;
}

/* مقدار پایه همیشه ۵px است؛ اگر هدر واقعاً روی محتوا بیفتد، JS فقط همان مقدار لازم را اضافه می‌کند. */
body.kppd-product-page-active.kppd-compact-header-ready .site-main.kppd-page,
body.kppd-product-page-active.kppd-compact-header-ready main.kppd-page,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-page{
  padding-top:var(--kppd-header-safe-offset, 5px) !important;
  margin-top:0 !important;
  clear:both !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .kppd-product,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-hero,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-info-card,
body.kppd-product-page-active.kppd-compact-header-ready .kppd-gallery-card{
  margin-top:0 !important;
}

body.kppd-product-page-active.kppd-compact-header-ready .kppd-breadcrumb{
  margin-top:0 !important;
  padding-top:0 !important;
}

@media (max-width:1199px){
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-general-header.kppd-header-empty-row,
  body.kppd-product-page-active.kppd-compact-header-ready .whb-main-header .whb-general-header{
    border:0 !important;
    border-bottom:0 !important;
    box-shadow:none !important;
  }

  body.kppd-product-page-active.kppd-compact-header-ready .site-main.kppd-page,
  body.kppd-product-page-active.kppd-compact-header-ready main.kppd-page,
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-page{
    padding-top:var(--kppd-header-safe-offset, 5px) !important;
  }
}

@media (max-width:767px){
  body.kppd-product-page-active.kppd-compact-header-ready .site-main.kppd-page,
  body.kppd-product-page-active.kppd-compact-header-ready main.kppd-page,
  body.kppd-product-page-active.kppd-compact-header-ready .kppd-page{
    padding-top:var(--kppd-header-safe-offset, 5px) !important;
  }
}


/* v1 visual/content update */
body.kppd-product-page-active,
body.kppd-product-page-active .kppd-page{
  font-size:var(--kppd-body-size, 14px) !important;
}
body.kppd-product-page-active strong,
body.kppd-product-page-active b,
body.kppd-product-page-active h1,
body.kppd-product-page-active h2,
body.kppd-product-page-active h3,
body.kppd-product-page-active .kppd-title,
body.kppd-product-page-active .kppd-price,
body.kppd-product-page-active .button,
body.kppd-product-page-active button{
  font-weight:var(--kppd-strong-weight, 600) !important;
}
body.kppd-product-page-active .kppd-title{
  font-size:clamp(26px, 2.3vw, var(--kppd-title-size, 34px)) !important;
}
body.kppd-product-page-active .kppd-short-description{
  line-height:2 !important;
  color:#4b5563 !important;
}
body.kppd-product-page-active .kppd-tool-button{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  min-height:40px !important;
  padding:9px 18px !important;
  border-radius:var(--kppd-tool-radius, 10px) !important;
  font-size:13px !important;
  font-weight:var(--kppd-strong-weight, 600) !important;
}
body.kppd-product-page-active .kppd-tool-button span,
body.kppd-product-page-active .kppd-tool-button svg{
  width:20px !important;
  height:20px !important;
  flex:0 0 20px !important;
}
body.kppd-product-page-active .kppd-service-box span svg,
body.kppd-product-page-active .kppd-benefit-icon svg{
  color:var(--kppd-primary, #f26722) !important;
  fill:currentColor !important;
}

/* بخش پالت رنگ */
body.kppd-product-page-active .kppd-palette-panel{
  padding:20px 24px !important;
}
body.kppd-product-page-active .occp-palettes{
  display:flex !important;
  flex-direction:column !important;
  gap:26px !important;
  margin:0 !important;
}
body.kppd-product-page-active .occp-palette{
  padding:0 !important;
  border:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  margin:0 !important;
}
body.kppd-product-page-active .occp-palette-header{
  margin:0 0 14px !important;
  justify-content:flex-start !important;
  gap:10px !important;
}
body.kppd-product-page-active .occp-palette-title{
  font-weight:var(--kppd-strong-weight, 600) !important;
  font-size:15px !important;
}
body.kppd-product-page-active .occp-selected-label{
  font-weight:400 !important;
  font-size:12px !important;
}
body.kppd-product-page-active .occp-color-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit, minmax(min(100%, var(--kppd-palette-card-min, 136px)), 1fr)) !important;
  gap:12px !important;
}
@media (min-width: 1025px){
  body.kppd-product-page-active .occp-color-grid{
    grid-template-columns:repeat(var(--kppd-palette-desktop-cols, 6), minmax(0, 1fr)) !important;
  }
}
@media (max-width: 768px){
  body.kppd-product-page-active .occp-color-grid{
    grid-template-columns:repeat(var(--kppd-palette-mobile-cols, 2), minmax(0, 1fr)) !important;
    gap:10px !important;
  }
}
body.kppd-product-page-active .occp-color-card{
  min-height:132px !important;
  padding:10px 10px 12px !important;
  border-radius:16px !important;
  gap:8px !important;
  overflow:visible !important;
}
body.kppd-product-page-active .occp-color-image{
  width:76px !important;
  height:62px !important;
  border-radius:10px !important;
  background:#f4f5f7 !important;
}
body.kppd-product-page-active .occp-color-image img{
  border-radius:10px !important;
}
body.kppd-product-page-active .occp-color-info{
  min-height:40px !important;
  gap:3px !important;
  padding-inline:4px !important;
}
body.kppd-product-page-active .occp-color-name{
  font-size:12px !important;
  color:#111827 !important;
  font-weight:var(--kppd-strong-weight, 600) !important;
}
body.kppd-product-page-active .occp-color-sku{
  font-size:11.5px !important;
  color:#6b7280 !important;
  font-weight:400 !important;
  direction:ltr !important;
}
body.kppd-product-page-active .occp-color-zoom{
  position:absolute !important;
  inset-inline-end:8px !important;
  bottom:8px !important;
  top:auto !important;
  width:24px !important;
  height:24px !important;
  min-width:24px !important;
  border-radius:8px !important;
  background:#fff !important;
  border:1px solid #e5e7eb !important;
  box-shadow:0 6px 14px rgba(15,23,42,.12) !important;
  color:#111827 !important;
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  z-index:3 !important;
}
body.kppd-product-page-active .occp-color-zoom svg{
  width:14px !important;
  height:14px !important;
  fill:currentColor !important;
}
body.kppd-product-page-active .occp-checkmark{
  background:var(--kppd-primary, #f26722) !important;
}
body.kppd-product-page-active .occp-color-option:hover .occp-color-card,
body.kppd-product-page-active .occp-color-option.is-selected .occp-color-card,
body.kppd-product-page-active .occp-color-option input:checked + .occp-color-card{
  border-color:var(--kppd-primary, #f26722) !important;
  box-shadow:0 10px 22px rgba(242,103,34,.15), inset 0 0 0 1px rgba(242,103,34,.24) !important;
  background:#fffaf7 !important;
}

/* بخش محصولات مرتبط جایگزین نوار خاکستری فوتر */
body.kppd-product-page-active .wd-prefooter,
body.kppd-product-page-active .prefooter,
body.kppd-product-page-active .footer-top .wd-info-box,
body.kppd-product-page-active .footer-container .wd-info-box-wrapper:first-child{
  display:none !important;
}
body.kppd-product-page-active .kppd-footer-related-carousel{
  max-width:var(--kppd-max-width, 1240px) !important;
  margin:24px auto 90px !important;
  padding:20px 22px !important;
  background:#fff !important;
  border:1px solid #edf0f5 !important;
  border-radius:20px !important;
  box-shadow:0 18px 45px rgba(15,23,42,.06) !important;
}
body.kppd-product-page-active .kppd-footer-related-head h2{
  margin:0 0 16px !important;
  font-size:20px !important;
  font-weight:var(--kppd-strong-weight, 600) !important;
}
body.kppd-product-page-active .kppd-footer-related-track{
  display:flex !important;
  gap:12px !important;
  overflow-x:auto !important;
  scroll-snap-type:x proximity !important;
  padding-bottom:4px !important;
}
body.kppd-product-page-active .kppd-footer-related-item{
  flex:0 0 190px !important;
  display:flex !important;
  gap:10px !important;
  align-items:center !important;
  text-decoration:none !important;
  color:#111827 !important;
  border:1px solid #edf0f5 !important;
  border-radius:16px !important;
  padding:10px !important;
  background:#fff !important;
  scroll-snap-align:start !important;
}
body.kppd-product-page-active .kppd-footer-related-thumb img{
  width:54px !important;
  height:54px !important;
  object-fit:contain !important;
}
body.kppd-product-page-active .kppd-footer-related-info{
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  gap:4px !important;
}
body.kppd-product-page-active .kppd-footer-related-info strong{
  font-size:12px !important;
  line-height:1.5 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
body.kppd-product-page-active .kppd-footer-related-info em{
  font-style:normal !important;
  color:var(--kppd-primary, #f26722) !important;
  font-size:12px !important;
}

/* نوار شناور: محصول فعلی */
body.kppd-product-page-active .kppd-sticky-bar{
  max-width:var(--kppd-sticky-width, 1180px) !important;
}
body.kppd-product-page-active .kppd-sticky-current-product{
  justify-content:flex-end !important;
}
body.kppd-product-page-active .kppd-sticky-current-info{
  display:flex !important;
  flex-direction:column !important;
  gap:2px !important;
  min-width:0 !important;
  flex:1 1 auto !important;
  text-align:right !important;
}
body.kppd-product-page-active .kppd-sticky-current-info strong{
  font-size:13px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
body.kppd-product-page-active .kppd-sticky-current-info span{
  font-size:11px !important;
  color:#16a34a !important;
}
body.kppd-product-page-active .kppd-sticky-current-info em{
  font-style:normal !important;
  font-size:12px !important;
  color:var(--kppd-primary, #f26722) !important;
}
body.kppd-product-page-active .kppd-sticky-current-thumb img{
  width:58px !important;
  height:58px !important;
  object-fit:contain !important;
}

@media (max-width:768px){
  body.kppd-product-page-active .kppd-tool-button{
    min-height:36px !important;
    padding:8px 12px !important;
    font-size:12px !important;
  }
  body.kppd-product-page-active .kppd-footer-related-carousel{
    margin-bottom:86px !important;
    border-radius:16px !important;
    padding:16px !important;
  }
  body.kppd-product-page-active .kppd-footer-related-item{
    flex-basis:170px !important;
  }
}

/* اصلاح نهایی پالت رنگ: تعداد اولیه دقیق، آیکن بزرگنمایی بدون کادر، متن یک‌خطی */
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-palette:not(.is-expanded) .occp-hidden-color,
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-palette:not(.is-expanded) .occp-auto-hidden{
  display:none !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-palette.is-expanded .occp-hidden-color,
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-palette.is-expanded .occp-auto-hidden{
  display:block !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-palette:not(.is-expanded) .occp-color-grid{
  flex-wrap:wrap !important;
  overflow:visible !important;
  max-height:none !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-card{
  height:122px !important;
  min-height:122px !important;
  padding:7px 5px 7px !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-image{
  margin:0 auto 28px !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-info{
  min-height:18px !important;
  height:18px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 3px !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-name,
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-sku{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  text-align:center !important;
  direction:rtl !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-zoom{
  right:8px !important;
  left:auto !important;
  top:66px !important;
  bottom:auto !important;
  width:20px !important;
  height:20px !important;
  min-width:20px !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
  color:#111827 !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-zoom:hover{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-zoom svg{
  width:18px !important;
  height:18px !important;
}
@media (max-width:768px){
  body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-card{height:118px !important;min-height:118px !important;}
  body.kppd-product-page-active .kppd-page .kppd-palette-content .occp-color-zoom{top:64px !important;right:7px !important;}
}

/* اصلاح محصولات مرتبط: حذف نوار خدمات فوتر و اسلایدر عریض‌تر با تعداد اولیه از داشبورد */
body.kppd-product-page-active .wd-prefooter,
body.kppd-product-page-active .wd-prefooter-content,
body.kppd-product-page-active .prefooter,
body.kppd-product-page-active .prefooter-area,
body.kppd-product-page-active .footer-top,
body.kppd-product-page-active .wd-footer-top,
body.kppd-product-page-active .wd-info-boxes,
body.kppd-product-page-active .wd-info-box-wrapper,
body.kppd-product-page-active .woodmart-info-boxes,
body.kppd-product-page-active .footer-container .wd-info-box,
body.kppd-product-page-active .footer-container .info-box-wrapper,
body.kppd-product-page-active .footer-container [class*="info-box"],
body.kppd-product-page-active .site-footer [class*="prefooter"],
body.kppd-product-page-active .site-footer [class*="service"],
body.kppd-product-page-active .site-footer [class*="benefit"]{
  display:none !important;
}
body.kppd-product-page-active .kppd-footer-related-carousel{
  max-width:min(var(--kppd-max-width, 1240px), calc(100vw - 32px)) !important;
  margin:30px auto 48px !important;
  padding:28px 30px 32px !important;
  min-height:255px !important;
  background:linear-gradient(180deg,#fff 0%,#fbfcff 100%) !important;
  border:1px solid #e9edf4 !important;
  border-radius:24px !important;
  box-shadow:0 20px 55px rgba(15,23,42,.08) !important;
  position:relative !important;
  overflow:hidden !important;
}
body.kppd-product-page-active .kppd-footer-related-carousel::before{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  pointer-events:none !important;
  background:radial-gradient(circle at 85% 0%, rgba(242,103,34,.08), transparent 34%) !important;
}
body.kppd-product-page-active .kppd-footer-related-head{
  position:relative !important;
  z-index:1 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:14px !important;
  margin-bottom:22px !important;
}
body.kppd-product-page-active .kppd-footer-related-head h2{
  margin:0 !important;
  font-size:21px !important;
  line-height:1.5 !important;
  font-weight:var(--kppd-strong-weight, 700) !important;
  color:#111827 !important;
}
body.kppd-product-page-active .kppd-footer-related-arrows{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  flex:0 0 auto !important;
}
body.kppd-product-page-active .kppd-footer-related-arrow{
  width:42px !important;
  height:42px !important;
  border-radius:999px !important;
  border:1px solid #e6eaf0 !important;
  background:#fff !important;
  color:#111827 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  cursor:pointer !important;
  box-shadow:0 10px 22px rgba(15,23,42,.08) !important;
  transition:transform .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease !important;
}
body.kppd-product-page-active .kppd-footer-related-arrow:hover{
  color:var(--kppd-primary,#f26722) !important;
  border-color:rgba(242,103,34,.45) !important;
  box-shadow:0 12px 28px rgba(242,103,34,.14) !important;
  transform:translateY(-1px) !important;
}
body.kppd-product-page-active .kppd-footer-related-arrow svg{
  width:20px !important;
  height:20px !important;
  fill:currentColor !important;
}
body.kppd-product-page-active .kppd-footer-related-viewport{
  position:relative !important;
  z-index:1 !important;
  overflow:hidden !important;
  width:100% !important;
}
body.kppd-product-page-active .kppd-footer-related-track{
  display:flex !important;
  gap:16px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scroll-behavior:smooth !important;
  scroll-snap-type:x mandatory !important;
  padding:4px 2px 12px !important;
  scrollbar-width:thin !important;
}
body.kppd-product-page-active .kppd-footer-related-track::-webkit-scrollbar{
  height:7px !important;
}
body.kppd-product-page-active .kppd-footer-related-track::-webkit-scrollbar-thumb{
  background:#d8dde6 !important;
  border-radius:999px !important;
}
body.kppd-product-page-active .kppd-footer-related-item{
  flex:0 0 max(255px, calc((100% - (var(--kppd-related-visible, 4) - 1) * 16px) / var(--kppd-related-visible, 4))) !important;
  min-height:104px !important;
  display:flex !important;
  flex-direction:row-reverse !important;
  gap:14px !important;
  align-items:center !important;
  justify-content:space-between !important;
  text-decoration:none !important;
  color:#111827 !important;
  border:1px solid #e7ebf1 !important;
  border-radius:18px !important;
  padding:16px 18px !important;
  background:rgba(255,255,255,.92) !important;
  scroll-snap-align:start !important;
  box-shadow:0 12px 28px rgba(15,23,42,.055) !important;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease !important;
}
body.kppd-product-page-active .kppd-footer-related-item:hover{
  transform:translateY(-3px) !important;
  border-color:rgba(242,103,34,.38) !important;
  box-shadow:0 18px 36px rgba(15,23,42,.1) !important;
}
body.kppd-product-page-active .kppd-footer-related-thumb{
  width:66px !important;
  height:66px !important;
  flex:0 0 66px !important;
  border-radius:14px !important;
  background:#f7f8fb !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
}
body.kppd-product-page-active .kppd-footer-related-thumb img{
  width:62px !important;
  height:62px !important;
  object-fit:contain !important;
}
body.kppd-product-page-active .kppd-footer-related-info{
  min-width:0 !important;
  flex:1 1 auto !important;
  display:flex !important;
  flex-direction:column !important;
  gap:8px !important;
  text-align:right !important;
}
body.kppd-product-page-active .kppd-footer-related-info strong{
  font-size:14px !important;
  line-height:1.7 !important;
  color:#111827 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
body.kppd-product-page-active .kppd-footer-related-info em{
  font-style:normal !important;
  color:var(--kppd-primary,#f26722) !important;
  font-size:13px !important;
  font-weight:800 !important;
  white-space:nowrap !important;
}
@media (max-width:1024px){
  body.kppd-product-page-active .kppd-footer-related-carousel{
    padding:24px 20px 28px !important;
    min-height:230px !important;
  }
  body.kppd-product-page-active .kppd-footer-related-item{
    flex-basis:280px !important;
  }
}
@media (max-width:768px){
  body.kppd-product-page-active .kppd-footer-related-carousel{
    max-width:calc(100vw - 24px) !important;
    margin:24px auto 36px !important;
    padding:20px 14px 24px !important;
    border-radius:20px !important;
    min-height:220px !important;
  }
  body.kppd-product-page-active .kppd-footer-related-head h2{
    font-size:18px !important;
  }
  body.kppd-product-page-active .kppd-footer-related-arrow{
    width:38px !important;
    height:38px !important;
  }
  body.kppd-product-page-active .kppd-footer-related-track{
    gap:12px !important;
  }
  body.kppd-product-page-active .kppd-footer-related-item{
    flex-basis:82vw !important;
    min-height:98px !important;
    padding:14px !important;
  }
}


/* نسخه نهایی محصولات مرتبط: نمایش شبیه اسلایدر نمونه، بدون نوار خاکستری و بدون فضای اضافه پایین */
body.kppd-product-page-active .wd-prefooter,
body.kppd-product-page-active .wd-prefooter-content,
body.kppd-product-page-active .prefooter,
body.kppd-product-page-active .prefooter-area,
body.kppd-product-page-active .footer-top,
body.kppd-product-page-active .wd-footer-top,
body.kppd-product-page-active .wd-info-boxes,
body.kppd-product-page-active .wd-info-box-wrapper,
body.kppd-product-page-active .woodmart-info-boxes,
body.kppd-product-page-active .footer-container .wd-info-box,
body.kppd-product-page-active .footer-container .info-box-wrapper,
body.kppd-product-page-active .footer-container [class*="info-box"],
body.kppd-product-page-active .site-footer [class*="prefooter"],
body.kppd-product-page-active .site-footer [class*="service"],
body.kppd-product-page-active .site-footer [class*="benefit"],
body.kppd-product-page-active .kppd-force-hidden{
  display:none !important;
}

body.kppd-product-page-active .kppd-footer-related-carousel{
  width:100% !important;
  max-width:min(var(--kppd-max-width, 1420px), calc(100vw - 28px)) !important;
  margin:26px auto 18px !important;
  padding:0 46px 16px !important;
  min-height:0 !important;
  background:#fff !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  position:relative !important;
  overflow:visible !important;
  direction:rtl !important;
}
body.kppd-product-page-active .kppd-footer-related-carousel::before,
body.kppd-product-page-active .kppd-footer-related-carousel::after{
  display:none !important;
  content:none !important;
}
body.kppd-product-page-active .kppd-footer-related-head{
  display:block !important;
  margin:0 0 12px !important;
  padding:0 !important;
  position:relative !important;
  z-index:2 !important;
}
body.kppd-product-page-active .kppd-footer-related-head h2{
  margin:0 !important;
  text-align:right !important;
  font-size:24px !important;
  line-height:1.45 !important;
  font-weight:800 !important;
  color:#222 !important;
  letter-spacing:-.02em !important;
}
body.kppd-product-page-active .kppd-footer-related-arrows{
  display:block !important;
  position:static !important;
}
body.kppd-product-page-active .kppd-footer-related-arrow{
  position:absolute !important;
  top:45% !important;
  transform:translateY(-50%) !important;
  z-index:5 !important;
  width:42px !important;
  height:78px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#050505 !important;
  box-shadow:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  cursor:pointer !important;
  opacity:1 !important;
}
body.kppd-product-page-active .kppd-footer-related-arrow:hover{
  transform:translateY(-50%) scale(1.06) !important;
  color:var(--kppd-primary,#f26722) !important;
  border:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}
body.kppd-product-page-active .kppd-footer-related-prev{ right:0 !important; }
body.kppd-product-page-active .kppd-footer-related-next{ left:0 !important; }
body.kppd-product-page-active .kppd-footer-related-arrow svg{
  width:34px !important;
  height:34px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:2.8 !important;
}
body.kppd-product-page-active .kppd-footer-related-viewport{
  width:100% !important;
  overflow:hidden !important;
  position:relative !important;
  z-index:1 !important;
}
body.kppd-product-page-active .kppd-footer-related-track{
  direction:rtl !important;
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:34px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scroll-behavior:smooth !important;
  scroll-snap-type:x mandatory !important;
  padding:0 !important;
  scrollbar-width:none !important;
  -ms-overflow-style:none !important;
}
body.kppd-product-page-active .kppd-footer-related-track::-webkit-scrollbar{ display:none !important; }
body.kppd-product-page-active .kppd-footer-related-item{
  flex:0 0 calc((100% - (var(--kppd-related-visible, 4) - 1) * 34px) / var(--kppd-related-visible, 4)) !important;
  min-width:0 !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:0 !important;
  padding:0 6px 4px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#222 !important;
  text-decoration:none !important;
  scroll-snap-align:start !important;
  transition:transform .22s ease !important;
}
body.kppd-product-page-active .kppd-footer-related-item:hover{
  transform:translateY(-4px) !important;
  border:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}
body.kppd-product-page-active .kppd-footer-related-thumb{
  width:100% !important;
  height:330px !important;
  flex:0 0 330px !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:center !important;
  overflow:visible !important;
  background:transparent !important;
  border-radius:0 !important;
  margin:0 0 18px !important;
}
body.kppd-product-page-active .kppd-footer-related-thumb img{
  width:100% !important;
  max-width:300px !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center bottom !important;
  display:block !important;
  transition:transform .22s ease !important;
}
body.kppd-product-page-active .kppd-footer-related-item:hover .kppd-footer-related-thumb img{
  transform:scale(1.03) !important;
}
body.kppd-product-page-active .kppd-footer-related-info{
  width:100% !important;
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  gap:5px !important;
  text-align:center !important;
}
body.kppd-product-page-active .kppd-footer-related-info strong{
  width:100% !important;
  max-width:330px !important;
  min-height:52px !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
  white-space:normal !important;
  text-overflow:clip !important;
  font-size:18px !important;
  line-height:1.45 !important;
  font-weight:800 !important;
  color:#222 !important;
}
body.kppd-product-page-active .kppd-footer-related-meta{
  display:block !important;
  font-size:16px !important;
  line-height:1.5 !important;
  font-weight:600 !important;
  color:#9ca3af !important;
}
body.kppd-product-page-active .kppd-footer-related-info em{
  display:block !important;
  margin-top:8px !important;
  font-style:normal !important;
  color:#f26722 !important;
  font-size:18px !important;
  line-height:1.4 !important;
  font-weight:900 !important;
  white-space:normal !important;
}
body.kppd-product-page-active .kppd-footer-related-dots{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:8px !important;
  margin:12px 0 0 !important;
  min-height:14px !important;
}
body.kppd-product-page-active .kppd-footer-related-dot{
  width:12px !important;
  height:12px !important;
  padding:0 !important;
  border-radius:999px !important;
  border:2px solid #bdbdbd !important;
  background:#fff !important;
  cursor:pointer !important;
  transition:background .2s ease, border-color .2s ease, transform .2s ease !important;
}
body.kppd-product-page-active .kppd-footer-related-dot.is-active{
  background:#333 !important;
  border-color:#333 !important;
  transform:scale(1.02) !important;
}

@media (max-width:1200px){
  body.kppd-product-page-active .kppd-footer-related-carousel{ padding-inline:38px !important; }
  body.kppd-product-page-active .kppd-footer-related-track{ gap:24px !important; }
  body.kppd-product-page-active .kppd-footer-related-item{ flex-basis:calc((100% - (min(var(--kppd-related-visible, 3), 3) - 1) * 24px) / min(var(--kppd-related-visible, 3), 3)) !important; }
  body.kppd-product-page-active .kppd-footer-related-thumb{ height:290px !important; flex-basis:290px !important; }
}
@media (max-width:768px){
  body.kppd-product-page-active .kppd-footer-related-carousel{
    max-width:100% !important;
    margin:20px auto 14px !important;
    padding:0 32px 12px !important;
  }
  body.kppd-product-page-active .kppd-footer-related-head h2{ font-size:20px !important; }
  body.kppd-product-page-active .kppd-footer-related-track{ gap:14px !important; }
  body.kppd-product-page-active .kppd-footer-related-item{ flex-basis:calc(100% - 6px) !important; }
  body.kppd-product-page-active .kppd-footer-related-thumb{ height:250px !important; flex-basis:250px !important; margin-bottom:12px !important; }
  body.kppd-product-page-active .kppd-footer-related-thumb img{ max-width:240px !important; }
  body.kppd-product-page-active .kppd-footer-related-info strong{ font-size:16px !important; min-height:46px !important; }
  body.kppd-product-page-active .kppd-footer-related-meta{ font-size:14px !important; }
  body.kppd-product-page-active .kppd-footer-related-info em{ font-size:16px !important; margin-top:5px !important; }
  body.kppd-product-page-active .kppd-footer-related-arrow{ width:30px !important; height:62px !important; }
  body.kppd-product-page-active .kppd-footer-related-arrow svg{ width:27px !important; height:27px !important; }
}

/* اصلاح نهایی محصولات مرتبط: باکس مشابه تب‌ها، فلش وسط باکس و حذف فاصله اضافه پایین */
body.kppd-product-page-active .kppd-page{
  margin-bottom:24px !important;
}
body.kppd-product-page-active .kppd-footer-related-carousel{
  width:min(var(--kppd-max-width,1240px), 100%) !important;
  max-width:var(--kppd-max-width,1240px) !important;
  margin:24px auto 18px !important;
  padding:28px 54px 28px !important;
  background:#fff !important;
  border:1px solid #eef0f4 !important;
  border-radius:22px !important;
  box-shadow:0 10px 30px rgba(15,23,42,.045) !important;
  overflow:hidden !important;
}
body.kppd-product-page-active .kppd-footer-related-head{
  margin:0 0 10px !important;
  padding:0 !important;
}
body.kppd-product-page-active .kppd-footer-related-head h2{
  font-size:24px !important;
  font-weight:900 !important;
  color:#222 !important;
}
body.kppd-product-page-active .kppd-footer-related-arrow{
  top:52% !important;
  transform:translateY(-50%) !important;
  width:42px !important;
  height:74px !important;
}
body.kppd-product-page-active .kppd-footer-related-arrow:hover{
  transform:translateY(-50%) scale(1.05) !important;
}
body.kppd-product-page-active .kppd-footer-related-prev{ right:10px !important; }
body.kppd-product-page-active .kppd-footer-related-next{ left:10px !important; }
body.kppd-product-page-active .kppd-footer-related-viewport{
  padding:0 !important;
}
body.kppd-product-page-active .kppd-footer-related-track{
  padding:0 !important;
}
body.kppd-product-page-active .kppd-footer-related-item{
  padding:0 6px !important;
}
body.kppd-product-page-active .kppd-footer-related-thumb{
  height:300px !important;
  flex-basis:300px !important;
  margin:0 0 14px !important;
}
body.kppd-product-page-active .kppd-footer-related-thumb img{
  max-width:285px !important;
}
body.kppd-product-page-active .kppd-footer-related-info strong{
  min-height:50px !important;
}
body.kppd-product-page-active .kppd-footer-related-info em{
  margin-top:5px !important;
}
body.kppd-product-page-active .kppd-footer-related-dots{
  margin:8px 0 0 !important;
}
body.kppd-product-page-active .kppd-product > .kppd-footer-related-carousel:last-of-type{
  margin-bottom:10px !important;
}
body.kppd-product-page-active .site-content,
body.kppd-product-page-active .main-page-wrapper,
body.kppd-product-page-active .content-area{
  padding-bottom:0 !important;
  margin-bottom:0 !important;
}
@media (max-width:1024px){
  body.kppd-product-page-active .kppd-footer-related-carousel{
    width:calc(100% - 28px) !important;
    padding:24px 44px 24px !important;
    border-radius:20px !important;
  }
  body.kppd-product-page-active .kppd-footer-related-arrow{ top:54% !important; }
}
@media (max-width:768px){
  body.kppd-product-page-active .kppd-page{
    width:calc(100% - 24px) !important;
    margin-bottom:20px !important;
  }
  body.kppd-product-page-active .kppd-footer-related-carousel{
    width:100% !important;
    margin:20px auto 12px !important;
    padding:22px 34px 22px !important;
    border-radius:18px !important;
  }
  body.kppd-product-page-active .kppd-footer-related-arrow{
    top:55% !important;
    width:30px !important;
    height:62px !important;
  }
  body.kppd-product-page-active .kppd-footer-related-prev{ right:2px !important; }
  body.kppd-product-page-active .kppd-footer-related-next{ left:2px !important; }
  body.kppd-product-page-active .kppd-footer-related-thumb{
    height:235px !important;
    flex-basis:235px !important;
  }
}
@media (max-width:480px){
  body.kppd-product-page-active .kppd-page{
    width:calc(100% - 16px) !important;
    margin-bottom:18px !important;
  }
}


/* درخواست نهایی: هم‌عرضی با باکس‌های صفحه، جایگاه فلش‌ها و وزن فونت 600 */
body.kppd-product-page-active .kppd-footer-related-carousel{
  width:min(var(--kppd-max-width,1240px), 100%) !important;
  max-width:var(--kppd-max-width,1240px) !important;
  overflow:visible !important;
}
body.kppd-product-page-active .kppd-footer-related-head h2,
body.kppd-product-page-active .kppd-footer-related-info strong,
body.kppd-product-page-active .kppd-footer-related-meta,
body.kppd-product-page-active .kppd-footer-related-info em,
body.kppd-product-page-active .kppd-footer-related-carousel strong,
body.kppd-product-page-active .kppd-footer-related-carousel b{
  font-weight:600 !important;
}
body.kppd-product-page-active .kppd-footer-related-arrow{
  top:700% !important;
  transform:translateY(-50%) !important;
}
body.kppd-product-page-active .kppd-footer-related-arrow:hover{
  transform:translateY(-50%) scale(1.05) !important;
}
body.kppd-product-page-active .kppd-footer-related-prev{
  right:-8px !important;
}
body.kppd-product-page-active .kppd-footer-related-next{
  left:-8px !important;
}
@media (max-width:1024px){
  body.kppd-product-page-active .kppd-footer-related-carousel{
    width:min(var(--kppd-max-width,1240px), 100%) !important;
  }
  body.kppd-product-page-active .kppd-footer-related-arrow{
    top:700% !important;
  }
  body.kppd-product-page-active .kppd-footer-related-prev{
    right:-6px !important;
  }
  body.kppd-product-page-active .kppd-footer-related-next{
    left:-6px !important;
  }
}
@media (max-width:768px){
  body.kppd-product-page-active .kppd-footer-related-carousel{
    width:100% !important;
  }
  body.kppd-product-page-active .kppd-footer-related-arrow{
    top:700% !important;
  }
  body.kppd-product-page-active .kppd-footer-related-prev{
    right:-4px !important;
  }
  body.kppd-product-page-active .kppd-footer-related-next{
    left:-4px !important;
  }
}
