/* Shared Hiyadaki visual language: measured reference hierarchy, original local styling. */
body.hy-store{font-family:"Hiyadaki IRANSans",Tahoma,sans-serif;font-size:13px;font-weight:300;line-height:1.85;--wd-primary-color:var(--hy-accent);--btn-default-bgcolor:var(--hy-panel-alt);--btn-default-color:var(--hy-text);--btn-accented-bgcolor:var(--hy-accent);--btn-accented-color:var(--hy-on-accent)}
body.hy-store :is(button,input,select,textarea,.button){font-family:inherit;font-size:12px;line-height:1.75}
body.hy-store :is(label,.woocommerce-form__label,.hy-address-form label,.hy-sidebar-form summary){font-size:12px!important;font-weight:500}
body.hy-store h1{font-size:24px;line-height:1.7;font-weight:500}
body.hy-store h2{font-size:18px;line-height:1.8;font-weight:500}
body.hy-store h3{font-size:15px;line-height:1.8;font-weight:500}
body.hy-store :is(.hy-main-nav,.hy-secondary-row,.hy-footer,.woocommerce-breadcrumb,.hy-order-tabs,.hy-order-sheet-link){font-size:12px}
body.hy-store :is(.hy-header,.hy-secondary-row,.hy-footer,dialog,.hy-auth-card,.hy-unified-filters,.hy-category,.hy-request,.hy-rfq,.cart_totals,.payment_box){background-color:var(--hy-panel)!important;color:var(--hy-text)!important;border-color:var(--hy-line)!important;box-shadow:none}
body.hy-store :is(.hy-category,.hy-request,.hy-rfq,.hy-unified-filters,.cart_totals,.woocommerce-form,.hy-auth-card,dialog){border-radius:var(--hy-radius)!important}
body.hy-store :is(.hy-hero,.hy-hero-content,.hy-hero-panel){background:var(--hy-panel-alt)!important;color:var(--hy-text)!important;border-color:var(--hy-line)!important}
body.hy-store .hy-hero :is(h1,h2,p,small,span){color:var(--hy-text)!important}
body.hy-store :is(.input-text,select,textarea):not(.qty){border-radius:8px!important;border-color:var(--hy-line)!important;background:var(--hy-panel)!important;color:var(--hy-text)!important;font-size:12px!important}
body.hy-store :is(.button,button[type=submit],input[type=submit],.hy-rfq-open,.hy-rfq-card,.hy-rfq-submit,.hy-request button,.hy-filter-apply,.hy-address-add,.hy-address-form button[type=submit],.hy-archive-drawer [data-apply]){background:var(--hy-accent)!important;color:var(--hy-on-accent)!important;border:1px solid var(--hy-accent)!important;border-radius:8px!important;font-size:12px!important;font-weight:500;box-shadow:none!important;text-shadow:none}
body.hy-store :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--hy-accent);outline-offset:3px}
body.hy-store input:is([type=checkbox],[type=radio]){accent-color:var(--hy-accent)}
body.hy-store :is(.hy-account,.hy-theme-menu summary,.hy-vehicle-highlight,.hy-filter-open,.hy-sort-open,.hy-archive-vehicle-context,.hy-selected-vehicle){border-color:var(--hy-line)!important;background:var(--hy-panel-alt)!important;color:var(--hy-text)!important;border-radius:8px!important;box-shadow:none}
body.hy-store :is(.hy-category-shortcuts img,.hy-category-symbol){background:var(--hy-panel-alt);border-color:var(--hy-line)}
body.hy-store :is(.hy-filter-open,.hy-sort-open){display:inline-flex;align-items:center;justify-content:center;gap:7px}
body.hy-store .hy-filter-open:before{content:'';display:block;width:17px;height:17px;flex:none;background:currentColor;mask:url('icons/sliders.svg') center/contain no-repeat}
body.hy-store .hy-sort-open:before{content:'↓';font-size:17px;line-height:1}
body.hy-store .hy-sidebar-form details[open]>summary{background:var(--hy-panel-alt)!important;color:var(--hy-accent)!important}
body.hy-store .hy-sidebar-form .hy-choice{font-size:12px!important;font-weight:300}
body.hy-store .hy-sidebar-form .hy-choice:has(input:checked){background:var(--hy-rfq-accent);color:var(--hy-rfq-on)!important}
body.hy-store .hy-order-link.is-active,body.hy-store .hy-order-sheet-link.is-active{color:var(--hy-accent)!important}
body.hy-store .hy-detail-tools :is(.hy-share,.wd-action-btn>a){background:var(--hy-panel-alt)!important;border:1px solid var(--hy-line)!important;color:var(--hy-text)!important;border-radius:8px!important;font-size:12px}
body.hy-store .hy-share-menu :is(a,button){background:transparent!important;color:var(--hy-text)!important;border:0!important}
body.hy-store .hy-bottom-nav{background:var(--hy-panel)!important;border-color:var(--hy-line)!important}
/* Keep inactive icons and labels readable in both themes. */
html body.hy-store .hy-bottom-nav{--hy-muted:var(--hy-text)}
/* Product-page supporting copy must stay legible beside the main content. */
html body.hy-store.single-product{--hy-muted:var(--hy-text)}
html body.hy-store.single-product :is(.hy-share-status,.hy-product-neighbor small,.summary small,.product_meta,.product_meta a,.woocommerce-review__published-date,.woocommerce-review__verified,.comment-notes,.woocommerce-noreviews){color:var(--hy-text)!important}
body.hy-store .hy-bottom-nav [aria-current=page]{color:var(--hy-accent)!important;background:var(--hy-panel-alt)!important;border-color:var(--hy-accent)!important}
body.hy-store.single-product .product_title{font-size:22px!important;font-weight:500!important;line-height:1.85!important}
body.hy-store :is(.hy-vehicle-step-row,.hy-vehicle-choose-parent,.hy-address-caption,.hy-product-neighbor b){font-size:12px!important;font-weight:500}
@media(min-width:1025px){body.hy-store .hy-archive-toolbar .hy-filter-open{display:none}}
@media(max-width:600px){body.hy-store{font-size:12px}body.hy-store h1{font-size:20px}body.hy-store h2{font-size:16px}body.hy-store.single-product .product_title{font-size:18px!important}body.hy-store .hy-archive-toolbar :is(.hy-filter-open,.hy-sort-open){font-size:11px!important;gap:5px}}

@media(min-width:601px){body.hy-store .hy-archive-toolbar .hy-sort-open{display:none!important}}
body.hy-store .hy-vehicle-highlight:before{background:conic-gradient(from var(--hy-beam-angle),transparent 0deg 265deg,var(--hy-accent) 310deg,color-mix(in srgb,var(--hy-accent) 30%,white) 340deg,transparent 360deg)}

/* A single stable native load-more control: idle, loading, retry and keyboard focus. */
body.hy-store .products-footer:has(.wd-products-load-more){display:flex;justify-content:center;align-items:center;margin-block:24px 12px;min-height:48px}
body.hy-store a.wd-products-load-more{display:inline-flex!important;align-items:center;justify-content:center;gap:10px;min-width:min(240px,100%);max-width:100%;min-height:46px;padding:10px 22px!important;border:1px solid var(--hy-line)!important;border-radius:10px!important;background:var(--hy-panel)!important;color:var(--hy-accent)!important;box-shadow:0 2px 8px #10273908;font-size:12px!important;font-weight:500;line-height:1.8;text-decoration:none;transition:background-color .18s,border-color .18s,box-shadow .18s;direction:rtl}
body.hy-store a.wd-products-load-more:before{content:'↓';display:block;flex:0 0 18px;width:18px;height:18px;font-size:20px;line-height:18px;box-sizing:border-box;color:currentColor}
body.hy-store a.wd-products-load-more:after{display:none!important}
body.hy-store a.wd-products-load-more:hover{border-color:var(--hy-accent)!important;background:var(--hy-rfq-accent)!important;box-shadow:0 3px 12px #1027390d}
body.hy-store a.wd-products-load-more.loading{cursor:progress;background:var(--hy-panel-alt)!important;color:var(--hy-accent)!important;box-shadow:none}
body.hy-store a.wd-products-load-more.loading:before{content:'';border:2px solid var(--hy-line);border-top-color:var(--hy-accent);border-inline-end-color:var(--hy-accent);border-radius:50%;animation:hy-load-spin .8s linear infinite}
body.hy-store a.wd-products-load-more .load-more-label{display:block!important;visibility:visible!important;opacity:1!important;transform:none!important;white-space:normal}
body.hy-store a.wd-products-load-more+.wd-load-more-loader{display:none!important}
body.hy-store a.wd-products-load-more[data-hy-retry]{border-style:dashed!important;background:var(--hy-rfq-accent)!important}
body.hy-store a.wd-products-load-more[data-hy-retry]:before{content:'↻'}
@keyframes hy-load-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){body.hy-store a.wd-products-load-more{transition:none}body.hy-store a.wd-products-load-more.loading:before{animation:none}}

/* One close-button presentation for all Hiyadaki dialogs and shared notifications. */
body.hy-store :is(.hy-address-close,.hy-vehicle-close,.hy-mobile-menu-close,.hy-dialog-close,.hy-sort-close,dialog header button[data-close]){position:relative!important;box-sizing:border-box;display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 40px;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px;margin:0;padding:0!important;font-size:0!important;line-height:0!important;background:var(--hy-panel-alt)!important;color:var(--hy-accent)!important;border:1px solid var(--hy-line)!important;border-radius:8px!important;box-shadow:none!important;text-shadow:none}
body.hy-store :is(.hy-address-close,.hy-vehicle-close,.hy-mobile-menu-close,.hy-dialog-close,.hy-sort-close,.hy-toast-close,dialog header button[data-close]):before{content:''!important;position:absolute!important;inset:0!important;margin:auto!important;padding:0!important;border:0!important;box-sizing:border-box;display:block!important;width:20px;height:20px;background:currentColor;mask:url('icons/x.svg') center/contain no-repeat;transform:none!important}
body.hy-store :is(.hy-address-close,.hy-vehicle-close,.hy-mobile-menu-close,.hy-dialog-close,.hy-sort-close,.hy-toast-close,dialog header button[data-close]):after{display:none!important}
body.hy-store :is(.hy-address-close,.hy-vehicle-close,.hy-mobile-menu-close,.hy-dialog-close,.hy-sort-close,.hy-toast-close,dialog header button[data-close]):hover{background:var(--hy-rfq-accent)!important;border-color:var(--hy-accent)!important}

/* Search action owns one icon slot: magnifier while idle, spinner while fetching. */
body.hy-store .hy-search-ui>button[type=submit]{position:absolute;background:transparent!important;color:var(--hy-accent)!important;border:0!important;backdrop-filter:none;box-shadow:none!important}
body.hy-store .hy-search-ui>button[type=submit] .hy-icon-search{background-color:var(--hy-accent)!important;color:var(--hy-accent)!important}
body.hy-store .hy-search-ui[aria-busy=true]>button[type=submit] .hy-icon-search{visibility:hidden!important;opacity:0!important}
body.hy-store .hy-search-ui>button[type=submit] .hy-search-spinner{position:absolute!important;inset:0!important;margin:auto!important;width:20px!important;height:20px!important;box-sizing:border-box;pointer-events:none}
body.hy-store .hy-search-ui .hy-search-spinner[hidden]{display:none!important}
body.hy-store .hy-search-results{overflow-x:hidden}
body.hy-store .hy-search-row{min-width:0;max-width:100%;box-sizing:border-box}
body.hy-store .hy-search-price{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:4px;min-width:0;max-width:none;line-height:1.8}
body.hy-store .hy-search-price-old{font-size:10px!important;font-weight:300;color:#b65a68!important;text-decoration:line-through;white-space:nowrap;unicode-bidi:isolate}
body.hy-store .hy-search-price-current{font-size:12px!important;font-weight:500;color:var(--hy-text)!important;white-space:nowrap;unicode-bidi:isolate}
:root[data-theme=dark] body.hy-store .hy-search-price-old{color:#ef9da9!important}

body.hy-store .hy-sprint-header .hy-logo .hy-logo-mark{color:#fff!important}

.hy-address-selection-actions{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px;margin-top:14px;direction:rtl}
body.hy-store .hy-address-selection-actions :is(.hy-address-add,.hy-address-confirm){margin:0!important;min-height:42px;background:transparent!important;color:var(--hy-accent)!important;border:1px solid var(--hy-accent)!important;box-shadow:none!important}
body.hy-store .hy-address-selection-actions .hy-address-add{margin-inline:0 auto!important}
body.hy-store .hy-address-selection-actions :is(.hy-address-add,.hy-address-confirm):hover{background:var(--hy-rfq-accent)!important}
.hy-address-selection-actions button[hidden]{display:none!important}

/* Shared action buttons follow the soft product-card action, including hover contrast. */
html body.hy-store :is(.button,.btn,button[type=submit],input[type=submit],.hy-address-add,.hy-address-form button,.hy-checkout-address button,.hy-request button,.hy-rfq button,.hy-archive-drawer footer button){background:var(--hy-rfq-accent)!important;color:var(--hy-rfq-on)!important;border:1px solid var(--hy-line)!important;border-radius:8px!important;box-shadow:none!important;text-shadow:none;font-family:inherit;font-size:12px!important;font-weight:500;line-height:1.8;min-height:42px;padding:9px 14px}
html body.hy-store :is(.button,.btn,button[type=submit],input[type=submit],.hy-address-add,.hy-address-form button,.hy-checkout-address button,.hy-request button,.hy-rfq button,.hy-archive-drawer footer button):is(:hover,:focus-visible){background:color-mix(in srgb,var(--hy-accent) 12%,var(--hy-panel))!important;color:var(--hy-rfq-on)!important;border-color:var(--hy-accent)!important}
html body.hy-store :is(button,.button,.btn,input[type=submit]):disabled{opacity:.55;cursor:not-allowed}
.hy-address-selection-hint{font-size:12px;color:var(--hy-muted);line-height:1.8;margin:12px 0 0}
.hy-address-selection-hint[hidden]{display:none}

/* Breadcrumb links and the current location share one typographic treatment. */
body.hy-store .woocommerce-breadcrumb,body.hy-store .woocommerce-breadcrumb :is(a,span,strong,b){font-family:inherit!important;font-size:12px!important;font-weight:300!important;font-style:normal!important;line-height:1.6!important;color:var(--hy-muted)!important}
/* Primary header: shared 44px control height and half the former vertical padding. */
body.hy-store .hy-sprint-header .hy-header-inner{min-height:0!important;padding-block:7px!important}
body.hy-store .hy-sprint-header .hy-header-inner :is(.hy-account,.hy-logo-mark){box-sizing:border-box;height:36px!important;min-height:36px!important;max-height:36px!important}
body.hy-store .hy-sprint-header .hy-logo-mark{width:36px!important;min-width:36px!important}
body.hy-store .hy-sprint-header .hy-logo>span:not(.hy-logo-mark){height:36px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;line-height:1.1}
body.hy-store .hy-sprint-header .hy-header-searchbox .hy-search-ui input[name=s]{box-sizing:border-box;height:36px!important;min-height:36px!important;max-height:36px!important;padding-block:0!important}
body.hy-store .hy-sprint-header .hy-header-searchbox .hy-search-ui>button[type=submit]{height:36px!important;min-height:36px!important;top:0!important;bottom:0!important;margin-block:auto;padding-block:0!important}
@media(max-width:1024px){body.hy-store .hy-sprint-header .hy-header-inner{padding-block:4px!important}}
@media(max-width:600px){body.hy-store .hy-sprint-header .hy-header-inner{padding-block:3px!important}}
/* Match the footer's English wordmark styling in the main header. */
body.hy-store .hy-sprint-header .hy-logo small{display:block;font: .7rem Arial,sans-serif!important;letter-spacing:.4rem!important;color:var(--hy-orange)!important;direction:ltr}

/* Joined quantity controls: square inner edges on cart and product pages. */
html body.hy-store .quantity>.plus{border-radius:0 var(--hy-radius) var(--hy-radius) 0!important}
html body.hy-store .quantity>.minus{border-radius:var(--hy-radius) 0 0 var(--hy-radius)!important}

/* Use theme-aware foregrounds rather than the legacy pale muted token. */
html body.hy-store .hy-secondary-utilities .hy-delivery,
html body.hy-store .hy-secondary-utilities .hy-delivery span,
html body.hy-store .hy-footer :is(p,small,a,.hy-footer-bottom,.hy-footer-bottom span){color:var(--hy-text)!important;opacity:1}

/* Search dialog: one RTL heading row and consistently spaced full-width rows. */
html body.hy-store #hy-search-dialog{box-sizing:border-box;padding:20px!important;direction:inherit;text-align:start}
html body.hy-store #hy-search-dialog[open]{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:14px 12px;align-items:center}
html body.hy-store #hy-search-dialog>.hy-dialog-close{grid-column:2;grid-row:1;justify-self:end}
html body.hy-store #hy-search-dialog>h2{grid-column:1;grid-row:1;min-width:0;margin:0!important;font-size:18px;line-height:1.8;text-align:start;color:var(--hy-text)!important}
html body.hy-store #hy-search-dialog>.hy-search-ui{grid-column:1/-1;grid-row:2;min-width:0;margin:0!important}
html body.hy-store #hy-search-dialog input[name=s]{direction:inherit;text-align:start}
html body.hy-store #hy-search-dialog>p{grid-column:1/-1;grid-row:3;margin:0!important;font-size:12px;line-height:1.8;text-align:start;color:var(--hy-text)!important}
html body.hy-store #hy-search-dialog>.hy-quick-search{grid-column:1/-1;grid-row:4;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:8px;margin:0;direction:inherit}
html body.hy-store #hy-search-dialog .hy-quick-search>a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;margin:0;padding:6px 12px;line-height:1.6;font-size:12px;white-space:nowrap;border:1px solid var(--hy-line);border-radius:var(--hy-radius);background:var(--hy-panel-alt);color:var(--hy-text)!important;text-align:center}

/* Readable quantity signs without enlarging the shared control hit areas. */
html body.hy-store .quantity>:is(.plus,.minus){font-family:Arial,sans-serif!important;font-size:22px!important;font-weight:500!important;line-height:1!important;padding:0!important}
html body.hy-store .quantity>button:is(.plus,.minus){display:inline-flex;align-items:center;justify-content:center}

/* One destructive-action color for trash icons throughout the storefront. */
:root{--hy-danger:#c72b35}
:root[data-theme=dark]{--hy-danger:#ff7379}
html body.hy-store :is(.hy-address-remove,.hy-garage-icon-trash-2,.hy-ui-icon[data-icon=trash],.hy-ui-icon[data-icon=trash-2],.lucide-trash,.lucide-trash-2),
html body.hy-store :is(.hy-address-remove,.hy-garage-icon-trash-2,.hy-ui-icon[data-icon=trash],.hy-ui-icon[data-icon=trash-2],.lucide-trash,.lucide-trash-2):is(:hover,:focus-visible){color:var(--hy-danger)!important}
