/* Native Elementor/WooCommerce adapter. Brand values stay in tokens/ui-polish.
 * One layout and card contract for shop, taxonomy archives and product widgets.
 */
:root { --jd-commerce-width:1440px; --jd-commerce-gap:24px; }
body .e-con.jd-pdp, body .jd-pdp-page {
  width:100%; max-width:var(--jd-commerce-width)!important; margin-inline:auto;
  padding:24px 24px 64px!important; gap:24px; --container-widget-width:100%;
}
body .e-con.jd-pdp :is(.e-con,.elementor-widget) { min-width:0; }
body .e-con.jd-pdp-top { gap:24px; grid-template-columns:minmax(0,1.2fr) minmax(0,.88fr) minmax(300px,340px); grid-template-areas:"info gallery buy" "detail gallery buy"; grid-template-rows:auto 1fr; }
body .e-con.jd-pdp-top>.jd-pdp-info { grid-area:info; }
body .e-con.jd-pdp-top>.jd-pdp-gallery-col { grid-area:gallery; }
body .e-con.jd-pdp-top>.jd-pdp-detail { grid-area:detail; }
body .e-con.jd-pdp-top>.jd-pdp-buy { grid-area:buy; }
body :is(.jd-pdp-info,.jd-pdp-detail) { gap:16px; align-content:start; }
body .jd-pdp-info :is(.product_title,h1) { font-size:clamp(20px,1.7vw,26px); line-height:1.7; overflow-wrap:anywhere; text-wrap:pretty; }
body .jd-pdp-breadcrumb .woocommerce-breadcrumb { line-height:2; overflow-wrap:anywhere; }
body .jd-pdp-detail .woocommerce-product-details__short-description { font-size:15px; line-height:2; color:var(--jd-muted); }
body .jd-pdp-detail .woocommerce-product-details__short-description p:last-child { margin-bottom:0; }
body .jd-pdp-features { padding:20px; border:1px solid var(--jd-glass-border); border-radius:var(--jd-radius-md); background:var(--jd-glass-soft); }
.jd-pdp-features h2 { font-size:16px; margin:0 0 12px; }
.jd-pdp-features dl { margin:0; display:grid; gap:0; }
.jd-pdp-features dl>div { display:grid; grid-template-columns:minmax(90px,.8fr) minmax(0,1.2fr); gap:12px; padding:12px 0; border-bottom:1px solid var(--jd-line); }
.jd-pdp-features dt { color:var(--jd-muted); font-size:13px; }
.jd-pdp-features dd { margin:0; font-size:14px; font-weight:600; overflow-wrap:anywhere; }
body .jd-pdp-actions { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); justify-items:center; align-items:center; gap:0; width:100%; }
body .jd-pdp-actions .jd-pdp-act { flex:0 0 44px; width:44px; height:44px; min-height:44px; padding:0!important; margin:0; border-radius:12px!important; box-shadow:none; }
body .jd-pdp-act .jd-ico { flex:0 0 20px; width:20px; height:20px; }
body .jd-pdp-actions .jd-pdp-act[aria-pressed=true] { background:var(--jd-action)!important; color:var(--jd-on-action)!important; border-color:var(--jd-action)!important; }
body .jd-pdp-gallery-col .woocommerce-product-gallery { width:100%!important; float:none; padding:16px; }
body .jd-pdp-gallery-col .woocommerce-product-gallery__wrapper { margin:0; }
body .jd-pdp-gallery-col .woocommerce-product-gallery__image img { width:100%; height:clamp(260px,29vw,420px); object-fit:contain; background:var(--jd-white); }
body .jd-pdp-gallery-col .woocommerce-product-gallery__image--placeholder img { width:100%; height:clamp(260px,29vw,420px); object-fit:contain; }
body .jd-pdp-gallery-col .flex-control-thumbs { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
body .jd-pdp-gallery-col .flex-control-thumbs li { float:none!important; width:100%!important; margin:0!important; }
body .jd-pdp-gallery-col .flex-control-thumbs img { width:100%; aspect-ratio:1; height:auto; object-fit:contain; background:var(--jd-white); }
body .jd-pdp-buy { position:static; padding:20px!important; gap:14px; border-radius:var(--jd-radius-md); }
body .jd-pdp-buy :is(.price,p.price,span.price) { color:var(--jd-text); font-size:26px; line-height:1.7; }
body .jd-pdp-buy :is(.price del,.price del .amount) { color:var(--jd-muted); font-size:14px; }
body .jd-pdp-buy .woocommerce-Price-amount, .jd-mobile-purchase__amount .woocommerce-Price-amount { white-space:nowrap; }
body .jd-pdp-buy form.cart { display:block; margin:0; }
body .jd-pdp-buy form.cart:not(.variations_form):not(.grouped_form), body .jd-pdp-buy .woocommerce-variation-add-to-cart { display:flex; flex-wrap:wrap; align-items:stretch; gap:10px; }
body .jd-pdp-buy form.cart .quantity { float:none!important; margin:0!important; flex:0 0 76px; }
body .jd-pdp-buy form.cart .quantity input { width:76px; min-height:48px; padding:8px; font-size:16px; }
body .jd-pdp-buy .single_add_to_cart_button { flex:1 1 160px; width:auto; min-height:48px; float:none!important; font-size:15px; }
body .jd-pdp-buy .variations { table-layout:fixed; border:0; background:transparent; margin-bottom:12px; }
body .jd-pdp-buy .variations th, body .jd-pdp-buy .variations td { display:block; width:100%; padding:0 0 8px; border:0; background:transparent; text-align:start; }
body .jd-pdp-buy .variations label { display:block; font-size:14px; }
body .jd-pdp-buy .variations select { width:100%; min-height:48px; font-size:16px; padding:8px 12px; border:1px solid var(--jd-line); border-radius:12px; background:var(--jd-bg); color:var(--jd-text); }
body .jd-pdp-buy .woocommerce-variation { color:var(--jd-text); margin-bottom:12px; }
body .jd-pdp-buy .reset_variations { display:inline-flex; align-items:center; min-height:44px; font-size:13px; }
body .jd-pdp-buy :is(.group_table,.woocommerce-grouped-product-list) { table-layout:fixed; }
body .jd-pdp-buy .group_table td { padding:8px 4px; overflow-wrap:anywhere; }
body .jd-pdp-buy .jd-pdp-inquiry .elementor-button { width:100%; }
body .e-con.jd-pdp-contact { display:flex; flex-wrap:wrap; gap:8px; }
body .jd-pdp-contact>.elementor-widget { flex:1 1 125px; width:auto; }
body .jd-pdp-contact .elementor-button { width:100%; font-size:13px; padding-inline:10px!important; }
body .jd-pdp-tabs { padding:24px!important; scroll-margin-top:140px; }
body .jd-pdp-tabs .elementor-widget-woocommerce-product-data-tabs .woocommerce-tabs ul.tabs.wc-tabs { display:flex; flex-wrap:wrap; gap:8px; padding:0 0 16px; margin:0 0 24px; border:0; border-bottom:1px solid var(--jd-line); overflow:visible; }
body .jd-pdp-tabs .woocommerce-tabs ul.tabs:before, body .jd-pdp-tabs .woocommerce-tabs ul.tabs:after,
body .jd-pdp-tabs .woocommerce-tabs ul.tabs li:before, body .jd-pdp-tabs .woocommerce-tabs ul.tabs li:after { display:none; }
body .jd-pdp-tabs .elementor-widget-woocommerce-product-data-tabs .woocommerce-tabs ul.tabs.wc-tabs li { margin:0; padding:0; border:1px solid var(--jd-line); border-radius:12px; background:var(--jd-surface); }
body .jd-pdp-tabs .elementor-widget-woocommerce-product-data-tabs .woocommerce-tabs ul.tabs.wc-tabs li a { display:inline-flex; align-items:center; padding:10px 16px; min-height:44px; color:var(--jd-text); font-size:14px; font-weight:600; text-decoration:none; }
body .jd-pdp-tabs .elementor-widget-woocommerce-product-data-tabs .woocommerce-tabs ul.tabs.wc-tabs li.active { background:var(--jd-action); border-color:var(--jd-action); }
body .jd-pdp-tabs .elementor-widget-woocommerce-product-data-tabs .woocommerce-tabs ul.tabs.wc-tabs li.active a { color:var(--jd-on-action); }
body .jd-pdp-tabs .woocommerce-Tabs-panel { margin:0; color:var(--jd-text); font-size:16px; line-height:2; overflow-wrap:anywhere; }
/* The tab list owns the separator; neutralize Elementor's second panel rule. */
body .jd-pdp-tabs .elementor-widget-woocommerce-product-data-tabs .woocommerce-tabs div.woocommerce-Tabs-panel.panel { border-top:0; margin-top:0; }
body .jd-pdp-tabs .woocommerce-Tabs-panel>p { max-width:75ch; }
body .jd-pdp-tabs .woocommerce-Tabs-panel img { max-width:100%; height:auto; }
body .jd-pdp-tabs .woocommerce-Tabs-panel :is(h1,h2) { font-size:clamp(20px,2vw,26px); margin:24px 0 12px; }
body .jd-pdp-tabs table.shop_attributes { table-layout:fixed; width:100%; background:var(--jd-bg); color:var(--jd-text); }
body .jd-pdp-tabs table.shop_attributes th { width:32%; background:var(--jd-surface); }
body .jd-pdp-tabs table.shop_attributes :is(th,td) { font-size:14px; padding:12px; overflow-wrap:anywhere; color:var(--jd-text); }
body .jd-pdp-tabs #review_form :is(input:not([type=checkbox]),select,textarea) { font-size:16px; }
body .jd-reviews-body { grid-template-columns:minmax(0,1fr) minmax(260px,320px); gap:24px; }
body .jd-reviews-stickybar { position:static; }
body .jd-reviews-mini { top:140px; }
body .jd-pdp-trust { grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr)); gap:12px; }
body .jd-pdp-trust li { font-size:13px; padding:12px; }
body .jd-pdp-services-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); }
body .jd-pdp-icon { display:inline-flex; align-items:center; justify-content:center; flex:0 0 42px; width:42px; height:42px; border-radius:12px; color:var(--jd-text); background:var(--jd-surface); background:color-mix(in srgb,var(--jd-gold) 16%,var(--jd-surface)); }
body .jd-pdp-icon .jd-ico { width:26px; height:26px; color:inherit; flex:none; }
body .jd-pdp-seller { padding:4px 0 16px; gap:14px; }
body .jd-pdp-seller-shop { font-size:18px; font-weight:800; gap:12px; line-height:1.8; }
body .jd-pdp-stock { gap:10px; }
body .jd-pdp-stock .jd-ico { width:24px; height:24px; }
body .jd-pdp-assurances { display:grid; gap:12px; }
body .jd-pdp-assurance { margin:0; padding:0; border:1px solid var(--jd-line); border-radius:12px; background:var(--jd-bg); color:var(--jd-text); font-size:13px; line-height:1.9; }
body .jd-pdp-assurance summary, body .jd-pdp-assurance.jd-pdp-warranty { display:flex; align-items:center; gap:10px; padding:12px; min-height:64px; }
body .jd-pdp-assurance summary { list-style:none; cursor:pointer; }
body .jd-pdp-assurance summary::-webkit-details-marker { display:none; }
body .jd-pdp-assurance summary>.jd-ico-arrow { margin-inline-start:auto; flex:0 0 18px; transform:rotate(-90deg); }
body .jd-pdp-assurance[open] summary>.jd-ico-arrow { transform:rotate(90deg); }
body .jd-pdp-assurance-body { padding:0 16px 16px; color:var(--jd-muted); }
body .jd-pdp-trust li>span:last-child { min-width:0; }
body .jd-pdp-trust :is(strong,small) { display:block; overflow-wrap:anywhere; }
body .jd-pdp-trust small { font-size:12px; font-weight:400; color:var(--jd-muted); margin-top:4px; }
body .jd-pdp-service { gap:12px; }
body .jd-pdp-comments .jd-ico { transform:none; }
/* The existing shared MobileNav is the single sticky purchase owner. */
body .jd-pdp-bar { display:none!important; }

body .jd-shop { width:100%; max-width:var(--jd-commerce-width); padding:24px 24px 64px; }
body .jd-shop-search{margin:0 0 8px;width:100%}
body .jd-shop-search-field{display:flex;align-items:center;gap:12px;padding:6px 8px;border:1px solid var(--jd-glass-border);border-radius:12px;background:var(--jd-glass-soft);min-height:56px}
body .jd-shop-search-field>input{flex:1;min-width:0;width:100%;padding:10px 8px!important;border:0!important;box-shadow:none!important;background:transparent!important;color:var(--jd-text);font:inherit;font-size:16px}
body .jd-shop-search-field>#jd-shop-search-input:is(:focus,:focus-visible){outline:0!important;border:0!important;box-shadow:none!important;background:transparent!important;animation:none!important}
body .jd-shop-search-field input::-webkit-search-cancel-button{-webkit-appearance:none}
body .jd-shop-search-field:focus-within{border-color:var(--jd-focus);box-shadow:0 0 0 1px var(--jd-focus)}
body .jd-shop-search-clear{display:grid;place-items:center;flex:none;width:44px;min-height:44px;border:0;border-radius:12px;background:transparent;color:var(--jd-text);font-size:24px;padding:0;cursor:pointer}
body .jd-shop-search-clear:is(:hover,:focus-visible){background:var(--jd-glass-strong);color:var(--jd-text)}
body .jd-shop-search-clear[hidden],body [data-jd-shop-search-retry][hidden]{display:none!important}
body .jd-shop-search-field>.jd-button{flex:none;min-height:44px;padding:10px 16px!important}
body .jd-shop-search-field>.jd-button svg{flex:none;width:20px;height:20px}
body .jd-shop-search-feedback{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:28px;margin-bottom:16px;color:var(--jd-muted);font-size:12px}
body .jd-shop-search-feedback p{margin:0;line-height:1.9;text-align:start}
body .jd-shop-search-feedback .jd-button{min-height:36px;font-size:12px;padding:6px 12px!important}
body .jd-shop-results{scroll-margin-top:150px}
body .jd-shop-results[aria-busy=true]{opacity:.55;pointer-events:none}
@media(max-width:600px){body .jd-shop-search-field{gap:4px}body .jd-shop-search-field>.jd-button{font-size:13px;padding-inline:10px!important}body .jd-shop-results{scroll-margin-top:110px}}
body .jd-shop-breadcrumb { display:flex; gap:8px; flex-wrap:wrap; color:var(--jd-muted); font-size:13px; margin-bottom:16px; }
body .jd-shop-head { flex-wrap:wrap; align-items:center; gap:12px; margin-bottom:20px; }
body .jd-shop-head h1 { font-size:clamp(22px,2.1vw,30px); line-height:1.6; }
body .jd-shop-title-accessible { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; border:0; clip:rect(0,0,0,0); clip-path:inset(50%); overflow:hidden; white-space:nowrap; }
body .jd-shop-categories { display:flex; align-items:center; gap:8px; margin-bottom:24px; padding:8px; min-width:0; max-width:100%; background:var(--jd-glass-soft); border-radius:12px; }
body .jd-category-track { display:flex; flex-wrap:nowrap; align-items:stretch; gap:8px; flex:1; min-width:0; margin:0; padding:0; list-style:none; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; }
body .jd-category-track li { display:flex; flex:0 0 140px; padding:0; margin:0; }
body .jd-shop-categories a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; width:100%; min-height:108px; padding:12px 8px; border:1px solid transparent; border-radius:8px; font-size:13px; line-height:1.8; text-align:center; background:var(--jd-bg); color:var(--jd-text); }
body .jd-shop-categories .jd-category-image { display:block; width:48px; height:48px; flex:0 0 48px; margin:0; object-fit:contain; background:var(--jd-white); border-radius:6px; }
body .jd-shop-categories a[aria-current=page] { border-color:var(--jd-action); }
body .jd-category-arrow { display:inline-flex; align-items:center; justify-content:center; flex:0 0 44px; width:44px; height:44px; padding:0; border:1px solid var(--jd-line); border-radius:50%; color:var(--jd-text); background:var(--jd-bg); }
body .jd-category-arrow[hidden] { display:none; }
body .jd-category-arrow:disabled { opacity:.4; cursor:default; }
body .jd-shop-categories a:hover { background:var(--jd-surface); border-color:var(--jd-action); }
body .jd-category-arrow:not(:disabled):hover { background:var(--jd-surface); border-color:var(--jd-action); color:var(--jd-text); }
body .jd-shop-categories :is(a,button):focus-visible { outline:3px solid var(--jd-action); outline-offset:-3px; }
body .jd-shop-categories :is(a,button:not(:disabled)) { cursor:pointer; }
body .jd-home-category-rail { margin-block:16px 0; }
body .jd-shop-layout { grid-template-columns:260px minmax(0,1fr); gap:24px; }
body .jd-shop-controls { display:flex; align-items:stretch; gap:16px; margin-bottom:24px; min-width:0; }
body .jd-shop-toolbar { flex:1; min-width:0; margin:0; padding:4px 16px; border:1px solid var(--jd-glass-border); border-radius:12px; background:var(--jd-glass-soft); min-height:56px; }
body .jd-shop-count { flex:0 0 auto; font-size:12px; margin:0; color:var(--jd-muted); white-space:nowrap; }
body .jd-shop-compare-toggle { display:none; flex:0 0 100px; min-height:56px; border-radius:12px!important; }
body .jd-shop[data-jd-compare-ready] .jd-shop-compare-toggle { display:inline-flex; }
body .jd-shop-compare-toggle[aria-pressed=true] { background:var(--jd-bg)!important; color:var(--jd-action)!important; border-color:var(--jd-action)!important; }
body .jd-shop-compare-panel { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:16px; margin-bottom:20px; background:var(--jd-glass-soft); border:1px solid var(--jd-line); border-radius:12px; }
body .jd-shop-compare-panel[hidden] { display:none; }
body .jd-shop-compare-panel p { flex:1 1 240px; margin:0; font-size:13px; color:var(--jd-muted); }
body .jd-shop-compare-actions { display:flex; gap:8px; flex-wrap:wrap; }
body .jd-shop-compare-actions .jd-button { font-size:13px; padding:10px 12px!important; min-height:44px; }
body .jd-shop-compare-actions a[aria-disabled=true] { opacity:.45; cursor:default; }
body .jd-shop-grid .jd-compare-button { display:none!important; }
body .jd-shop[data-jd-compare-mode=on] .jd-shop-grid .jd-compare-button { display:inline-flex!important; }
body .jd-shop-grid .jd-compare-button[aria-pressed=true] { background:var(--jd-action)!important; color:var(--jd-on-action)!important; border-color:var(--jd-action)!important; }
body .jd-sort { flex:1; min-width:0; width:auto; margin:0; gap:12px; }
body .jd-sort-list { gap:16px; flex-wrap:wrap; }
body .jd-sort-list a { font-size:13px; padding:10px 0; min-height:44px; }
body .jd-shop-side { position:sticky; inset:auto; top:140px; width:100%; max-width:none; max-height:none; height:auto; margin:0; padding:20px; color:var(--jd-text); background:var(--jd-glass-strong); border:1px solid var(--jd-glass-border); border-radius:var(--jd-radius-md); box-shadow:none; }
body .jd-shop-side:not([open]) { display:none; }
body .jd-shop-side-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; padding-bottom:12px; border-bottom:1px solid var(--jd-line); }
body .jd-shop-side-head h2 { font-size:16px; margin:0; }
body .jd-shop-side-close { display:none; align-items:center; justify-content:center; flex:0 0 44px; width:44px; height:44px; padding:0; }
body .jd-shop-side-close:is(:hover,:focus) { color:var(--jd-text); background:var(--jd-surface); border-color:var(--jd-action); }
body .jd-shop-filters { gap:16px; }
body .jd-shop-filters :is(input:not([type=checkbox]),select) { font-size:16px; }
body .jd-shop-filters .jd-check { margin:0; }
body .jd-shop-filters .jd-button { width:100%; }
body .jd-shop :is(.jd-empty,.jd-shop-desc) { margin-bottom:24px; }
body .jd-shop-layout + .jd-shop-desc { margin-block-start:32px; }
body .jd-shop-desc summary { gap:8px; padding-inline:16px; }
body .jd-shop-desc :is(.jd-shop-desc-more,.jd-shop-desc-less) { margin-inline-start:auto; white-space:nowrap; }
body .jd-shop-desc summary::after { margin-inline-start:0; }
body .jd-shop-desc-body { padding-inline:16px; }
body .jd-pagination:empty { display:none; }

/* Woo float widths and Elementor grid controls yield to one shared card system. */
body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) ul.products { display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; padding:0; margin:0 0 24px; }
body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) ul.products:before,
body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) ul.products:after { display:none; }
body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) ul.products li.product { width:100%!important; min-width:0; float:none!important; margin:0!important; padding:16px; display:flex; flex-direction:column; color:var(--jd-text); }
body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) li.product a.woocommerce-loop-product__link { display:flex; flex-direction:column; flex:1; min-width:0; }
body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) li.product a img { width:100%; height:auto; aspect-ratio:1; object-fit:contain; padding:8px; background:var(--jd-white); border-radius:12px; margin:0 0 12px; }
body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) li.product .woocommerce-loop-product__title { font-size:14px; line-height:1.9; margin:0 0 12px; padding:0; min-height:3.8em; overflow-wrap:anywhere; color:var(--jd-text); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) li.product .price { margin:auto 0 12px; font-size:17px; font-weight:700; display:flex; flex-wrap:wrap; gap:4px 8px; color:var(--jd-text); }
body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) li.product .price del { color:var(--jd-muted); font-size:13px; }
body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) li.product .price ins { background:transparent; text-decoration:none; }
body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) li.product :is(.button,.jd-compare-button) { width:100%; min-height:44px; font-size:13px; padding:10px!important; margin:0; }
/* Native Woo actions also occur outside a .woocommerce wrapper in product carousels. */
body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) li.product :is(a.button,a.added_to_cart) { display:inline-flex; align-items:center; justify-content:center; gap:8px; width:100%; text-align:center; cursor:pointer; }
body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) li.product :is(a.button,a.added_to_cart):focus-visible { outline:2px solid var(--jd-focus); outline-offset:3px; }
body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) li.product a.button:is(.loading,[aria-disabled=true]) { opacity:.65; pointer-events:none; cursor:default; }
body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) li.product a.added_to_cart { margin-top:8px; padding:10px; }
body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) li.product .jd-compare-button { margin-top:8px; align-items:center; justify-content:center; text-align:center; }
body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) li.product .onsale { inset:12px 12px auto auto; min-height:30px; min-width:30px; padding:4px 8px; line-height:1.6; border-radius:8px; background:var(--jd-action); color:var(--jd-on-action); }
body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) li.product .jd-card-offer { display:flex; align-items:center; justify-content:space-between; gap:8px; order:-1; min-height:32px; padding:0 0 8px; margin:0 0 12px; border:0; border-bottom:3px solid var(--jd-error); border-radius:0; color:var(--jd-error); background:transparent; font-size:12px; line-height:1.6; }
body .jd-card-offer .jd-card-offer-badge { color:inherit; background:transparent; padding:0; border:0; font-weight:700; }
body .jd-card-offer time { direction:ltr; white-space:nowrap; font-variant-numeric:tabular-nums; font-weight:700; }
body .jd-card-offer time.is-expired { white-space:normal; direction:rtl; font-size:11px; }
body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) li.product:has(.jd-card-offer) .onsale { display:none; }
body .jd-pdp-carousel { max-width:100%; }
body .jd-pdp-also .jd-pdp-carousel ul.products { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:240px; }

@media (max-width:1279px) and (min-width:1101px) {
  body .jd-shop-grid ul.products { grid-template-columns:repeat(3,minmax(0,1fr)); }
  body .jd-sort-list { gap:12px; }
}
@media (min-width:768px) and (max-width:1199px) {
  body .e-con.jd-pdp-top { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-areas:"info gallery" "detail gallery" "buy buy"; grid-template-rows:auto 1fr auto; }
  body .e-con.jd-pdp-top>.jd-pdp-buy { grid-column:1/-1; }
  body .jd-pdp-related ul.products { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body .jd-reviews-body { grid-template-columns:1fr; }
}
@media (max-width:1100px) {
  body .jd-shop-layout { grid-template-columns:minmax(0,1fr); }
  body .jd-shop-side { position:static; transform:none; }
  body .jd-shop[data-jd-drawer-ready] .jd-shop-side {
    position:fixed; inset:0 0 0 auto; margin:0; width:min(380px,calc(100vw - 24px));
    height:100dvh; max-height:100dvh; border-radius:16px 0 0 16px; padding:20px;
    overflow-y:auto; overscroll-behavior:contain; background:var(--jd-bg);
  }
  body .jd-shop-side::backdrop { background:rgba(12,20,25,.58); }
  body .jd-shop-filters-btn { display:none; }
  body .jd-shop[data-jd-drawer-ready] .jd-shop-filters-btn { display:inline-flex; gap:8px; }
  body .jd-shop-side-close { display:inline-flex; }
  body .jd-shop-toolbar { gap:12px; }
  body .jd-category-track li { flex-basis:auto; }
  body .jd-shop-categories a { flex-direction:row; min-height:64px; padding:8px 12px; white-space:nowrap; }
  body .jd-sort { width:auto; min-width:0; flex:1; justify-content:flex-end; }
  body .jd-sort-label { display:none; }
  body .jd-sort-current { display:inline-flex; }
  body .jd-sort-list { display:none; flex-wrap:nowrap; position:absolute; inset:calc(100% + 8px) auto auto 0; min-width:200px; padding:8px 16px; background:var(--jd-bg); z-index:60; border-radius:12px; border:1px solid var(--jd-line); box-shadow:var(--jd-glass-shadow-sm); flex-direction:column; align-items:stretch; gap:0; }
  body .jd-sort.is-open .jd-sort-list { display:flex; }
  body .jd-shop-grid ul.products { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:767px) {
  body .jd-shop-layout + .jd-shop-desc { margin-block-start:24px; }
  body .e-con.jd-pdp, body .jd-pdp-page, body .jd-shop { padding:16px 16px 40px!important; gap:20px; }
  body .e-con.jd-pdp-top { grid-template-columns:minmax(0,1fr); grid-template-areas:"info" "gallery" "detail" "buy"; grid-template-rows:auto; gap:20px; }
  body .jd-pdp-buy { padding:20px!important; }
  body .jd-pdp-gallery-col .woocommerce-product-gallery__image img,
  body .jd-pdp-gallery-col .woocommerce-product-gallery__image--placeholder img { height:clamp(240px,72vw,380px); }
  body .jd-pdp-tabs { padding:16px!important; }
  body .jd-pdp-tabs .woocommerce-tabs ul.tabs { gap:8px; }
  body .jd-pdp-tabs .elementor-widget-woocommerce-product-data-tabs .woocommerce-tabs ul.tabs.wc-tabs li { flex:1 1 calc(50% - 8px); text-align:center; }
  body .jd-pdp-tabs .elementor-widget-woocommerce-product-data-tabs .woocommerce-tabs ul.tabs.wc-tabs li a { width:100%; justify-content:center; font-size:13px; padding:10px 8px; }
  body .jd-pdp-tabs .woocommerce-Tabs-panel { font-size:16px; }
  body .jd-pdp-trust { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body .jd-pdp-trust li { flex-direction:column; font-size:12px; gap:6px; }
  body .jd-reviews-body { grid-template-columns:1fr; }
  body .jd-reviews-stickybar { flex-wrap:wrap; }
  body .jd-reviews-guidebox, body .jd-reviews-guidecard { padding:16px; }
  body .jd-pdp-services-grid { grid-template-columns:1fr; }
  body .jd-shop-controls { display:grid; grid-template-columns:auto minmax(0,1fr) 76px; align-items:start; gap:8px; }
  body .jd-shop-compare-toggle { order:3; min-height:48px; font-size:13px; padding-inline:8px!important; }
  body .jd-shop-toolbar { display:contents; }
  body .jd-shop-toolbar .jd-shop-count { order:4; grid-column:1/-1; width:100%; text-align:end; font-size:11px; }
  body .jd-shop-filters-btn { order:1; min-width:0; min-height:48px; padding-inline:8px!important; font-size:13px; }
  body .jd-sort { order:2; justify-content:stretch; min-height:48px; background:var(--jd-glass-soft); border:1px solid var(--jd-glass-border); border-radius:12px; z-index:40; }
  body .jd-sort-current { font-size:13px; padding:8px; min-width:0; min-height:46px; width:100%; justify-content:space-between; gap:4px; }
  body .jd-sort-current span { min-width:0; white-space:normal; text-align:start; }
  body .jd-sort-current::after { flex:0 0 8px; }
  body .jd-shop-categories { gap:4px; padding:8px 4px; }
  body .jd-category-arrow { flex-basis:44px; }
  body :is(.jd-shop-grid,.jd-pdp-related,.jd-wishlist) ul.products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; grid-auto-flow:row; overflow:visible; }
  body .jd-pdp-also .jd-pdp-carousel ul.products { grid-auto-columns:minmax(180px,68vw); }
  body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) ul.products li.product { padding:12px; }
  body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) li.product .price { font-size:15px; }
  body :is(.jd-shop-grid,.jd-pdp-related,.jd-pdp-also,.jd-wishlist) li.product .woocommerce-loop-product__title { font-size:13px; }
}
@media (max-width:800px) {
  /* MobileNav submits this native form. Keep variation/group selectors available. */
  body .jd-pdp-buy form.cart:not(.variations_form):not(.grouped_form),
  body .jd-pdp-buy form.cart .single_add_to_cart_button { display:none!important; }
}
@media (max-width:359px) {
  body :is(.jd-shop-grid,.jd-pdp-related,.jd-wishlist) ul.products { grid-template-columns:minmax(0,1fr); }
  body .jd-shop-filters-btn { font-size:13px; }
  body .jd-sort-current { font-size:13px; }
}
@media (forced-colors:active) {
  body :is(.jd-shop-side,.jd-shop-toolbar,.jd-pdp-buy,.jd-pdp-tabs) { background:Canvas; color:CanvasText; border-color:CanvasText; }
}
@media print {
  body .jd-shop-side, body .jd-shop-controls, body .jd-shop-compare-panel { display:none; }
  body .jd-shop-layout { grid-template-columns:1fr; }
  body .e-con.jd-pdp-top { grid-template-columns:1fr; grid-template-areas:"info" "gallery" "detail" "buy"; grid-template-rows:auto; }
}
