/* Product page: preserve the public legacy layout with the current local stack. */
.product-detail-page {background:#f8f9fa;--form-primary:#04b66a;}
.product-detail-page [x-cloak],.product-detail-page [hidden] {display:none!important;}
.product-detail-page .detail-shell {width:100%;margin:auto;padding:0 0 24px;color:#212529;font:16px/1.8 iranyekan-md-fanumber;}
.product-detail-page .detail-shell a {text-decoration:none;color:inherit;}
.product-detail-page .detail-top {display:grid;gap:8px;min-width:0;}
.product-detail-page .detail-top > * {min-width:0;}

/* Gallery and banner: original frames, contained images and explicit controls. */
.product-detail-page .detail-gallery #top-slider {height:332px;width:100%;background:white;position:relative;}
.product-detail-page .detail-gallery :is(.carousel-inner,.carousel-item,.detail-image-open) {height:100%;width:100%;}
.product-detail-page .detail-image-open {display:flex;align-items:center;justify-content:center;padding:0;border:0;background:white;}
.product-detail-page .detail-gallery #top-slider img {width:100%;height:100%;max-height:none;max-width:100%;object-fit:contain;object-position:center;border-radius:0;padding:5px;}
.product-detail-page :is(.detail-gallery-prev,.detail-gallery-next) {position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:flex;align-items:center;justify-content:center;width:34px;height:56px;padding:0;border:1px solid #e0e4e8;border-radius:9px;background:#fffffff2;color:#505966;box-shadow:0 2px 8px #0000000a;}
.product-detail-page .detail-gallery-prev {left:4%;}.product-detail-page .detail-gallery-next {right:4%;}
.product-detail-page .detail-banner {display:block;margin-top:12px;padding-inline:8px;}
.product-detail-page .detail-banner img {display:block;width:100%;aspect-ratio:7.49;object-fit:contain;border-radius:3px;}

/* Summary: original title position, left tools and green purchase panel. */
.product-detail-page .detail-summary {padding-inline:8px;}
.product-detail-page #title_amount_box {position:relative;height:auto;border-radius:5px;padding:29px 0 165.6px;}
.product-detail-page .detail-top:not(.detail-top-keyword) #title_amount_box {padding-bottom:132.6px;}
.product-detail-page #product-name {font:16px/33px iranyekan-extrabold-fanumber;margin:0 15px 8px 0;overflow-wrap:anywhere;color:#212529;}
.product-detail-page .detail-rating {display:flex;align-items:center;gap:6px;margin:8px 15px;color:#6c757d;font-size:13px;}.product-detail-page .detail-rating span {color:#cc8700;}
.product-detail-page .detail-summary-heading {display:flex;align-items:flex-start;gap:12px;margin:0 12px 10px 8px;min-width:0;}
.product-detail-page .detail-summary-heading #product-name {flex:1;min-width:0;margin:0;}
.product-detail-page .detail-tools {display:flex;flex:none;flex-direction:column;gap:8px;}
.product-detail-page .detail-tools :is(button,a) {display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:3px 5px;border:1px solid grey;border-radius:4px;background:white;color:#212529;font-size:16px;line-height:24px;}
.product-detail-page .detail-tools img {width:16px;height:16px;}
.product-detail-page .detail-tools a img {position:relative;top:-1px;}
.product-detail-page #amount-button {position:absolute;bottom:0;inset-inline:0;padding-top:4px;border-radius:5px;}
.product-detail-page .detail-price-range {display:none;justify-content:flex-start;gap:8px;flex-wrap:wrap;width:100%;margin:0 auto;padding:0;text-align:right;font-size:14px;line-height:32.4px;transform:translateY(2px);}
.product-detail-page .detail-price-range b {color:#04b65d;font:18px/1.8 iranyekan-extrabold-fanumber;}
.product-detail-page .detail-price-range span:last-child b {color:#dc0d0d;}
.product-detail-page #cheapest_buy_btn {display:flex;align-items:center;width:100%;height:72px;min-width:0;gap:12px;margin:auto;padding:8px 18px 8px 16px;background:linear-gradient(110deg,#0ca367 0%,#12b876 55%,#1bb57a 100%);color:white;border:0;border-radius:8px;text-align:right;font:16px/28px iranyekan-bold-fanumber;}
.product-detail-page #cheapest_buy_btn:hover {color:white;background:linear-gradient(110deg,#09945f 0%,#0da86c 55%,#18a66f 100%);}
.product-detail-page #cheapest_buy_btn:focus-visible {outline:2px solid #087e54;outline-offset:3px;}
.product-detail-page .detail-purchase-copy {display:block;flex:1;min-width:0;}
.product-detail-page #cheapest_buy_btn strong {display:block;margin:0;font:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.product-detail-page #cheapest_buy_btn small,.product-detail-page .detail-purchase-price {font:inherit;}
.product-detail-page .detail-purchase-label {display:block;font:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.product-detail-page .detail-purchase-badge {flex:none;padding:1px 8px 3px;border-radius:12px;background:#086d4c;color:#fff;font:12px/20px iranyekan-bold-fanumber;white-space:nowrap;}

.product-detail-page .detail-store {position:absolute;bottom:86px;inset-inline:15px;display:flex;justify-content:space-between;gap:8px;font-size:13px;}
.product-detail-page .detail-chart-box {position:relative;display:none;height:212px;margin:16px 0 0;padding:8px;border-radius:5px;}
.product-detail-page .detail-chart {position:relative;height:100%;min-width:0;}
.product-detail-page .detail-chart-large {height:320px;}

/* Stable tabs, compact guide/parent link, original seller summary. */
.product-detail-page .detail-tabs-box {margin-top:16px;padding-top:16px;border-radius:5px;box-shadow:0 1px 2px #0004;}
.product-detail-page .detail-tabs-head {display:block;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0;}
.product-detail-page .detail-tabs {display:flex;flex-wrap:nowrap;gap:4px;overflow-x:auto;padding:0 8px;border:0;min-width:0;}
.product-detail-page .detail-tabs button {position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;white-space:nowrap;margin:0 0 5px;padding:6px 12px;border:0;border-bottom:4px solid transparent;border-radius:8px 8px 0 0;background:transparent;color:#646e74;font:13.5px/28.8px iranyekan-md-fanumber;}
.product-detail-page .detail-tabs button:hover {background:transparent;color:#343a40;}
.product-detail-page .detail-tabs button:focus-visible {outline:2px solid #2d6698;outline-offset:-2px;}
.product-detail-page .detail-tabs button.active {background:transparent;color:#343a40;font-family:iranyekan-extrabold-fanumber;}
.product-detail-page .detail-tabs button.active::after {content:"";position:absolute;inset-inline:12px;bottom:-4px;height:4px;border-radius:4px 4px 0 0;background:#df354a;}
.product-detail-page .detail-tabs i {margin:0;font-size:19px;line-height:1;}
.product-detail-page .detail-tabs button:is(.active,:hover) > i {color:#df354a;}
.product-detail-page .detail-tabs .detail-tab-count {color:#80858a;}
.product-detail-page .detail-tabs button[aria-controls="online_stores"] > span {transform:translateY(3px);}
.product-detail-page .detail-tabs button[aria-controls="online_stores"] > :is(i,span) {position:relative;top:-2px;}
.product-detail-page .detail-guide {display:none;align-items:center;gap:4px;max-width:45%;margin:0 16px 0 8px;padding:3px 8px;background:#f2f2f2;color:#204b70;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.product-detail-page .detail-guide img {width:18px;}
.product-detail-page .detail-tabs-box > [role=tabpanel] {padding:24px 12px;}
.product-detail-page .detail-tabs-box > #online_stores {padding:40px 0 0;}
.product-detail-page #online_header_box {min-height:163.4px;padding:16px 4px;border-bottom:1px solid #d6d6d6;text-align:center;}
.product-detail-page .detail-offer-count {display:flex;align-items:center;justify-content:center;gap:6px;margin:0 0 24px;color:grey;font:14px/28.8px iranyekan-bold-fanumber;}
.product-detail-page .detail-offer-count b {font:21px/28.8px iranyekan-extrabold-fanumber;color:#334467;}
.product-detail-page .detail-comparison {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:16px;line-height:28.8px;}
.product-detail-page .detail-comparison b {font:22px/28.8px iranyekan-extrabold-fanumber;}
.product-detail-page .detail-comparison strong {color:#334467;font:15px/28.8px iranyekan-extrabold-fanumber;}
.product-detail-page .detail-comparison-text {color:grey;font-size:12px;}
.product-detail-page .detail-minimum {color:#04b65d;}.product-detail-page .detail-maximum {color:#d10630;}

/* Seller filters retain the old two pill buttons and modal interactions. */
.product-detail-page .detail-seller-filter {scroll-margin-top:90px;min-width:0;margin:8px 0;padding:8px;background:#f8f9fa;}
.product-detail-page .detail-filter-toolbar {display:flex;align-items:center;gap:16px;min-width:0;}
.product-detail-page .detail-filter-options {display:flex;align-items:center;gap:8px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:thin;}
.product-detail-page .detail-filter-primary {display:flex;align-items:center;gap:8px;flex:none;}
.product-detail-page .detail-filter-toggle[data-bs-target="#detail-city-modal"] {gap:3px;}
.product-detail-page :is(.detail-filter-toggle,.detail-filter-chip) {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;flex:none;padding:4px 8px;border:1px solid #8fc2b1;border-radius:8px;background:#f4fffc;color:#0a8360;font:12px/24px iranyekan-md-fanumber;white-space:nowrap;box-shadow:none;}
.product-detail-page .detail-shell a.detail-filter-chip {color:#0a8360;}
.product-detail-page :is(.detail-filter-toggle,.detail-filter-chip):hover {background:#e9fff9;}
.product-detail-page :is(.detail-filter-toggle,.detail-filter-chip):focus-visible {outline:2px solid #0a8360;outline-offset:-2px;}
.product-detail-page .detail-filter-toggle img {width:18px;height:18px;object-fit:contain;}
.product-detail-page .detail-filter-toggle > i {display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;font-size:17px;line-height:1;transform:translateY(-1px);}
.product-detail-page .detail-offer-chips {display:flex;align-items:center;gap:8px;flex:none;}
.product-detail-page .detail-offer-chips:empty {display:none;}
.product-detail-page .detail-chip-remove {display:inline-flex;align-items:center;justify-content:center;width:21px;height:22px;flex:none;border:1px solid #8fc2b1;border-radius:3px;background:#fff;}
.product-detail-page .detail-chip-remove img {width:11px;height:11px;}
.product-detail-page .detail-filter-modal {--bs-modal-margin:12px;--form-primary-soft:#eff9f4;--form-action:#0ba46c;}
.product-detail-page .detail-filter-modal .modal-dialog {width:calc(100% - 24px);max-width:440px;min-height:calc(100% - 24px);margin:12px auto;}
.product-detail-page .detail-filter-modal .modal-content {max-height:calc(100dvh - 24px);margin:0;border:1px solid #e1e8e5;border-radius:16px;overflow:hidden;box-shadow:0 16px 48px #122d2426;}
.product-detail-page .detail-filter-modal .modal-header {gap:12px;padding:16px 20px;border-bottom:1px solid #edf0ef;}
.product-detail-page .detail-filter-modal .modal-header h2 {display:flex;align-items:center;gap:9px;margin:0;font:15px/28px iranyekan-extrabold-fanumber;color:#283d35;}
.product-detail-page .detail-filter-modal .modal-header h2 > i {display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9px;background:#edf8f2;color:#09885a;font-size:17px;}
.product-detail-page .detail-filter-modal .modal-header .btn-close {flex:none;margin:0;margin-inline-start:auto;padding:9px;border-radius:8px;background-size:11px;opacity:.65;}
.product-detail-page .detail-filter-modal .modal-header .btn-close:hover {background-color:#fff0f1;opacity:1;}
.product-detail-page .detail-filter-modal .modal-body {min-height:0;padding:20px;overflow-y:auto;font-size:13px;}
.product-detail-page .detail-filter-modal .form-field {min-width:0;margin:0 0 18px;}
.product-detail-page .detail-filter-modal .form-field:last-child {margin-bottom:0;}
.product-detail-page .detail-filter-modal .form-field > label {display:block;margin-bottom:10px;font:13px/24px iranyekan-extrabold-fanumber;color:#526159;}
.product-detail-page .detail-filter-modal .profile-search-select-input {font-size:13px!important;}
.product-detail-page #detail-city-modal .modal-body {padding:0px 20px 20px 20px;}
.product-detail-page #detail-city-modal .profile-checklist-options label {font-size:14px;}
.product-detail-page .detail-filter-modal .profile-checklist-options input[type="checkbox"] {width:19px!important;height:19px!important;flex-basis:19px;}
.product-detail-page .detail-filter-modal .modal-footer {position:static;margin:0;padding:14px 20px;gap:8px;flex-wrap:nowrap;justify-content:flex-end;border-top:1px solid #edf0ef;background:#fcfdfc;}
.product-detail-page .detail-filter-modal .modal-footer > button {margin:0;min-height:38px;padding:6px 12px;border-radius:9px;font:13px/24px iranyekan-md-fanumber;}
@media(min-width:1200px) {
 .product-detail-page #detail-filter-modal .profile-checklist-options label {font-size:14px;}
}
.product-detail-page .detail-filter-apply {border:1px solid #09975f;background:#0aa66a;color:#fff;}
.product-detail-page .detail-filter-apply:hover {color:#fff;background:#098c5a;}
.product-detail-page .detail-filter-cancel {border:1px solid #dce5df;background:#fff;color:#5d6c64;}
.product-detail-page .detail-filter-cancel:hover {background:#f0f5f2;}

.product-detail-page .detail-custom-store {display:inline-flex;align-items:center;gap:8px;flex:none;min-height:34px;margin:0;padding:0;font-size:13px;white-space:nowrap;cursor:pointer;}
.product-detail-page .detail-custom-store .form-check-input {position:static;inset:auto;float:none;margin:0;padding:0;transform:none;flex:none;width:38px!important;height:21px!important;min-height:21px;border:1px solid #a4aaae;background-color:#ffffff;box-shadow:none;cursor:pointer;}
.product-detail-page .detail-custom-store .form-check-input:checked {background-color:#2585ce;border-color:#2585ce;}
.product-detail-page .detail-custom-store .form-check-input:focus-visible {outline:2px solid #2585ce;outline-offset:3px;}
@media(max-width:575.98px) {
 .product-detail-page .detail-filter-toolbar {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;}
 .product-detail-page .detail-filter-options {display:contents;}
 .product-detail-page .detail-filter-primary {grid-column:1;grid-row:1;min-width:0;}
 .product-detail-page .detail-custom-store {grid-column:2;grid-row:1;margin-inline-start:auto;font-size:12px;}
 .product-detail-page .detail-offer-chips {grid-column:1/-1;grid-row:2;min-width:0;max-width:100%;gap:6px;margin-top:2px;padding:8px 0 2px;border-top:1px solid #e0e7e4;overflow-x:auto;scrollbar-width:none;}
 .product-detail-page .detail-offer-chips::-webkit-scrollbar {display:none;}
 .product-detail-page .detail-filter-chip {min-height:30px;gap:5px;padding:3px 6px;border-radius:7px;font-size:11.5px;line-height:22px;}
 .product-detail-page .detail-chip-remove {width:18px;height:19px;}
 .product-detail-page .detail-chip-remove img {width:9px;height:9px;}
}

/* Seller cards: fixed media row, black titles, aligned price/action and details. */
.product-detail-page #online_box {min-height:200px;}
.product-detail-page .detail-sellers-grid {display:grid;grid-template-columns:minmax(0,1fr);column-gap:16px;padding:8px;}
.product-detail-page .detail-seller {min-width:0;align-self:start;border-bottom:1px solid #e5e0e0;padding:16px 4px;}
.product-detail-page .detail-seller header {display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:0 0 4px;padding-inline:8px;font-size:14px;}
.product-detail-page .detail-store-name {color:#334467!important;font:15px/27px iranyekan-extrabold-fanumber;}
.product-detail-page .detail-seller-body {display:flex;height:114px;min-width:0;}
.product-detail-page .detail-seller-logo {flex:0 0 119px;padding:7px 12px 12px;}
.product-detail-page .detail-seller-logo img {width:95px;height:95px;object-fit:contain;border-radius:5px;}
.product-detail-page .detail-seller-body > div {position:relative;min-width:0;flex:1;padding:0 0 0 8px;}
.product-detail-page .detail-seller h2 {display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0;font:14px/25px iranyekan-bold-fanumber;color:#444;}
.product-detail-page .detail-seller-time {position:absolute;bottom:0;inset-inline:0 8px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#6c757d;font:12px/21.6px iranyekan-li-fanumber;}
.product-detail-page .detail-discount {flex-shrink:0;white-space:nowrap;background:#ef394e;border-radius:20px;padding:2px 10px;color:white;font:14px/1.3 iranyekan-bold-fanumber;}
.product-detail-page .detail-seller-bottom {display:flex;align-items:center;justify-content:space-between;gap:8px;margin:24px 0 0;padding-inline:8px;min-height:33px;}
.product-detail-page .detail-seller-bottom strong {white-space:nowrap;font:18px/1.8 iranyekan-extrabold-fanumber;}
.product-detail-page .detail-seller-bottom small {font-size:12px;}
.product-detail-page .detail-buy {display:inline-block;white-space:nowrap;border:2px solid #04b66a;border-radius:8px;background:white;color:#04b66a!important;padding:6px 10px;font:13px/1.8 iranyekan-md-fanumber;}
.product-detail-page .detail-buy:not(.is-unavailable):hover {color:white!important;border-color:#0da96c;background:linear-gradient(115deg,#0b9c64 0%,#18b87a 100%);}.product-detail-page .detail-buy.is-unavailable {border-color:#999;color:#999!important;}
.product-detail-page .detail-store-info {margin:16px 8px 0;}
.product-detail-page .detail-store-info summary {position:relative;display:flex;align-items:center;justify-content:center;gap:4px;list-style:none;cursor:pointer;width:100%;min-height:33px;padding:2px 30px;border:0;border-radius:5px;background:#f3f3f3;color:#444;font-size:11px;line-height:28.8px;}
.product-detail-page .detail-store-info summary::-webkit-details-marker {display:none;}
.product-detail-page .detail-store-info summary img {width:17px;}
.product-detail-page .detail-store-info summary .detail-chevron {position:absolute;left:12px;width:14px;}
.product-detail-page .detail-store-info[open] .detail-chevron {transform:rotate(180deg);}
.product-detail-page .detail-store-info-content {margin-top:5px;padding:10px;background:#fbfcfc;border:1px solid #edf1ef;border-radius:8px;font-family:iranyekan-md-fanumber;font-size:12px;line-height:1.9;}
.product-detail-page .detail-store-info-content p {margin:8px 0;}
.product-detail-page .detail-store-profile {display:inline-flex;align-items:center;justify-content:center;gap:9px;flex:none;min-height:42px;width:auto;min-width:154px;max-width:100%;margin:0;margin-inline-start:auto;padding:7px 14px;border:1px solid #70b89a;border-radius:9px;background:#eafaf2;color:#087a56;font:12.5px/24px iranyekan-bold-fanumber;white-space:nowrap;text-align:center;transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s;}
.product-detail-page .detail-seller header > span {color:#7b8380;font-size:12px;line-height:24px;}
.product-detail-page .detail-offers-more {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;grid-column:1/-1;text-align:center;padding:24px 0 20px;}
.product-detail-page .detail-offers-more :is(a.btn,button) {scroll-margin-block:80px;display:inline-flex;align-items:center;justify-content:center;gap:14px;min-width:min(100%,230px);max-width:100%;min-height:42px;padding:8px 20px;border:1px solid #8fc2b1;border-radius:10px;background:#f4fffc;color:#087a56;font:13px/24px iranyekan-bold-fanumber;}
.product-detail-page .detail-offers-more :is(a.btn,button):hover {background:#e3f7ef;border-color:#63a88c;color:#076748;}
.product-detail-page .detail-offers-more :is(a.btn,button):focus {box-shadow:none;}
.product-detail-page .detail-offers-more :is(a.btn,button):focus-visible {outline:2px solid #098c5e;outline-offset:3px;box-shadow:none;}
.product-detail-page .detail-offers-more :is(a.btn,button) > i {font-size:20px;}
.product-detail-page .detail-offers-more a.btn {border-color:#e49ba4;background:#fff6f7;color:#c52f43;}
.product-detail-page .detail-offers-more a.btn:hover {border-color:#d9364d;background:#d9364d;color:white;}
.product-detail-page .detail-offers-more a.btn:focus-visible {outline-color:#c52f43;}
.product-detail-page .detail-offers-more .detail-offers-page-loading.htmx-request {display:flex;align-items:center;justify-content:center;flex-basis:100%;margin-top:4px;padding:0;background:none;}
.product-detail-page .detail-offers-page-loading .spinner-border {width:24px;height:24px;border-width:2px;}
@media(min-width:1200px) {
  .product-detail-page .detail-offers-more .detail-offers-page-loading.htmx-request {margin-top:10px;}
  .product-detail-page .detail-offers-page-loading .spinner-border {width:30px;height:30px;border-width:3px;}
}
.product-detail-page .detail-offers-page-error {flex-basis:100%;margin:0;color:#b53443;font-size:12px;}

.product-detail-page .detail-specs {margin:0;}
.product-detail-page .detail-specs > div {display:grid;grid-template-columns:105px minmax(0,1fr);gap:10px;margin-top:10px;line-height:28.8px;}
.product-detail-page .detail-specs dt {font:13.5px/28.8px iranyekan-md-fanumber;color:#696666;padding:5px 8px;background:#d4cfcf2e;}
.product-detail-page .detail-specs dd {font:13px/28.8px iranyekan-reg-fa-number;color:#212529;border-bottom:1px solid #f2f2f2;padding:0;margin:0;text-align:justify;overflow-wrap:anywhere;}
.product-detail-page .detail-description {font-size:14px;line-height:2.1;overflow-wrap:anywhere;}.product-detail-page .detail-description img {max-width:100%;height:auto;}
.product-detail-page .detail-description table {max-width:100%;display:block;overflow:auto;}
.product-detail-page .detail-comment {border-bottom:1px solid #eee;padding:16px 8px;}.product-detail-page .detail-comment time {margin-inline:12px;font-size:12px;color:#777;}
.product-detail-page .detail-comment-form {max-width:720px;padding:20px 8px;}.product-detail-page .detail-comment-form .form-field {margin-bottom:18px;}
.product-detail-page .detail-comment-form input,.product-detail-page .detail-comment-form select,.product-detail-page .detail-comment-form textarea {font-size:13px;max-width:100%;}
.product-detail-page .detail-submit {background:#04b66a;color:white;padding:10px 24px;border-radius:8px;min-height:42px;font-size:13px;}.product-detail-page .detail-submit:hover {background:#059a5c;color:white;}
.product-detail-page .detail-tabs-box h2,.product-detail-page .detail-tabs-box h3,.product-detail-page .modal h2 {font-size:15px;line-height:1.9;}
.product-detail-page .modal h2 {margin:0;}.product-detail-page .modal-body a {margin-inline-end:12px;}
.product-detail-page .detail-share input {width:100%;padding:10px;border:1px solid #ddd;border-radius:6px;direction:ltr;font-size:13px;margin-bottom:16px;}
.product-detail-page .detail-share button {border:1px solid #04b66a;padding:8px 14px;border-radius:5px;background:white;color:#058c54;}
.product-detail-page .detail-related {margin-top:28px;}
.product-detail-page .detail-related-title {display:flex;align-items:center;gap:10px;margin:0 8px 4px;padding:8px 0;color:#334467;font:15px/28px iranyekan-extrabold-fanumber;}
.product-detail-page .detail-related-icon {flex:none;width:40px;height:40px;object-fit:contain;}
.product-detail-page .detail-related-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 8px;}
.product-detail-page .detail-related .card {min-width:0;background:white;border:1px solid #ddd;border-radius:3px;}
.product-detail-page .detail-related .card img {width:100%;height:180px;object-fit:contain;padding:8px;}
.product-detail-page .detail-related .card h2 {color:#212529;font-size:12px;line-height:1.9;padding:10px;min-height:70px;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.product-detail-page .detail-related .card > div {display:flex;justify-content:space-between;align-items:center;gap:5px;padding:10px;flex-wrap:wrap;font-size:11px;}.product-detail-page .detail-related strong {color:#0ca377;font-weight:400;}
.product-detail-page .detail-empty {grid-column:1/-1;padding:24px;color:#777;}
.product-detail-page .detail-credits {font-size:12px;margin-top:20px;}
.product-detail-page .htmx-indicator {display:none;}.product-detail-page .htmx-request.htmx-indicator,.product-detail-page .htmx-request .htmx-indicator {display:inline-flex;align-items:center;gap:8px;color:#d10630;}
.product-detail-page .detail-offers-region {position:relative;}
.product-detail-page #online_box[aria-busy=true] {visibility:hidden;pointer-events:none;}
.product-detail-page #detail-offers-loading {position:absolute;top:88px;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;padding:16px;color:#d10630;font:13px/24px iranyekan-md-fanumber;text-align:center;}
.product-detail-page #detail-offers-loading .spinner-border {width:30px;height:30px;border-width:3px;}.product-detail-page .spinner-border {width:20px;height:20px;border-width:2px;}
.product-detail-page .detail-messages {padding:16px;background:#e6f7ee;list-style:none;}

/* Responsive rules follow the public page's original spacing and breakpoints. */
@media(max-width:575px){
 .product-detail-page :is(.detail-gallery-prev,.detail-gallery-next){width:40px;border:0;border-radius:5px;background:#fff9;}
 .product-detail-page .detail-gallery-prev{left:2%;}.product-detail-page .detail-gallery-next{right:2%;}
 .product-detail-page .detail-tabs{padding-inline:8px;justify-content:flex-start;}
 .product-detail-page .detail-tabs-head{display:block;}
}
/* Compact mobile tabs; retain native scrolling only when content needs it. */
@media(max-width:575.98px) {
 .product-detail-page .detail-tabs {max-width:100%;scrollbar-width:none;}
 .product-detail-page .detail-tabs::-webkit-scrollbar {display:none;}
}
@media(max-width:379.98px) {
 .product-detail-page .detail-tabs {gap:2px;padding-inline:6px;justify-content:space-between;}
 .product-detail-page .detail-tabs button {gap:4px;padding-inline:6px;font-size:12.5px;}
 .product-detail-page .detail-tabs i {font-size:17px;}
 .product-detail-page .detail-tabs button.active::after {inset-inline:6px;}
}
@media(min-width:380px) and (max-width:449.98px) {
 .product-detail-page .detail-tabs button {gap:5px;padding-inline:8px;font-size:12.75px;}
 .product-detail-page .detail-tabs i {font-size:18px;}
 .product-detail-page .detail-tabs button.active::after {inset-inline:8px;}
}
@media(min-width:576px){
 .product-detail-page .detail-shell{width:calc(100% - 46px);padding-top:20px;}
 .product-detail-page .detail-summary{padding:0;}
 .product-detail-page #nav-tabs button{padding:3px 19px;}
 .product-detail-page .detail-gallery #top-slider{height:362px;}
 .product-detail-page .detail-gallery #top-slider img{width:360px;max-width:100%;height:360px;padding:5px;}
 .product-detail-page .detail-banner{padding:0;}
 .product-detail-page .detail-comparison{flex-direction:row;flex-wrap:wrap;gap:8px;}
 .product-detail-page #online_header_box{min-height:125.6px;}
 .product-detail-page .detail-comparison b{font-size:23px;}
 .product-detail-page .detail-comparison-text{font-size:14px;}
 .product-detail-page .detail-related-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(min-width:768px){
 .product-detail-page .detail-gallery #top-slider{height:450px;}
 .product-detail-page .detail-gallery #top-slider img{width:448px;height:448px;padding:8px;}
 .product-detail-page .detail-shell{width:calc(100% - 136px);}
 .product-detail-page #title_amount_box{padding-bottom:217.4px;}
 .product-detail-page .detail-top:not(.detail-top-keyword) #title_amount_box{padding-bottom:183.6px;}
 .product-detail-page #amount-button{padding:8px 0;border:1px solid #b2b0b0;}
 .product-detail-page .detail-price-range{display:flex;}
 .product-detail-page :is(#cheapest_buy_btn,.detail-price-range){width:66.6667%;}
 .product-detail-page .detail-offer-count{font-size:15px;}.product-detail-page .detail-offer-count b{font-size:22px;}
 .product-detail-page .detail-sellers-grid{padding:8px 18px;}
 .product-detail-page #online_box{min-height:400px;}
}
@media(min-width:992px){
 .product-detail-page .detail-shell{width:calc(100% - 36px);padding-top:48px;}
 .product-detail-page .detail-top{grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:24px;}
 .product-detail-page .detail-gallery #top-slider{height:400px;}
 .product-detail-page .detail-gallery #top-slider img{width:400px;height:398px;}
 .product-detail-page :is(#title_amount_box,.detail-top:not(.detail-top-keyword) #title_amount_box){height:400px;padding:21px 0 0;}
 .product-detail-page #product-name{margin-left:8px;}
 .product-detail-page :is(#cheapest_buy_btn,.detail-price-range){width:calc(100% - 32px);}
 .product-detail-page .detail-tabs-box{margin-top:16px;}
 .product-detail-page .detail-tabs-head{display:flex;}
 .product-detail-page .detail-tabs{flex-shrink:0;}
 .product-detail-page .detail-guide{display:flex;}
 .product-detail-page .detail-sellers-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding-top:16px;}
 .product-detail-page .detail-seller-bottom strong{font-size:20px;}
 .product-detail-page .detail-comparison b{font-size:24px;}
}
@media(min-width:1200px){
 .product-detail-page .detail-shell{width:calc(100% - 116px);}
 .product-detail-page .detail-top{grid-template-columns:minmax(0,calc(66.666667% - 13.333333px)) minmax(0,1fr);}
 .product-detail-page .detail-chart-box{display:block;}
 .product-detail-page .detail-comparison b{font-size:27px;}
 .product-detail-page .detail-comparison-text{font-size:16px;}
 .product-detail-page .detail-related-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
 .product-detail-page .detail-related .card img{height:240px;}
}
@media(min-width:1400px){
 .product-detail-page .detail-shell{width:calc(100% - 176px);}
 .product-detail-page .detail-gallery #top-slider{height:420px;}
 .product-detail-page :is(#title_amount_box,.detail-top:not(.detail-top-keyword) #title_amount_box){height:309px;padding-top:16px;}
 .product-detail-page #product-name{font-size:16px;line-height:33px;}
 .product-detail-page .detail-chart-box{height:214px;}
}
@media(min-width:1500px){.product-detail-page .detail-shell{width:calc(100% - 336px);}}
@media(prefers-reduced-motion:reduce){.product-detail-page .carousel-item{transition:none;}}

/* The shared native checklist is expanded inside the legacy-style modals. */
.product-detail-page .detail-filter-modal .is-inline > .profile-search-select-panel {position:static;width:100%;max-height:none;border:0;padding:0;box-shadow:none;}

@media(min-width:992px) and (max-width:1199px){
 .product-detail-page .detail-top:has(.detail-banner){grid-template-areas:"gallery summary" "banner banner";row-gap:16px;}
 .product-detail-page .detail-top:has(.detail-banner) .detail-gallery{display:contents;}
 .product-detail-page .detail-top:has(.detail-banner) .detail-gallery #top-slider{grid-area:gallery;}
 .product-detail-page .detail-top:has(.detail-banner) .detail-summary{grid-area:summary;}
 .product-detail-page .detail-top:has(.detail-banner) .detail-banner{grid-area:banner;margin-top:0;}
}

/* Seller disclosure: original metadata, icons and comfortable closed height. */
.product-detail-page .detail-store-facts {padding:2px 10px;background:#fff;border:1px solid #e8eeea;border-radius:9px;}
.product-detail-page .detail-store-facts > :is(.detail-store-meta,.detail-store-delivery) {display:grid;grid-template-columns:28px minmax(0,1fr);align-items:start;gap:9px;padding:8px 0;margin:0;font-size:12px;line-height:26px;color:#34443c;overflow-wrap:anywhere;}
.product-detail-page .detail-store-facts > :not(:last-child) {border-bottom:1px solid #f0f3f1;}
.product-detail-page .detail-store-fact-icon {display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;background:#f2f7f4;}
.product-detail-page .detail-store-fact-icon img {width:17px;height:18px;object-fit:contain;}
.product-detail-page .detail-store-fact-icon img.detail-location-icon {width:11px;}
.product-detail-page .detail-store-fact-label {font-family:iranyekan-bold-fanumber;color:#6c7972;}
.product-detail-page .detail-store-info-content .detail-store-delivery-text {margin:3px 0 0;line-height:26px;color:#34443c;}
.product-detail-page .detail-store-rating {display:flex;align-items:center;justify-content:center;gap:6px;}
.product-detail-page .detail-store-rating img {width:20px;}
.product-detail-page .detail-store-rating span {border-bottom:1px solid #e4e4e4;}
.product-detail-page .detail-store-actions {display:flex;align-items:center;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid #e6ece8;min-width:0;}
.product-detail-page .detail-store-feature-rail {position:relative;flex:1;min-width:0;}
.product-detail-page .detail-store-feature-rail.has-scroll-controls {padding-inline:30px;}
.product-detail-page .detail-store-features {display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;min-width:0;padding:2px 0;}
.product-detail-page .detail-store-features::-webkit-scrollbar {display:none;}
.product-detail-page .detail-store-feature-rail .detail-feature-scroll {top:50%;width:25px;height:30px;}
.product-detail-page .detail-store-actions .detail-store-profile {color:#087a56;}
@media(max-width:575.98px) {
 .product-detail-page .detail-store-actions {flex-wrap:wrap;gap:8px;}
 .product-detail-page .detail-store-feature-rail {flex-basis:100%;}
}
.product-detail-page .detail-store-features > span {display:inline-flex;align-items:center;gap:6px;flex:none;min-height:32px;padding:3px 10px;border:1px solid #dce6e0;border-radius:8px;background:white;white-space:nowrap;}
.product-detail-page .detail-store-features img {width:22px;max-height:24px;}
.product-detail-page .detail-delivery-name {background:white;padding:3px 5px;color:#255b84;border-radius:5px;}
.product-detail-page .detail-store-profile-icon {display:inline-block;flex:none;width:18px;height:18px;background-color:currentColor;-webkit-mask:url("../../icon/store.svg") center/contain no-repeat;mask:url("../../icon/store.svg") center/contain no-repeat;}
.product-detail-page .detail-store-profile > i {font-size:19px;margin-inline-start:2px;}
.product-detail-page .detail-store-actions .detail-store-profile:hover {color:#fff;border-color:#098c5e;background:#0a9d65;box-shadow:0 3px 9px #0a9d6526;}
.product-detail-page .detail-store-profile:focus-visible {outline:2px solid #098c5e;outline-offset:3px;}

/* Thumbnails stay inside the unchanged original image frame. */
.product-detail-page .detail-gallery #top-slider.detail-gallery-multiple {display:grid;grid-template-rows:minmax(0,1fr) 78px;}
.product-detail-page .detail-gallery-multiple .carousel-inner {min-height:0;}
.product-detail-page .detail-gallery #top-slider.detail-gallery-multiple .detail-image-open img {width:100%;height:100%;min-height:0;}
.product-detail-page .detail-gallery-thumbs,.product-detail-page .detail-lightbox-thumbs {display:flex;align-items:center;gap:8px;overflow-x:auto;min-width:0;padding:5px 10px;scrollbar-width:thin;}
.product-detail-page :is(.detail-gallery-thumbs,.detail-lightbox-thumbs) > button {flex:0 0 78px;height:56px;padding:3px;border:1px solid #e0e4e8;border-radius:8px;background:white;}
.product-detail-page .detail-gallery #top-slider .detail-gallery-thumbs img,.product-detail-page .detail-lightbox-thumbs img {display:block;width:100%;height:100%;padding:0;object-fit:contain;}
.product-detail-page :is(.detail-gallery-thumbs,.detail-lightbox-thumbs) > button[aria-current=true] {border:2px solid #d10630;}
.product-detail-page .detail-gallery-multiple :is(.detail-gallery-prev,.detail-gallery-next) {top:calc((100% - 78px)/2);}

/* Same-page gallery dialog, dark backdrop and full keyboard/touch navigation. */
/* Match the three-ID specificity of extracted.css without changing shared Home CSS. */
.product-detail-page #footer#footer#footer.mobile-footer {z-index:1030!important;}
.product-detail-page .footer {z-index:1;}
.product-detail-page .detail-lightbox {background:rgb(15 23 42 / 68%);}
.product-detail-page .detail-lightbox .modal-dialog {max-width:1000px;width:calc(100% - 32px);margin:16px auto;min-height:calc(100% - 32px);}
.product-detail-page .detail-lightbox .modal-content {height:min(800px,calc(100dvh - 32px));border:0;border-radius:14px;overflow:hidden;box-shadow:0 20px 65px #0005;}
.product-detail-page .detail-lightbox .modal-header {gap:16px;flex:none;padding:14px 20px;}
.product-detail-page .detail-lightbox .modal-header h2 {font:13px/1.9 iranyekan-md-fanumber;}
.product-detail-page .detail-lightbox .btn-close {flex:none;margin:0 auto 0 0;padding:8px;}
.product-detail-page .detail-lightbox-body {display:flex;flex-direction:column;gap:6px;min-height:0;padding:12px;}
.product-detail-page .detail-lightbox-stage {position:relative;flex:1;min-height:0;width:100%;display:flex;align-items:center;justify-content:center;direction:ltr;touch-action:pan-y pinch-zoom;}
.product-detail-page .detail-lightbox-stage .detail-lightbox-image {width:calc(100% - 100px);height:100%;min-height:0;object-fit:contain;}
.product-detail-page .detail-lightbox-stage > button {position:absolute;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:36px;height:58px;border:1px solid #e0e4e8;border-radius:10px;color:#505966;background:#fff;font-size:28px;}
.product-detail-page .detail-lightbox-stage > button:first-child {left:0;}
.product-detail-page .detail-lightbox-stage > button:last-child {right:0;}
.product-detail-page .detail-lightbox-stage > button:hover {color:#d10630;border-color:#d10630;}
.product-detail-page .detail-lightbox-count {margin:0;color:#62666d;font:12px/1.8 iranyekan-md-fanumber;}
.product-detail-page .detail-lightbox-thumbs {max-width:100%;flex:none;margin-inline:auto;}
.product-detail-page :is(.detail-gallery-thumbs,.detail-lightbox-thumbs,.detail-lightbox-stage) button:focus-visible {outline:2px solid #0b86b9;outline-offset:2px;}

/* Specs empty state and a single responsive comment form for every viewport. */
.product-detail-page .detail-description-empty {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:220px;padding:28px 16px;text-align:center;color:#62666d;}
.product-detail-page .detail-description-empty > .detail-empty-icon {display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border:1px solid #f6e4c9;border-radius:14px;background:#fff8ed;color:#c47a12;font-size:26px;}
.product-detail-page .detail-description-empty p {margin:0;font-size:13px;}
.product-detail-page .detail-description a.detail-description-link {display:inline-flex;align-items:center;justify-content:center;gap:12px;border:2px solid #d65b2b;border-radius:8px;padding:5px 12px;background:#ffffff;color:#d65b2b;font-size:13px;line-height:24px;}
.product-detail-page .detail-description a.detail-description-link:hover {background:#d65b2b;color:white;}
.product-detail-page .detail-description-link i {font-size:22px;line-height:1;color:inherit;}
.product-detail-page .detail-description-link:focus-visible {outline:2px solid #b34720;outline-offset:3px;}
.product-detail-page .detail-comments-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 4px;}
.product-detail-page .detail-comments-heading h2 {margin:0;}
.product-detail-page .detail-comments-heading span {font-size:13px;color:#62666d;}
.product-detail-page a.detail-comment-jump {display:inline-flex;align-items:center;gap:8px;color:#0b86b9;font-size:13px;white-space:nowrap;}
.product-detail-page .detail-comments-empty {padding:16px 4px;margin:0;color:#62666d;font-size:13px;}
.product-detail-page .detail-comment header {display:flex;flex-wrap:wrap;align-items:center;gap:10px;}
.product-detail-page .detail-comment time {margin:0;}
.product-detail-page .detail-comment-score {display:inline-flex;align-items:center;gap:6px;}
.product-detail-page .detail-comment p {margin:12px 0 0;font-size:13px;overflow-wrap:anywhere;}
.product-detail-page .detail-comment .detail-comment-pros {color:#087a56;}
.product-detail-page .detail-comment .detail-comment-cons {color:#b53443;}
.product-detail-page #detail-comment-form {width:100%;max-width:720px;margin:20px 0 0 auto;padding:24px 4px 12px;border-top:1px solid #e5e7eb;scroll-margin-top:90px;}
.product-detail-page .detail-comment-hint {font-size:12px;color:#62666d;margin-bottom:20px;}
.product-detail-page .detail-comment-fields {display:grid;grid-template-columns:minmax(0,1fr);gap:18px;}
.product-detail-page .detail-comment-fields .form-field {margin:0;min-width:0;}
.product-detail-page .detail-comment-fields label {display:block;font-size:13px;margin-bottom:8px;}
.product-detail-page .detail-comment-fields :is(input,select,textarea) {width:100%;}
.product-detail-page #detail-comment-form .admin-filter-actions {margin-top:20px;}
.product-detail-page .detail-chart canvas {direction:ltr;}
@media(min-width:768px) {
 .product-detail-page .detail-store-info-content {font-size:12px;}
 .product-detail-page .detail-comment-fields {grid-template-columns:repeat(2,minmax(0,1fr));}
 .product-detail-page .detail-field-content,.product-detail-page .detail-field-score {grid-column:1/-1;}
 .product-detail-page .detail-field-score select {max-width:220px;}
}
@media(max-width:575.98px) {
 .product-detail-page .detail-lightbox .modal-dialog {width:calc(100% - 16px);margin:8px auto;min-height:calc(100% - 16px);}
 .product-detail-page .detail-lightbox .modal-content {height:calc(100dvh - 16px);border-radius:10px;}
 .product-detail-page .detail-lightbox .modal-header {padding:12px;}
 .product-detail-page .detail-lightbox-body {padding:8px;}
 .product-detail-page .detail-lightbox-stage .detail-lightbox-image {width:calc(100% - 64px);}
 .product-detail-page .detail-lightbox-stage > button {width:32px;height:50px;}
}


/* Comment direction and gold-star rating; the native select remains the POST source. */
.product-detail-page #comment {text-align:right;}
.product-detail-page .detail-field-email input:placeholder-shown {direction:rtl;text-align:right;}
.product-detail-page .detail-field-email input::placeholder {direction:rtl;text-align:right;}
.product-detail-page .detail-field-email input:not(:placeholder-shown) {direction:ltr;text-align:left;}
.product-detail-page .detail-rating > img {width:18px;height:18px;object-fit:contain;}

.product-detail-page .detail-star-rating {display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:32px;}
.product-detail-page .detail-star-picker {display:flex;direction:ltr;gap:2px;}
.product-detail-page .detail-rating-star {display:flex;align-items:center;justify-content:center;width:28px;height:32px;padding:3px;border:0;border-radius:7px;background:transparent;}
.product-detail-page .detail-rating-star img {width:21px;height:21px;filter:grayscale(1);opacity:.55;}
.product-detail-page .detail-rating-star[data-filled=true] img {filter:none;opacity:1;}
.product-detail-page .detail-rating-star:focus-visible {outline:2px solid #0b86b9;outline-offset:2px;}
.product-detail-page .detail-rating-value {font-size:12px;color:#62666d;}

.product-detail-page :is(.detail-gallery-prev,.detail-gallery-next,.detail-lightbox-stage > button) svg {width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.product-detail-page :is(.detail-gallery-prev,.detail-gallery-next):hover {border-color:#c6cdd5;background:#f8fafb;color:#d10630;}

/* Real published siblings, with ordinary crawlable URLs and scoped HTMX navigation. */
.product-detail-page .detail-variant-picker {position:relative;margin:12px 15px 4px;min-width:0;}
.product-detail-page .detail-variants {display:flex;align-items:flex-start;gap:8px;overflow-x:auto;overflow-y:hidden;padding:0 0 4px;scrollbar-width:thin;}
.product-detail-page .detail-variants > a {display:flex;flex-direction:column;justify-content:center;gap:0;flex:0 0 auto;width:max-content;min-width:120px;max-width:220px;height:56px;padding:8px;border:1px solid #cbd5e1;border-radius:8px;background:white;color:#1e293b;}
.product-detail-page .detail-variants > a[aria-current=page] {border:2px solid #1e293b;padding:7px;background:white;}
.product-detail-page .detail-variants > a:hover {border-color:#64748b;}
.product-detail-page .detail-variants > a:focus-visible {outline:2px solid #0b86b9;outline-offset:1px;}
.product-detail-page .detail-variant-label {display:block;min-width:98px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:12px/19px iranyekan-extrabold-fanumber;text-align:right;}
.product-detail-page .detail-variant-price {font:12px/19px iranyekan-md-fanumber;color:#1e293b;white-space:nowrap;}
.product-detail-page #detail-variant-loading {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:3;display:none;margin:0;color:#d10630;pointer-events:none;}
.product-detail-page #detail-variant-loading .spinner-border {width:42px;height:42px;border-width:3px;}
.product-detail-page #detail-page-content[aria-busy=true] #detail-variant-loading {display:flex;opacity:1;}
.product-detail-page #detail-page-content[aria-busy=true] .detail-image-open {opacity:.6;}
.product-detail-page #top-slider.detail-gallery-multiple #detail-variant-loading {top:calc(50% - 39px);}
.product-detail-page .detail-image-open {transition:opacity .12s ease;}
.product-detail-page #detail-page-content {transition:opacity .12s ease;}
.product-detail-page #detail-page-content.htmx-added {opacity:.92;}
.product-detail-page .detail-variant-error {margin:6px 0;color:#b53443;font-size:12px;}
@media(max-width:1199.98px) {
 .product-detail-page .detail-top.detail-top-without-variants #title_amount_box {height:auto;min-height:0;padding-bottom:0;}
 .product-detail-page .detail-top-without-variants #amount-button {position:static;margin-top:35px;}
}
@media(min-width:1200px) {
 .product-detail-page .detail-top-keyword {align-items:stretch;}
 .product-detail-page .detail-top-keyword .detail-gallery {display:flex;flex-direction:column;}
 .product-detail-page .detail-top-keyword .detail-gallery #top-slider {height:auto;min-height:420px;flex:1;}
 .product-detail-page .detail-top-keyword .detail-gallery #top-slider .carousel-inner {position:absolute;inset:0;height:auto;}
 .product-detail-page .detail-top-keyword .detail-gallery #top-slider.detail-gallery-multiple .carousel-inner {bottom:78px;}
 .product-detail-page .detail-top-keyword .detail-gallery .detail-gallery-thumbs {position:absolute;inset-inline:0;bottom:0;width:100%;height:78px;}
 .product-detail-page .detail-top-keyword .detail-gallery .detail-banner {flex:none;}
 .product-detail-page .detail-top-keyword .detail-summary {display:flex;flex-direction:column;gap:12px;}
 .product-detail-page .detail-top-keyword #title_amount_box {height:auto;min-height:320px;flex:1;padding:20px 0 172px;}
 .product-detail-page .detail-top-keyword .detail-chart-box {height:214px;flex:0 0 214px;margin:0;}
 /* Without a variant rail, give unused summary space to the chart. */
 .product-detail-page .detail-top-without-variants .detail-summary {min-height:546px;}
 .product-detail-page .detail-top.detail-top-without-variants #title_amount_box {height:auto;min-height:0;flex:0 0 auto;padding-bottom:0;}
 .product-detail-page .detail-top-without-variants #amount-button {position:static;margin-top:30px;}
 .product-detail-page .detail-top-without-variants .detail-chart-box {height:auto;min-height:214px;flex:1 0 214px;}
}

@media(min-width:1400px) {
 .product-detail-page .detail-top-keyword .detail-gallery #top-slider {min-height:440px;}
}


/* Native touch/keyboard scrolling remains; enhanced controls replace the scrollbar. */
.product-detail-page .detail-variant-picker[data-scroll-ready] .detail-variants {padding-bottom:0;scrollbar-width:none;}
.product-detail-page .detail-variant-picker[data-scroll-ready] .detail-variants::-webkit-scrollbar {display:none;width:0;height:0;}
.product-detail-page .detail-variant-picker.has-scroll-controls .detail-variants {margin-inline:0;}
.product-detail-page .detail-rail-scroll {position:absolute;top:28px;z-index:2;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:28px;height:32px;padding:0;border:1px solid #d5dbe2;border-radius:6px;background:#fffffff0;color:#334155;box-shadow:0 1px 4px #00000014;}
.product-detail-page .detail-rail-scroll[data-direction=left] {left:0;}
.product-detail-page .detail-rail-scroll[data-direction=right] {right:0;}
.product-detail-page .detail-rail-scroll svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.product-detail-page .detail-rail-scroll:disabled {opacity:.55;cursor:default;}
.product-detail-page .detail-rail-scroll:not(:disabled):hover {background:white;color:#0b86b9;}
.product-detail-page .detail-rail-scroll:focus-visible {outline:2px solid #0b86b9;outline-offset:2px;}
.product-detail-page #explain.detail-has-specs {padding-inline-start:10px;padding-top:16px;}

/* Anchor the full-width variant rail above the purchase panel. */
.product-detail-page .detail-summary-actions {display:contents;}
.product-detail-page .detail-summary-actions.has-variants {position:absolute;inset-inline:15px;bottom:82px;display:flex;align-items:center;margin:0;min-width:0;}
.product-detail-page .detail-summary-actions.has-variants .detail-variant-picker {flex:1;min-width:0;margin:0;}
.product-detail-page .detail-chart-trigger {display:inline-flex;align-items:center;gap:6px;border:0;padding:2px 4px;background:transparent;color:#62666d;font-size:12px;line-height:20px;}
.product-detail-page .detail-chart-trigger:hover {color:#0b86b9;}
.product-detail-page .detail-chart-trigger:focus-visible {outline:2px solid #0b86b9;outline-offset:2px;}
.product-detail-page .detail-chart-box > .detail-chart-trigger {position:absolute;top:6px;right:6px;z-index:1;width:26px;height:26px;justify-content:center;background:#ffffffc9;border:2px solid #e2e8ec;border-radius:6px;}
.product-detail-page .detail-chart-box > .detail-chart-trigger:hover {color:#0b86b9;border-color:currentColor;}
.product-detail-page .detail-chart-box .detail-chart {height:100%;}
.product-detail-page #detail-chart-modal .modal-header .btn-close {margin:0 auto 0 0;}
@media(min-width:768px) {
 .product-detail-page .detail-summary-actions.has-variants {bottom:134px;}
}
@media(min-width:992px) {
 .product-detail-page .detail-top-keyword {column-gap:16px;}
}

/* Match the preserved specification rows and article typography. */
.product-detail-page .detail-specs + .detail-description {margin-top:24px;}
.product-detail-page .detail-description:not(.detail-description-empty) {color:#6b6565;text-align:justify;line-height:28.8px;}
.product-detail-page .detail-description p {margin-bottom:6px;}
.product-detail-page .detail-description :is(h2,h3,h4) {font-family:iranyekan-extrabold-fanumber;color:#334467;line-height:1.9;margin:24px 0 10px;}
.product-detail-page .detail-description h2 {font-size:19px;}
.product-detail-page .detail-description h3 {font-size:17px;}
.product-detail-page .detail-description h4 {font-size:16px;}
.product-detail-page .detail-description p:has(>strong:only-child) {margin-top:20px;}
.product-detail-page .detail-description p > strong:only-child {font:16px/1.9 iranyekan-extrabold-fanumber;color:#1f1f1f;}
.product-detail-page .detail-related .card h2 {font:13.5px/25px iranyekan-bold-fanumber;color:#333;padding:0;margin:10px;min-height:75px;}
.product-detail-page .detail-related .card > .detail-related-stores {display:block;padding:0 10px 8px;font-size:12px;color:#d90b0b;}
.product-detail-page .detail-related .card > .detail-related-price {display:flex;flex-wrap:nowrap;gap:6px;padding:10px;color:#0ca377;font-size:12px;}
.product-detail-page .detail-related-price > span {font-size:13px;flex:none;}
.product-detail-page .detail-related-price strong {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:14px/1.8 iranyekan-md-fanumber;color:#13c76c;}
.product-detail-page .detail-related-price small {font:12px/1.8 iranyekan-md-fanumber;color:#0ca377;}
@media(min-width:768px) {
 .product-detail-page .detail-specs > div {grid-template-columns:190px minmax(0,1fr);}
 .product-detail-page .detail-specs dt {font-size:13.5px;padding:5px 8px;}
 .product-detail-page .detail-specs dd {font-size:14px;}
 .product-detail-page .detail-related-price strong {font-size:15px;}
}
@media(min-width:992px) {
 .product-detail-page #explain.detail-has-specs {padding-inline-end:71px;}
}

@media(min-width:768px) {.product-detail-page .detail-related-title {font-size:16px;}}
@media(min-width:992px) {
 .product-detail-page .detail-related-grid {grid-template-columns:repeat(4,minmax(0,1fr));}
 .product-detail-page .detail-related .card h2 {font-size:14px;line-height:27px;min-height:81px;}
 .product-detail-page .detail-related .card img {height:200px;}
}
@media(min-width:1400px) {.product-detail-page .detail-related .card img {height:240px;}}

.product-detail-page .detail-price-tooltip {font:12px/1.65 iranyekan-md-fanumber;min-width:200px;padding:2px 3px;text-align:right;}
.product-detail-page .detail-price-tooltip > div {display:flex;justify-content:space-between;align-items:baseline;gap:14px;margin-top:3px;}
.product-detail-page .detail-price-tooltip .price-maximum {color:#d10630;}
.product-detail-page .detail-price-tooltip .price-average {color:#337ab7;}
.product-detail-page .detail-price-tooltip .price-minimum {color:#04b66a;}
.product-detail-page .detail-pros-cons {position:relative;margin-top:24px;min-width:0;}
.product-detail-page .detail-pros-track {display:flex;gap:12px;overflow-x:auto;align-items:stretch;padding:2px;scrollbar-width:none;}
.product-detail-page .detail-pros-track::-webkit-scrollbar {display:none;}
.product-detail-page .detail-pros-card {flex:1 0 calc(50% - 6px);min-width:min(280px,85vw);padding:16px 20px;border:1px solid #dce8e2;border-radius:10px;background:#fff;}
.product-detail-page .detail-cons-card {border-color:#ecdede;}
.product-detail-page .detail-pros-card:only-child {flex-basis:100%;min-width:0;}
.product-detail-page .detail-pros-card h3 {font:15px/1.9 iranyekan-extrabold-fanumber;color:#078653;margin:0 0 12px;}
.product-detail-page .detail-cons-card h3 {color:#b52b3a;}
.product-detail-page .detail-pros-card ul {margin:0;padding-inline-start:18px;font-size:13px;line-height:2;overflow-wrap:anywhere;}
.product-detail-page .detail-pros-card li + li {margin-top:6px;}
.product-detail-page .detail-pros-scroll {top:50%;}
.product-detail-page .detail-gallery {position:relative;}
.product-detail-page .detail-gallery-preview {position:absolute;top:8px;inset-inline-start:8px;z-index:1;margin:0;padding:2px 6px;border-radius:4px;background:#ffffffe6;font-size:11px;color:#68737d;pointer-events:none;}

.product-detail-page .detail-title-copy {flex:1;min-width:0;}
.product-detail-page .detail-english-title {margin:6px 0 0;font:11px/20px Arial,sans-serif;color:#858b93;text-align:right;overflow-wrap:anywhere;}
.product-detail-page .detail-variant-scroll[data-direction=left] {left:-7px;}
.product-detail-page .detail-variant-scroll[data-direction=right] {right:-3px;}
.product-detail-page .detail-price-tooltip > b {display:block;text-align:left;font-weight:400;margin-bottom:4px;}
.product-detail-page .detail-price-tooltip small {font-size:10px;}
@media(prefers-reduced-motion:reduce) {
 .product-detail-page :is(#detail-page-content,.detail-image-open) {transition:none;}
 .product-detail-page #detail-page-content.htmx-added {opacity:1;}
}

/* Ordinary products retain the seller contact card and their original top panel. */
.product-detail-page .detail-top:not(.detail-top-keyword) #title_amount_box {padding-bottom:165.6px;}
.product-detail-page .detail-top:not(.detail-top-keyword) .detail-summary-heading {margin:0 15px 8px 8px;}
.product-detail-page .detail-top:not(.detail-top-keyword) .detail-tools {position:absolute;left:4px;bottom:82px;}
.product-detail-page .detail-top:not(.detail-top-keyword) .detail-tools :is(button,a) {width:29px;height:32px;}
.product-detail-page .detail-top:not(.detail-top-keyword) .detail-tools img {width:17px;height:17px;}
.product-detail-page .detail-post-contact {position:absolute;right:12px;bottom:82px;display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:3px 8px;border:1px solid #d9dee3;border-radius:5px;background:white;color:#676d73;font:12px/1.8 iranyekan-md-fanumber;}
.product-detail-page .detail-post-store {display:none;margin-top:16px;}
.product-detail-page #store_detail-1 {display:flex;flex-direction:column;min-height:214px;padding-top:8px;border-radius:5px;box-shadow:0 1px 2px #0002;font:13px/28.8px iranyekan-md-fanumber;}
.product-detail-page #store_detail-1 dl {margin:0 0 16px;padding:0 16px 0 8px;}
.product-detail-page #store_detail-1 dl > div {display:flex;flex-wrap:wrap;gap:0 4px;}
.product-detail-page #store_detail-1 dt {font:13px/28.8px iranyekan-bold-fanumber;color:#d80909;}
.product-detail-page #store_detail-1 dd {min-width:0;margin:0;overflow-wrap:anywhere;}
.product-detail-page .detail-post-store-profile {display:flex;justify-content:center;align-items:center;gap:5px;margin-top:auto;min-height:40px;padding:8px;border:2px solid #dc3545;border-radius:3px;color:#dc3545!important;font:12px/1.8 iranyekan-bold-fanumber;text-align:center;}
.product-detail-page #detail-summary-contact .modal-header {padding:12px 16px;}
.product-detail-page #detail-summary-contact .btn-close {margin:0 auto 0 0;}
.product-detail-page #detail-summary-contact .modal-body {padding:20px;font:13px/1.9 iranyekan-md-fanumber;overflow-wrap:anywhere;}
.product-detail-page #detail-summary-contact .modal-body p {margin-bottom:12px;}
.product-detail-page #detail-summary-contact .detail-contact-actions {display:flex;justify-content:flex-end;margin-top:16px;}

@media(min-width:768px) {
 .product-detail-page .detail-top:not(.detail-top-keyword) #title_amount_box {padding-bottom:183.6px;}
 .product-detail-page .detail-top:not(.detail-top-keyword) #amount-button {padding-top:12px;}
 .product-detail-page .detail-top:not(.detail-top-keyword) .detail-tools,.product-detail-page .detail-post-contact {bottom:100px;}
}
@media(min-width:1200px) {
 .product-detail-page .detail-post-store {display:block;}
 .product-detail-page .detail-post-contact {display:none;}
}
@media(min-width:1400px) {
 .product-detail-page .detail-top:not(.detail-top-keyword) #product-name {font-size:19px;line-height:35px;}
}

.product-detail-page .detail-contact-fields {margin:0;}
.product-detail-page .detail-contact-fields > div {display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px;padding:10px 0;border-bottom:1px solid #f0f1f3;}
.product-detail-page .detail-contact-fields dt {font-weight:400;color:#777;}
.product-detail-page .detail-contact-fields dd {margin:0;overflow-wrap:anywhere;}
.product-detail-page [data-detail-kind=post] .detail-description-empty {min-height:106px;padding:16px;}

/* Compact inline rating; the native select remains the submitted score. */
.product-detail-page .detail-comment-content-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;margin-bottom:8px;}
.product-detail-page .detail-comment-content-heading > label {margin:0;flex:none;}
.product-detail-page .detail-comment-content-heading [data-comment-rating-slot] {margin-inline-start:auto;min-width:0;}
.product-detail-page .detail-rating-divider {font:14px/1 iranyekan-md-fanumber;color:#c2c6cb;}
.product-detail-page .detail-rating-value {min-width:12px;text-align:center;}
.product-detail-page .detail-star-rating .errorlist {flex-basis:100%;margin:4px 0 0;}
.product-detail-page #detail-comment-form .admin-filter-actions {display:flex;justify-content:flex-end;width:100%;}
.product-detail-page #detail-comment-form :is(input,textarea,select),.product-detail-page #detail-comment-form :is(input,textarea)::placeholder {font-size:13px!important;}
.product-detail-page .detail-comments-preview {font-size:12px;color:#6b747d;padding:8px 10px;border:1px dashed #d8dee4;border-radius:6px;background:#fafbfc;}
@media(max-width:359px) {
 .product-detail-page .detail-rating-star {width:24px;}
 .product-detail-page .detail-star-picker {gap:1px;}
 .product-detail-page .detail-rating-star img {width:19px;height:19px;}
}

/* Registered comments: compact content, full score, and horizontally paired points. */
.product-detail-page .detail-comments-list {width:100%;max-width:920px;margin-inline-end:auto;}
.product-detail-page .detail-comment-author {display:inline-flex;align-items:center;gap:9px;min-width:0;overflow-wrap:anywhere;}
.product-detail-page .detail-comment-author > i {display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex:none;border-radius:50%;background:#f3f6f7;color:#657580;font-size:16px;}
.product-detail-page .detail-comment-meta {display:flex;align-items:center;gap:6px;margin-inline-start:auto;white-space:nowrap;}
.product-detail-page .detail-comment-meta-divider {color:#d3d9dd;font:16px/1 iranyekan-md-fanumber;}
.product-detail-page .detail-comment-meta .detail-rating-divider {font-size:16px;}
.product-detail-page .detail-comment-meta .detail-comment-score {gap:4px;}
.product-detail-page .detail-comment-stars {display:inline-flex;direction:ltr;gap:2px;}
.product-detail-page .detail-comment-stars svg {width:20px;height:20px;fill:#f6f7f8;stroke:#cbd1d5;stroke-width:1.2;}
.product-detail-page .detail-comment-stars svg[data-filled=true] {fill:#e4ac20;stroke:#d39a12;}
.product-detail-page :is(.detail-comment-score-value,.detail-rating-value) {font-size:15px;color:#07865e;font-family:iranyekan-extrabold-fanumber,sans-serif;}
.product-detail-page .detail-comment-score-value {font-size:16px;}
.product-detail-page .detail-comment-points {display:flex;gap:12px;overflow-x:auto;max-width:100%;margin-top:16px;padding-bottom:6px;scrollbar-width:thin;scrollbar-color:#ccd6d9 transparent;}
.product-detail-page .detail-comment-points > div {flex:1 0 240px;min-width:0;padding:12px 14px;border:1px solid #e5e9eb;border-radius:9px;background:#fcfdfd;}
.product-detail-page .detail-comment-points h3 {display:flex;align-items:center;gap:7px;margin:0;font-size:13px;font-family:iranyekan-extrabold-fanumber,sans-serif;}
.product-detail-page .detail-comment-points p {margin:8px 0 0;line-height:2;}
.product-detail-page a.detail-comment-jump {padding:7px 12px;min-height:36px;gap:12px;border:1px solid #a8cfc1;border-radius:8px;background:#f4fcf8;color:#087a56;}
.product-detail-page a.detail-comment-jump:hover {background:#e9f7f0;border-color:#70b79b;}
.product-detail-page a.detail-comment-jump:focus-visible,.product-detail-page .detail-comment-points:focus-visible {outline:2px solid #0b86b9;outline-offset:3px;}
.product-detail-page .detail-comment-jump i {font-size:20px;}
@media(max-width:575.98px) {
 .product-detail-page .detail-comment-meta {width:100%;justify-content:flex-end;gap:6px;}
 .product-detail-page .detail-comment-points > div {flex-basis:230px;}
}

.product-detail-page .detail-comment > p {margin-top:20px;}

/* Only the seller city shortcut uses the compact marker alignment. */
.product-detail-page .detail-filter-toggle[data-bs-target="#detail-city-modal"] > i.fa.fa-map-marker {font-size:16px!important;margin-left:0;position:relative;top:-2px;width:10px;transform:none;}
.product-detail-page .detail-store-info .detail-chevron {transition:transform .18s ease;}
.product-detail-page .detail-store-info[data-detail-closing] .detail-chevron {transform:rotate(0);}
@media(prefers-reduced-motion:reduce) {
 .product-detail-page .detail-store-info .detail-chevron {transition:none;}
}

/* Mobile seller headings and compact profile action; tablet/desktop stay unchanged. */
@media(max-width:575.98px) {
 .product-detail-page .detail-related-grid {column-gap:6px;}
 .product-detail-page .detail-tabs-box h2,
 .product-detail-page .detail-tabs-box h3,
 .product-detail-page .modal h2,
 .product-detail-page .modal .modal-header h2 {font-size:14px;line-height:1.9;}
 .product-detail-page .detail-store-name {font-size:14px;}
 .product-detail-page .detail-store-profile {min-width:138px;min-height:38px;gap:7px;padding:5px 10px;font-size:12px;}
 .product-detail-page .detail-store-profile-icon {width:16px;height:16px;}
 .product-detail-page .detail-store-profile > i {font-size:18px;}
}

/* The full site footer starts at 768px; before that, clear the fixed mobile bar. */
@media(max-width:767.98px) {
 .product-detail-page .detail-shell {padding-bottom:calc(88px + env(safe-area-inset-bottom,0px));}
}

/* Ordinary-product reports share the existing form and native submission. */
.product-detail-page .detail-report-panel {width:100%;max-width:680px;margin:0 auto;padding:24px;border:1px solid #e7ecef;border-radius:12px;background:#fff;}
.product-detail-page .detail-report-heading {display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:22px;text-align:center;}
.product-detail-page .detail-report-icon {display:inline-flex;align-items:center;justify-content:center;flex:none;width:48px;height:48px;border:1px solid #f5ded2;border-radius:14px;background:#fff5ee;color:#d65b2b;font-size:23px;}
.product-detail-page .detail-report-heading h2 {margin:0;color:#334467;font-family:iranyekan-extrabold-fanumber;}
.product-detail-page .detail-report-heading p {max-width:480px;margin:0;color:#69747e;font-size:13px;line-height:2;}
.product-detail-page .detail-report-guest {min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;}
.product-detail-page .detail-report-guest .detail-report-heading {margin-bottom:10px;}
.product-detail-page .detail-report-login-hint {margin:0 0 18px;color:#69747e;font-size:13px;line-height:2;text-align:center;}
.product-detail-page a.detail-report-login {display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:40px;max-width:100%;padding:7px 16px;border:1px solid #0b9665;border-radius:8px;background:#0b9665;color:#fff;font:13px/24px iranyekan-bold-fanumber;}
.product-detail-page a.detail-report-login:hover {background:#087d54;border-color:#087d54;color:white;}
.product-detail-page .detail-report-login > .fa-angle-left {font-size:19px;}
.product-detail-page .detail-report-login:focus-visible {outline:2px solid #0b9665;outline-offset:3px;}
.product-detail-page .detail-report-form {width:100%;max-width:620px;margin:0 auto;padding:0;gap:18px;}
.product-detail-page .detail-report-form .form-field {margin:0;}
.product-detail-page .detail-report-form :is(input,select,textarea,.profile-search-select-trigger,.profile-search-select-trigger > span,.profile-search-select-input,.profile-search-select-options > button,.profile-select-empty),
.product-detail-page .detail-report-form :is(input,textarea)::placeholder {font-size:13px!important;}
.product-detail-page .detail-report-form textarea {min-height:140px;resize:vertical;}
.product-detail-page .detail-report-form .form-field > small {display:block;line-height:1.9;color:#74818b;font-size:12px;}
.product-detail-page .detail-report-note {display:flex;align-items:flex-start;gap:7px;color:#74818b;font-size:12px;line-height:1.9;}
.product-detail-page .detail-report-note > i {margin-top:5px;flex:none;}
.product-detail-page .detail-report-form .admin-filter-actions {display:flex;justify-content:flex-end;}
.product-detail-page .detail-report-form .detail-submit {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:6px 16px;font-size:13px;}
.product-detail-page .detail-report-form .detail-report-loading {display:none;width:16px;height:16px;border-width:2px;}
.product-detail-page .detail-report-form[data-submitting=true] .detail-report-loading {display:inline-block;}
.product-detail-page .detail-report-form[data-submitting=true] .fa-paper-plane-o {display:none;}
.product-detail-page .detail-report-field-error :is(select,textarea) {border-color:#d94c59;}
@media(max-width:575.98px) {
 .product-detail-page .detail-report-panel {padding:20px 14px;border-radius:10px;}
 .product-detail-page .detail-report-heading {gap:9px;margin-bottom:18px;}
}

/* Product actions share one modal shell across Keyword and Post pages. */
.product-detail-page .detail-tools {gap:5px;}
.product-detail-page .detail-tools-product {flex-direction:row;align-items:center;}
.product-detail-page .detail-tools .fa-flag-o {font-size:16px;}
.product-detail-page .detail-action-modal {--bs-modal-width:560px;--bs-modal-margin:12px;}
.product-detail-page .detail-action-modal .modal-dialog {max-width:560px;margin-inline:auto;width:calc(100% - 24px);}
.product-detail-page .detail-action-modal .modal-content {border:1px solid #e3e8ec;border-radius:14px;overflow:hidden;}
.product-detail-page .detail-action-modal .modal-header {gap:12px;padding:14px 18px;border-bottom:1px solid #edf0f2;}
.product-detail-page .detail-action-modal .modal-header h2 {margin:0;color:#334467;font-family:iranyekan-extrabold-fanumber;}
.product-detail-page .detail-action-modal .btn-close {flex:none;margin:0;margin-inline-start:auto;padding:8px;width:14px;height:14px;background-size:11px;opacity:.65;border-radius:8px;}
.product-detail-page .detail-action-modal .btn-close:hover {background-color:#fff0ed;opacity:1;}
.product-detail-page .detail-action-modal .btn-close:focus-visible {outline:2px solid #d65b2b;outline-offset:2px;box-shadow:none;}
.product-detail-page .detail-action-modal .modal-body {padding:20px;}
.product-detail-page .detail-action-modal .modal-body a {margin-inline-end:0;}
.product-detail-page .detail-action-modal .detail-report-panel {padding:0;border:0;border-radius:0;}
.product-detail-page .detail-action-modal .detail-report-guest {min-height:240px;}
.product-detail-page .detail-report-success {display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:16px;padding:12px;border:1px solid #b7dfcf;border-radius:9px;background:#f2fbf6;color:#087d54;font-size:13px;line-height:2;text-align:center;}
.product-detail-page .detail-share-intro {margin:0 0 18px;color:#69747e;font-size:13px;line-height:2;text-align:center;}
.product-detail-page .detail-share-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:22px;}
.product-detail-page .detail-share-grid a.detail-share-network {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px 3px;min-width:0;border:1px solid #e9edf0;border-radius:10px;color:#465263;background:#fff;font-size:12px;line-height:1.8;text-decoration:none;}
.product-detail-page .detail-share-grid a:hover {border-color:#acbdc9;background:#f8fafb;}
.product-detail-page .detail-share-network-icon {display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:#f0f5f8;font-size:22px;}
.product-detail-page .detail-share-whatsapp .detail-share-network-icon {color:#169b57;background:#edf9f2;}
.product-detail-page .detail-share-telegram .detail-share-network-icon {color:#1688bd;background:#eef8fc;}
.product-detail-page .detail-share-facebook .detail-share-network-icon {color:#2665b6;}
.product-detail-page .detail-share-twitter .detail-share-network-icon {color:#263744;}
.product-detail-page .detail-share-linkedin .detail-share-network-icon {color:#0a75a9;}
.product-detail-page .detail-share-gmail .detail-share-network-icon {color:#cf5044;background:#fff3f0;}
.product-detail-page .detail-share-email .detail-share-network-icon {color:#9b6b36;background:#faf5ef;}
.product-detail-page .detail-share-link-label {display:block;margin-bottom:8px;color:#536171;font-size:12px;}
.product-detail-page .detail-share-copy {display:flex;align-items:stretch;gap:8px;min-width:0;}
.product-detail-page .detail-share-copy input {flex:1;min-width:0;width:0;min-height:40px;margin:0;padding:7px 10px;border:1px solid #dce3e8;border-radius:8px;background:#f9fbfc;color:#5d6b77;font-size:12px;text-align:left;}
.product-detail-page .detail-share button {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:7px 12px;border:1px solid #0b9665;border-radius:8px;background:#0b9665;color:#fff;font:13px/24px iranyekan-md-fanumber;}
.product-detail-page .detail-share button:hover {background:#087d54;border-color:#087d54;}
.product-detail-page .detail-share button.detail-native-share {width:100%;margin-top:14px;background:#fff;color:#087d54;}
.product-detail-page .detail-share button.detail-native-share:hover {background:#f2fbf6;}
.product-detail-page .detail-share [hidden] {display:none!important;}
.product-detail-page .detail-share-status {min-height:22px;margin:10px 0 0;color:#087d54;font-size:12px;line-height:1.9;}
.product-detail-page .detail-share-status[data-state=error] {color:#ba3b3b;}
.product-detail-page .detail-share :is(a,button,input):focus-visible {outline:2px solid #0b86b9;outline-offset:2px;}
@media(max-width:575.98px) {
 .product-detail-page .detail-action-modal .modal-body {padding:18px 14px;}
 .product-detail-page .detail-action-modal .modal-header {padding:12px 14px;}
 .product-detail-page .detail-share-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;}
}

/* A single-seller chart replaces only the lower store card when history exists. */
.product-detail-page .detail-post-chart {position:relative;height:292px;min-height:292px;padding:10px 12px;display:flex;flex-direction:column;gap:7px;}
.product-detail-page .detail-post-chart h2 {margin:0;padding-inline-start:28px;font:12.5px/25px iranyekan-md-fanumber;color:#536171;}
.product-detail-page .detail-post-chart .detail-chart {height:auto;min-height:0;flex:1;}
.product-detail-page .detail-post-chart-actions {display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;min-height:28px;border-top:1px solid #edf0f2;padding-top:5px;}
.product-detail-page .detail-post-chart-actions :is(a,button) {display:inline-flex;align-items:center;gap:6px;margin:0;padding:0;border:0;background:transparent;color:#087e5c;font:12px/22px iranyekan-md-fanumber;}
.product-detail-page .detail-post-chart-actions :is(a,button):hover {color:#0b86b9;text-decoration:underline;}
.product-detail-page .detail-post-chart-actions :is(a,button):focus-visible {outline:2px solid #0b86b9;outline-offset:2px;}
.product-detail-page .detail-post-chart-actions .fa-angle-left {font-size:18px;}
.product-detail-page .detail-top-post-chart .detail-post-contact {display:none;}
/* Keep the purchase panel near the title; give spare height to the Post chart. */
.product-detail-page .detail-top.detail-top-post-chart #title_amount_box {height:auto;min-height:0;padding-bottom:0;flex:none;}
.product-detail-page .detail-top.detail-top-post-chart .detail-summary-heading {margin-bottom:0;}
.product-detail-page .detail-top.detail-top-post-chart .detail-tools {position:static;}
.product-detail-page .detail-top.detail-top-post-chart #amount-button {position:static;margin-top:30px;padding-top:0;}
@media(min-width:992px) {
 .product-detail-page .detail-top-post-chart .detail-summary {display:flex;flex-direction:column;min-height:630px;}
 .product-detail-page .detail-top-post-chart .detail-post-chart {height:auto;min-height:214px;flex:1;}
}
@media(min-width:1400px) {
 .product-detail-page .detail-top-post-chart .detail-summary {min-height:539px;}
}

.product-detail-page :is(.detail-post-chart-actions > a,#detail-summary-contact .detail-contact-actions > a) {display:inline-flex;align-items:center;justify-content:center;gap:6px;margin:0;padding:4px 10px;min-height:32px;border:2px solid #9fcdbb;border-radius:7px;background:#f4fbf7;color:#087e5c;font:12px/22px iranyekan-md-fanumber;text-decoration:none;transition:background-color .15s,border-color .15s;}
.product-detail-page :is(.detail-post-chart-actions > a,#detail-summary-contact .detail-contact-actions > a):hover {border-color:#087e5c;background:#e8f6ef;color:#06694d;text-decoration:none;}
.product-detail-page #detail-summary-contact .detail-contact-actions > a:focus-visible {outline:2px solid #087e5c;outline-offset:2px;}
.product-detail-page #detail-summary-contact .detail-contact-actions .fa-angle-left {font-size:18px;}

/* Product context remains readable in the expanded chart, including long titles. */
.product-detail-page #detail-chart-modal .modal-header {align-items:flex-start;gap:16px;}
.product-detail-page #detail-chart-modal .detail-chart-heading {flex:1;min-width:0;text-align:right;}
.product-detail-page #detail-chart-modal .detail-chart-heading h2 {margin:0;color:#334467;}
.product-detail-page #detail-chart-product {margin:6px 0 0;color:#6c757d;font:13px/1.9 iranyekan-md-fanumber;overflow-wrap:anywhere;}
.product-detail-page #detail-chart-modal .modal-header .btn-close {flex:none;margin:2px 0 0;}

/* Ordinary-product purchase button follows the title inset without an outer frame. */
.product-detail-page .detail-top:not(.detail-top-keyword) #amount-button {border:0;}
.product-detail-page .detail-top:not(.detail-top-keyword) #cheapest_buy_btn {width:calc(100% - 23px);margin-inline:15px 8px;}

.product-detail-page .detail-top-keyword.detail-top-without-variants .detail-tools {transform:translateY(5px);}
