/* Native WoodMart Single Product Layout Builder: RTL gallery / information / purchase. */
body.hy-store.single-product .hy-detail{direction:rtl;color:var(--hy-text)}
.hy-detail-main{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1.15fr) minmax(270px,.8fr);gap:24px;align-items:start;margin-block:24px}
.hy-detail-gallery,.hy-detail-summary,.hy-detail-purchase{min-width:0}
body.hy-store.single-product .hy-detail :is(.summary.entry-summary,.hy-detail-gallery,.hy-purchase-panel){background:var(--hy-panel)!important;color:var(--hy-text)!important;border:1px solid var(--hy-line);border-radius:12px;padding:20px;margin:0!important}
body.hy-store.single-product .hy-detail :is(.product_title,.wd-single-title,.price,.amount,.product_meta,.product_meta a,.wd-single-short-desc,.wd-single-short-desc p,.hy-fitment-facts,.hy-fitment-facts h2,.hy-fitment-facts p){color:var(--hy-text)!important}
body.hy-store.single-product .hy-detail .product_title{font-size:24px!important;line-height:1.8!important;margin:0 0 16px!important}
body.hy-store.single-product .hy-detail .wd-single-gallery{margin:0!important}
body.hy-store.single-product .hy-detail .hy-pc-meta{color:var(--hy-muted);font-size:13px;line-height:1.9;margin-block:10px}
.hy-detail-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:20px}
body.hy-store.single-product .hy-detail-tools .wd-action-btn>a{display:flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;border:1px solid var(--hy-line)!important;border-radius:10px!important;background:var(--hy-panel-alt)!important;color:var(--hy-text)!important;padding:8px!important}
body.hy-store.single-product .hy-detail-tools .hy-share{margin:0!important;min-height:40px;color:var(--hy-text)!important;border:1px solid var(--hy-line)!important;border-radius:10px!important;background:var(--hy-panel-alt)!important}
.hy-detail-tools .hy-share-wrap{margin:0}
body.hy-store.single-product .hy-detail-tools :is(.wd-compare-btn,.wd-compare-icon){--hy-action-icon:url('icons/compare-opposed.svg')}
body.hy-store.single-product .hy-detail-tools .wd-wishlist-btn:has(a.added) .wd-action-icon:before{mask-image:url('icons/heart-solid.svg')!important;background:#ff243f!important}
body.hy-store.single-product .hy-purchase-panel .hy-rfq{border:0!important;padding:0!important;margin:16px 0 0!important;background:transparent!important;color:var(--hy-text)!important}
body.hy-store.single-product .hy-purchase-panel :is(input,select,textarea){color:var(--hy-text)!important;background:var(--hy-panel-alt)!important;border-color:var(--hy-line)!important}
.hy-purchase-panel .hy-rfq-open{display:flex;width:100%;justify-content:center;min-height:44px;align-items:center;background:var(--hy-accent)!important;color:var(--hy-on-accent)!important;border-radius:8px}
.hy-fitment-facts{margin-top:18px}.hy-fitment-facts h2{font-size:15px}.hy-fitment-facts p{font-size:13px;line-height:1.9}
body.hy-store.single-product .hy-detail :is(.woocommerce-tabs,.woocommerce-Tabs-panel,.wd-single-tabs,.wd-accordion-item){color:var(--hy-text)!important;background:var(--hy-panel)!important;border-color:var(--hy-line)!important}
body.hy-store.single-product .hy-detail :is(.tabs a,.wd-accordion-title,.wd-accordion-title-text,.woocommerce-Tabs-panel h2,.woocommerce-Tabs-panel h3,.woocommerce-Tabs-panel p,.woocommerce-Tabs-panel td,.woocommerce-Tabs-panel th,.comment-text,.comment-text p,.comment-reply-title,label){color:var(--hy-text)!important}
body.hy-store.single-product .hy-detail :is(.tabs li.active a,.wd-accordion-title.wd-active,.tabs a:hover){color:var(--hy-accent)!important}
.hy-detail .woocommerce-product-attributes{width:100%;border-collapse:collapse}.hy-detail .woocommerce-product-attributes :is(th,td){padding:14px;border-bottom:1px solid var(--hy-line);text-align:right;vertical-align:top}.hy-detail .woocommerce-product-attributes th{width:32%;background:var(--hy-panel-alt)}
.hy-detail #reviews .commentlist>li{padding:16px;border:1px solid var(--hy-line);border-radius:12px;background:var(--hy-panel-alt);margin-bottom:12px}
.hy-detail #reviews .comment-text{margin:0!important;padding:0!important;border:0!important}.hy-detail #reviews .stars a{min-width:44px;min-height:44px;display:inline-block}.hy-detail #reviews .woocommerce-noreviews{margin:0;padding:12px}
.hy-detail a:focus-visible,.hy-detail button:focus-visible{outline:2px solid var(--hy-accent);outline-offset:3px}body.hy-store.single-product .hy-product-navigation{max-width:720px;margin-inline:auto}body.hy-store.single-product .hy-product-navigation .hy-product-neighbor{justify-content:flex-start;text-align:center;align-items:center}
body.hy-store.single-product .woocommerce-breadcrumb,body.hy-store.single-product .woocommerce-breadcrumb a{color:var(--hy-muted)!important}
@media(max-width:1100px){.hy-detail-main{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.hy-detail-purchase{grid-column:1/-1}}
@media(max-width:767px){.hy-detail-main{grid-template-columns:minmax(0,1fr);gap:16px;margin-block:16px}.hy-detail-purchase{grid-column:auto}body.hy-store.single-product .hy-detail :is(.summary.entry-summary,.hy-detail-gallery,.hy-purchase-panel){padding:16px!important}body.hy-store.single-product .hy-detail .product_title{font-size:21px!important}.hy-detail .woocommerce-product-attributes :is(th,td){padding:10px}}

/* Native tabs and reviews share the same theme surfaces outside the builder's inner group. */
body.hy-store.single-product .wd-page-content{padding-top:0!important}
body.hy-store.single-product .wd-content-layout{padding-top:12px!important}
body.hy-store.single-product .woocommerce-breadcrumb{margin-block:0 12px!important;font-size:12px;line-height:1.6}
body.hy-store.single-product :is(#reviews,#comments,#review_form_wrapper,#review_form,.comment-respond,.comment-form,.wd-single-reviews,.wd-single-tabs,.woocommerce-Tabs-panel){background:var(--hy-panel)!important;color:var(--hy-text)!important;border-color:var(--hy-line)!important}
body.hy-store.single-product :is(#reviews,#review_form,.woocommerce-Tabs-panel) :is(label,p,h2,h3,small,.comment-notes,.comment-form-rating){color:var(--hy-text)!important}
body.hy-store.single-product :is(#reviews,#review_form,.woocommerce-Tabs-panel) :is(input,textarea,select){background:var(--hy-panel-alt)!important;color:var(--hy-text)!important;border-color:var(--hy-line)!important}
body.hy-store.single-product .hy-detail-tools{gap:8px;align-items:center}
body.hy-store.single-product .hy-detail-tools .hy-share{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:40px;padding:8px!important;font-size:12px}
body.hy-store.single-product .hy-share-menu{color:var(--hy-text);background:var(--hy-panel)}
body.hy-store.single-product .hy-detail-tools{flex-wrap:nowrap}
body.hy-store.single-product .hy-detail-tools>:is(.wd-action-btn,.hy-share-wrap){flex:0 0 auto;margin:0!important}
body.hy-store.single-product .hy-detail-tools :is(.wd-action-btn>a,.hy-share){box-sizing:border-box;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;gap:0;font-size:0}
body.hy-store.single-product .hy-detail-tools :is(.wd-action-text,.hy-detail-action-label){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
body.hy-store.single-product .hy-detail-tools .wd-action-icon{--wd-action-icon-color:var(--hy-text);opacity:1}
/* Native loaders use em sizing; icon-only controls must not inherit font-size:0. */
body.hy-store.single-product .hy-detail-tools .wd-action-icon{position:relative;display:block;flex:0 0 22px;width:22px;height:22px;font-size:22px;line-height:1;--wd-action-icon-size:22px}
body.hy-store.single-product .hy-detail-tools .wd-action-btn>a.loading .wd-action-icon:before{opacity:0!important}
body.hy-store.single-product .hy-detail-tools .wd-action-btn>a.loading .wd-action-icon:after{content:''!important;display:block!important;position:absolute;inset:0!important;margin:auto!important;width:20px!important;height:20px!important;box-sizing:border-box;border:2px solid var(--hy-line)!important;border-top-color:var(--hy-accent)!important;border-radius:50%;background:none!important;mask:none!important;opacity:1!important;animation:hy-detail-action-spin .7s linear infinite!important}
@keyframes hy-detail-action-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){body.hy-store.single-product .hy-detail-tools .wd-action-btn>a.loading .wd-action-icon:after{animation:none!important}}
body.hy-store.single-product .hy-detail-tools :is(a,button):focus-visible{outline:2px solid var(--hy-accent);outline-offset:2px}
.hy-purchase-panel .hy-rfq-open{background:var(--hy-rfq-accent)!important}

/* Next product reads visually: left arrow, thumbnail, Persian text. */
body.hy-store.single-product .hy-product-navigation .hy-neighbor-next{direction:ltr}
body.hy-store.single-product .hy-product-navigation .hy-neighbor-next>span{direction:rtl;text-align:right}

body.hy-store.single-product .hy-product-navigation .hy-neighbor-next>span>small{text-align:center}

/* Reconciled existing RTL layout: gallery right, facts center, purchase left. */
body.hy-store.single-product .hy-detail-main{grid-template-columns:minmax(0,1.05fr) minmax(0,1.2fr) minmax(250px,.8fr);gap:24px;direction:rtl}
body.hy-store.single-product .hy-detail-main>div{margin-block:0!important}
body.hy-store.single-product .hy-detail .hy-detail-summary{background:transparent!important;border:0!important;padding:0 4px!important;box-shadow:none!important}
body.hy-store.single-product .hy-detail .product_title{font-size:23px!important;line-height:1.8!important}
body.hy-store.single-product .hy-detail-gallery{padding:12px!important}
.hy-detail-gallery .woocommerce-product-gallery__image img{max-height:480px;object-fit:contain}
.hy-purchase-panel>h2{font-size:17px;margin:0 0 10px}.hy-purchase-panel>p{font-size:13px;line-height:1.9;color:var(--hy-muted);margin-bottom:20px}
.hy-detail-purchase{position:sticky;top:100px}.hy-detail .wd-single-short-desc{font-size:14px;line-height:2}
.hy-quick-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0 8px}.hy-quick-facts>div{background:var(--hy-panel);padding:10px 12px;border-radius:8px}.hy-quick-facts dt{font-size:12px;color:var(--hy-muted)}.hy-quick-facts dd{margin:2px 0 0;font-size:14px}
.hy-detail-sku,.hy-detail-brand{font-size:13px;margin-block:12px}.hy-spec-link,.hy-fitment-facts a{font-size:13px;color:var(--hy-accent)!important}
.hy-fitment-facts{border-top:1px solid var(--hy-line);padding-top:14px}.hy-fitment-facts h2{margin-bottom:6px}.hy-fitment-facts p{margin-bottom:6px}
.hy-product-section-nav{display:flex;gap:28px;overflow-x:auto;border-bottom:1px solid var(--hy-line);background:var(--hy-panel);padding:16px 20px;position:sticky;top:80px;z-index:5;border-radius:10px 10px 0 0}.hy-product-section-nav a{white-space:nowrap;font-size:14px;font-weight:700}
.hy-product-section{background:var(--hy-panel);border-bottom:1px solid var(--hy-line);padding:28px;scroll-margin-top:160px;font-size:14px;line-height:2.1}.hy-product-section>h2{font-size:19px;margin:0 0 20px}.hy-product-section>h2+ h2,.hy-product-section #reviews #comments>h2{display:none}.hy-product-section p:last-child{margin-bottom:0}
body.hy-store .hy-product-section .woocommerce-product-attributes{width:100%;border-collapse:separate;border-spacing:0 8px;margin:0}
body.hy-store .hy-product-section .woocommerce-product-attributes :is(th,td){text-align:start;vertical-align:top;border:0;padding:12px 16px;font-style:normal;font-size:14px;line-height:1.9}
body.hy-store .hy-product-section .woocommerce-product-attributes th{width:25%;background:var(--hy-panel-alt);color:var(--hy-muted)!important;border-radius:0 8px 8px 0;font-weight:500}
body.hy-store .hy-product-section .woocommerce-product-attributes td{background:var(--hy-panel-alt);border-inline-start:8px solid var(--hy-panel);border-radius:8px 0 0 8px}.hy-product-section td p{margin:0}.hy-product-vehicles ul{margin:0;padding:0;list-style:none}.hy-product-vehicles li{padding:12px 16px;background:var(--hy-panel-alt);border-radius:8px;margin-bottom:8px}
.hy-product-inquiry-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow-y:auto;border:1px solid var(--hy-line);border-radius:14px;padding:24px;background:var(--hy-panel);color:var(--hy-text)}.hy-product-inquiry-dialog::backdrop{background:#10202f80}.hy-product-inquiry-dialog .hy-rfq{display:block!important;border:0!important;padding:0!important;margin:0!important;background:transparent!important}.hy-inquiry-close{float:left;width:36px;height:36px;padding:0;font-size:26px;background:var(--hy-panel-alt);border:1px solid var(--hy-line);border-radius:8px}.hy-product-inquiry-dialog .hy-rfq h2{font-size:19px;margin:0 0 12px}.hy-product-inquiry-dialog .hy-rfq p{color:var(--hy-muted)}
@media(max-width:1100px){body.hy-store.single-product .hy-detail-main{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.hy-detail-purchase{position:static;grid-column:2;grid-row:2}.hy-detail-gallery{grid-column:1;grid-row:1/3}.hy-detail-summary{grid-column:2}.hy-product-section-nav{top:60px}}
@media(max-width:767px){body.hy-store.single-product .hy-detail-main{display:flex;flex-direction:column;gap:20px}.hy-detail-main>div{width:100%}.hy-detail-gallery .woocommerce-product-gallery__image img{max-height:340px}.hy-detail .hy-detail-summary{padding:0!important}.hy-detail-purchase{position:static}.hy-product-section{padding:20px 16px;scroll-margin-top:130px}.hy-product-section-nav{gap:22px;padding:14px 16px;top:48px}.hy-product-section .woocommerce-product-attributes th{width:34%}.hy-product-inquiry-dialog{padding:20px}.hy-detail-tools{margin-top:12px}}
body.hy-store .hy-product-inquiry-dialog{overflow-x:hidden;box-sizing:border-box;overscroll-behavior:contain}
body.hy-store .hy-product-inquiry-dialog .hy-inquiry-close{background:var(--hy-panel-alt)!important;color:var(--hy-text)!important;border:1px solid var(--hy-line)!important;min-height:36px;line-height:1}
.hy-product-section .hy-product-vehicles>h2{display:none}
.hy-product-section .woocommerce-Reviews-title{display:none}
@media(max-width:767px){.hy-detail-gallery .woocommerce-product-gallery__image img.wp-post-image{max-height:260px;object-fit:contain}.hy-detail-gallery .woocommerce-product-gallery__image{min-height:0}}
@media(max-width:767px){body.hy-store.single-product .hy-detail .product_title{font-size:20px!important;line-height:1.85!important}}
