/* ==========================================================================
   Eminence — WordPress / WooCommerce integration.
   The design's CSS (styles/pages/responsive) is loaded untouched; this file maps
   WooCommerce and plugin markup onto the design's components.
   ========================================================================== */

/* ---------- WordPress basics ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
body.admin-bar .m-menu { top: 46px; }
@media (min-width: 783px) { body.admin-bar .m-menu { top: 32px; } }
.alignleft { float: left; margin: 0 20px 12px 0; } .alignright { float: right; margin: 0 0 12px 20px; } .aligncenter { margin: 0 auto 12px; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 14px; }
.entry-content ul, .entry-content ol { padding-left: 20px; }
.entry-content a { text-decoration: underline; }
.entry-content img { height: auto; }
.legal-grid.no-toc { display: block; }
.legal-grid.no-toc .legal-body { max-width: 860px; }
.legal-body h2 { font-size: 22px; font-weight: 500; margin: 28px 0 10px; }
.legal-body h2 span { color: var(--coral); margin-right: 10px; }
.legal-body h3 { font-size: 17px; font-weight: 500; margin: 20px 0 8px; }
.legal-body { font-size: 15px; line-height: 1.6; color: var(--text-secondary); }

/* design images are sized by the design CSS; stop WP inline width/height from fighting it */
.product-card .media img, .cat-tile img, .mega-feature img, .hero img { height: 100%; }

/* Kept from the store's old Custom CSS snippet (theme-independent rules) */
.grecaptcha-badge { display: none !important; }
.product_id { display: none !important; }
.pswp__caption { display: none; }
.page-id-2333 iframe { min-height: auto !important; }

/* ---------- Tablet / small laptop (768–1100px): the "All categories" button is hidden there,
   so show the ☰ button that opens the slide-in category menu (same as phones). ---------- */
@media (min-width: 768px) and (max-width: 1100px) {
  body .site-header { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "menu logo search right" "nav nav nav nav"; column-gap: 20px; }
  body .site-header .menu-btn { display: grid; margin-left: -8px; }
}

/* ---------- Homepage hero on laptops (1101–1439px): the design positions the arches for 1440px,
   so on smaller laptops the third arch ran off the edge. Anchor them right and scale down. ---------- */
@media (min-width: 1101px) and (max-width: 1439px) {
  .hero-main .hero-arches { left: auto; right: -48px; transform-origin: 100% 60%; transform: scale(.86); }
}
@media (min-width: 1101px) and (max-width: 1379px) {
  .hero-main .hero-arches { right: -60px; transform: scale(.72); }
}
@media (min-width: 1101px) and (max-width: 1239px) {
  .hero-main .hero-arches { right: -70px; transform: scale(.6); }
}

/* ---------- Mega menu: long names (e.g. product links) stay on one line inside their column ---------- */
.mega-col .menu-link { min-width: 0; max-width: 100%; }
.mega-col .menu-link > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mega-col .menu-link .count, .mega-col .menu-link img { flex: none; }

/* WooCommerce stock line in the add-to-cart area ("Available on backorder", "In stock"…),
   shown as a small status pill with space before the quantity / add-to-cart row. */
.pdp-cart > p.stock,
.pdp-cart .woocommerce-variation-availability p.stock,
.qb-form p.stock {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: #eef6f0; color: var(--success); font-size: 12px; font-weight: 500; line-height: 1.3;
}
.pdp-cart > p.stock, .qb-form > p.stock { margin-bottom: 16px; }
.pdp-cart p.stock::before, .qb-form p.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.pdp-cart p.stock.available-on-backorder, .qb-form p.stock.available-on-backorder { background: #f1eeed; color: #5f5556; }
.pdp-cart p.stock.out-of-stock, .qb-form p.stock.out-of-stock { background: var(--bg-blush); color: #a94a48; }

/* ---------- Contact page: the store's Contact Form 7 form in the design's form-card style ---------- */
.epc-cf7 .wpcf7, .epc-cf7 form, .epc-cf7 .form-style-1 { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.epc-cf7 fieldset.hidden-fields-container, .epc-cf7 .wpcf7 fieldset:first-child { display: none; }
.epc-cf7 .columns_wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0 !important; }
.epc-cf7 .column-1_1 { grid-column: 1 / -1; }
.epc-cf7 .columns_wrap > div { width: auto !important; padding: 0 !important; }
.epc-cf7 .style-line { display: block; }
.epc-cf7 p { margin: 0; }
.epc-cf7 br { display: none; }
.epc-cf7 .wpcf7-form-control-wrap { display: flex; flex-direction: column; gap: 8px; }
.epc-cf7 .wpcf7-form-control-wrap::before { font-size: 12px; font-weight: 500; color: var(--text-primary); }
.epc-cf7 [data-name="your-name"]::before { content: 'Name'; }
.epc-cf7 [data-name="your-email"]::before { content: 'Email address'; }
.epc-cf7 [data-name="phone"]::before { content: 'Phone'; }
.epc-cf7 [data-name="subject"]::before { content: 'Subject'; }
.epc-cf7 [data-name="your-message"]::before { content: 'Message'; }
.epc-cf7 [data-name="acceptance"]::before { content: none; }
.epc-cf7 input.wpcf7-text, .epc-cf7 input.wpcf7-email, .epc-cf7 input.wpcf7-tel, .epc-cf7 textarea.wpcf7-textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; font: inherit; font-size: 14px; color: var(--text-primary); outline: none; transition: border-color .2s;
}
.epc-cf7 textarea.wpcf7-textarea { min-height: 96px; height: 96px; resize: vertical; }
.epc-cf7 input:focus, .epc-cf7 textarea:focus { border-color: var(--text-primary); }
.epc-cf7 ::placeholder { color: var(--text-secondary); opacity: .8; }
/* submit + consent: consent line first, then the button (as in the design) */
.epc-cf7 .form-style-1 { position: relative; }
.epc-cf7 .wpcf7-acceptance { display: block; }
.epc-cf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.epc-cf7 .wpcf7-acceptance label { display: inline-flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--text-secondary); cursor: pointer; }
.epc-cf7 .wpcf7-acceptance input[type="checkbox"] { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--bg-inverse); flex: none; }
.epc-cf7 .wpcf7-acceptance a { text-decoration: underline; }
.epc-cf7 input.wpcf7-submit {
  align-self: flex-start; order: 10; padding: 16px 36px; border: 0; border-radius: 999px; background: var(--coral); color: #fff;
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s, transform .2s;
}
.epc-cf7 input.wpcf7-submit:hover { background: #b65250; transform: translateY(-1px); }
.epc-cf7 input.wpcf7-submit:disabled { background: var(--bg-card); color: var(--text-secondary); cursor: not-allowed; transform: none; }
.epc-cf7 .form-style-1 { flex-direction: column; }
.epc-cf7 .wpcf7-spinner { margin: 0 0 0 12px; }
.epc-cf7 .wpcf7-not-valid-tip { font-size: 12px; color: #a94a48; margin-top: 2px; }
.epc-cf7 .wpcf7-not-valid { border-color: var(--coral) !important; }
.epc-cf7 .wpcf7-response-output { margin: 0 !important; padding: 12px 16px !important; border-radius: 12px; border: 0 !important; background: var(--bg-subtle); font-size: 13px; }
.epc-cf7 .wpcf7 form.sent .wpcf7-response-output { background: #eef6f0; color: var(--success); }
.epc-cf7 .wpcf7 form.invalid .wpcf7-response-output, .epc-cf7 .wpcf7 form.failed .wpcf7-response-output { background: var(--bg-blush); color: #8f3a38; }
.epc-cf7 .form-style-1 > p:has(.wpcf7-submit) { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.epc-cf7 .form-style-1 > p:has(.wpcf7-submit) > [data-name="acceptance"] { order: -1; }
.epc-cf7 .form-style-1 > p:has(.wpcf7-submit) > .wpcf7-spinner { position: absolute; }
@media (max-width: 767px) { .epc-cf7 .columns_wrap { grid-template-columns: 1fr; gap: 16px; } }

.auth-form .center-text { text-align: center; }
.auth-form a.btn-plain.block { display: block; }
.woocommerce-password-strength { border-radius: 10px; padding: 8px 12px; background: var(--bg-subtle); }

/* ---------- Header log-out icon (logged-in shoppers) ---------- */
.site-header .side .logout-link { width: 32px; min-width: 32px; flex: 0 0 32px; height: 32px; margin-left: -6px; justify-content: center; border-radius: 999px; transition: background .2s; }
.site-header .side .logout-link:hover { background: var(--bg-subtle); }
.site-header .side .logout-link img { width: 18px; min-width: 18px; height: 18px; flex: 0 0 18px; }
@media (max-width: 767px) { .site-header .side .logout-link { margin-left: -8px; } .site-header .side .logout-link img { width: 20px; height: 20px; } }

/* ---------- "Customer Switch Menu for Shop Managers" plugin (staff only) ----------
   The plugin prints its own inline styles (placed at top:0, under the admin bar); these
   rules restyle it to the design: a floating pill bottom-left, dropdown opening upwards. */
body #customer-switch-bar-fe {
  /* sits inside the coral announcement bar at the top of the page (below the WP admin bar for admins) */
  position: absolute !important; top: 5px !important; left: var(--gutter) !important; bottom: auto !important; transform: none !important;
  z-index: 200 !important; background: none !important; padding: 0 !important; border-radius: 0 !important; color: var(--text-primary) !important;
  font-family: var(--sans);
}
body.admin-bar #customer-switch-bar-fe { top: 37px !important; }
@media (max-width: 782px) { body.admin-bar #customer-switch-bar-fe { top: 51px !important; } }
body #customer-switch-btn-fe {
  display: inline-flex !important; align-items: center; gap: 8px; height: 26px; padding: 0 14px 0 11px !important; border-radius: 999px !important;
  background: #ffcd10 !important; color: #1c1515 !important; font: 700 12.5px/1 var(--sans) !important; letter-spacing: .1px;
  border: 0 !important; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: background .2s;
}
body #customer-switch-btn-fe:hover { background: #ffdb4d !important; }
body #customer-switch-btn-fe i { display: none; }
body #customer-switch-btn-fe::before { content: ''; width: 14px; height: 14px; background: #1c1515; -webkit-mask: url('../assets/img/47db7.svg') center / contain no-repeat; mask: url('../assets/img/47db7.svg') center / contain no-repeat; }
body #customer-dropdown-fe {
  position: absolute !important; top: calc(100% + 10px) !important; bottom: auto !important; left: 0 !important;
  width: min(380px, calc(100vw - 32px)) !important; padding: 14px !important; border-radius: 20px !important; background: #fff !important;
  border: 1px solid var(--border); box-shadow: 0 18px 48px rgba(28,21,21,.18) !important;
}
body #customer-dropdown-fe[style*="block"] { display: flex !important; flex-direction: column; gap: 8px; }
body #customer-dropdown-fe > div:first-child { margin: 0 !important; }
body #customer-dropdown-fe #search-mode, body #customer-search-fe {
  width: 100% !important; height: 38px; padding: 0 12px !important; border: 1px solid var(--border) !important; border-radius: 10px !important;
  background: #fff; font: 13px var(--sans) !important; color: var(--text-primary); outline: none;
}
body #customer-dropdown-fe #search-mode { appearance: none; -webkit-appearance: none; background: #fff url('../assets/img/87fd9-dark.svg') right 10px center / 14px no-repeat !important; padding-right: 30px !important; }
body #customer-search-fe:focus, body #customer-dropdown-fe #search-mode:focus { border-color: var(--text-primary) !important; }
body #customer-dropdown-fe #customer-close-x-fe {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; padding: 0 !important; border: 1px solid var(--border) !important; border-radius: 10px !important;
  background: var(--bg-subtle) !important; color: var(--text-primary) !important; font: 400 22px/36px var(--sans) !important; text-align: center; cursor: pointer;
}
body #customer-dropdown-fe #customer-close-x-fe:hover { background: var(--text-primary) !important; color: #fff !important; }
body #customer-dropdown-fe > div:first-of-type { padding-right: 46px; }
body #customer-list-fe {
  max-height: min(320px, 45vh) !important; margin: 0 !important; border: 1px solid var(--border) !important; border-radius: 12px; overflow-y: auto !important;
}
body .customer-item-fe { padding: 0 !important; border-bottom: 1px solid var(--border) !important; }
body .customer-item-fe:last-child { border-bottom: 0 !important; }
body .customer-item-fe a {
  display: block; padding: 8px 12px; font-size: 12px; line-height: 1.35; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body .customer-item-fe a span { display: block; overflow: hidden; text-overflow: ellipsis; }
body .customer-item-fe a .cust-company { font-size: 13px; font-weight: 700; color: var(--text-primary); }
body .customer-item-fe a .cust-name { font-size: 12px; color: var(--text-primary); }
body .customer-item-fe a .cust-email { font-size: 11px; color: var(--text-secondary); }
body .customer-item-fe:hover { background: var(--bg-subtle) !important; }
body .customer-item-fe:hover a { color: var(--coral); }
body #create-new-customer-btn {
  margin: 0 !important; padding: 10px !important; border-radius: 999px !important; border: 1px solid var(--border) !important;
  background: #fff !important; color: var(--text-primary) !important; font: 500 13px var(--sans) !important; transition: background .2s, color .2s;
}
body #create-new-customer-btn:hover { background: var(--bg-subtle) !important; color: var(--text-primary) !important; }
body #customer-dropdown-fe .customer-actions-fe { display: flex; gap: 8px; }
body #customer-dropdown-fe .customer-actions-fe button { flex: 1; }
body #customer-cancel-btn-fe {
  margin: 0 !important; padding: 10px !important; border-radius: 999px !important; border: 1px solid var(--border) !important;
  background: #fff !important; color: var(--text-primary) !important; font: 500 13px var(--sans) !important; cursor: pointer; transition: background .2s, color .2s;
}
body #customer-cancel-btn-fe:hover { background: var(--bg-subtle) !important; color: var(--text-primary) !important; }
@media (max-width: 767px) {
  body #customer-switch-bar-fe { top: 4px !important; left: 50% !important; transform: translateX(-50%) !important; }
  body #customer-dropdown-fe { left: 50% !important; transform: translateX(-50%); }
  /* staff only: the short support line makes room for the button */
  body:has(#customer-switch-bar-fe) .announcement .ann-m { visibility: hidden; }
}

/* "You are acting as a customer … Switch back" bar printed by the same plugin */
body > div[style*="#ffc107"] {
  background: var(--bg-inverse) !important; color: #fff !important; padding: 10px 16px !important; font: 500 13px/1.4 var(--sans) !important;
}
body > div[style*="#ffc107"] a { color: var(--pink) !important; margin-left: 6px; }

/* ---------- Confirmation dialog (log out) ---------- */
.epc-confirm { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(28,20,20,.45); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.epc-confirm.open { opacity: 1; visibility: visible; }
.epc-confirm-card { width: min(380px, 100%); background: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; transform: translateY(8px) scale(.98); transition: transform .2s; box-shadow: 0 24px 60px rgba(28,21,21,.25); }
.epc-confirm.open .epc-confirm-card { transform: none; }
.epc-confirm-ico { width: 52px; height: 52px; border-radius: 999px; background: var(--bg-subtle); display: grid; place-items: center; margin-bottom: 6px; }
.epc-confirm-ico img { width: 22px; height: 22px; }
.epc-confirm-btns { display: flex; gap: 10px; width: 100%; margin-top: 14px; }
.epc-confirm-btns > * { flex: 1; text-align: center; padding: 13px 16px; }

/* ---------- Slide-in cart drawer ---------- */
.epc-drawer { position: fixed; inset: 0; z-index: 270; background: rgba(28,20,20,.45); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.epc-drawer.open { opacity: 1; visibility: visible; }
.epc-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: -20px 0 50px rgba(28,21,21,.15);
}
.epc-drawer.open .epc-drawer-panel { transform: none; }
body.admin-bar .epc-drawer-panel { top: 32px; }
@media (max-width: 782px) { body.admin-bar .epc-drawer-panel { top: 46px; } }
.epc-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.epc-drawer-head .muted { font-size: 16px; }
.epc-drawer-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.epc-drawer-items { flex: 1; overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.epc-drawer-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); transition: opacity .2s; }
.epc-drawer-item:last-child { border-bottom: 0; }
.epc-drawer-item.updating { opacity: .45; pointer-events: none; }
.epc-drawer-item .thumb-sm { width: 72px; height: 72px; border-radius: 14px; flex: none; }
.epc-drawer-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.epc-drawer-info .label-m { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.epc-drawer-info .label-m:hover { color: var(--coral); }
.epc-drawer-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.epc-drawer-total { font-size: 14px; font-weight: 500; white-space: nowrap; }
.epc-drawer-qty .plus-minus-button .quantity, .epc-drawer-qty .quantity { padding: 4px; gap: 6px; }
.epc-drawer-qty .plus-minus-button .quantity input.woo-advanced-minus,
.epc-drawer-qty .plus-minus-button .quantity input.woo-advanced-plus { width: 28px !important; height: 28px !important; background-size: 13px 13px !important; }
.epc-drawer-qty .quantity input.qty { width: 44px; font-size: 13px; }
.epc-drawer-remove { align-self: flex-start; font-size: 12px; font-weight: 500; color: var(--coral); }
.epc-drawer-remove:hover { text-decoration: underline; }
.epc-drawer-foot { padding: 18px 24px 24px; border-top: 1px solid var(--border); background: var(--bg-subtle); display: flex; flex-direction: column; gap: 12px; }
.epc-drawer-foot .srow { display: flex; justify-content: space-between; font-size: 15px; }
.epc-drawer-foot .srow b { font-size: 18px; font-weight: 500; }
.epc-drawer-foot .add-cart { flex: none; width: 100%; }
.epc-drawer-foot .btn-plain.block { display: block; text-align: center; }
.epc-drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 40px 32px; }
.epc-drawer-empty .empty-ico { width: 72px; height: 72px; border-radius: 999px; background: var(--bg-subtle); display: grid; place-items: center; margin-bottom: 6px; }
.epc-drawer-empty .empty-ico img { width: 30px; height: 30px; }
.epc-drawer-empty .btn-plain { margin-top: 10px; }

/* ---------- Back to top (design dark icon button) ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 48px; height: 48px; border-radius: 999px;
  display: grid; place-items: center; background: var(--coral); box-shadow: 0 8px 20px rgba(28,21,21,.25);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #b65250; }
.to-top img { width: 18px; height: 18px; transform: rotate(180deg); }
@media (max-width: 767px) {
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  body.has-sticky-bar .to-top { bottom: 96px; } /* stay above the product page's add-to-cart bar */
}

/* ---------- Header search: hidden post_type field ---------- */
.search-bar label input[type="hidden"] { display: none; }

/* ---------- Notices (WooCommerce) ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice {
  list-style: none; margin: 0 0 20px; padding: 16px 20px; border-radius: 16px;
  background: var(--bg-subtle); color: var(--text-primary); font-size: 14px; line-height: 1.5;
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
}
.woocommerce-message { background: #eef6f0; }
.woocommerce-error { background: var(--bg-blush); color: #8f3a38; flex-direction: column; align-items: flex-start; }
.woocommerce-error li { list-style: none; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; font-weight: 500; text-decoration: underline; }
main > .woocommerce-notices-wrapper, .pdp-notices { padding: 16px var(--gutter) 0; }
.woocommerce-notices-wrapper { display: block; }

/* ---------- Product cards ---------- */
.product-card .price.real .woocommerce-Price-amount { font: inherit; color: inherit; }
.product-card .buy-btn { text-decoration: none; }
.product-card .buy-btn.loading { opacity: .6; pointer-events: none; }

/* ---------- Listing ---------- */
.chips a.chip { display: inline-flex; align-items: center; }
.pagination a.page, .pagination span.page { display: inline-grid; place-items: center; }
.pagination span.page[aria-disabled] { opacity: .35; }
.sort .woocommerce-ordering { margin: 0; }
.sort .woocommerce-ordering select { appearance: none; -webkit-appearance: none; }
.filters label.cb[data-href] { cursor: pointer; }
.plp-empty { padding: 60px 0; display: grid; gap: 8px; }
.term-description { max-width: 760px; margin-top: 6px; }
.term-description p { margin: 0; }
.toolbar .filters-open img { width: 16px; margin-right: 6px; }

/* ---------- Single product ---------- */
.pdp .tags a.tag { text-decoration: none; }

/* Gallery with many photos: the thumbnail column never grows taller than the main image — it scrolls. */
.pdp .gallery { align-items: flex-start; }
.pdp .thumbs { flex: none; max-height: 640px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 2px; margin: -2px; }
.pdp .thumbs::-webkit-scrollbar { display: none; }
.pdp .thumbs { cursor: grab; user-select: none; }
.pdp .thumbs.dragging { cursor: grabbing; scroll-behavior: auto; }
.pdp .thumbs.dragging .thumb { pointer-events: none; }

/* Up / down arrows over the ends of the thumbnail column (only when there are more thumbs than fit) */
.pdp .thumbs-wrap { position: relative; flex: none; }
.thumbs-nav {
  position: absolute; left: 50%; z-index: 3; width: 32px; height: 32px; margin-left: -16px; border-radius: 999px;
  display: grid; place-items: center; background: rgba(255,255,255,.95); border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(28,21,21,.12); transition: opacity .2s, background .2s;
}
.thumbs-nav[hidden] { display: none; }
.thumbs-nav:hover { background: var(--bg-card); }
.thumbs-nav:disabled { opacity: 0; pointer-events: none; }
.thumbs-nav img { width: 16px; height: 16px; }
.thumbs-nav.prev { top: 4px; } .thumbs-nav.prev img { transform: rotate(180deg); }
.thumbs-nav.next { bottom: 4px; }
@media (max-width: 1100px) {
  .pdp .thumbs-wrap { width: 100%; }
  .thumbs-nav { top: 50% !important; bottom: auto !important; left: auto; margin: -16px 0 0; }
  .thumbs-nav.prev { left: 4px; } .thumbs-nav.prev img { transform: rotate(90deg); }
  .thumbs-nav.next { right: 4px; } .thumbs-nav.next img { transform: rotate(-90deg); }
}
.pdp .thumb { flex: none; }

/* Laptops (1101–1440px): the design's fixed 640px image squeezed the info column; scale it instead. */
@media (min-width: 1101px) and (max-width: 1440px) {
  .pdp .main-image { width: min(640px, 44vw); height: auto; aspect-ratio: 1 / 1; }
  .pdp .thumbs { max-height: min(640px, 44vw); }
  .pdp .thumb { width: 80px; height: 80px; }
  .pdp { gap: 40px; }
}

/* Tablet & phone: thumbnails are a row under the image — one line that scrolls sideways. */
@media (max-width: 1100px) {
  .pdp .thumbs { max-height: none; overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap; }
  .pdp .thumb { width: calc((100% - 24px) / 4); }
}
@media (max-width: 767px) {
  .pdp .thumbs .thumb:nth-child(5) { display: block; } /* the design hid a 5th thumb; real products may have more, so scroll */
  .pdp .thumb { width: calc((100% - 24px) / 4.5); }
}

/* Quantity + Add to cart: never squash the button; wrap below the stepper if space runs out. */
.pdp-cart form.cart:not(.variations_form), .pdp-cart .woocommerce-variation-add-to-cart { flex-wrap: wrap; }
.pdp-cart .plus-minus-button, .pdp-cart .quantity { flex: none; }
.pdp-cart .single_add_to_cart_button { flex: 1 1 180px; min-width: 180px; white-space: nowrap; }
@media (max-width: 767px) {
  .pdp-cart form.cart:not(.variations_form), .pdp-cart .woocommerce-variation-add-to-cart { flex-wrap: nowrap; }
  .pdp-cart .single_add_to_cart_button { min-width: 0; flex: 1; }
}
.pdp .gallery .thumb img { position: static; width: 100%; height: 100%; object-fit: cover; }
.price-big .woocommerce-Price-amount, .price-big bdi { font: inherit; }
.price-big del { font-size: .6em; color: var(--text-secondary); font-weight: 400; margin-right: 6px; }
.price-big ins { text-decoration: none; }
.pdp .info > .pre_order_label, .pdp .info > .new_arrival_label, .pdp .info > span[class$="_label"] {
  align-self: flex-start; background: var(--bg-blush); color: #a94a48; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 500;
}
.custom-availability-message { background: #ffeec5 !important; border: 0 !important; border-radius: 16px; padding: 14px 18px !important; font-size: 14px !important; margin: 0; }
.custom-availability-message + br { display: none; }
.custom-product-sku { display: none; } /* SKU is shown in the price block */

/* add-to-cart form → design ".size" + ".dims" + ".actions" */
.pdp-cart form.cart { display: flex; flex-direction: column; gap: 28px; margin: 0; }
.pdp-cart table.variations { width: 100%; border-collapse: collapse; border: 0; margin: 0; }
.pdp-cart table.variations, .pdp-cart table.variations tbody, .pdp-cart table.variations tr, .pdp-cart table.variations th, .pdp-cart table.variations td { border: 0 !important; background: none !important; }
.pdp-cart table.variations tr { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.pdp-cart table.variations tr:last-child { margin-bottom: 0; }
.pdp-cart table.variations th, .pdp-cart table.variations td { display: block; padding: 0; text-align: left; }
.pdp-cart table.variations th label { font-size: 14px; font-weight: 500; line-height: 1.3; }
.pdp-cart table.variations select { width: 100%; max-width: 360px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 13px; }
.pdp-cart .reset_variations { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--text-secondary); text-decoration: underline; }
.pdp-cart .reset_variations[style*="hidden"] { display: none; }
.pdp-cart .single_variation_wrap { display: flex; flex-direction: column; gap: 28px; }
.pdp-cart .woocommerce-variation-price, .pdp-cart .woocommerce-variation-description:empty { display: none; }
.pdp-cart .woocommerce-variation:empty { display: none; }

/* WC Boost swatches → design size pills */
.pdp-cart .wcboost-variation-swatches__wrapper { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pdp-cart .wcboost-variation-swatches--label .wcboost-variation-swatches__item,
.pdp-cart .wcboost-variation-swatches--button .wcboost-variation-swatches__item,
.pdp-cart .wcboost-variation-swatches__item.wcboost-variation-swatches-item--label {
  width: auto !important; height: auto !important; min-width: 0; line-height: 1.3;
  padding: 12px 22px; border-radius: 999px !important; border: 1px solid var(--border) !important; box-shadow: none !important;
  background: #fff; font-size: 12px; font-weight: 500; color: var(--text-primary); transition: .2s; cursor: pointer;
}
.pdp-cart .wcboost-variation-swatches__item:hover { border-color: var(--text-primary) !important; }
.pdp-cart .wcboost-variation-swatches__item.selected { background: var(--bg-inverse) !important; color: #fff !important; border-color: var(--bg-inverse) !important; }
.pdp-cart .wcboost-variation-swatches__item.disabled { border-style: dashed !important; color: var(--text-secondary); opacity: 1; }
.pdp-cart .wcboost-variation-swatches__item.disabled.selected { background: var(--bg-card) !important; color: var(--text-primary) !important; border: 1px solid var(--text-primary) !important; }
.pdp-cart .wcboost-variation-swatches__name { font: inherit; }
.pdp-cart .wcboost-variation-swatches--color .wcboost-variation-swatches__item,
.pdp-cart .wcboost-variation-swatches__item.wcboost-variation-swatches-item--color,
.pdp-cart .wcboost-variation-swatches__item.wcboost-variation-swatches-item--image { padding: 3px; }

/* quantity + button row */
.pdp-cart form.cart:not(.variations_form),
.pdp-cart .woocommerce-variation-add-to-cart { display: flex; flex-direction: row; gap: 12px; align-items: center; }
.pdp-cart .quantity, .cart-items .quantity { margin: 0; }
/* WooCommerce Advanced Quantity "plus-minus" input → design .stepper */
.plus-minus-button .quantity, .pdp-cart .quantity {
  display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--border); border-radius: 999px; background: #fff;
}
.plus-minus-button .quantity input.woo-advanced-minus,
.plus-minus-button .quantity input.woo-advanced-plus {
  width: 36px !important; height: 36px !important; flex: none; border: 0 !important; border-radius: 999px !important; cursor: pointer; font-size: 0 !important; color: transparent !important;
  padding: 0 !important; margin: 0 !important; box-shadow: none !important;
  background: var(--bg-card) center / 16px 16px no-repeat !important; transition: background-color .2s; -webkit-appearance: none; appearance: none;
}
.plus-minus-button .quantity input.woo-advanced-minus { background-image: url('../assets/img/eebfb.svg') !important; }
.plus-minus-button .quantity input.woo-advanced-plus { background-image: url('../assets/img/7d24b.svg') !important; }
.plus-minus-button .quantity input.woo-advanced-minus:hover,
.plus-minus-button .quantity input.woo-advanced-plus:hover { background-color: var(--border) !important; }
.plus-minus-button { display: inline-flex; }
.plus-minus-button .quantity input.qty, .pdp-cart .quantity input.qty {
  width: 56px; text-align: center; border: 0; outline: none; font-size: 14px; font-weight: 500; background: transparent; -moz-appearance: textfield; padding: 0;
}
.pdp-cart .quantity input.qty::-webkit-outer-spin-button, .pdp-cart .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; }
.plus-minus-button .quantity.smaller-minus-plus input.woo-advanced-minus,
.plus-minus-button .quantity.smaller-minus-plus input.woo-advanced-plus { width: 30px; height: 30px; background-size: 14px 14px; }

/* add to cart button → design .add-cart */
.single_add_to_cart_button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; border: 0; border-radius: 999px;
  background: var(--coral); color: #fff; font-family: var(--sans); font-size: 14px; font-weight: 500; line-height: 1.3; cursor: pointer;
  transition: background .2s, transform .2s;
}
.single_add_to_cart_button::before { content: ''; width: 20px; height: 20px; background: url('../assets/img/5efb4.svg') center / contain no-repeat; }
.single_add_to_cart_button:hover { background: #b65250; transform: translateY(-1px); }
.single_add_to_cart_button.disabled, .single_add_to_cart_button:disabled { background: var(--bg-card); color: var(--text-secondary); cursor: not-allowed; transform: none; }
.single_add_to_cart_button.disabled::before, .single_add_to_cart_button:disabled::before { background-image: url('../assets/img/2e3cc.svg'); }
.single_add_to_cart_button.loading { opacity: .7; }
.single_add_to_cart_button.added { background: var(--success); }

/* "← Back" link added by the store's Custom CSS/JS snippet */
.woocommerce-back-button .button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; color: var(--text-primary); }
.woocommerce-back-button .button:hover { border-color: var(--text-primary); }
.pdp-cart .woocommerce-back-button { margin-top: -12px; }

.pdp-details { padding-top: 64px; max-width: 980px; }
.pdp-details .h3 { margin-bottom: 14px; }
.pdp-desc p { margin-bottom: 12px; }
.pdp-desc img { height: auto; }

/* phones: pin quantity + add to cart to the bottom of the screen (design "m-sticky-bar") */
@media (max-width: 767px) {
  .pdp .actions,
  .pdp-cart form.cart:not(.variations_form),
  .pdp-cart .woocommerce-variation-add-to-cart {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; margin: 0; background: #fff;
    padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(28,21,21,.1); gap: 10px;
  }
  .qb-form.pdp-cart form.cart:not(.variations_form),
  .qb-form.pdp-cart .woocommerce-variation-add-to-cart { position: static; box-shadow: none; padding: 0; }
  body.has-sticky-bar { padding-bottom: 84px; }
  .pdp-cart .quantity { padding: 6px; gap: 8px; }
  .plus-minus-button .quantity input.woo-advanced-minus, .plus-minus-button .quantity input.woo-advanced-plus { width: 32px; height: 32px; }
  .single_add_to_cart_button { padding: 14px; }
}

/* ---------- Quick buy modal ---------- */
.modal-backdrop.loading::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; animation: epc-spin .8s linear infinite;
}
@keyframes epc-spin { to { transform: rotate(360deg); } }
/* Quick buy gallery: magnifier sits inside the image's top-right corner with a gap,
   and less empty space above / below the image. */
.qb-card .qb-main { top: 48px; height: 320px; border-radius: 16px; }
.qb-card .qb-zoom { top: 60px; left: 312px; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(28,21,21,.08); }
.qb-card .qb-thumbs { top: 384px; }
@media (max-width: 1100px) {
  .qb-card .qb-zoom { left: auto; right: calc(8% + 12px); top: 60px; }
}
@media (max-width: 767px) {
  .qb-card .qb-gallery { padding-top: 8px; padding-bottom: 4px; }
  .qb-card .qb-main { top: 0; }
  .qb-card .qb-zoom { top: 18px; right: 100px; }
}

.qb-info .qb-range .woocommerce-Price-amount, .qb-price .woocommerce-Price-amount { font: inherit; }
.qb-form { margin-top: auto; }
.qb-form form.cart { gap: 16px; }
.qb-form table.variations tr { margin-bottom: 10px; }
.qb-form .single_variation_wrap { gap: 16px; }
.qb-info .custom-availability-message { font-size: 13px !important; }

/* ---------- Account / auth ---------- */
.woocommerce-form-login .woocommerce-form-login__rememberme { display: inline-flex; }
.acct-nav a { text-decoration: none; }
.woocommerce-MyAccount-content > p:first-child { margin-top: 0; }
.woocommerce-password-strength { font-size: 12px; margin-top: 6px; }
.woocommerce-password-hint { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.epc-company { margin-top: 8px; }
.form-card .field .select, .form-card .field .input { width: 100%; }
.field.invalid .err, .field.woocommerce-invalid .err { display: block; }

/* ---------- Prices printed by WooCommerce inside design text ---------- */
.woocommerce-Price-amount, .woocommerce-Price-amount bdi, .woocommerce-Price-currencySymbol { font: inherit !important; color: inherit; vertical-align: baseline !important; }

/* ---------- Cart / checkout ---------- */
.cart-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 0 0 16px; border-bottom: 1px solid var(--border); }
.cart-tools .cart-tools-sp { flex: 1; }
.cart-tools button.coral { font-weight: 500; }
.cart-tools button.coral:hover { text-decoration: underline; }
.dl { display: inline-flex; align-items: center; gap: 8px; }
.cart-line { position: relative; }
.cart-pick { flex: none; }
.c-qty .plus-minus-button .quantity { padding: 6px; gap: 10px; }
.c-qty .plus-minus-button .quantity input.woo-advanced-minus,
.c-qty .plus-minus-button .quantity input.woo-advanced-plus { width: 30px !important; height: 30px !important; background-size: 14px 14px !important; }
.c-qty .quantity input.qty { width: 48px; }
.cart-actions-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 20px; }
.cart-actions-row .coupon { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.cart-actions-row .coupon .input { flex: 1; }
.cart-actions-row .js-update-cart { display: none; } /* quantities update automatically */
.no-js .cart-actions-row .js-update-cart { display: inline-flex; }
@media (max-width: 1100px) {
  .cart-pick { position: absolute; top: 8px; left: 8px; z-index: 2; background: #fff; border-radius: 6px; }
  .c-qty .plus-minus-button { display: flex; }
  .c-qty .plus-minus-button .quantity { width: 100%; justify-content: space-between; }
}
.epc-wc-page > .woocommerce > .woocommerce-notices-wrapper,
.epc-wc-page .cart-body .woocommerce-notices-wrapper { padding: 0; }
.epc-wc-page > .woocommerce > .woocommerce-notices-wrapper:not(:empty) { padding: 16px var(--gutter) 0; }
.epc-register-page .epc-wc-page > h2:first-child { display: none; }
.woocommerce-cart-form { margin: 0; }
.shop_table { width: 100%; border-collapse: collapse; }
/* WooCommerce field rows → the design's 2-column form grid */
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.woocommerce-billing-fields__field-wrapper .form-row, .woocommerce-shipping-fields__field-wrapper .form-row,
.woocommerce-address-fields__field-wrapper .form-row, .woocommerce-additional-fields__field-wrapper .form-row { grid-column: 1 / -1; }
.woocommerce-billing-fields__field-wrapper .form-row-first, .woocommerce-shipping-fields__field-wrapper .form-row-first, .woocommerce-address-fields__field-wrapper .form-row-first { grid-column: 1; }
.woocommerce-billing-fields__field-wrapper .form-row-last, .woocommerce-shipping-fields__field-wrapper .form-row-last, .woocommerce-address-fields__field-wrapper .form-row-last { grid-column: 2; }
.form-row .woocommerce-input-wrapper { display: block; }
.form-row textarea { min-height: 96px; }
#ship-to-different-address { margin: 4px 0 12px; font-size: 14px; font-weight: 500; }
#ship-to-different-address label { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; }
.woocommerce-additional-fields > h3 { display: block !important; font-size: 22px; font-weight: 500; margin-bottom: 16px; }
.co-items { display: flex; flex-direction: column; gap: 14px; max-height: 330px; overflow-y: auto; overscroll-behavior: contain; padding: 8px 8px 8px 0; margin: -8px 0; scrollbar-width: thin; scrollbar-color: #cfc6c3 transparent; }
.co-items::-webkit-scrollbar { width: 6px; }
.co-items::-webkit-scrollbar-thumb { background: #cfc6c3; border-radius: 999px; }
.co-items::-webkit-scrollbar-track { background: transparent; }
.co-item { flex: 0 0 auto; }
.co-scroll-hint { margin: -4px 0 0; text-align: center; font-size: 11px; line-height: 1.3; color: var(--text-secondary); }
.co-scroll-hint[hidden] { display: none; }
.co-scroll-hint span::after { content: ' \2193'; }
.co-item { display: flex; gap: 12px; align-items: center; }
.co-item .thumb-sm { width: 56px; height: 56px; border-radius: 12px; position: relative; overflow: visible; }
.co-item .thumb-sm img { border-radius: 12px; }
.co-item .co-qty { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--bg-inverse); color: #fff; font-size: 10px; font-style: normal; display: grid; place-items: center; }
.co-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.co-item-total { font-size: 14px; font-weight: 500; white-space: nowrap; }
.woocommerce-checkout-review-order-table { display: flex; flex-direction: column; gap: 14px; }
.ship-methods ul { list-style: none; margin: 0; padding: 0; text-align: right; }
.ship-methods li { font-size: 13px; }
.place-order { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 767px) {
  .woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper { gap: 12px; }
}

.checkout .woocommerce-billing-fields h3, .checkout .woocommerce-shipping-fields h3, .checkout .woocommerce-additional-fields h3 { display: none; }
.form-row { margin: 0; }
.form-row label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 8px; color: var(--text-primary); }
.form-row label .required { color: var(--coral); text-decoration: none; border: 0; }
.form-row .optional { color: var(--text-secondary); font-weight: 400; }
.form-row .input-text, .form-row select, .form-row textarea, .select2-container .select2-selection--single {
  width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; font-size: 14px; outline: none; min-height: 48px;
}
.form-row .input-text:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--text-primary); }
.select2-container .select2-selection--single { display: flex; align-items: center; padding: 0 16px; }
.select2-container .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.3; }
.select2-container .select2-selection--single .select2-selection__arrow { top: 11px; right: 10px; }
.form-row.woocommerce-invalid .input-text, .form-row.woocommerce-invalid select { border-color: var(--coral); }
.woocommerce-checkout-payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.woocommerce-checkout-payment .payment_box { background: var(--bg-subtle); border-radius: 12px; padding: 12px 16px; font-size: 13px; margin-top: 8px; color: var(--text-secondary); }
.woocommerce-checkout-payment .wc_payment_method > label { display: inline; font-size: 14px; font-weight: 500; margin-left: 6px; }
.woocommerce-terms-and-conditions-wrapper { font-size: 13px; }
.woocommerce-privacy-policy-text p { font-size: 12px; color: var(--text-secondary); margin: 8px 0; }
#place_order { width: 100%; }
.blockUI.blockOverlay { background: rgba(255,255,255,.6) !important; }

/* ---------- Square image boxes: product photos are square, so the design's taller/shorter
   boxes left bands above and below the picture. ---------- */
.pdp .main-image { height: auto; aspect-ratio: 1 / 1; }
@media (min-width: 1441px) { .pdp .main-image { width: 640px; } }
@media (max-width: 1100px) { .pdp .main-image { aspect-ratio: 1 / 1; } }
@media (max-width: 767px) {
  .pdp .main-image { aspect-ratio: 1 / 1; }
  .qb-card .qb-main { height: auto; aspect-ratio: 1 / 1; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .qb-card .qb-main { height: auto; aspect-ratio: 1 / 1; }
}

/* Homepage hero on wide screens (1440px+): keep the arch images pinned to the right edge
   (the design positions them from the left, tuned for 1440px). */
@media (min-width: 1440px) {
  .hero-main .hero-arches { left: auto; right: -48px; }
}

/* Homepage hero controls (desktop): the design places them 1031px from the left, which pushes them
   out of the hero on laptops narrower than 1440px. Anchor them to the right edge instead (same spot at 1440). */
@media (min-width: 1101px) {
  .hero .slider-controls { left: auto; right: 40px; }
}

/* Header logo size on desktop */
@media (min-width: 1101px) {
  body .site-header .logo { grid-area: logo; justify-self: center; width: 150px; height: 60px; }
}

/* Product page (desktop): gallery and title / price column split 50 / 50.
   The main image stays square; js/theme.js keeps the thumbnail column the same height. */
@media (min-width: 1101px) {
  .pdp .gallery { flex: 1 1 0; max-width: none; min-width: 0; }
  body .pdp .main-image { flex: 1; min-width: 0; width: auto; height: auto; aspect-ratio: 1 / 1; }
  .pdp .info { flex: 1 1 0; min-width: 0; }
}

/* Quick buy popup (tablet & desktop): 50% gallery / 50% product details.
   The design positioned the gallery contents in fixed pixels for a 400px column; here they flow
   inside a half-width column: square image, thumbnails below, magnifier in the image's corner. */
@media (min-width: 768px) {
  .qb-card .qb-gallery { flex: 0 0 50%; width: 50%; display: flex; flex-direction: column; gap: 16px; padding: 40px; }
  .qb-card .qb-main { position: relative; left: auto; right: auto; top: auto; width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .qb-card .qb-thumbs { position: static; left: auto; top: auto; }
  .qb-card .qb-zoom { left: auto; top: 52px; right: 52px; }
  .qb-card .qb-info { flex: 0 0 50%; width: 50%; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .qb-card .qb-gallery { padding: 28px; gap: 12px; }
  .qb-card .qb-zoom { top: 40px; right: 40px; }
}

/* ---------- Category row dropdowns (sub-categories, like the live site's menu) ---------- */
.cat-nav .cat-nav-item { position: relative; display: flex; }
.cat-nav .cat-drop {
  position: absolute; top: 100%; left: 50%; z-index: 60; min-width: 240px; max-width: 320px; margin-top: 10px;
  padding: 10px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 18px 40px rgba(28,21,21,.14);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s, transform .18s, visibility .18s;
  text-align: left; font-weight: 500;
}
.cat-nav .cat-drop::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.cat-nav .cat-nav-item:hover .cat-drop, .cat-nav .cat-nav-item:focus-within .cat-drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.cat-nav .cat-drop ul { list-style: none; margin: 0; padding: 0; }
.cat-nav .cat-drop a { display: block; padding: 7px 12px; border-radius: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-nav .cat-drop a::after { display: none; }
.cat-nav .cat-drop a:hover { background: var(--bg-subtle); color: var(--coral); }
.cat-nav .cat-drop .cd-l1 { font-size: 13px; color: var(--text-primary); }
.cat-nav .cat-drop ul ul { margin: 0 0 4px 12px; padding-left: 8px; border-left: 1px solid var(--border); }
.cat-nav .cat-drop .cd-l2 { font-size: 12px; font-weight: 400; color: var(--text-secondary); padding-top: 5px; padding-bottom: 5px; }
.cat-nav .cat-drop .cd-all { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; font-size: 12px; color: var(--coral); }
/* keep dropdowns of the first / last categories inside the screen */
.cat-nav .cat-nav-item:first-child .cat-drop { left: 0; transform: translate(0, 6px); }
.cat-nav .cat-nav-item:first-child:hover .cat-drop, .cat-nav .cat-nav-item:first-child:focus-within .cat-drop { transform: none; }
.cat-nav .cat-nav-item:last-child .cat-drop { left: auto; right: 0; transform: translate(0, 6px); }
.cat-nav .cat-nav-item:last-child:hover .cat-drop, .cat-nav .cat-nav-item:last-child:focus-within .cat-drop { transform: none; }

/* ---------- Live search dropdown (header search bar) ---------- */
.site-header .search-bar { position: relative; }
.live-search {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 70; max-height: min(480px, 70vh); overflow-y: auto;
  background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 20px 48px rgba(28,21,21,.16); padding: 8px;
}
.live-search[hidden] { display: none; }
.live-search .ls-item { display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 14px; color: var(--text-primary); }
.live-search .ls-item:hover, .live-search .ls-item.on { background: var(--bg-subtle); }
.live-search .ls-thumb { width: 52px; height: 52px; flex: none; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; background: #fff; }
.live-search .ls-thumb img { width: 100%; height: 100%; object-fit: cover; }
.live-search .ls-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.live-search .ls-text b { font-size: 13px; font-weight: 500; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.live-search .ls-item:hover .ls-text b, .live-search .ls-item.on .ls-text b { color: var(--coral); }
.live-search .ls-text small { font-size: 11px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-search .ls-text em { font-style: normal; color: #a94a48; }
.live-search .ls-price { flex: none; font-size: 13px; font-weight: 500; white-space: nowrap; }
.live-search .ls-all { display: block; margin-top: 6px; padding: 12px 10px 6px; border-top: 1px solid var(--border); font-size: 12px; font-weight: 500; color: var(--coral); text-align: center; }
.live-search .ls-empty { padding: 18px 12px; font-size: 13px; color: var(--text-secondary); text-align: center; }
.search-bar.ls-loading label::after { content: ''; width: 14px; height: 14px; margin-left: auto; margin-right: 8px; border: 2px solid var(--border); border-top-color: var(--coral); border-radius: 50%; animation: epc-spin .7s linear infinite; flex: none; }
@media (max-width: 767px) {
  .live-search { border-radius: 16px; max-height: 60vh; }
  .live-search .ls-thumb { width: 44px; height: 44px; }
}
.search-bar .live-search img { width: 100%; height: 100%; } /* the design sizes every .search-bar img as an 18px icon */
.live-search .ls-right { flex: none; display: flex; align-items: center; gap: 12px; }
.live-search .ls-sku { font-size: 11px; font-weight: 500; color: var(--text-secondary); background: var(--bg-subtle); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.live-search .ls-item:hover .ls-sku, .live-search .ls-item.on .ls-sku { background: #fff; }
@media (max-width: 767px) { .live-search .ls-right { gap: 8px; } .live-search .ls-sku { padding: 2px 6px; } }

/* Product page price block: price on the left, SKU (and offer tag) on the right, same row */
.price-block .price-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.price-block .pdp-sku { font-size: 13px; font-weight: 500; color: var(--text-secondary); background: #fff; border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.price-block .pdp-sku[hidden] { display: none; }
.price-block .js-opts:empty { display: none; }
/* selected options under the price: "Selected" then one small pill per chosen value */
.price-block .js-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; }
.price-block .opt-lead { font-size: 12px; color: var(--text-secondary); margin-right: 2px; }
.price-block .opt-chip { display: inline-flex; align-items: center; font-size: 12px; line-height: 1.2; font-weight: 600; color: var(--text-primary); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; }
.price-block { gap: 16px; }
/* Guests: SKU shown under the "Login to see prices" box */
.pdp .guest-sku { margin: -12px 0 0; }
.pdp .guest-sku .pdp-sku { display: inline-block; font-size: 13px; font-weight: 500; color: var(--text-secondary); background: #fff; border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; }

/* Desktop header: category row sits in the same column as the search bar, edges aligned left & right */
@media (min-width: 1101px) {
  body .site-header { grid-template-columns: minmax(190px, 1fr) minmax(0, 960px) minmax(190px, 1fr); grid-template-areas: "left logo right" "cat search ." ". nav ."; column-gap: 16px; }
  body .site-header .cat-nav { justify-content: space-between; gap: 18px; padding-left: 20px; padding-right: 20px; }
}

/* My account → Orders: room for longer status names ("Approved – Preparing", "Awaiting Review"). */
.o-row > span { flex-shrink: 0; padding-right: 16px; box-sizing: border-box; }
.o-row .o-date { width: 160px; }
.o-row .o-status { width: 200px; }
.o-row .o-actions { flex: 1 1 auto; padding-right: 0; }
.status.review { background: #fde7c8; color: #8a4b00; }
.status.shipped { background: #d7ecff; color: #0b4f8a; }

/* My account → View order */
.vo-head { display: flex; flex-direction: column; gap: 8px; }
.vo-back { color: var(--text-muted, #7a6f6f); }
.vo-back:hover { color: var(--coral); }
.vo-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vo-title h1 { margin: 0; }
.vo-title h1 em { font-family: var(--font-accent, inherit); color: var(--coral); }
.vo-info { margin: 8px 0 0; padding: 12px 16px; border-radius: 12px; background: #fff6ea; border-left: 4px solid #e6a23c; font-size: 14px; }
.vo-info-ship { background: #eef6ff; border-color: #4a90d9; }
.vo-card, .vo-body .woocommerce-order-details, .vo-body .woocommerce-customer-details { border: 1px solid var(--border); border-radius: 20px; padding: 24px 28px; margin: 0; }
.vo-body { display: flex; flex-direction: column; gap: 24px; }
.vo-body h2, .vo-card h2 { font-size: 22px; font-weight: 500; margin: 0 0 14px; }
.vo-body section > header { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.vo-body section > header h2 { color: inherit !important; }
.vo-notes { list-style: none; margin: 0; padding: 0; }
.vo-notes li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.vo-notes li:last-child { border-bottom: 0; }
.vo-notes p { margin: 2px 0 0; }

.vo-body table.shop_table { width: 100%; border: 0; border-collapse: collapse; margin: 0 !important; font-size: 15px; }
.vo-body table.shop_table th, .vo-body table.shop_table td { padding: 14px 0; border: 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; font-weight: 400; background: none; }
.vo-body table.shop_table thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted, #7a6f6f); font-weight: 500; padding-top: 0; }
.vo-body table.shop_table .product-total, .vo-body table.shop_table tfoot td { text-align: right; white-space: nowrap; padding-left: 16px; }
.vo-body table.shop_table .product-name a { color: inherit; font-weight: 500; }
.vo-body table.shop_table .product-name a:hover { color: var(--coral); }
.vo-body table.shop_table .product-quantity { font-weight: 500; color: var(--coral); margin-left: 4px; }
.vo-body table.shop_table .wc-item-meta { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13px; color: var(--text-muted, #7a6f6f); }
.vo-body table.shop_table .wc-item-meta li, .vo-body table.shop_table .wc-item-meta p { display: inline; margin: 0; }
.vo-body table.shop_table tfoot th { color: var(--text-muted, #7a6f6f); padding: 10px 0; }
.vo-body table.shop_table tfoot td { padding: 10px 0; }
.vo-body table.shop_table tfoot tr:last-child th, .vo-body table.shop_table tfoot tr:last-child td { border-bottom: 0; }
.vo-body table.shop_table tfoot tr:has(.order-actions-button) th, .vo-body table.shop_table tfoot tr:has(.order-actions-button) td { border-bottom: 0; }
.vo-body table.shop_table tfoot .order-actions-button, .vo-body .order-actions-button { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; margin: 0 0 0 8px; border: 1px solid var(--text, #1c1515); border-radius: 999px; font-size: 13px; font-weight: 500; color: inherit; background: #fff; }
.vo-body .order-actions-button:hover { background: var(--text, #1c1515); color: #fff; }
.vo-body .woocommerce-columns--addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vo-body .woocommerce-columns--addresses .woocommerce-column { width: auto; float: none; padding: 0; }
.vo-body .woocommerce-columns--addresses::before, .vo-body .woocommerce-columns--addresses::after { display: none; }
.vo-body address { font-style: normal; line-height: 1.6; border: 0; padding: 0; }
.vo-body address p { margin: 4px 0 0; }
@media (max-width: 768px) {
	.vo-card, .vo-body .woocommerce-order-details, .vo-body .woocommerce-customer-details { padding: 18px; }
	.vo-body .woocommerce-columns--addresses { grid-template-columns: 1fr; }
}

/* Checkout: validation errors span the full width above the columns (not a column of their own). */
form.woocommerce-checkout.cart-body { flex-wrap: wrap; }
form.woocommerce-checkout.cart-body > .woocommerce-NoticeGroup,
form.woocommerce-checkout.cart-body > .woocommerce-error,
form.woocommerce-checkout.cart-body > .woocommerce-message { flex: 0 0 100%; width: 100%; max-width: 100%; margin: 0 0 8px; }
form.woocommerce-checkout.cart-body > .woocommerce-NoticeGroup ul.woocommerce-error { margin: 0; }
.status.backorder { background: #ff9800; color: #fff; }
/* "All categories" never wraps onto two lines. */
.cat-trigger { white-space: nowrap; flex-shrink: 0; }
/* Header: Warehouse dashboard link (warehouse staff / managers only) */
.site-header .side .wh-link { position: relative; font-weight: 600; color: var(--coral); }
.site-header .side .wh-link svg { flex: 0 0 20px; }
.site-header .side .wh-link .wh-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 11px; line-height: 18px; text-align: center; box-sizing: border-box; }
@media (max-width: 1100px) { .site-header .side .wh-link .wh-badge { position: absolute; top: -8px; right: -10px; } }

/* ===== Shop / category pages: filters in a slide-in panel (all sizes), full-width grid, grid/list views ===== */
.plp-body .filters { position: fixed; inset: 0 auto 0 0; top: 0; z-index: 260; width: 340px; max-width: 88vw; background: #fff; padding: 24px; overflow-y: auto; transform: translateX(-100%); transition: transform .3s; box-shadow: 0 0 60px rgba(0,0,0,.15); visibility: hidden; }
.plp-body .filters.show { transform: none; visibility: visible; }
.plp-body .filters-close { display: grid; }
.filters-backdrop { position: fixed; inset: 0; z-index: 255; background: rgba(28,21,21,.35); }
.filters-backdrop[hidden] { display: none; }
body.filters-open-body { overflow: hidden; }
.toolbar .filters-open { display: inline-flex; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.view-switch { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: #fff; }
.view-btn { width: 34px; height: 32px; display: grid; place-items: center; border-radius: 999px; color: var(--text-secondary); transition: background .2s, color .2s; }
.view-btn:hover { color: var(--text-primary); }
.view-btn.is-active { background: var(--bg-inverse); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 1300px) { .plp-main .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* List view */
.plp-main .grid.is-list { grid-template-columns: 1fr; gap: 10px; }
.plp-main .grid.is-list .product-card { flex-direction: row; align-items: center; gap: 20px; padding: 8px; border-radius: 18px; }
.plp-main .grid.is-list .product-card:hover { transform: none; }
.plp-main .grid.is-list .product-card .media { width: 120px; height: 120px; flex: 0 0 120px; border-radius: 12px; }
.plp-main .grid.is-list .product-card .body { flex-direction: row; align-items: center; gap: 24px; padding: 0 12px 0 0; }
.plp-main .grid.is-list .product-card .title { flex: 1; min-width: 0; min-height: 0; font-size: 15px; }
.plp-main .grid.is-list .product-card .row { margin: 0; flex: 0 0 auto; gap: 24px; }
.plp-main .grid.is-list .product-card .meta { align-items: flex-end; text-align: right; }
@media (max-width: 767px) {
  .plp-main .grid.is-list .product-card { gap: 12px; }
  .plp-main .grid.is-list .product-card .media { width: 88px; height: 88px; flex-basis: 88px; }
  .plp-main .grid.is-list .product-card .body { flex-direction: column; align-items: stretch; gap: 8px; padding-right: 4px; }
  .plp-main .grid.is-list .product-card .row { justify-content: space-between; }
  .plp-main .grid.is-list .product-card .meta { align-items: flex-start; text-align: left; }
}

/* Sticky bar (scroll up to show) */
.sticky-cats { position: fixed; left: 0; right: 0; top: 0; z-index: 240; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); box-shadow: 0 6px 24px rgba(28,21,21,.08); transform: translateY(-110%); transition: transform .28s ease; }
.sticky-cats.show { transform: none; }
body.admin-bar .sticky-cats { top: 32px; }
@media (max-width: 782px) { body.admin-bar .sticky-cats { top: 46px; } }
.sticky-cats-inner { display: flex; align-items: center; gap: 28px; max-width: 1440px; margin: 0 auto; padding: 10px var(--gutter, 24px); font-size: 14px; font-weight: 500; }
.sticky-cats .sc-menu { display: none; }
.sticky-cats .sc-logo { flex: 0 0 auto; }
.sticky-cats .sc-logo img { height: 40px; width: auto; display: block; }
.sticky-cats .sc-nav { flex: 1; display: flex; justify-content: center; gap: 28px; padding: 0 !important; margin: 0; }
.sticky-cats .sc-nav .cat-drop { top: calc(100% + 10px); }
.sticky-cats .sc-cart { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
@media (max-width: 1100px) { .sticky-cats .sc-nav { gap: 18px; font-size: 13px; } .sticky-cats .sc-nav .full { display: none; } .sticky-cats .sc-nav .short { display: inline; } }
@media (max-width: 767px) {
  .sticky-cats-inner { gap: 12px; padding: 8px 16px; }
  .sticky-cats .sc-nav { display: none; }
  .sticky-cats .sc-menu { display: inline-grid; place-items: center; }
  .sticky-cats .sc-logo { margin-right: auto; }
  .sticky-cats .sc-logo img { height: 34px; }
  .sticky-cats .sc-cart .lbl { display: none; }
}

/* Product page: Back button, right end of the category / stock row */
.pdp .info .tags { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pdp-back-row { margin-top: 20px; }
.pdp-back { margin-left: 0; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px 0 12px; border: 1.5px solid var(--text-primary, #1c1515); border-radius: 999px; background: transparent; color: var(--text-primary, #1c1515); font-size: 13px; font-weight: 600; white-space: nowrap; transition: border-color .2s, color .2s; }
.pdp-back svg { transition: transform .2s; }
.pdp-back:hover { border-color: var(--coral); color: var(--coral); }
.pdp-back:hover svg { transform: translateX(-3px); }

/* Footer: company description under the logo */
.site-footer .brand .footer-about { opacity: .75; line-height: 1.6; margin: 0 0 4px; }
.site-footer .col.brand { flex: 0 0 380px; max-width: 380px; }
@media (max-width: 1100px) { .site-footer .col.brand { flex: 0 0 300px; max-width: 300px; } }
@media (max-width: 767px) { .site-footer .col.brand { flex: none; max-width: none; } }
/* Footer: the big decorative "Eminence" wordmark must not block clicks on the links above it */
.site-footer .wordmark { pointer-events: none; }
.site-footer .bottom { position: relative; z-index: 2; }

/* Warehouse staff: minimal header (logo left, account + log out right) */
.site-header.wh-staff-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--gutter); border-bottom: 1px solid var(--border); }
.wh-staff-header .logo img { height: 56px; width: auto; display: block; }
.wh-staff-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; }
.wh-staff-nav a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.wh-staff-nav a:hover { color: var(--coral); }
.wh-staff-nav img { width: 20px; height: 20px; }
@media (max-width: 767px) { .wh-staff-header .logo img { height: 42px; } .wh-staff-nav { gap: 14px; font-size: 13px; } }

/* Warehouse dashboard: same full width as the header */
body.epc-wh-dashboard .whd { max-width: none; margin-left: 0; margin-right: 0; padding-left: var(--gutter); padding-right: var(--gutter); }
/* Warehouse staff: copyright-only footer */
.wh-staff-footer { padding: 20px var(--gutter); border-top: 1px solid var(--border); font-size: 13px; color: var(--text-secondary); }
.wh-staff-footer p { margin: 0; }
/* Warehouse staff header on phones: icons only */
@media (max-width: 600px) {
  .wh-staff-header { padding: 10px 16px; }
  .wh-staff-header .logo img { height: 38px; }
  .wh-staff-nav { gap: 6px; }
  .wh-staff-nav a span { display: none; }
  .wh-staff-nav a { width: 38px; height: 38px; justify-content: center; border-radius: 999px; }
  .wh-staff-nav a:hover { background: var(--bg-subtle); }
  .wh-staff-footer { padding: 16px; font-size: 12px; text-align: center; }
}

/* ===== Responsive fixes (Oct 2026) ===== */
/* 1. Login & register: centred, not stretched across large screens */
@media (min-width: 1101px) {
  .auth { max-width: 1240px; margin-left: auto; margin-right: auto; justify-content: center; }
  .auth .auth-visual { width: 520px; height: 680px; }
  .auth .auth-form { flex: 0 1 520px; max-width: 520px; }
  .reg { max-width: 980px; margin-left: auto; margin-right: auto; }
}
/* 2. Empty orders: normal-size button */
.panel .btn-plain { align-self: flex-start; padding: 14px 28px; }
/* 3. Account details: compact form */
.form-card.edit-account { max-width: 760px; padding: 24px; gap: 14px !important; }
.form-card.edit-account .input, .form-card.edit-account input.input-text, .form-card.edit-account select { height: 44px; padding-top: 0; padding-bottom: 0; font-size: 14px; }
.form-card.edit-account .field > span, .form-card.edit-account label > span { font-size: 12px; }
.form-card.edit-account .pw-box { padding: 18px 20px; gap: 12px; }
.form-card.edit-account .row2 { gap: 14px; }
.form-card.edit-account button[name="save_account_details"] { align-self: flex-start; padding: 13px 28px !important; }
/* 7. Shop toolbar on phones: count on its own line, controls share the row */
@media (max-width: 600px) {
  .plp-main .toolbar { flex-wrap: wrap; gap: 10px; }
  .plp-main .toolbar > p { display: block; order: -1; width: 100%; margin: 0; font-size: 13px; }
  .plp-main .toolbar > p .d-only { display: none; }
  .plp-main .toolbar .filters-open { flex: 0 0 auto; height: 44px; padding: 0 16px; }
  .plp-main .toolbar-right { flex: 1; min-width: 0; gap: 8px; }
  .plp-main .toolbar .view-switch { flex: 0 0 auto; }
  .plp-main .toolbar .sort { flex: 1; min-width: 0; }
  .plp-main .toolbar .sort select, .plp-main .toolbar .sort .epc-select-btn { width: 100%; height: 44px; }
}
/* 8. Sticky bar: on phones the WordPress toolbar scrolls away, so no offset there */
@media (max-width: 600px) { body.admin-bar .sticky-cats { top: 0; } }
/* 5. Order status chips: icon + accurate colours */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border: 1px solid transparent; }
.status .ico { flex: 0 0 14px; }
.status.done       { background: #e6f4ea; color: #1e7b34; border-color: #c7e6cf; }
.status.failed     { background: #fdecea; color: #b3261e; border-color: #f6c8c3; }
.status.cancelled  { background: #f1f1f1; color: #5f5f5f; border-color: #e1e1e1; }
.status.refunded   { background: #f1ecfb; color: #5b3fa8; border-color: #ddd2f5; }
.status.hold       { background: #fff4e0; color: #9a5b00; border-color: #f6dfb3; }
.status.pending    { background: #f4f4f4; color: #555; border-color: #e3e3e3; }
.status.review     { background: #fff4e0; color: #8a4b00; border-color: #f6dfb3; }
.status.processing { background: #e8f1fd; color: #1a5fb4; border-color: #cfe0f8; }
.status.shipped    { background: #e4f3fb; color: #0b6b8a; border-color: #c4e4f3; }
.status.backorder  { background: #fff0e0; color: #b35c00; border-color: #fbd6ad; }
/* 4. Order actions as chips with icons */
.o-actions { flex-wrap: wrap; gap: 8px !important; }
.o-actions .act-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 500; color: var(--text-primary); white-space: nowrap; transition: border-color .2s, color .2s, background .2s; }
.o-actions .act-chip:hover { border-color: var(--coral); color: var(--coral); text-decoration: none !important; }
.o-actions .act-chip.coral { background: var(--coral); border-color: var(--coral); color: #fff; }
.o-actions .act-chip.coral:hover { background: #b65250; color: #fff; }
.o-actions .act-chip.cancel:hover { border-color: #b3261e; color: #b3261e; }
.o-row .o-actions { justify-content: flex-end; }
/* 6. Modern dropdowns (desktop; built by theme.js) */
.epc-select { position: relative; width: 100%; }
.sort .epc-select { width: auto; min-width: 210px; }
.epc-select-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; left: 0; bottom: 0; }
.epc-select-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 0 14px 0 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; font: inherit; font-size: 14px; color: var(--text-primary); text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.sort .epc-select-btn { border-radius: 999px; font-size: 12px; font-weight: 500; min-height: 40px; padding: 0 14px 0 18px; }
.epc-select-btn:hover { border-color: #d9cdca; }
.epc-select.is-open .epc-select-btn, .epc-select-btn:focus-visible { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(200,96,94,.15); outline: none; }
.epc-select-btn:disabled { opacity: .55; cursor: default; }
.epc-select-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.epc-select-label.is-placeholder { color: var(--text-secondary); }
.epc-select-chev { flex: 0 0 16px; transition: transform .2s; }
.epc-select.is-open .epc-select-chev { transform: rotate(180deg); }
.sort .epc-select ~ img, .sort > img { display: none; }
.epc-select-list { position: absolute; z-index: 300; left: 0; right: 0; top: calc(100% + 6px); min-width: 220px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 40px rgba(28,21,21,.14); padding: 6px; animation: epcDrop .14s ease; }
.epc-select.drop-up .epc-select-list { top: auto; bottom: calc(100% + 6px); }
@keyframes epcDrop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sort .epc-select-list { left: auto; right: 0; }
.epc-select-search { width: 100%; height: 38px; margin: 0 0 6px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 13px; outline: none; box-sizing: border-box; }
.epc-select-search:focus { border-color: var(--coral); }
.epc-select-opts { max-height: 280px; overflow-y: auto; }
.epc-select-opt { position: relative; padding: 9px 12px 9px 30px; border-radius: 9px; font-size: 13px; line-height: 1.35; cursor: pointer; color: var(--text-primary); }
.epc-select-opt.is-active { background: var(--bg-subtle, #f7f2f1); }
.epc-select-opt.is-selected { color: var(--coral); font-weight: 600; }
.epc-select-opt.is-selected:before { content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 5px; margin-top: -4px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.epc-select-opt.is-hidden, .epc-select-opt.is-disabled { display: none; }
/* Native selects (phones / tablets): match the theme when closed */
@media (hover: none), (pointer: coarse) {
  .form-card select, .reg select, .field select, .acct-content select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231c1515' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 40px; border: 1px solid var(--border); border-radius: 12px; min-height: 44px; }
}
.o-row .o-id { width: 110px; }
.o-row .o-date { width: 150px; }
.o-row .o-status { width: 190px; }
.o-row .o-total { width: 120px; }
.o-row .o-actions { flex-wrap: nowrap; gap: 6px !important; }
.o-actions .act-chip { padding: 0 10px; }
@media (max-width: 1280px) { .o-actions .act-chip span { display: none; } .o-actions .act-chip { width: 32px; padding: 0; justify-content: center; } .o-actions .act-chip.coral span { display: inline; } .o-actions .act-chip.coral { width: auto; padding: 0 12px; } }
@media (max-width: 600px) {
  .plp-main .toolbar > p { flex: 0 0 100% !important; max-width: 100% !important; }
  .plp-main .toolbar .sort form, .plp-main .toolbar .sort .epc-select { width: 100%; min-width: 0; }
  .plp-main .toolbar .sort select { min-width: 0; padding-left: 14px; padding-right: 32px; text-overflow: ellipsis; }
  .plp-main .toolbar .sort .epc-select-list { left: auto; right: 0; min-width: 220px; }
}
@media (max-width: 600px) { .plp-main .toolbar > p { text-align: left; } }
/* Category page sub-category chips on phones: wrap onto lines (all fully visible) instead of a hidden side-scroll */
@media (max-width: 767px) {
  .page-head .chips { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; gap: 8px; }
  .page-head .chips .chip { padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 767px) { .page-head .chips .chip .cw { display: inline; } }
/* Order action chips: tooltip with the action name (icon-only chips on smaller screens) */
.o-actions .act-chip { position: relative; }
@media (max-width: 1280px) {
  .o-actions .act-chip:not(.coral)::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); padding: 6px 10px; border-radius: 8px; background: var(--bg-inverse, #1c1515); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.2; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 20; }
  .o-actions .act-chip:not(.coral)::before { content: ""; position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translate(-50%, 4px); border: 5px solid transparent; border-top-color: var(--bg-inverse, #1c1515); opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s; z-index: 20; }
  .o-actions .act-chip:not(.coral):hover::after, .o-actions .act-chip:not(.coral):focus-visible::after,
  .o-actions .act-chip:not(.coral):hover::before, .o-actions .act-chip:not(.coral):focus-visible::before { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .o-actions .act-chip:last-child::after { left: auto; right: 0; transform: translate(0, 4px); }
  .o-actions .act-chip:last-child:hover::after, .o-actions .act-chip:last-child:focus-visible::after { transform: none; }
}
/* Quick Buy / product popups sit above the sticky bar (240), below the cart drawer (270) */
.modal-backdrop { z-index: 250; }

/* Checkout: helper text under the optional "Preferred shipping date" field */
body .woocommerce-checkout #epc_ship_date_field .description {
  display: block !important; height: auto !important; overflow: visible !important; margin: 8px 2px 0 !important; padding: 0 !important;
  font: 400 12px/1.5 var(--sans) !important; color: var(--text-secondary) !important;
}

/* Product card images: the product photos are square, but the card image box had a fixed height
   (280px / 240px / 220px ...) while its width follows the screen. On wide screens the box turned
   landscape and `object-fit: cover` cropped the top and bottom of every photo. Let the box follow the
   card width instead, so the whole photo shows at any screen size. (List view keeps its own size.) */
body .product-card .media,
body .grid .product-card .media,
body .search-grid .product-card .media,
body .carousel .product-card .media { height: auto; aspect-ratio: 1 / 1; }
