/*
Theme Name: LEO Sticker
Theme URI: https://leosticker.com
Description: LEO Sticker child theme for Twenty Twenty-Five, clean, near brand look: navy, white, simple type, tidy product and category layouts.
Author: LEO Sticker
Template: twentytwentyfive
Version: 1.2.0
Text Domain: leo-sticker
*/

/* ---------- design tokens ---------- */
:root {
  --leo-navy: #0b0b0c;
  --leo-navy-dark: #171719;
  --leo-ink: #0b0b0c;
  --leo-muted: #62646a;
  --leo-line: #e7e5e2;
  --leo-bg-soft: #f7f6f3;
  --leo-green: #ff4a1c;
  --leo-green-dark: #df3510;
  --leo-accent: #ff4a1c;
  --leo-radius: 16px;
  --leo-shadow: 0 8px 28px rgba(11, 11, 12, .07);
  --leo-shadow-hover: 0 20px 45px rgba(11, 11, 12, .13);
  --leo-font: Rubik, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --leo-heading: Montserrat, Rubik, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --leo-max: 1168px;
}

/* ---------- base ---------- */
body {
  font-family: var(--leo-font);
  color: var(--leo-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
*, *::before, *::after { box-sizing: border-box; }
a { color: var(--leo-navy); text-underline-offset: 2px; }
a:hover { color: var(--leo-navy-dark); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(31, 157, 85, .36);
  outline-offset: 3px;
}
h1, h2, h3, h4, .wp-block-post-title { font-family: var(--leo-heading); color: var(--leo-ink); letter-spacing: -0.025em; }
h2 { margin-top: 2rem; }
img { max-width: 100%; height: auto; }
hr { border-color: var(--leo-line); }

/* homepage title block was leaking a raw CSS rule into the copy, keep it hidden */
.home .wp-block-post-title { display: none !important; }

/* keep the reading column comfortable but never leave a dead half-page */
.wp-block-post-content,
.entry-content,
.is-layout-constrained > * {
  max-width: var(--leo-max);
}
.wp-block-post-content p,
.entry-content p { max-width: 78ch; }

/* ---------- header ---------- */
.wp-block-template-part header,
header.wp-block-template-part { background: #fff; }
header.wp-block-template-part { border-bottom: 1px solid var(--leo-line); position: sticky; top: 0; z-index: 40; }
.wp-block-site-title a { color: var(--leo-navy) !important; text-decoration: none; letter-spacing: -0.02em; }
.wp-block-site-title { margin: 0 !important; }

header .wp-block-navigation a {
  color: var(--leo-ink);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 2px;
}
header .wp-block-navigation a:hover { color: var(--leo-navy); }
header .wp-block-navigation-item { margin-right: 18px; }

/* search: theme block CSS crushed the submit button, so we ship our own form */
.leo-search {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--leo-line); border-radius: 10px;
  overflow: hidden; background: #fff;
}
.leo-search-input {
  border: 0; outline: none; padding: 10px 14px; font-size: 14px;
  font-family: var(--leo-font); width: 190px; background: #fff; color: var(--leo-ink);
}
.leo-search-btn {
  border: 0; background: var(--leo-navy); color: #fff;
  font: 600 14px/1 var(--leo-font); padding: 12px 18px; cursor: pointer; white-space: nowrap;
}
.leo-search-btn:hover { background: var(--leo-navy-dark); }
header .wp-block-group > .wp-block-html { display: flex; align-items: center; }
header nav { margin-right: 18px; }
header .wc-block-customer-account, header .wc-block-mini-cart { margin-left: 10px; }

/* search: the block shipped as button-only, so the input vanished */
header .wp-block-search { display: flex; align-items: center; }
header .wp-block-search__inside-wrapper {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--leo-line); border-radius: 10px; overflow: hidden;
  background: #fff;
}
header .wp-block-search__input {
  border: 0 !important; outline: none; padding: 10px 14px;
  font-size: 14px; font-family: var(--leo-font); min-width: 160px; background: #fff;
}
header .wp-block-search__input { flex: 1 1 auto; }
header .wp-block-search__button {
  border: 0 !important; border-radius: 0 !important;
  background: var(--leo-navy) !important; color: #fff !important;
  padding: 10px 20px !important; font-weight: 600; cursor: pointer;
  margin: 0 !important; font-family: var(--leo-font);
  min-width: 62px; white-space: nowrap; line-height: 1.2;
}
header .wp-block-search__button:hover { background: var(--leo-navy-dark) !important; }
.wc-block-customer-account__account-icon, .wc-block-mini-cart__icon { color: var(--leo-navy); }

/* keep the header on one tidy row on desktop */
@media (min-width: 900px) {
  header .wp-block-group.has-global-padding > .wp-block-group.is-layout-flex {
    flex-wrap: nowrap !important;
    align-items: center;
    column-gap: 26px;
  }
  header .wp-block-navigation { flex: 0 1 auto; }
  header .wp-block-group > .wp-block-group:last-child { flex: 0 0 auto; }
  .leo-search-input { width: 150px; }
  header .wp-block-navigation-item { margin-right: 14px; }
  header .wp-block-site-title { flex: 0 0 auto; }
}

/* ---------- buttons ---------- */
.wp-block-button__link,
button.single_add_to_cart_button,
.wp-element-button {
  border-radius: 10px;
  font-weight: 600;
  font-family: var(--leo-font);
  transition: transform .12s ease, background .12s ease;
}
.wp-block-button__link:hover { transform: translateY(-1px); }

/* ---------- category / archive pages ---------- */
.archive .wp-block-query,
.tax-product_cat .wp-block-query { margin-top: 24px; }

ul.wc-block-product-template,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 28px 0;
}
ul.wc-block-product-template > li,
ul.products > li {
  background: #fff;
  border: 1px solid var(--leo-line);
  border-radius: var(--leo-radius);
  overflow: hidden;
  box-shadow: var(--leo-shadow);
  transition: transform .14s ease, box-shadow .14s ease;
  margin: 0 !important;
  padding: 0 !important;
  display: flex; flex-direction: column;
}
ul.wc-block-product-template > li:hover,
ul.products > li:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(16,24,40,.11); }
ul.products > li img { border-radius: 0; }
ul.products > li .woocommerce-loop-product__title,
ul.wc-block-product-template > li .wp-block-post-title {
  font-size: 16px !important; line-height: 1.35; color: var(--leo-ink);
  padding: 12px 14px 6px !important; margin: 0 !important;
}
ul.products > li .price, ul.wc-block-product-template .wc-block-components-product-price {
  padding: 0 14px; color: var(--leo-navy); font-weight: 700;
}
ul.products > li .button,
ul.wc-block-product-template .wp-block-button__link {
  margin: 12px 14px 16px !important; align-self: flex-start;
  background: var(--leo-navy) !important; color: #fff !important;
}
ul.products > li .button:hover,
ul.wc-block-product-template .wp-block-button__link:hover { background: var(--leo-navy-dark) !important; }

/* archive header tidy */
.woocommerce-products-header { margin: 8px 0 0; }
.woocommerce-products-header__title,
h1.wp-block-query-title, .wp-block-term-title { margin-bottom: 6px; }
.woocommerce-result-count, .woocommerce-ordering select { font-size: 14px; color: var(--leo-muted); }

/* WooCommerce's legacy float/percent grid fights our grid, normalise it */
ul.products,
ul.wc-block-product-template {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  margin: 22px 0 !important;
}
/* WooCommerce ships ::before/::after on .products for clearfix; inside a grid those
   become real grid items and push the first row into the middle. Kill them. */
ul.products::before, ul.products::after,
ul.wc-block-product-template::before, ul.wc-block-product-template::after { display: none !important; content: none !important; }
ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
ul.products li.product,
ul.wc-block-product-template > li {
  width: auto !important; float: none !important; margin: 0 !important;
  display: flex; flex-direction: column; height: 100%;
}
ul.products li.product img, ul.products li.product .woocommerce-LoopProduct-link img {
  width: 100% !important; height: auto !important; display: block;
}
ul.products li.product .button,
ul.products li.product .add_to_cart_button {
  white-space: nowrap !important; width: auto !important; max-width: 100%;
  display: inline-block !important; text-align: center;
}
ul.products li.product a.woocommerce-LoopProduct-link { display: block; }
@media (max-width: 1000px) { ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* ---------- category page: silo blocks ---------- */
.leo-cat-main { margin-top: 20px; }
.leo-cat-lead { font-size: 17px; color: var(--leo-muted); max-width: 78ch; margin: 6px 0 26px; }
.leo-sec-title { font-size: 22px; margin: 36px 0 14px; }
.leo-products-wrap { margin: 8px 0 0; }

.leo-silo { margin: 40px 0 8px; }
.leo-chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.leo-chip {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px; border: 1px solid var(--leo-line); border-radius: 12px;
  background: #fff; text-decoration: none !important; box-shadow: var(--leo-shadow);
  transition: transform .12s ease, border-color .12s ease;
}
.leo-chip:hover { transform: translateY(-2px); border-color: var(--leo-navy); }
.leo-chip-name { font-weight: 600; color: var(--leo-ink); font-size: 15px; }
.leo-chip-count { font-size: 12.5px; color: var(--leo-muted); }

.leo-guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.leo-guide-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  padding: 16px 18px; border: 1px solid var(--leo-line); border-left: 3px solid var(--leo-navy);
  border-radius: 12px; background: var(--leo-bg-soft); text-decoration: none !important;
}
.leo-guide-title { font-weight: 600; color: var(--leo-navy); font-size: 15.5px; line-height: 1.35; }
.leo-guide-more { font-size: 13px; color: var(--leo-muted); }
.leo-empty-note {
  padding: 18px 20px; border: 1px dashed var(--leo-line); border-radius: 12px;
  background: var(--leo-bg-soft); color: var(--leo-muted); margin: 18px 0;
}
/* long copy sits below the money content */
.leo-cat-copy { margin-top: 44px; border-top: 1px solid var(--leo-line); padding-top: 26px; }

/* ---------- single product ---------- */
.single-product .wp-block-post-content { max-width: var(--leo-max); }
.single-product .woocommerce-product-gallery { border-radius: var(--leo-radius); overflow: hidden; }
.single-product .summary { color: var(--leo-ink); }
.single-product .price { color: var(--leo-navy); font-weight: 700; font-size: 1.35rem; }
.woocommerce-tabs ul.tabs li a { font-weight: 600; }
.single_add_to_cart_button, .single-product .button {
  background: var(--leo-green) !important; color: #fff !important; border-radius: 10px !important;
  padding: 14px 26px !important; font-size: 16px !important;
}

/* ---------- tables inside copy ---------- */
.entry-content table, .wp-block-post-content table {
  width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px;
  border: 1px solid var(--leo-line); border-radius: 10px; overflow: hidden;
}
.entry-content th, .wp-block-post-content th {
  background: var(--leo-bg-soft); text-align: left; font-weight: 600; color: var(--leo-navy);
}
.entry-content th, .entry-content td,
.wp-block-post-content th, .wp-block-post-content td {
  padding: 11px 14px; border-bottom: 1px solid var(--leo-line); vertical-align: top;
}

/* ---------- guide / blog cards ---------- */
.blog .wp-block-post-template,
.wp-block-post-template.is-layout-grid { gap: 22px; }
.wp-block-post-template .wp-block-post { border: 1px solid var(--leo-line); border-radius: var(--leo-radius); padding: 18px; background: #fff; }

/* ---------- footer ---------- */
.wp-block-template-part footer, footer.wp-block-template-part {
  background: var(--leo-bg-soft); border-top: 1px solid var(--leo-line); margin-top: 48px;
}
footer .wp-block-navigation a { color: var(--leo-ink); text-decoration: none; font-size: 14px; }
footer .wp-block-navigation a:hover { color: var(--leo-navy); }

/* ---------- small screens ---------- */
@media (max-width: 781px) {
  header .wp-block-search__input { min-width: 110px; }
  ul.products, ul.wc-block-product-template { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
}


/* LEO responsive rules for inline-styled homepage grids */
@media (max-width: 900px) {
  .leo-hero-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 820px) {
  .leo-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 520px) {
  .leo-card-grid { grid-template-columns: 1fr !important; }
  .leo-hero-grid img { border-radius: 12px !important; }
}

/* product page policy block */
.leo-pdp-policies { margin: 22px 0 6px; border: 1px solid #E5E7EB; border-radius: 12px; padding: 16px 18px; background: #FBFCFD; display: grid; gap: 12px; }
.leo-pdp-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; font-size: 13.5px; line-height: 1.5; color: #374151; }
.leo-pdp-row strong { color: #1E376C; font-weight: 700; }
@media (max-width: 560px) { .leo-pdp-row { grid-template-columns: 1fr; gap: 3px; } }

/* ========================================================================== 
   UI polish v1.2, responsive navigation, consistent commerce controls,
   accessible focus states and a stronger footer.
   ========================================================================== */

/* header */
.admin-bar header.wp-block-template-part { top: 32px; }
.leo-header-shell { padding-inline: clamp(18px, 4vw, 34px) !important; }
.leo-header-row { width: 100%; }
.leo-primary-nav .wp-block-navigation__container { column-gap: clamp(16px, 1.6vw, 28px); }
.leo-primary-nav .wp-block-navigation-item { margin-right: 0; }
.leo-header-actions { gap: 10px; }
.leo-header-actions .wc-block-customer-account,
.leo-header-actions .wc-block-mini-cart { margin-left: 0; }
.leo-header-actions .wc-block-customer-account__link,
.leo-header-actions .wc-block-mini-cart__button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  transition: background .15s ease;
}
.leo-header-actions .wc-block-customer-account__link:hover,
.leo-header-actions .wc-block-mini-cart__button:hover { background: var(--leo-bg-soft); }
.leo-search { transition: border-color .15s ease, box-shadow .15s ease; }
.leo-search:focus-within {
  border-color: var(--leo-navy);
  box-shadow: 0 0 0 3px rgba(30, 55, 108, .11);
}

@media (min-width: 900px) {
  .leo-header-row {
    flex-wrap: nowrap !important;
    align-items: center;
    column-gap: 26px;
  }
  .leo-header-row .wp-block-site-title { flex: 0 0 auto; }
  .leo-primary-nav { flex: 0 1 auto; margin-right: 0; }
  .leo-header-actions { flex: 0 0 auto; }
}

/* WordPress waits until a very narrow viewport before switching navigation to
   an overlay. LEO's longer labels need the compact menu at tablet widths. */
@media (max-width: 899px) {
  .leo-header-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px 16px;
  }
  .leo-primary-nav { margin: 0; justify-self: end; }
  .leo-primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .leo-primary-nav .wp-block-navigation__responsive-container-open {
    display: grid !important;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 10px;
    color: var(--leo-navy);
  }
  .leo-primary-nav .wp-block-navigation__responsive-container-open:hover { background: var(--leo-bg-soft); }
  .leo-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
    display: flex !important;
    padding: 28px;
    background: var(--leo-navy-dark) !important;
    color: #fff !important;
  }
  .leo-primary-nav .wp-block-navigation__responsive-container.is-menu-open a,
  .leo-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
    color: #fff !important;
  }
  .leo-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    align-items: flex-start;
    gap: 8px;
  }
  .leo-primary-nav .wp-block-navigation__responsive-container.is-menu-open a {
    font-size: clamp(1.35rem, 5vw, 2rem);
    padding: 8px 0;
  }
  .leo-header-actions { margin: 0; justify-self: end; }
  .home main { margin-top: clamp(28px, 6vw, 52px) !important; }
}

@media (max-width: 640px) {
  .admin-bar header.wp-block-template-part { top: 0; }
  .leo-header-shell { padding: 10px 18px !important; }
  .leo-header-row {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 10px;
  }
  .leo-header-row .wp-block-site-title { grid-column: 1; grid-row: 1; }
  .leo-primary-nav { grid-column: 2; grid-row: 1; }
  .leo-header-actions { display: contents !important; }
  .leo-header-actions .leo-search { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .leo-header-actions .wp-block-woocommerce-customer-account { grid-column: 3; grid-row: 1; }
  .leo-header-actions .wp-block-woocommerce-mini-cart { grid-column: 4; grid-row: 1; }
  .leo-search-input { width: auto; min-width: 0; flex: 1 1 auto; }
  .leo-search-btn { padding-inline: 18px; }
}

/* commerce grids and controls */
ul.wc-block-product-template > li:hover,
ul.products > li:hover { box-shadow: var(--leo-shadow-hover); }
ul.products li.product img,
ul.products li.product .woocommerce-LoopProduct-link img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f1f2f4;
}
.leo-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 30px 0 12px;
}
.leo-pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--leo-line);
  border-radius: 10px;
  background: #fff;
  color: var(--leo-navy);
  text-decoration: none;
  font-weight: 600;
}
.leo-pagination .page-numbers.current,
.leo-pagination a.page-numbers:hover {
  background: var(--leo-navy);
  border-color: var(--leo-navy);
  color: #fff;
}
.single_add_to_cart_button:hover,
.single-product .button:hover { background: var(--leo-green-dark) !important; }
.single-product .woocommerce-breadcrumb { line-height: 1.5; }
.single-product table.variations select {
  min-height: 44px;
  border: 1px solid var(--leo-line);
  border-radius: 9px;
  padding: 8px 10px;
}

/* footer */
.wp-block-template-part footer,
footer.wp-block-template-part { margin-top: 56px; }
.leo-footer {
  background: var(--leo-navy-dark);
  color: rgba(255,255,255,.78);
  border-top: 4px solid var(--leo-green);
  padding-inline: clamp(18px, 4vw, 34px) !important;
}
.leo-footer .wp-block-site-title a,
.leo-footer h4 { color: #fff !important; }
.leo-footer .wp-block-site-title { margin-bottom: 14px !important; }
.leo-footer-brand p { max-width: 46ch; margin-block: 8px; }
.leo-footer-trust { color: #fff; font-weight: 500; }
.leo-footer-links h4 {
  margin: 4px 0 14px;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.leo-footer-links ul { list-style: none; padding: 0; margin: 0; }
.leo-footer-links li { margin: 8px 0; }
.leo-footer a {
  color: rgba(255,255,255,.82);
  text-decoration-color: rgba(255,255,255,.35);
}
.leo-footer a:hover { color: #fff; text-decoration-color: #fff; }
.leo-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 28px;
  padding-top: 20px;
  color: rgba(255,255,255,.6);
  gap: 8px 24px;
}
.leo-footer-bottom p { margin: 0; }

@media (max-width: 640px) {
  ul.products,
  ul.wc-block-product-template { grid-template-columns: 1fr !important; gap: 18px !important; }
  ul.products li.product .button,
  ul.products li.product .add_to_cart_button { width: calc(100% - 28px) !important; }
  .single-product main { padding-top: 1rem !important; }
  .single-product .wp-block-post-title { font-size: clamp(1.65rem, 8vw, 2rem) !important; }
  .leo-footer-grid { gap: 28px; }
  .leo-footer-links { flex-basis: calc(50% - 14px) !important; }
  .leo-footer-bottom { display: block !important; }
  .leo-footer-bottom p + p { margin-top: 6px; }
  .home section:has(> .leo-hero-grid) { padding-inline: 24px !important; }
  .leo-hero-grid { padding: 0 !important; }
  .leo-hero-grid h1 {
    font-size: clamp(2.15rem, 10.5vw, 2.65rem) !important;
    line-height: 1.08 !important;
  }
  .leo-hero-grid p { font-size: 1rem !important; }
}

/* ========================================================================== 
   Premium finish v2.0
   This final layer intentionally carries more specificity than the MU-plugin
   presentation layer, keeping layout ownership in the child theme.
   ========================================================================== */

html { scroll-behavior: smooth; }
body {
  font-family: var(--leo-font) !important;
  color: var(--leo-ink) !important;
  background: #fff !important;
}
body h1, body h2, body h3, body h4,
body .wp-block-post-title,
body .wp-block-query-title {
  font-family: var(--leo-heading) !important;
  color: var(--leo-ink) !important;
  font-weight: 750;
}
body p, body li { text-wrap: pretty; }
body h1, body h2, body h3 { text-wrap: balance; }
body a { color: var(--leo-ink); }
body a:hover { color: var(--leo-accent); }
body :where(.wp-site-blocks) { padding: 0 !important; }
body .wp-element-button,
body .wp-block-button__link,
body button:not(.components-button) {
  min-height: 44px;
  border-radius: 999px !important;
  font-family: var(--leo-font) !important;
  font-weight: 700 !important;
  letter-spacing: -.01em;
}
body .wp-block-button:not(.is-style-outline) .wp-block-button__link,
body .wp-element-button:not(.wc-block-components-product-button__button) {
  background: var(--leo-ink);
  color: #fff;
}
body .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
body .wp-element-button:not(.wc-block-components-product-button__button):hover {
  background: var(--leo-accent);
  color: #fff;
}
body .wp-block-button.is-style-outline .wp-block-button__link {
  border: 1px solid var(--leo-ink);
  color: var(--leo-ink);
  background: #fff;
}
body .wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--leo-accent);
  color: var(--leo-accent);
}
body :focus-visible {
  outline: 3px solid rgba(255, 74, 28, .34) !important;
  outline-offset: 3px !important;
}

/* Announcement, brand header and navigation */
body .leo-announce {
  min-height: 34px;
  padding: 7px 0 !important;
  background: var(--leo-ink) !important;
  color: #fff !important;
}
body .leo-announce-inner {
  max-width: var(--leo-max) !important;
  min-height: 20px;
  padding-inline: 20px !important;
  gap: 12px 28px !important;
  font-size: 12px !important;
  line-height: 1.35;
}
body .leo-announce-inner > span::before {
  background: var(--leo-accent) !important;
  border-radius: 50% !important;
}
body header.wp-block-template-part,
body .wp-block-template-part > header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--leo-line) !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 7px 24px rgba(11, 11, 12, .035);
  backdrop-filter: blur(12px);
}
body .leo-header-shell {
  max-width: var(--leo-max) !important;
  padding: 12px 20px 10px !important;
  margin-inline: auto !important;
}
body .leo-header-row {
  width: 100%;
  gap: 10px 24px !important;
}
body .leo-logo-img { width: auto !important; height: 39px !important; display: block; }
body .wp-block-site-title { line-height: 1 !important; }
body .wp-block-site-title a {
  color: var(--leo-ink) !important;
  font-family: var(--leo-heading) !important;
  font-weight: 800 !important;
}
body .leo-search {
  height: 44px;
  min-width: 250px;
  border: 1px solid #d9d7d3 !important;
  border-radius: 999px !important;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(11, 11, 12, .02);
}
body .leo-search:focus-within {
  border-color: var(--leo-accent) !important;
  box-shadow: 0 0 0 4px rgba(255, 74, 28, .1) !important;
}
body .leo-search-input {
  min-width: 0;
  width: 210px;
  height: 42px;
  padding: 10px 4px 10px 17px;
  color: var(--leo-ink);
}
body .leo-search-btn {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--leo-ink) !important;
}
body .leo-search-btn:hover { color: var(--leo-accent) !important; background: #fff2ee !important; }
body .leo-search-btn svg { width: 19px; height: 19px; fill: currentColor; }
body .leo-header-actions { gap: 4px !important; }
body .leo-header-actions .wc-block-customer-account__link,
body .leo-header-actions .wc-block-mini-cart__button {
  width: 42px !important;
  height: 42px !important;
  color: var(--leo-ink) !important;
  border-radius: 50% !important;
}
body .leo-header-actions .wc-block-customer-account__link:hover,
body .leo-header-actions .wc-block-mini-cart__button:hover { color: var(--leo-accent) !important; background: #fff2ee !important; }
body .leo-header-row > .leo-mega {
  order: 3 !important;
  flex: 1 1 100% !important;
  width: 100%;
  margin-top: 4px !important;
  padding-top: 7px !important;
  border-top: 1px solid var(--leo-line) !important;
}
body .leo-mega-bar { max-width: 100%; justify-content: center !important; gap: 4px 13px !important; }
body .leo-mega .leo-top-link,
body .leo-mega .leo-top-btn {
  min-height: 34px;
  padding: 6px 8px !important;
  border-radius: 8px;
  color: var(--leo-ink) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}
body .leo-mega .leo-top-link:hover,
body .leo-mega .leo-top-btn:hover,
body .leo-mega-item.is-open > .leo-top-btn { color: var(--leo-accent) !important; background: #fff2ee !important; }
body .leo-mega .leo-panel {
  border: 1px solid var(--leo-line) !important;
  border-radius: 0 0 18px 18px !important;
  box-shadow: 0 24px 50px rgba(11, 11, 12, .14) !important;
}

/* Front page: remove nested theme padding and create a deliberate rhythm */
body.home main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 30px 20px 38px !important;
}
body.home main > .wp-block-group,
body.home main > .wp-block-post-content,
body.home main .entry-content,
body.home main .wp-block-post-content,
body.home main .is-layout-constrained {
  max-width: none;
}
body.home main > .wp-block-group,
body.home main > .wp-block-post-content,
body.home main .entry-content {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.home main .entry-content > *,
body.home main .wp-block-post-content > * {
  width: min(100%, var(--leo-max)) !important;
  max-width: var(--leo-max) !important;
  margin-inline: auto !important;
}
body.home .leo-hero {
  overflow: hidden;
  margin-bottom: 64px !important;
  padding: clamp(30px, 4vw, 52px) !important;
  border: 1px solid #e6e3de !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 93% 8%, rgba(255, 74, 28, .12), transparent 30%),
    linear-gradient(135deg, #fff 0%, #f7f4ef 100%) !important;
  box-shadow: 0 18px 54px rgba(11, 11, 12, .07);
}
body.home .leo-hero-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr) !important;
  align-items: center;
  gap: clamp(30px, 5vw, 68px) !important;
  padding: 0 !important;
}
body.home .leo-hero h1 {
  max-width: 13ch;
  margin: 0 0 18px !important;
  font-size: clamp(2.75rem, 4.5vw, 4.65rem) !important;
  line-height: .99 !important;
  letter-spacing: -.055em !important;
}
body.home .leo-hero p { max-width: 58ch !important; color: #55565b !important; }
body.home .leo-hero img {
  width: 100% !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px !important;
  box-shadow: 0 20px 44px rgba(11, 11, 12, .13);
}
body.home .leo-section { margin-bottom: 68px !important; }
body.home .leo-section > h2,
body.home .leo-section > .wp-block-heading {
  margin: 0 0 20px !important;
  font-size: clamp(1.7rem, 2.6vw, 2.45rem) !important;
  line-height: 1.15;
}
body.home .leo-card-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
}
body.home .leo-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--leo-line) !important;
  border-radius: 17px !important;
  background: #fff !important;
  box-shadow: var(--leo-shadow) !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
body.home .leo-card:hover {
  transform: translateY(-5px) !important;
  border-color: #d4d0ca !important;
  box-shadow: var(--leo-shadow-hover) !important;
}
body.home .leo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  background: var(--leo-bg-soft);
}
body.home .leo-card-body { padding: 17px 18px 21px !important; }
body.home .leo-card-body h3 { margin: 0 0 7px !important; font-size: 16px !important; line-height: 1.3; }
body.home .leo-card-body p { color: var(--leo-muted) !important; line-height: 1.55 !important; }

/* Catalog and collection archives */
body .leo-catalog-main {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 30px 20px 76px !important;
}
body .leo-catalog-main > * { width: min(100%, var(--leo-max)) !important; max-width: var(--leo-max) !important; margin-inline: auto !important; }
body .leo-catalog-main .woocommerce-breadcrumb { margin: 0 auto 18px !important; color: var(--leo-muted); font-size: 13px; }
body .leo-catalog-heading {
  margin-bottom: 22px !important;
  padding: clamp(24px, 3.5vw, 40px) !important;
  border-radius: 20px;
  background: linear-gradient(135deg, #f6f4ef, #fff6f2);
  border: 1px solid #e9e4dd;
}
body .leo-catalog-heading h1 { margin: 0 0 8px !important; font-size: clamp(2rem, 4vw, 3.5rem) !important; line-height: 1.05; }
body .leo-catalog-heading p,
body .leo-catalog-heading .leo-cat-lead { margin: 7px 0 0 !important; color: #55565b !important; font-size: 16px !important; }
body .leo-catalog-toolbar {
  min-height: 58px;
  margin-bottom: 20px !important;
  padding: 10px 14px !important;
  border: 1px solid var(--leo-line);
  border-radius: 13px;
  background: #fff;
}
body .leo-catalog-toolbar p { margin: 0 !important; color: var(--leo-muted); font-size: 13px; }
body .leo-catalog-toolbar select {
  min-height: 40px;
  padding: 7px 34px 7px 12px;
  border: 1px solid #d9d7d3;
  border-radius: 9px;
  background: #fff;
  color: var(--leo-ink);
  font: 600 13px/1.2 var(--leo-font);
}
body .leo-product-collection { margin-top: 0 !important; }
body .leo-product-collection ul.wc-block-product-template,
body .leo-catalog-main ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
}
body .leo-product-collection ul.wc-block-product-template > li,
body .leo-catalog-main ul.products > li {
  position: relative;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  min-width: 0;
  margin: 0 !important;
  padding: 0 0 17px !important;
  border: 1px solid var(--leo-line) !important;
  border-radius: 17px !important;
  background: #fff !important;
  box-shadow: var(--leo-shadow) !important;
}
body .leo-product-collection ul.wc-block-product-template > li:hover,
body .leo-catalog-main ul.products > li:hover { transform: translateY(-4px) !important; box-shadow: var(--leo-shadow-hover) !important; }
body .leo-product-collection .wc-block-components-product-image,
body .leo-catalog-main ul.products .woocommerce-LoopProduct-link { width: 100%; }
body .leo-product-collection .wc-block-components-product-image img,
body .leo-catalog-main ul.products img {
  display: block;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  padding: 10px;
  background: #f6f6f4 !important;
}
body .leo-product-collection .wp-block-post-title,
body .leo-catalog-main ul.products .woocommerce-loop-product__title {
  margin: 0 !important;
  padding: 16px 17px 7px !important;
  font-size: 15px !important;
  line-height: 1.38 !important;
}
body .leo-product-collection .wp-block-post-title a,
body .leo-catalog-main ul.products .woocommerce-loop-product__link { text-decoration: none !important; color: var(--leo-ink) !important; }
body .leo-product-collection .wc-block-components-product-price,
body .leo-catalog-main ul.products .price {
  margin-top: auto !important;
  padding: 4px 17px 8px !important;
  color: var(--leo-ink) !important;
  font-weight: 750 !important;
}
body .leo-product-collection .wp-block-button,
body .leo-product-collection .wp-block-button__link,
body .leo-product-collection .wc-block-components-product-button,
body .leo-catalog-main ul.products .button { width: auto !important; }
body .leo-product-collection .wp-block-button__link,
body .leo-product-collection .wc-block-components-product-button__button,
body .leo-catalog-main ul.products .button {
  align-self: flex-start;
  min-height: 40px !important;
  margin: 5px 17px 0 !important;
  padding: 10px 17px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--leo-ink) !important;
  color: #fff !important;
  font-size: 12px !important;
}
body .leo-product-collection .wc-block-components-product-button__button:hover,
body .leo-catalog-main ul.products .button:hover { background: var(--leo-accent) !important; }
body .wc-block-components-product-sale-badge {
  margin: 12px !important;
  padding: 5px 9px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--leo-accent) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
}
body .leo-query-pagination {
  gap: 7px !important;
  margin: 36px auto 8px !important;
}
body .leo-query-pagination a,
body .leo-query-pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid var(--leo-line);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
}
body .leo-query-pagination .current,
body .leo-query-pagination a:hover { border-color: var(--leo-ink); background: var(--leo-ink); color: #fff; }
body .leo-catalog-discovery { margin-top: 62px !important; }
body .leo-catalog-discovery .leo-silo,
body .leo-catalog-discovery .leo-guides { margin-top: 42px !important; }
body .leo-chip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px !important; }
body .leo-chip {
  padding: 15px 16px !important;
  border: 1px solid var(--leo-line) !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: none !important;
}
body .leo-chip:hover { border-color: var(--leo-accent) !important; color: var(--leo-accent) !important; transform: translateY(-2px); }
body .leo-cat-copy {
  margin-top: 54px !important;
  padding: clamp(24px, 4vw, 44px) !important;
  border-radius: 18px;
  background: var(--leo-bg-soft);
}
body .leo-no-results { margin: 34px auto !important; padding: 48px 24px !important; border-radius: 18px; background: var(--leo-bg-soft); }

/* Product page */
body.single-product .wp-block-group.woocommerce.product {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}
body.single-product .leo-product-main {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 26px 20px 76px !important;
}
body.single-product .leo-product-main > * { width: min(100%, var(--leo-max)) !important; max-width: var(--leo-max) !important; margin-inline: auto !important; }
body.single-product .leo-product-main .woocommerce-breadcrumb { margin-bottom: 20px !important; color: var(--leo-muted); font-size: 13px; }
body.single-product .leo-product-layout { align-items: flex-start !important; gap: clamp(30px, 5vw, 62px) !important; }
body.single-product .leo-product-gallery-col {
  overflow: hidden;
  padding: 14px !important;
  border: 1px solid var(--leo-line);
  border-radius: 18px;
  background: #f7f7f5;
}
body.single-product .woocommerce-product-gallery { margin: 0 !important; background: #fff; }
body.single-product .woocommerce-product-gallery__image img { object-fit: contain; }
body.single-product .flex-control-thumbs { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px !important; }
body.single-product .flex-control-thumbs li { width: auto !important; float: none !important; }
body.single-product .flex-control-thumbs img { border: 1px solid var(--leo-line); border-radius: 8px; background: #fff; }
body.single-product .flex-control-thumbs img.flex-active { border-color: var(--leo-accent); }
body.single-product .leo-product-summary-col { padding-top: 4px; }
body.single-product .leo-product-summary-col > .wp-block-post-title,
body.single-product h1.wp-block-post-title {
  margin: 0 0 14px !important;
  color: var(--leo-ink) !important;
  font-size: clamp(2rem, 3.2vw, 3rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.045em !important;
}
body.single-product .wp-block-woocommerce-product-price { margin: 0 0 16px !important; }
body.single-product .price { color: var(--leo-ink) !important; font-size: 1.35rem !important; }
body.single-product .wp-block-woocommerce-product-summary { color: #55565b; }
body.single-product table.variations { margin: 18px 0 14px !important; }
body.single-product table.variations th,
body.single-product table.variations td { display: block; padding: 0 0 6px !important; }
body.single-product table.variations label { font-size: 13px; color: var(--leo-ink); }
body.single-product table.variations select {
  width: 100%;
  min-height: 48px;
  padding: 9px 13px;
  border-color: #d9d7d3;
  border-radius: 10px;
  background: #fff;
  font-family: var(--leo-font);
}
body.single-product form.cart .quantity .qty {
  min-height: 48px;
  border: 1px solid #d9d7d3;
  border-radius: 10px;
}
body.single-product .single_add_to_cart_button {
  min-height: 48px !important;
  padding: 13px 24px !important;
  background: var(--leo-accent) !important;
  box-shadow: 0 8px 22px rgba(255, 74, 28, .2);
}
body.single-product .single_add_to_cart_button:hover { background: var(--leo-green-dark) !important; transform: translateY(-1px); }
body.single-product .leo-pdp-policies {
  margin-top: 22px !important;
  padding: 18px !important;
  border: 1px solid #e4e1dc !important;
  border-radius: 14px !important;
  background: #f8f7f4 !important;
}
body.single-product .leo-pdp-row { grid-template-columns: 138px 1fr !important; gap: 12px !important; }
body.single-product .leo-pdp-row strong { position: relative; padding-left: 21px; color: var(--leo-ink) !important; }
body.single-product .leo-pdp-row strong::before {
  position: absolute;
  left: 0;
  top: .18em;
  content: "✓";
  color: var(--leo-accent);
  font-weight: 900;
}
body.single-product .wp-block-woocommerce-product-details { margin-top: 58px !important; }
body.single-product .woocommerce-tabs ul.tabs { display: flex; gap: 8px; padding: 0 !important; border-bottom: 1px solid var(--leo-line); }
body.single-product .woocommerce-tabs ul.tabs::before { display: none; }
body.single-product .woocommerce-tabs ul.tabs li { margin: 0 !important; border: 0 !important; background: transparent !important; }
body.single-product .woocommerce-tabs ul.tabs li a { padding: 11px 14px !important; }
body.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--leo-accent) !important; box-shadow: inset 0 -2px var(--leo-accent); }

/* Guides, archive cards, search results and article reading layout */
body .leo-guides-index,
body .leo-search-results,
body .leo-article,
body .leo-404 {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 46px 20px 80px !important;
}
body .leo-guides-index > *,
body .leo-search-results > *,
body .leo-article > *,
body .leo-404 > * { width: min(100%, var(--leo-max)) !important; max-width: var(--leo-max) !important; margin-inline: auto !important; }
body .leo-page-hero { margin-bottom: 32px !important; }
body .leo-page-hero h1,
body .leo-search-results .wp-block-query-title,
body .leo-article-header h1 {
  margin: 3px 0 14px !important;
  font-size: clamp(2.35rem, 5vw, 4.5rem) !important;
  line-height: 1.03 !important;
  letter-spacing: -.05em !important;
}
body .leo-eyebrow,
body .leo-post-kicker,
body .leo-post-kicker a,
body .leo-article-header .wp-block-post-terms,
body .leo-article-header .wp-block-post-terms a {
  color: var(--leo-accent) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .11em !important;
  text-decoration: none !important;
  text-transform: uppercase;
}
body .leo-page-lead { max-width: 68ch !important; margin: 0 !important; color: var(--leo-muted); font-size: 18px; line-height: 1.65; }
body .leo-post-grid,
body .leo-search-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  padding: 0 !important;
  list-style: none;
}
body .leo-post-grid > li,
body .leo-search-grid > li {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body .leo-post-card,
body .leo-search-card {
  overflow: hidden;
  height: 100%;
  padding: 0 !important;
  border: 1px solid var(--leo-line) !important;
  border-radius: 17px !important;
  background: #fff;
  box-shadow: var(--leo-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
body .leo-post-card:hover,
body .leo-search-card:hover { transform: translateY(-4px); box-shadow: var(--leo-shadow-hover); }
body .leo-post-card-image { margin: 0 !important; background: var(--leo-bg-soft); }
body .leo-post-card-image img { display: block; width: 100%; aspect-ratio: 4 / 3 !important; object-fit: cover; }
body .leo-post-card-body { padding: 18px 18px 21px !important; }
body .leo-post-card-body .wp-block-post-title { margin: 7px 0 9px !important; font-size: 18px !important; line-height: 1.3 !important; }
body .leo-post-card-body .wp-block-post-title a { color: var(--leo-ink) !important; text-decoration: none !important; }
body .leo-post-card-body .wp-block-post-title a:hover { color: var(--leo-accent) !important; }
body .leo-post-card-body .wp-block-post-excerpt { margin: 0 !important; color: var(--leo-muted); font-size: 14px; }
body .leo-post-card-body .wp-block-post-excerpt__more-link { color: var(--leo-ink); font-weight: 700; }
body .leo-page-search { max-width: 660px; margin-top: 24px !important; }
body .leo-page-search .wp-block-search__inside-wrapper {
  overflow: hidden;
  min-height: 50px;
  padding: 4px;
  border: 1px solid #d9d7d3;
  border-radius: 999px;
  background: #fff;
}
body .leo-page-search .wp-block-search__input { border: 0 !important; padding-inline: 16px; font-family: var(--leo-font); }
body .leo-page-search .wp-block-search__button { min-width: 46px; min-height: 42px; border: 0 !important; border-radius: 999px !important; background: var(--leo-ink) !important; color: #fff !important; }
body .leo-article-header { max-width: 850px !important; margin-bottom: 28px !important; }
body .leo-article-header h1 { max-width: 18ch; }
body .leo-article-meta { gap: 7px !important; color: var(--leo-muted); font-size: 13px; }
body .leo-article-meta p { margin: 0 !important; }
body .leo-article-image { overflow: hidden; margin-bottom: 44px !important; border-radius: 20px; background: var(--leo-bg-soft); }
body .leo-article-image img { width: 100%; aspect-ratio: 21 / 9 !important; object-fit: cover; }
body .leo-article-content { max-width: 780px !important; font-size: 17px; line-height: 1.78; }
body .leo-article-content > * { max-width: 100% !important; }
body .leo-article-content p { max-width: 100% !important; }
body .leo-article-content h2 { margin: 2.3em 0 .65em; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.17; }
body .leo-article-content h3 { margin: 1.9em 0 .55em; font-size: 1.35rem; }
body .leo-article-content img { border-radius: 14px; }
body .leo-article-content blockquote { margin: 32px 0; padding: 22px 26px; border-left: 4px solid var(--leo-accent); background: #fff4f0; }
body .leo-article-footer { max-width: 780px !important; margin-top: 54px !important; padding-top: 24px !important; border-top: 1px solid var(--leo-line); }
body .leo-article-footer > * { display: block; margin: 10px 0 !important; }
body .leo-404 { min-height: 62vh; display: grid; place-items: center; }
body .leo-404-card {
  max-width: 760px !important;
  padding: clamp(34px, 7vw, 76px) !important;
  border: 1px solid var(--leo-line);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 0, #fff2ed, #f8f7f4 62%);
  text-align: center;
}
body .leo-404-card h1 { margin: 4px 0 13px !important; font-size: clamp(2.4rem, 6vw, 4.7rem) !important; line-height: 1; }
body .leo-404-card .leo-page-search { margin-inline: auto !important; }

/* Rich injected footer plus the child-theme fallback */
body .leo-footer-v2,
body .leo-footer {
  margin: 0 !important;
  border-top: 4px solid var(--leo-accent) !important;
  background: var(--leo-ink) !important;
  color: rgba(255, 255, 255, .72) !important;
}
body .leo-footer-v2 .leo-fwrap,
body .leo-footer-v2 .leo-contact-wrap,
body .leo-footer > * {
  max-width: var(--leo-max) !important;
  margin-inline: auto !important;
}
body .leo-footer-v2 .leo-fwrap { padding: 52px 20px 28px !important; }
body .leo-footer-v2 .leo-fbrand { max-width: 720px; margin-bottom: 32px !important; }
body .leo-footer-v2 .leo-fbrand h2,
body .leo-footer-v2 h3,
body .leo-footer h4,
body .leo-footer .wp-block-site-title a { color: #fff !important; }
body .leo-footer-v2 .leo-fbrand p { max-width: 62ch; }
body .leo-footer-v2 .leo-fbrand > :last-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
}
body .leo-footer-v2 .leo-fbrand > :last-child::before { content: "✓"; color: var(--leo-accent); font-weight: 900; }
body .leo-footer-v2 .leo-fgrid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 28px !important;
}
body .leo-footer-v2 .leo-fgrid h3 { margin: 0 0 12px !important; font-size: 13px !important; letter-spacing: .06em; text-transform: uppercase; }
body .leo-footer-v2 .leo-fgrid ul { margin: 0; padding: 0; list-style: none; }
body .leo-footer-v2 .leo-fgrid li { margin: 7px 0; }
body .leo-footer-v2 a,
body .leo-footer a { color: rgba(255,255,255,.78) !important; text-decoration-color: rgba(255,255,255,.25) !important; }
body .leo-footer-v2 a:hover,
body .leo-footer a:hover { color: #fff !important; text-decoration-color: var(--leo-accent) !important; }
body .leo-footer-v2 .leo-fsearches { margin-top: 34px !important; padding-top: 28px !important; border-top: 1px solid rgba(255,255,255,.12); }
body .leo-footer-v2 .leo-chip {
  padding: 8px 11px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.055) !important;
  color: rgba(255,255,255,.78) !important;
  font-size: 11px !important;
}
body .leo-footer-v2 .leo-fbottom { margin-top: 28px !important; padding-top: 21px !important; border-top: 1px solid rgba(255,255,255,.12); }
body .leo-footer-v2 .leo-contact-wrap {
  margin-bottom: 42px !important;
  padding: 24px !important;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
}
body .leo-footer-v2 + .leo-trust-row,
body .leo-trust-row {
  justify-content: center !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 20px !important;
  border-top: 1px solid #e5e2de;
  background: #f7f6f3 !important;
  color: var(--leo-ink) !important;
}
body .leo-trust-row > * { min-height: 34px; padding: 7px 11px; border: 1px solid #e1ded9; border-radius: 999px; background: #fff; }
body .leo-pay {
  justify-content: center !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 14px 20px 22px !important;
  background: #f7f6f3 !important;
}

/* Responsive layout */
@media (max-width: 900px) {
  body .leo-announce-inner { justify-content: center !important; }
  body .leo-announce-inner > span:nth-child(n+3) { display: none !important; }
}

@media (max-width: 1023px) {
  body header.wp-block-template-part,
  body .wp-block-template-part > header,
  body .leo-header-shell { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  body .leo-header-shell { padding-block: 10px 8px !important; }
  body .leo-header-row {
    display: grid !important;
    grid-template-columns: minmax(145px, 1fr) auto auto auto !important;
    align-items: center !important;
    gap: 8px !important;
  }
  body .leo-header-row > :first-child { grid-column: 1; grid-row: 1; min-width: 0; }
  body .leo-header-row > .leo-mega {
    grid-column: 2;
    grid-row: 1;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  body .leo-header-actions { display: contents !important; }
  body .leo-header-actions .leo-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
  }
  body .leo-header-actions .wp-block-woocommerce-customer-account { grid-column: 3; grid-row: 1; }
  body .leo-header-actions .wp-block-woocommerce-mini-cart { grid-column: 4; grid-row: 1; }
  body .leo-search-input { width: 100%; flex: 1 1 auto; }
  body .leo-mega-burger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px !important;
    border: 1px solid var(--leo-line) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--leo-ink) !important;
  }
  body .leo-mega-bar {
    position: fixed !important;
    inset: var(--leo-top, 166px) 0 0 0;
    z-index: 120;
    overflow-y: auto !important;
    display: none !important;
    width: 100% !important;
    padding: 18px 20px 42px !important;
    background: #fff !important;
    box-shadow: 0 18px 34px rgba(11,11,12,.16);
  }
  body .leo-mega-bar.is-open { display: flex !important; flex-direction: column !important; align-items: stretch !important; }
  body .leo-mega-item { width: 100%; border-bottom: 1px solid var(--leo-line) !important; }
  body .leo-mega .leo-top-link,
  body .leo-mega .leo-top-btn { justify-content: space-between !important; width: 100%; min-height: 49px; padding: 10px 4px !important; font-size: 15px !important; }
  body .leo-mega .leo-panel { position: static !important; width: 100% !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
  body.home .leo-hero-grid { grid-template-columns: 1fr 1fr !important; }
  body.home .leo-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  body .leo-chip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  body .leo-footer-v2 .leo-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 760px) {
  body .leo-announce-inner { justify-content: center !important; }
  body .leo-announce-inner > span:not(:first-child) { display: none !important; }
  body .leo-announce { min-height: 32px; padding-block: 6px !important; }
  body .leo-header-shell { padding-inline: 14px !important; }
  body .leo-logo-img { height: 34px !important; max-width: 150px !important; }
  body.home main,
  body .leo-catalog-main,
  body.single-product .leo-product-main,
  body .leo-guides-index,
  body .leo-search-results,
  body .leo-article,
  body .leo-404 { padding-inline: 16px !important; }
  body.home main { padding-top: 20px !important; }
  body.home main > .wp-block-group,
  body.home main > .wp-block-post-content,
  body.home main .entry-content,
  body.home main .wp-block-post-content,
  body.home main .is-layout-constrained { width: 100% !important; margin-inline: 0 !important; padding-inline: 0 !important; }
  body.home main .entry-content > *,
  body.home main .wp-block-post-content > * { width: 100% !important; }
  body.home .leo-hero {
    width: 100% !important;
    margin-bottom: 46px !important;
    padding: 27px 22px 22px !important;
    border-radius: 19px !important;
  }
  body.home .leo-hero-grid { grid-template-columns: 1fr !important; gap: 26px !important; }
  body.home .leo-hero h1 { font-size: clamp(2.25rem, 11vw, 3.35rem) !important; }
  body.home .leo-hero img { border-radius: 14px !important; }
  body.home .leo-section { width: 100% !important; margin-bottom: 50px !important; padding-inline: 0 !important; }
  body.home .leo-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; }
  body .leo-catalog-main { padding-top: 20px !important; }
  body .leo-catalog-heading { padding: 24px 20px !important; border-radius: 17px; }
  body .leo-catalog-toolbar { align-items: center !important; }
  body .leo-product-collection ul.wc-block-product-template,
  body .leo-catalog-main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 13px !important; }
  body .leo-product-collection ul.wc-block-product-template > li,
  body .leo-catalog-main ul.products > li { border-radius: 13px !important; padding-bottom: 13px !important; }
  body .leo-product-collection .wp-block-post-title,
  body .leo-catalog-main ul.products .woocommerce-loop-product__title { padding: 12px 12px 5px !important; font-size: 13px !important; }
  body .leo-product-collection .wc-block-components-product-price,
  body .leo-catalog-main ul.products .price { padding-inline: 12px !important; font-size: 13px !important; }
  body .leo-product-collection .wp-block-button__link,
  body .leo-product-collection .wc-block-components-product-button__button,
  body .leo-catalog-main ul.products .button { width: calc(100% - 24px) !important; margin-inline: 12px !important; text-align: center; }
  body .leo-chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.single-product .leo-product-main { padding-top: 18px !important; }
  body.single-product .leo-product-layout { gap: 26px !important; }
  body.single-product .leo-product-layout > .wp-block-column {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-basis: 100% !important;
  }
  body.single-product .leo-product-gallery-col { padding: 9px !important; border-radius: 14px; }
  body.single-product .wp-block-woocommerce-product-image-gallery,
  body.single-product .woocommerce-product-gallery { width: 100% !important; max-width: 100% !important; overflow: hidden !important; }
  body.single-product .leo-pdp-row { grid-template-columns: 1fr !important; gap: 3px !important; }
  body .leo-guides-index,
  body .leo-search-results,
  body .leo-article { padding-top: 34px !important; }
  body .leo-404 > .leo-404-card {
    left: 0 !important;
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    margin-inline: 0 !important;
  }
  body .leo-post-grid,
  body .leo-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; }
  body .leo-article-image { margin-bottom: 30px !important; border-radius: 14px; }
  body .leo-article-content { font-size: 16px; line-height: 1.72; }
  body .leo-footer-v2 .leo-fwrap { padding: 42px 18px 24px !important; }
  body .leo-footer-v2 .leo-fbrand { margin-bottom: 26px !important; }
  body .leo-footer-v2 .leo-fgrid { gap: 26px 20px !important; }
  body .leo-footer-v2 .leo-fsearches { margin-top: 28px !important; }
  body .leo-footer-v2 .leo-chip-count { display: none !important; }
  body .leo-footer-v2 .leo-contact-wrap { margin-inline: 18px !important; padding: 19px !important; }
  body .leo-trust-row { gap: 8px !important; font-size: 11px !important; }
}

@media (max-width: 480px) {
  body .leo-header-row { grid-template-columns: minmax(105px, 1fr) auto auto auto !important; }
  body .leo-logo-img { max-width: 132px !important; height: 31px !important; }
  body .leo-mega-burger { width: 42px; padding: 0 !important; font-size: 0 !important; }
  body .leo-mega-burger::before { content: "☰"; font-size: 19px; line-height: 1; }
  body.home .leo-card-grid { grid-template-columns: 1fr !important; }
  body.home .leo-card img { aspect-ratio: 16 / 10 !important; }
  body .leo-catalog-heading h1 { font-size: 2.2rem !important; }
  body .leo-catalog-toolbar { display: grid !important; grid-template-columns: 1fr; gap: 8px; }
  body .leo-catalog-toolbar select { width: 100%; }
  body .leo-post-grid,
  body .leo-search-grid { grid-template-columns: 1fr !important; }
  body .leo-post-card-image img { aspect-ratio: 16 / 10 !important; }
  body .leo-footer-v2 .leo-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 14px !important; }
  body .leo-footer-v2 .leo-fgrid h3 { font-size: 11px !important; }
  body .leo-footer-v2 .leo-fgrid li { font-size: 12px; }
  body .leo-footer-v2 .leo-fsearches .leo-chip:nth-child(n+9) { display: none !important; }
  body .leo-trust-row > * { width: 100%; justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Homepage automotive showcase: readable cards on desktop, tablet and mobile. */
body.home .leo-home-auto-categories .leo-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}
body.home .leo-home-auto-categories .leo-card img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  padding: 8px;
  background: #f6f6f4 !important;
}
body.home .leo-home-auto-products ul.products,
body.home .leo-home-auto-products ul.products.columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px 16px !important;
  align-items: stretch;
}
body.home .leo-home-auto-products ul.products > li.product {
  min-width: 0;
  height: 100%;
}
body.home .leo-home-auto-products ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
}
body.home .leo-home-auto-products ul.products li.product img {
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  padding: 8px;
  background: #f6f6f4 !important;
}
body.home .leo-home-auto-products .woocommerce-loop-product__title {
  display: -webkit-box;
  overflow: hidden;
  min-height: calc(1.35em * 3);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
body.home .leo-home-auto-products ul.products li.product .button {
  margin-top: auto !important;
}

@media (max-width: 900px) {
  body.home .leo-home-auto-categories .leo-card-grid,
  body.home .leo-home-auto-products ul.products,
  body.home .leo-home-auto-products ul.products.columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.home .leo-home-auto-categories .leo-card-grid { gap: 14px !important; }
  body.home .leo-home-auto-products ul.products,
  body.home .leo-home-auto-products ul.products.columns-4 { gap: 14px 12px !important; }
}

@media (max-width: 520px) {
  body.home .leo-home-auto-categories .leo-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  body.home .leo-home-auto-categories .leo-card img {
    aspect-ratio: 4 / 3 !important;
    padding: 5px;
  }
  body.home .leo-home-auto-categories .leo-card-body { padding: 11px !important; }
  body.home .leo-home-auto-categories .leo-card-body h3 { font-size: 13px !important; }
  body.home .leo-home-auto-categories .leo-card-body p { font-size: 11.5px !important; line-height: 1.4 !important; }
  body.home .leo-home-auto-products ul.products,
  body.home .leo-home-auto-products ul.products.columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 9px !important;
  }
  body.home .leo-home-auto-products ul.products li.product img { padding: 4px; }
  body.home .leo-home-auto-products .woocommerce-loop-product__title {
    min-height: calc(1.32em * 3);
    padding: 10px 10px 4px !important;
    font-size: 13px !important;
    line-height: 1.32 !important;
  }
  body.home .leo-home-auto-products ul.products li.product .price {
    padding: 0 10px 8px !important;
    font-size: 12.5px !important;
  }
  body.home .leo-home-auto-products ul.products li.product .button {
    width: calc(100% - 20px) !important;
    min-height: 40px;
    margin: 0 10px 10px !important;
    padding: 9px 8px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 0px) {
/* ========================================================================== 
   Navigation + footer signature treatment v3
   ========================================================================== */

/* Mega-menu panels */
body .leo-mega .leo-panel { padding-top: 10px !important; }
body .leo-mega .leo-panel-inner {
  overflow: hidden;
  gap: 28px !important;
  padding: 27px 28px 20px !important;
  border: 1px solid #dedbd6 !important;
  border-top: 4px solid var(--leo-accent) !important;
  border-radius: 19px !important;
  background: #fff !important;
  box-shadow: 0 28px 70px rgba(11, 11, 12, .18) !important;
}
body .leo-mega .leo-panel-main { gap: 22px 28px !important; }
body .leo-mega .leo-col-title {
  margin-bottom: 10px !important;
  color: var(--leo-accent) !important;
  font-size: 10px !important;
  letter-spacing: .13em !important;
}
body .leo-mega .leo-col-list a {
  min-height: 32px;
  padding: 6px 9px !important;
  border-radius: 8px !important;
  color: var(--leo-ink) !important;
  font-size: 13px !important;
}
body .leo-mega .leo-col-list a:hover {
  background: #fff0eb !important;
  color: var(--leo-accent) !important;
  text-decoration: none !important;
}
body .leo-mega .leo-col-cta {
  padding: 17px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--leo-ink) !important;
}
body .leo-mega .leo-col-cta .leo-cta-text { color: rgba(255,255,255,.7) !important; }
body .leo-mega .leo-cta-btn {
  border-radius: 999px !important;
  background: var(--leo-accent) !important;
  color: #fff !important;
}
body .leo-mega .leo-cta-btn:hover { background: #fff !important; color: var(--leo-ink) !important; }
body .leo-mega .leo-tile { border-radius: 14px !important; border-color: #dcd8d2 !important; }
body .leo-mega .leo-tile-body { padding: 28px 12px 10px !important; }
body .leo-mega .leo-panel-foot { margin-top: 8px !important; padding-top: 15px !important; }
body .leo-mega .leo-all { color: var(--leo-ink) !important; }
body .leo-mega .leo-all:hover { color: var(--leo-accent) !important; }

@media (min-width: 1024px) {
  body .leo-header-row > .leo-mega {
    margin-top: 8px !important;
    padding-top: 0 !important;
    border-top: 0 !important;
  }
  body .leo-mega-bar {
    display: flex !important;
    width: 100% !important;
    padding: 5px !important;
    gap: 2px !important;
    overflow: visible !important;
    border: 1px solid #222224 !important;
    border-radius: 14px !important;
    background: var(--leo-ink) !important;
    box-shadow: 0 9px 24px rgba(11,11,12,.12) !important;
  }
  body .leo-mega-bar > .leo-mega-item { flex: 1 1 auto; }
  body .leo-mega .leo-top-link,
  body .leo-mega .leo-top-btn {
    justify-content: center !important;
    width: 100%;
    min-height: 38px;
    padding: 8px 7px !important;
    border-radius: 9px !important;
    color: #fff !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: .005em;
  }
  body .leo-mega .leo-top-link::after,
  body .leo-mega .leo-top-btn::after { color: var(--leo-accent) !important; }
  body .leo-mega .leo-top-link:hover,
  body .leo-mega .leo-top-btn:hover,
  body .leo-mega-item.is-open > .leo-top-link,
  body .leo-mega-item.is-open > .leo-top-btn {
    color: #fff !important;
    background: rgba(255, 74, 28, .2) !important;
  }
}

/* ========================================================================== 
   Mobile commerce completion pass
   - compact optional artwork control
   - faster collection narrowing
   - stable product gallery and concise mobile cards/menu
   ========================================================================== */

html body.single-product .wp-site-blocks .leo-design-upload {
  width: 100%;
  box-sizing: border-box;
}
html body.single-product .wp-site-blocks .woocommerce-product-gallery,
html body.single-product .wp-site-blocks .woocommerce-product-gallery__wrapper,
html body.single-product .wp-site-blocks .woocommerce-product-gallery__image > a {
  min-width: 0;
}
html body.single-product .wp-site-blocks .woocommerce-product-gallery__image > a {
  display: block;
  aspect-ratio: 1 / 1;
}
html body.single-product .wp-site-blocks .woocommerce-product-gallery__image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

html body .wp-site-blocks .leo-catalog-shortcuts {
  margin: 0 auto 18px !important;
}
html body .wp-site-blocks .leo-catalog-shortcuts .leo-silo {
  margin: 0 !important;
  padding: 0 0 18px !important;
  border-bottom: 1px solid #e6e6e6;
}
html body .wp-site-blocks .leo-catalog-shortcuts .leo-sec-title {
  margin: 0 0 12px !important;
  font-size: clamp(20px, 2.1vw, 26px) !important;
}

@media (max-width: 760px) {
  html body.single-product .wp-site-blocks .woocommerce-product-gallery__wrapper {
    min-height: calc(100vw - 50px);
  }
  html body.single-product .wp-site-blocks .woocommerce-variation-add-to-cart {
    grid-template-rows: auto auto !important;
  }
  html body.single-product .wp-site-blocks .woocommerce-variation-add-to-cart > .leo-design-upload {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    margin: 0 0 2px !important;
  }
  html body.single-product .wp-site-blocks .woocommerce-variation-add-to-cart > .quantity {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  html body.single-product .wp-site-blocks .woocommerce-variation-add-to-cart > .single_add_to_cart_button {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }
  html body.single-product .wp-site-blocks .leo-pdp-policies {
    padding: 13px 14px !important;
  }
  html body.single-product .wp-site-blocks .leo-pdp-row {
    grid-template-columns: 108px minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 8px 0 !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
  }
  html body.single-product .wp-site-blocks .leo-pdp-row strong {
    align-self: start;
    padding-left: 18px !important;
  }

  html body .wp-site-blocks .leo-catalog-shortcuts {
    overflow: hidden;
    width: 100% !important;
  }
  html body .wp-site-blocks .leo-catalog-shortcuts .leo-chip-grid {
    overflow-x: auto;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    width: 100%;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  html body .wp-site-blocks .leo-catalog-shortcuts .leo-chip {
    flex: 0 0 170px;
    min-width: 170px;
    padding: 11px 0 !important;
    scroll-snap-align: start;
  }
  html body .wp-site-blocks .leo-catalog-toolbar:empty { display: none !important; }
  html body .wp-site-blocks .leo-catalog-toolbar:not(:empty) {
    min-height: 0 !important;
    margin-bottom: 16px !important;
    padding: 10px 0 !important;
  }
  html body .wp-site-blocks .leo-product-collection .wp-block-post-title,
  html body .wp-site-blocks .leo-catalog-main ul.products .woocommerce-loop-product__title {
    overflow: hidden;
    display: -webkit-box !important;
    min-height: calc(1.38em * 3);
    padding: 10px 0 4px !important;
    font-size: 14px !important;
    line-height: 1.38 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  html body .wp-site-blocks .leo-product-collection .wc-block-components-product-price,
  html body .wp-site-blocks .leo-catalog-main ul.products .price {
    padding: 0 0 8px !important;
    font-size: 13px !important;
  }

  html body .wp-site-blocks .leo-mega .leo-panel .leo-col-list li:nth-child(n+5),
  html body .wp-site-blocks .leo-mega .leo-panel .leo-col-guides {
    display: none !important;
  }
  html body .wp-site-blocks .leo-mega .leo-panel-inner {
    padding-bottom: 10px !important;
  }
}

@media (max-width: 420px) {
  html body.single-product .wp-site-blocks h1.wp-block-post-title {
    font-size: 1.75rem !important;
    line-height: 1.1 !important;
  }
  html body .wp-site-blocks .leo-catalog-heading h1 {
    font-size: 2rem !important;
  }
  html body .wp-site-blocks .leo-article h1,
  html body .wp-site-blocks .leo-guides-index h1 {
    font-size: 2.15rem !important;
    line-height: 1.06 !important;
  }
}

/* Active commerce rules. Earlier drafts deliberately sit inside the disabled
   max-width:0 legacy block; keep the production rules outside that block. */
html body.single-product .wp-site-blocks .leo-design-upload {
  width: 100% !important;
  box-sizing: border-box !important;
}
html body.single-product .wp-site-blocks .woocommerce-product-gallery__image > a {
  display: block !important;
  aspect-ratio: 1 / 1;
}
html body.single-product .wp-site-blocks .woocommerce-product-gallery__image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

html body .wp-site-blocks .leo-catalog-shortcuts {
  margin: 0 auto 18px !important;
}
html body .wp-site-blocks .leo-catalog-shortcuts .leo-silo {
  margin: 0 !important;
  padding: 0 0 18px !important;
  border-bottom: 1px solid #e6e6e6 !important;
}
html body .wp-site-blocks .leo-catalog-shortcuts .leo-sec-title {
  margin: 0 0 12px !important;
  font-size: clamp(20px, 2.1vw, 26px) !important;
}

body.woocommerce-cart main,
body.woocommerce-checkout main {
  width: min(100% - 32px, 1120px) !important;
  max-width: 1120px !important;
  margin-inline: auto !important;
  padding-block: 34px 68px !important;
}
body.woocommerce-cart .leo-page-title,
body.woocommerce-checkout .leo-page-title {
  margin: 0 0 24px !important;
  color: #1e376c !important;
}
body.woocommerce-cart .shop_table,
body.woocommerce-checkout .shop_table,
body.woocommerce-checkout #payment {
  border-color: #dedede !important;
  border-radius: 8px !important;
  background: #fff !important;
}
body.woocommerce-cart .coupon .input-text,
body.woocommerce-checkout .form-row input.input-text,
body.woocommerce-checkout .form-row textarea,
body.woocommerce-checkout .select2-selection {
  min-height: 48px !important;
  border: 1px solid #b9bbc1 !important;
  border-radius: 5px !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.woocommerce-cart .button,
body.woocommerce-cart .checkout-button,
body.woocommerce-checkout .button,
body.woocommerce-checkout #place_order {
  min-height: 48px !important;
  border-radius: 5px !important;
  background: #1e376c !important;
  color: #fff !important;
  box-shadow: none !important;
}
body.woocommerce-cart .button:hover,
body.woocommerce-cart .checkout-button:hover,
body.woocommerce-checkout .button:hover,
body.woocommerce-checkout #place_order:hover { background: #152a59 !important; }
body.woocommerce-checkout #payment .payment_box { background: #f5f6f8 !important; }
body.woocommerce-checkout #payment .payment_box::before { border-bottom-color: #f5f6f8 !important; }

@media (max-width: 760px) {
  html body.single-product .wp-site-blocks .woocommerce-product-gallery__wrapper {
    min-height: calc(100vw - 50px);
  }
  html body .wp-site-blocks .leo-catalog-shortcuts {
    overflow: hidden;
    width: 100% !important;
  }
  html body .wp-site-blocks .leo-catalog-shortcuts .leo-chip-grid {
    overflow-x: auto;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    width: 100%;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  html body .wp-site-blocks .leo-catalog-shortcuts .leo-chip {
    flex: 0 0 170px;
    min-width: 170px;
    padding: 11px 0 !important;
    scroll-snap-align: start;
  }
  html body .wp-site-blocks .leo-mega .leo-panel .leo-col-list li:nth-child(n+5),
  html body .wp-site-blocks .leo-mega .leo-panel .leo-col-guides {
    display: none !important;
  }

  body.home main .entry-content,
  body.home main .wp-block-post-content {
    display: flex !important;
    flex-direction: column !important;
  }
  body.home main .entry-content > section:nth-of-type(1),
  body.home main .wp-block-post-content > section:nth-of-type(1) { order: 0; }
  body.home main .entry-content > section:nth-of-type(3),
  body.home main .wp-block-post-content > section:nth-of-type(3) { order: 1; }
  body.home main .entry-content > section:nth-of-type(4),
  body.home main .wp-block-post-content > section:nth-of-type(4) { order: 2; }
  body.home main .entry-content > section:nth-of-type(5),
  body.home main .wp-block-post-content > section:nth-of-type(5) { order: 3; }
  body.home main .entry-content > section:nth-of-type(9),
  body.home main .wp-block-post-content > section:nth-of-type(9) { order: 4; }
  body.home main .entry-content > section:nth-of-type(12),
  body.home main .wp-block-post-content > section:nth-of-type(12) { order: 5; }
  body.home main .entry-content > section:nth-of-type(6),
  body.home main .wp-block-post-content > section:nth-of-type(6) { order: 6; }
  body.home main .entry-content > section:nth-of-type(7),
  body.home main .wp-block-post-content > section:nth-of-type(7) { order: 7; }
  body.home main .entry-content > section:nth-of-type(8),
  body.home main .wp-block-post-content > section:nth-of-type(8) { order: 8; }
  body.home main .entry-content > section:nth-of-type(2),
  body.home main .wp-block-post-content > section:nth-of-type(2) { order: 9; }
  body.home main .entry-content > section:nth-of-type(10),
  body.home main .wp-block-post-content > section:nth-of-type(10) { order: 10; }
  body.home main .entry-content > section:nth-of-type(11),
  body.home main .wp-block-post-content > section:nth-of-type(11) { order: 11; }

  body.woocommerce-cart main,
  body.woocommerce-checkout main {
    width: calc(100% - 32px) !important;
    padding-block: 24px 52px !important;
  }
  body.woocommerce-cart .leo-page-title,
  body.woocommerce-checkout .leo-page-title {
    margin-bottom: 18px !important;
    font-size: 1.85rem !important;
  }
  body.woocommerce-checkout .col2-set .col-1,
  body.woocommerce-checkout .col2-set .col-2,
  body.woocommerce-checkout .form-row-first,
  body.woocommerce-checkout .form-row-last {
    float: none !important;
    width: 100% !important;
  }
  body.woocommerce-checkout #order_review,
  body.woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout #place_order { width: 100% !important; }
  body.woocommerce-cart .coupon {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  body.woocommerce-cart .coupon .input-text,
  body.woocommerce-cart .coupon .button,
  body.woocommerce-cart .checkout-button { width: 100% !important; margin: 0 !important; }
  body.woocommerce-cart table.cart td.actions .coupon {
    float: none !important;
    width: 100% !important;
    grid-template-columns: 1fr !important;
  }
  body.woocommerce-checkout .woocommerce-message .button { display: none !important; }
}

/* Final mobile homepage priority: categories first, products next, then vehicle links. */
@media (max-width: 760px) {
  html body.home .wp-site-blocks main .entry-content > section:nth-of-type(4),
  html body.home .wp-site-blocks main .wp-block-post-content > section:nth-of-type(4) { order: 3 !important; }
  html body.home .wp-site-blocks main .entry-content > section:nth-of-type(5),
  html body.home .wp-site-blocks main .wp-block-post-content > section:nth-of-type(5) { order: 2 !important; }
  html body.home .wp-site-blocks .leo-home-auto-categories .leo-card-body h3 {
    display: block !important;
    overflow: visible !important;
    min-height: 3.75em;
    font-size: 14px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
  }
  html body.home .wp-site-blocks .leo-home-auto-categories .leo-card-body p {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
}

/* Classic WooCommerce cart/checkout is intentionally used because it works with
   the store's single PayPal gateway without the block checkout loading loop. */
body.woocommerce-cart main,
body.woocommerce-checkout main {
  width: min(100% - 32px, 1120px) !important;
  max-width: 1120px !important;
  margin-inline: auto !important;
  padding-block: 34px 68px !important;
}
body.woocommerce-cart .leo-page-title,
body.woocommerce-checkout .leo-page-title {
  margin: 0 0 24px !important;
  color: #1e376c !important;
}
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart_totals,
body.woocommerce-checkout form.checkout {
  color: #151515;
}
body.woocommerce-cart .shop_table,
body.woocommerce-checkout .shop_table,
body.woocommerce-checkout #payment {
  border-color: #dedede !important;
  border-radius: 8px !important;
  background: #fff !important;
}
body.woocommerce-cart .coupon .input-text,
body.woocommerce-checkout .form-row input.input-text,
body.woocommerce-checkout .form-row textarea,
body.woocommerce-checkout .select2-selection {
  min-height: 48px !important;
  border: 1px solid #b9bbc1 !important;
  border-radius: 5px !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.woocommerce-cart .button,
body.woocommerce-cart .checkout-button,
body.woocommerce-checkout .button,
body.woocommerce-checkout #place_order {
  min-height: 48px !important;
  border-radius: 5px !important;
  background: #1e376c !important;
  color: #fff !important;
  box-shadow: none !important;
}
body.woocommerce-cart .button:hover,
body.woocommerce-cart .checkout-button:hover,
body.woocommerce-checkout .button:hover,
body.woocommerce-checkout #place_order:hover { background: #152a59 !important; }
body.woocommerce-checkout #payment .payment_box { background: #f5f6f8 !important; }
body.woocommerce-checkout #payment .payment_box::before { border-bottom-color: #f5f6f8 !important; }

@media (max-width: 760px) {
  body.home main .entry-content,
  body.home main .wp-block-post-content {
    display: flex !important;
    flex-direction: column !important;
  }
  body.home main .entry-content > section:nth-of-type(1),
  body.home main .wp-block-post-content > section:nth-of-type(1) { order: 0; }
  body.home main .entry-content > section:nth-of-type(3),
  body.home main .wp-block-post-content > section:nth-of-type(3) { order: 1; }
  body.home main .entry-content > section:nth-of-type(4),
  body.home main .wp-block-post-content > section:nth-of-type(4) { order: 2; }
  body.home main .entry-content > section:nth-of-type(5),
  body.home main .wp-block-post-content > section:nth-of-type(5) { order: 3; }
  body.home main .entry-content > section:nth-of-type(9),
  body.home main .wp-block-post-content > section:nth-of-type(9) { order: 4; }
  body.home main .entry-content > section:nth-of-type(12),
  body.home main .wp-block-post-content > section:nth-of-type(12) { order: 5; }
  body.home main .entry-content > section:nth-of-type(6),
  body.home main .wp-block-post-content > section:nth-of-type(6) { order: 6; }
  body.home main .entry-content > section:nth-of-type(7),
  body.home main .wp-block-post-content > section:nth-of-type(7) { order: 7; }
  body.home main .entry-content > section:nth-of-type(8),
  body.home main .wp-block-post-content > section:nth-of-type(8) { order: 8; }
  body.home main .entry-content > section:nth-of-type(2),
  body.home main .wp-block-post-content > section:nth-of-type(2) { order: 9; }
  body.home main .entry-content > section:nth-of-type(10),
  body.home main .wp-block-post-content > section:nth-of-type(10) { order: 10; }
  body.home main .entry-content > section:nth-of-type(11),
  body.home main .wp-block-post-content > section:nth-of-type(11) { order: 11; }
  body.home .leo-hero { margin-bottom: 34px !important; }
  body.home .leo-section { margin-bottom: 38px !important; }

  body.woocommerce-cart main,
  body.woocommerce-checkout main {
    width: calc(100% - 32px) !important;
    padding-block: 24px 52px !important;
  }
  body.woocommerce-cart .leo-page-title,
  body.woocommerce-checkout .leo-page-title {
    margin-bottom: 18px !important;
    font-size: 1.85rem !important;
  }
  body.woocommerce-checkout .col2-set .col-1,
  body.woocommerce-checkout .col2-set .col-2,
  body.woocommerce-checkout .form-row-first,
  body.woocommerce-checkout .form-row-last {
    float: none !important;
    width: 100% !important;
  }
  body.woocommerce-checkout .form-row { margin-bottom: 12px !important; }
  body.woocommerce-checkout h3 { margin-top: 24px !important; color: #1e376c; }
  body.woocommerce-checkout #order_review,
  body.woocommerce-checkout #order_review_heading { width: 100% !important; }
  body.woocommerce-checkout #place_order { width: 100% !important; }
  body.woocommerce-cart .coupon {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  body.woocommerce-cart .coupon .input-text,
  body.woocommerce-cart .coupon .button { width: 100% !important; margin: 0 !important; }
  body.woocommerce-cart .checkout-button { width: 100% !important; text-align: center; }
}

/* Footer shell */
body .leo-footer-v2 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0 !important;
  border-top: 0 !important;
  background: #0b0b0c !important;
}
body .leo-footer-v2::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 4%, rgba(255,74,28,.17), transparent 28%),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}
body .leo-footer-v2 .leo-fwrap {
  display: grid !important;
  grid-template-columns: minmax(270px, .9fr) minmax(0, 2.1fr) !important;
  gap: 42px 54px !important;
  max-width: var(--leo-max) !important;
  padding: 62px 20px 30px !important;
}
body .leo-footer-v2 .leo-fbrand {
  align-self: start;
  max-width: none !important;
  margin: 0 !important;
  padding: 27px !important;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px rgba(255,255,255,.06);
}
body .leo-footer-v2 .leo-fbrand-name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px !important;
  color: #fff !important;
  font-family: var(--leo-heading) !important;
  font-size: 27px !important;
  font-weight: 800 !important;
  letter-spacing: .06em;
}
body .leo-footer-v2 .leo-fbrand-name::before {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  content: "";
  border-radius: 7px 7px 7px 2px;
  background: linear-gradient(45deg, var(--leo-accent) 0 38%, #fff 39% 49%, var(--leo-accent) 50% 100%);
  box-shadow: 0 0 0 5px rgba(255,74,28,.1);
}
body .leo-footer-v2 .leo-fbrand-line {
  margin-bottom: 18px !important;
  color: rgba(255,255,255,.68) !important;
  line-height: 1.65 !important;
}
body .leo-footer-v2 .leo-badges { gap: 7px !important; margin-bottom: 16px !important; }
body .leo-footer-v2 .leo-badges li {
  padding: 6px 10px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.06) !important;
  color: #fff !important;
  font-size: 11px !important;
}
body .leo-footer-v2 .leo-badges li::before {
  content: "✓";
  margin-right: 6px;
  color: var(--leo-accent);
  font-weight: 900;
}
body .leo-footer-v2 .leo-ftrust { color: rgba(255,255,255,.7) !important; font-size: 12px !important; }
body .leo-footer-v2 .leo-fpay { color: rgba(255,255,255,.42) !important; font-size: 11px !important; }
body .leo-footer-v2 .leo-fgrid {
  align-self: start;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding: 5px 0 0 !important;
  border-top: 0 !important;
}
body .leo-footer-v2 .leo-fcol {
  min-width: 0;
  padding: 0 21px !important;
  border-left: 1px solid rgba(255,255,255,.12);
}
body .leo-footer-v2 .leo-fcol:first-child { padding-left: 0 !important; border-left: 0; }
body .leo-footer-v2 .leo-fcol-title {
  margin-bottom: 15px !important;
  color: var(--leo-accent) !important;
  font-size: 10px !important;
  letter-spacing: .13em !important;
}
body .leo-footer-v2 .leo-fcol-list li { margin: 0 0 8px !important; }
body .leo-footer-v2 .leo-fcol-list a {
  color: rgba(255,255,255,.7) !important;
  font-size: 12px !important;
  line-height: 1.45;
  text-decoration: none !important;
}
body .leo-footer-v2 .leo-fcol-list a:hover { color: #fff !important; transform: translateX(2px); }
body .leo-footer-v2 .leo-fcol-list .leo-n { display: none !important; }
body .leo-footer-v2 .leo-fsearches {
  grid-column: 1 / -1;
  padding: 24px 0 0 !important;
  border-top: 1px solid rgba(255,255,255,.12) !important;
}
body .leo-footer-v2 .leo-fsearches .leo-fcol-title { margin-bottom: 12px !important; }
body .leo-footer-v2 .leo-fsearches .leo-chips { gap: 7px !important; }
body .leo-footer-v2 .leo-fsearches .leo-chip {
  padding: 7px 10px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.055) !important;
  color: rgba(255,255,255,.7) !important;
  font-size: 10.5px !important;
}
body .leo-footer-v2 .leo-fsearches .leo-chip:hover {
  border-color: rgba(255,74,28,.6) !important;
  background: rgba(255,74,28,.14) !important;
  color: #fff !important;
}
body .leo-footer-v2 .leo-fsearches .leo-chip-count { display: none !important; }
body .leo-footer-v2 .leo-fbottom {
  grid-column: 1 / -1;
  align-items: center;
  margin: 0 !important;
  padding: 19px 0 0 !important;
  border-top: 1px solid rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.45) !important;
  font-size: 10.5px !important;
}
body .leo-footer-v2 .leo-fbottom a { color: rgba(255,255,255,.65) !important; }

/* Contact callout */
body .leo-footer-v2 .leo-contact-wrap {
  max-width: var(--leo-max) !important;
  margin: 0 auto !important;
  padding: 0 20px 50px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
body .leo-footer-v2 .leo-contact-card {
  display: grid !important;
  grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr) !important;
  align-items: center;
  gap: 18px 42px;
  padding: 28px 32px !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: linear-gradient(125deg, #ff4a1c, #ff6a3f) !important;
  color: #fff !important;
  box-shadow: 0 18px 45px rgba(255,74,28,.17);
}
body .leo-footer-v2 .leo-contact-title {
  margin: 0 0 5px !important;
  color: #fff !important;
  font-size: 27px !important;
  line-height: 1;
}
body .leo-footer-v2 .leo-contact-intro {
  grid-column: 1;
  margin: 0 !important;
  color: rgba(255,255,255,.86) !important;
  font-size: 12px !important;
}
body .leo-footer-v2 .leo-contact-list {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body .leo-footer-v2 .leo-contact-list li {
  min-width: 0;
  margin: 0 !important;
  padding: 12px 13px !important;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  background: rgba(11,11,12,.13);
  color: #fff !important;
  font-size: 11px !important;
  overflow-wrap: anywhere;
}
body .leo-footer-v2 .leo-contact-list a { color: #fff !important; font-weight: 700; }

/* Trust and payments close the page as a quiet white utility band. */
body .leo-footer-v2 + .leo-trust-row,
body .leo-trust-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 22px max(20px, calc((100vw - var(--leo-max)) / 2)) !important;
  border: 0 !important;
  background: #fff !important;
}
body .leo-trust-row > .leo-trust-item {
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 4px 22px !important;
  border: 0 !important;
  border-left: 1px solid var(--leo-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--leo-ink) !important;
  text-align: left !important;
}
body .leo-trust-row > .leo-trust-item:first-child { border-left: 0 !important; padding-left: 0 !important; }
body .leo-trust-item::before { color: var(--leo-accent) !important; }
body .leo-trust-item strong { display: block; margin-bottom: 2px; font-size: 12px; }
body .leo-trust-item span { display: block; color: var(--leo-muted); font-size: 10.5px; line-height: 1.45; }
body .leo-pay {
  justify-content: center !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 14px 20px 22px !important;
  border-top: 1px solid var(--leo-line);
  background: #fff !important;
}
body .leo-pay-label { margin-right: 8px; color: var(--leo-muted) !important; font-size: 9px !important; letter-spacing: .12em !important; }
body .leo-pay-badge { height: 23px !important; border-color: var(--leo-line) !important; border-radius: 5px !important; }

@media (max-width: 1023px) {
  body .leo-mega-burger {
    border: 0 !important;
    background: var(--leo-ink) !important;
    color: #fff !important;
    box-shadow: 0 7px 18px rgba(11,11,12,.14);
  }
  body .leo-mega-burger:hover { background: var(--leo-accent) !important; }
  body .leo-burger-bars {
    background: #fff !important;
    box-shadow: 0 5px 0 #fff, 0 -5px 0 #fff !important;
  }
  body .leo-mega-bar {
    padding: 22px 20px 48px !important;
    border: 0 !important;
    background: #0b0b0c !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
  }
  body .leo-mega-item { border-bottom: 1px solid rgba(255,255,255,.12) !important; }
  body .leo-mega .leo-top-btn,
  body .leo-mega .leo-top-link {
    min-height: 54px;
    color: #fff !important;
    font-size: 15px !important;
  }
  body .leo-mega .leo-top-btn::after,
  body .leo-mega .leo-top-link::after { color: var(--leo-accent) !important; }
  body .leo-mega .leo-top-btn:hover,
  body .leo-mega-item.is-open > .leo-top-btn { color: #fff !important; background: rgba(255,74,28,.14) !important; }
  body .leo-mega .leo-panel { padding: 0 0 14px !important; }
  body .leo-mega .leo-panel-inner {
    gap: 18px !important;
    padding: 18px !important;
    border: 0 !important;
    border-left: 3px solid var(--leo-accent) !important;
    border-radius: 0 13px 13px 0 !important;
    background: #171719 !important;
    box-shadow: none !important;
  }
  body .leo-mega .leo-col-list a,
  body .leo-mega .leo-all { color: rgba(255,255,255,.78) !important; }
  body .leo-mega .leo-col-list a:hover { background: rgba(255,255,255,.07) !important; color: #fff !important; }
  body .leo-mega .leo-n { background: rgba(255,255,255,.09) !important; color: rgba(255,255,255,.58) !important; }
  body .leo-mega .leo-panel-foot { border-color: rgba(255,255,255,.12) !important; }
  body .leo-footer-v2 .leo-fwrap {
    grid-template-columns: 1fr !important;
    gap: 34px !important;
  }
  body .leo-footer-v2 .leo-fbrand { max-width: 520px !important; }
  body .leo-footer-v2 .leo-fgrid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (max-width: 760px) {
  body .leo-footer-v2 .leo-fwrap {
    display: block !important;
    padding: 38px 16px 24px !important;
  }
  body .leo-footer-v2 .leo-fbrand {
    margin-bottom: 32px !important;
    padding: 22px !important;
    border-radius: 17px;
  }
  body .leo-footer-v2 .leo-fbrand-name { font-size: 23px !important; }
  body .leo-footer-v2 .leo-fgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 27px 16px !important;
    padding-top: 0 !important;
  }
  body .leo-footer-v2 .leo-fcol,
  body .leo-footer-v2 .leo-fcol:first-child {
    padding: 0 !important;
    border-left: 0 !important;
  }
  body .leo-footer-v2 .leo-fcol-title { margin-bottom: 11px !important; }
  body .leo-footer-v2 .leo-fcol-list li { margin-bottom: 7px !important; }
  body .leo-footer-v2 .leo-fcol-list a { font-size: 11px !important; }
  body .leo-footer-v2 .leo-fsearches { margin-top: 30px !important; padding-top: 22px !important; }
  body .leo-footer-v2 .leo-fsearches .leo-chip:nth-child(n+9) { display: none !important; }
  body .leo-footer-v2 .leo-fbottom { margin-top: 24px !important; gap: 8px !important; }
  body .leo-footer-v2 .leo-contact-wrap { padding: 0 16px 36px !important; }
  body .leo-footer-v2 .leo-contact-card {
    display: block !important;
    padding: 24px 21px !important;
    border-radius: 17px !important;
  }
  body .leo-footer-v2 .leo-contact-title { font-size: 24px !important; }
  body .leo-footer-v2 .leo-contact-intro { margin: 7px 0 18px !important; }
  body .leo-footer-v2 .leo-contact-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }
  body .leo-footer-v2 .leo-contact-list li { padding: 10px 12px !important; }
  body .leo-footer-v2 + .leo-trust-row,
  body .leo-trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px 0 !important;
    padding: 24px 16px !important;
  }
  body .leo-trust-row > .leo-trust-item,
  body .leo-trust-row > .leo-trust-item:first-child {
    padding: 0 12px !important;
    border-left: 1px solid var(--leo-line) !important;
  }
  body .leo-trust-row > .leo-trust-item:nth-child(odd) { padding-left: 0 !important; border-left: 0 !important; }
  body .leo-pay { padding-inline: 16px !important; }
}

@media (max-width: 420px) {
  body .leo-footer-v2 .leo-fsearches .leo-chip:nth-child(n+7) { display: none !important; }
}

/* ========================================================================== 
   Sticker Studio theme v4 — warm editorial canvas, graphic outlines and
   offset print-shop shadows. This layer is intentionally a full chrome reset.
   ========================================================================== */

body .leo-announce {
  border-bottom: 2px solid var(--leo-ink) !important;
  background: var(--leo-accent) !important;
  color: #fff !important;
}
body .leo-announce-inner > span::before { background: var(--leo-ink) !important; }
body .leo-announce a { color: #fff !important; text-decoration-thickness: 2px !important; }

body header.wp-block-template-part,
body .wp-block-template-part > header,
body .leo-header-shell {
  background: #f5efe5 !important;
}
body header.wp-block-template-part,
body .wp-block-template-part > header {
  border-bottom: 2px solid var(--leo-ink) !important;
  box-shadow: 0 7px 0 rgba(11,11,12,.07) !important;
}
body .leo-header-shell { padding-top: 14px !important; padding-bottom: 13px !important; }
body .leo-logo-img { height: 42px !important; }
body .leo-search {
  border: 2px solid var(--leo-ink) !important;
  background: #fff !important;
  box-shadow: 3px 3px 0 var(--leo-ink) !important;
}
body .leo-search:focus-within {
  border-color: var(--leo-ink) !important;
  box-shadow: 3px 3px 0 var(--leo-accent), 0 0 0 4px rgba(255,74,28,.12) !important;
}
body .leo-search-btn { color: var(--leo-ink) !important; }
body .leo-search-btn:hover { background: var(--leo-accent) !important; color: #fff !important; }
body .leo-header-actions .wc-block-customer-account__link,
body .leo-header-actions .wc-block-mini-cart__button {
  border: 2px solid transparent !important;
}
body .leo-header-actions .wc-block-customer-account__link:hover,
body .leo-header-actions .wc-block-mini-cart__button:hover {
  border-color: var(--leo-ink) !important;
  background: #fff !important;
  color: var(--leo-ink) !important;
  box-shadow: 2px 2px 0 var(--leo-accent);
}

@media (min-width: 1024px) {
  body .leo-mega-bar {
    padding: 4px !important;
    border: 2px solid var(--leo-ink) !important;
    border-radius: 13px !important;
    background: #fffaf2 !important;
    box-shadow: 7px 7px 0 var(--leo-ink) !important;
  }
  body .leo-mega .leo-top-link,
  body .leo-mega .leo-top-btn {
    color: var(--leo-ink) !important;
    font-weight: 750 !important;
  }
  body .leo-mega .leo-top-link::after,
  body .leo-mega .leo-top-btn::after { color: var(--leo-accent) !important; }
  body .leo-mega .leo-top-link:hover,
  body .leo-mega .leo-top-btn:hover,
  body .leo-mega-item.is-open > .leo-top-link,
  body .leo-mega-item.is-open > .leo-top-btn {
    background: var(--leo-accent) !important;
    color: #fff !important;
  }
}

body .leo-mega .leo-panel-inner {
  border: 2px solid var(--leo-ink) !important;
  border-top: 2px solid var(--leo-ink) !important;
  border-radius: 16px !important;
  background: #fffaf2 !important;
  box-shadow: 9px 9px 0 var(--leo-ink) !important;
}
body .leo-mega .leo-col-title { color: var(--leo-accent) !important; }
body .leo-mega .leo-col-list a:hover {
  background: var(--leo-accent) !important;
  color: #fff !important;
}
body .leo-mega .leo-n {
  border: 1px solid rgba(11,11,12,.13);
  background: #fff !important;
  color: var(--leo-ink) !important;
}
body .leo-mega .leo-col-cta {
  border: 2px solid var(--leo-ink) !important;
  background: var(--leo-ink) !important;
  box-shadow: 4px 4px 0 var(--leo-accent);
}
body .leo-mega .leo-tile { border: 2px solid var(--leo-ink) !important; }

/* Cream editorial footer */
body .leo-footer-v2 {
  border-top: 2px solid var(--leo-ink) !important;
  background: #f3ecdf !important;
  color: var(--leo-ink) !important;
}
body .leo-footer-v2::before {
  opacity: .8;
  background:
    radial-gradient(circle at 12% 5%, rgba(255,74,28,.22), transparent 24%),
    radial-gradient(circle, rgba(11,11,12,.12) 1px, transparent 1.5px) !important;
  background-size: auto, 22px 22px !important;
}
body .leo-footer-v2 .leo-fbrand {
  border: 2px solid var(--leo-ink) !important;
  background: var(--leo-ink) !important;
  box-shadow: 8px 8px 0 var(--leo-accent) !important;
}
body .leo-footer-v2 .leo-fbrand-name { color: #fff !important; }
body .leo-footer-v2 .leo-fbrand-name::before {
  background: linear-gradient(45deg, var(--leo-accent) 0 45%, #fff 46% 55%, var(--leo-accent) 56% 100%) !important;
}
body .leo-footer-v2 .leo-fbrand-line { color: rgba(255,255,255,.72) !important; }
body .leo-footer-v2 .leo-badges li {
  border-color: rgba(255,255,255,.24) !important;
  background: rgba(255,255,255,.08) !important;
}
body .leo-footer-v2 .leo-ftrust { color: rgba(255,255,255,.72) !important; }
body .leo-footer-v2 .leo-fpay { color: rgba(255,255,255,.46) !important; }
body .leo-footer-v2 .leo-fcol { border-color: rgba(11,11,12,.18) !important; }
body .leo-footer-v2 .leo-fcol-title { color: var(--leo-accent) !important; }
body .leo-footer-v2 .leo-fcol-list a {
  color: rgba(11,11,12,.72) !important;
  font-weight: 550;
}
body .leo-footer-v2 .leo-fcol-list a:hover { color: var(--leo-accent) !important; }
body .leo-footer-v2 .leo-fsearches,
body .leo-footer-v2 .leo-fbottom { border-color: rgba(11,11,12,.2) !important; }
body .leo-footer-v2 .leo-fsearches .leo-chip {
  border: 1.5px solid var(--leo-ink) !important;
  background: #fffaf2 !important;
  color: var(--leo-ink) !important;
  box-shadow: 2px 2px 0 rgba(11,11,12,.18);
}
body .leo-footer-v2 .leo-fsearches .leo-chip:hover {
  border-color: var(--leo-ink) !important;
  background: var(--leo-accent) !important;
  color: #fff !important;
  transform: translate(-1px,-1px);
  box-shadow: 4px 4px 0 var(--leo-ink);
}
body .leo-footer-v2 .leo-fbottom { color: rgba(11,11,12,.54) !important; }
body .leo-footer-v2 .leo-fbottom a { color: var(--leo-ink) !important; font-weight: 650; }
body .leo-footer-v2 .leo-contact-card {
  border: 2px solid var(--leo-ink) !important;
  background: var(--leo-accent) !important;
  box-shadow: 8px 8px 0 var(--leo-ink) !important;
}
body .leo-footer-v2 .leo-contact-list li {
  border: 1.5px solid var(--leo-ink) !important;
  background: #fffaf2 !important;
  color: var(--leo-ink) !important;
}
body .leo-footer-v2 .leo-contact-list a { color: var(--leo-ink) !important; }
body .leo-footer-v2 .leo-contact-intro { color: #fff !important; }

body .leo-footer-v2 + .leo-trust-row,
body .leo-trust-row {
  border-top: 2px solid var(--leo-ink) !important;
  background: var(--leo-ink) !important;
}
body .leo-trust-row > .leo-trust-item {
  border-color: rgba(255,255,255,.18) !important;
  color: #fff !important;
}
body .leo-trust-item strong { color: #fff !important; }
body .leo-trust-item span { color: rgba(255,255,255,.62) !important; }
body .leo-pay {
  border-top: 2px solid var(--leo-ink) !important;
  background: #f3ecdf !important;
}
body .leo-pay-label { color: var(--leo-ink) !important; font-weight: 800; }

@media (max-width: 1023px) {
  body .leo-mega-burger {
    border: 2px solid var(--leo-ink) !important;
    background: var(--leo-accent) !important;
    color: #fff !important;
    box-shadow: 4px 4px 0 var(--leo-ink) !important;
  }
  body .leo-mega-burger:hover { background: var(--leo-ink) !important; }
  body .leo-mega-bar {
    border-right: 2px solid var(--leo-ink) !important;
    background: #f5efe5 !important;
  }
  body .leo-mega-item { border-color: rgba(11,11,12,.18) !important; }
  body .leo-mega .leo-top-btn,
  body .leo-mega .leo-top-link { color: var(--leo-ink) !important; }
  body .leo-mega .leo-top-btn:hover,
  body .leo-mega-item.is-open > .leo-top-btn {
    border-radius: 12px !important;
    background: var(--leo-accent) !important;
    color: #fff !important;
  }
  body .leo-mega .leo-panel-inner {
    border: 2px solid var(--leo-ink) !important;
    border-left: 5px solid var(--leo-accent) !important;
    border-radius: 0 13px 13px 0 !important;
    background: #fffaf2 !important;
    box-shadow: 5px 5px 0 var(--leo-ink) !important;
  }
  body .leo-mega .leo-col-list a,
  body .leo-mega .leo-all { color: var(--leo-ink) !important; }
  body .leo-mega .leo-col-list a:hover { background: var(--leo-accent) !important; color: #fff !important; }
  body .leo-mega .leo-n { background: #f3ecdf !important; color: var(--leo-ink) !important; }
  body .leo-mega .leo-panel-foot { border-color: rgba(11,11,12,.18) !important; }
}

@media (max-width: 760px) {
  body .leo-logo-img { height: 34px !important; }
  body .leo-footer-v2 .leo-fbrand { box-shadow: 5px 5px 0 var(--leo-accent) !important; }
  body .leo-footer-v2 .leo-fcol { border-color: transparent !important; }
  body .leo-footer-v2 .leo-contact-card { box-shadow: 5px 5px 0 var(--leo-ink) !important; }
  body .leo-footer-v2 + .leo-trust-row,
  body .leo-trust-row { border-top-color: var(--leo-accent) !important; }
}

/* The Hermes storefront skin prints a final inline palette. These scoped
   selectors keep the new Sticker Studio chrome intentional without touching
   its MU-plugin ownership. */
html body .wp-site-blocks .leo-footer-v2 {
  border-top: 2px solid #020912 !important;
  background: #f3ecdf !important;
  color: #020912 !important;
}
html body .wp-site-blocks .leo-footer-v2 .leo-fbrand-name { color: #fff !important; }
html body .wp-site-blocks .leo-footer-v2 .leo-fbrand-line,
html body .wp-site-blocks .leo-footer-v2 .leo-ftrust { color: rgba(255,255,255,.72) !important; }
html body .wp-site-blocks .leo-footer-v2 .leo-fpay { color: rgba(255,255,255,.46) !important; }
html body .wp-site-blocks .leo-footer-v2 .leo-fcol-title { color: #ce202f !important; }
html body .wp-site-blocks .leo-footer-v2 .leo-contact-title,
html body .wp-site-blocks .leo-footer-v2 .leo-contact-intro { color: #fff !important; }
html body .wp-site-blocks .leo-footer-v2 .leo-contact-list,
html body .wp-site-blocks .leo-footer-v2 .leo-contact-list li,
html body .wp-site-blocks .leo-footer-v2 .leo-contact-list a { color: #020912 !important; }
html body .wp-site-blocks .leo-footer-v2 .leo-fbottom { color: rgba(2,9,18,.55) !important; }

/* Homepage closing CTA sits on ink, so its forced Dawn heading needs a light
   treatment in this theme. */
html body.home .wp-site-blocks main .entry-content > :last-child h2,
html body.home .wp-site-blocks main .wp-block-post-content > :last-child h2 { color: #fff !important; }

@media (max-width: 1023px) {
  html body .wp-site-blocks .leo-mega .leo-top-btn {
    min-height: 54px !important;
    padding: 10px 4px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #020912 !important;
  }
  html body .wp-site-blocks .leo-mega .leo-top-btn:hover,
  html body .wp-site-blocks .leo-mega .leo-mega-item.is-open > .leo-top-btn {
    border-radius: 12px !important;
    background: #ce202f !important;
    color: #fff !important;
  }
}

@media (max-width: 860px) {
  html body .wp-site-blocks .leo-header-actions .leo-search {
    display: flex !important;
    width: 100% !important;
  }
}
}

/* ========================================================================== 
   Stickios-inspired flat storefront v5
   White header, plain navigation, navy/red brand palette and a compact footer.
   ========================================================================== */

:root {
  --leo-navy: #1e376c !important;
  --leo-navy-dark: #16294f !important;
  --leo-accent: #ce202f !important;
  --leo-ink: #020912 !important;
  --leo-body: #3a3a3a !important;
  --leo-muted: #6b7280 !important;
  --leo-line: #e6e6e6 !important;
  --leo-bg-soft: #f6f6f6 !important;
  --leo-radius: 8px !important;
  --leo-shadow: none !important;
  --leo-shadow-hover: none !important;
  --leo-max: 1200px !important;
}

html body .wp-site-blocks .leo-announce {
  min-height: 36px;
  padding: 0 !important;
  border: 0 !important;
  background: #1e376c !important;
  color: #fff !important;
}
html body .wp-site-blocks .leo-announce-inner {
  justify-content: center !important;
  min-height: 36px;
  padding: 8px 18px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .03em;
  text-transform: uppercase;
}
html body .wp-site-blocks .leo-announce-inner > span:not(:first-child) { display: none !important; }
html body .wp-site-blocks .leo-announce-inner > span::before { display: none !important; }

html body header.wp-block-template-part,
html body .wp-block-template-part > header {
  position: sticky;
  top: 0;
  z-index: 100;
  margin-block-start: 0 !important;
  border-bottom: 1px solid #e6e6e6 !important;
  background: #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
html body .wp-site-blocks .leo-header-shell {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 24px !important;
  border: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
html body .wp-site-blocks .leo-header-row {
  width: min(100%, 1200px) !important;
  max-width: 1200px !important;
  min-height: 98px;
  margin: 0 auto !important;
  padding: 0 !important;
  gap: 34px !important;
}
html body .wp-site-blocks .leo-logo-img {
  width: auto !important;
  height: 36px !important;
  max-width: 204px !important;
}
html body .wp-site-blocks .leo-header-actions { gap: 13px !important; }
html body .wp-site-blocks .leo-header-actions .wc-block-customer-account__link,
html body .wp-site-blocks .leo-header-actions .wc-block-mini-cart__button {
  width: 34px !important;
  height: 34px !important;
  padding: 5px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #020912 !important;
  box-shadow: none !important;
}
html body .wp-site-blocks .leo-header-actions .wc-block-customer-account__link:hover,
html body .wp-site-blocks .leo-header-actions .wc-block-mini-cart__button:hover { color: #ce202f !important; }
html body .wp-site-blocks .leo-search {
  display: flex !important;
  flex: 0 0 34px;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body .wp-site-blocks .leo-search-input { display: none !important; }
html body .wp-site-blocks .leo-search-btn {
  display: grid !important;
  place-items: center;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 5px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #020912 !important;
}
html body .wp-site-blocks .leo-search-btn:hover { color: #ce202f !important; }

@media (min-width: 1024px) {
  html body .wp-site-blocks .leo-header-row {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
  }
  html body .wp-site-blocks .leo-header-row > .wp-block-site-title { grid-column: 1; grid-row: 1; }
  html body .wp-site-blocks .leo-header-row > .leo-mega {
    grid-column: 2;
    grid-row: 1;
    order: initial !important;
    flex: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html body .wp-site-blocks .leo-header-row > .leo-header-actions {
    grid-column: 3;
    grid-row: 1;
    margin: 0 !important;
  }
  html body .wp-site-blocks .leo-mega-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: clamp(14px, 1.55vw, 26px) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html body .wp-site-blocks .leo-mega-bar > .leo-mega-item { flex: 0 0 auto !important; }
  html body .wp-site-blocks .leo-mega .leo-top-link,
  html body .wp-site-blocks .leo-mega .leo-top-btn {
    justify-content: center !important;
    width: auto !important;
    min-height: 34px !important;
    padding: 6px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #3a3a3a !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0;
  }
  html body .wp-site-blocks .leo-mega .leo-top-link::after,
  html body .wp-site-blocks .leo-mega .leo-top-btn::after { display: none !important; }
  html body .wp-site-blocks .leo-mega .leo-top-link:hover,
  html body .wp-site-blocks .leo-mega .leo-top-btn:hover,
  html body .wp-site-blocks .leo-mega-item.is-open > .leo-top-link,
  html body .wp-site-blocks .leo-mega-item.is-open > .leo-top-btn {
    background: transparent !important;
    color: #ce202f !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
  }
}

html body .wp-site-blocks .leo-mega .leo-panel { padding: 12px 14px 0 !important; }
html body .wp-site-blocks .leo-mega .leo-panel-inner {
  padding: 24px !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 12px 30px rgba(2,9,18,.11) !important;
}
html body .wp-site-blocks .leo-mega .leo-col-cta {
  border: 0 !important;
  border-radius: 8px !important;
  background: #f6f6f6 !important;
  box-shadow: none !important;
}
html body .wp-site-blocks .leo-mega .leo-col-cta .leo-cta-text { color: #6b7280 !important; }
html body .wp-site-blocks .leo-mega .leo-cta-btn {
  border: 0 !important;
  border-radius: 6px !important;
  background: #1e376c !important;
  color: #fff !important;
}
html body .wp-site-blocks .leo-mega .leo-tile {
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

/* Flat homepage and commerce cards: imagery first, no card-on-card containers. */
html body.home .wp-site-blocks .leo-hero {
  padding: 48px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}
html body.home .wp-site-blocks .leo-hero img { border-radius: 0 !important; box-shadow: none !important; }
html body.home .wp-site-blocks .leo-card {
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.home .wp-site-blocks .leo-card:hover { transform: none !important; box-shadow: none !important; }
html body.home .wp-site-blocks .leo-card img { border-radius: 0 !important; }
html body.home .wp-site-blocks .leo-card-body { padding: 13px 0 0 !important; }
html body.home .wp-site-blocks .leo-card-body h3 { font-size: 16px !important; }

/* Keep the homepage information architecture flat: dividers instead of panels. */
html body.home .wp-site-blocks .leo-faq details {
  margin: 0 !important;
  padding: 18px 0 !important;
  border: 0 !important;
  border-top: 1px solid #e6e6e6 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.home .wp-site-blocks .leo-faq details:last-child {
  border-bottom: 1px solid #e6e6e6 !important;
}
html body.home .wp-site-blocks .entry-content > .leo-section:last-child > div {
  padding: 42px 0 !important;
  border: 0 !important;
  border-top: 1px solid #e6e6e6 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #3a3a3a !important;
  box-shadow: none !important;
}
html body.home .wp-site-blocks .entry-content > .leo-section:last-child h2 { color: #1e376c !important; }
html body.home .wp-site-blocks .entry-content > .leo-section:last-child p { color: #3a3a3a !important; }
html body.home .wp-site-blocks .entry-content > .leo-section:last-child .leo-btn {
  border-color: #1e376c !important;
  background: #1e376c !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Catalog pages use the same open, divider-led composition. */
html body .wp-site-blocks .leo-catalog-heading {
  margin-bottom: 22px !important;
  padding: 34px 0 28px !important;
  border: 0 !important;
  border-bottom: 1px solid #e6e6e6 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body .wp-site-blocks .leo-catalog-toolbar {
  margin-bottom: 20px !important;
  padding: 12px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e6e6e6 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body .wp-site-blocks .leo-catalog-toolbar select {
  border-color: #d8d8d8 !important;
  border-radius: 3px !important;
  background-color: #fff !important;
  box-shadow: none !important;
}
html body .wp-site-blocks .leo-catalog-discovery .leo-silo {
  padding: 26px 0 !important;
  border: 0 !important;
  border-top: 1px solid #e6e6e6 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body .wp-site-blocks .leo-chip {
  padding: 13px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e6e6e6 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body .wp-site-blocks .leo-chip:hover {
  border-color: #ce202f !important;
  background: transparent !important;
  color: #ce202f !important;
  transform: none !important;
}

/* Editorial lists stay lightweight like the reference store: text, image, line. */
html body .wp-site-blocks .leo-post-card,
html body .wp-site-blocks .leo-guide-card,
html body .wp-site-blocks .leo-search-card {
  border: 0 !important;
  border-bottom: 1px solid #e6e6e6 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
html body .wp-site-blocks .leo-post-card:hover,
html body .wp-site-blocks .leo-guide-card:hover,
html body .wp-site-blocks .leo-search-card:hover {
  box-shadow: none !important;
  transform: none !important;
}
html body .wp-site-blocks .leo-post-card-body,
html body .wp-site-blocks .leo-guide-card-body,
html body .wp-site-blocks .leo-search-card-body {
  padding: 18px 0 28px !important;
}

html body .wp-site-blocks .leo-product-collection ul.wc-block-product-template > li,
html body .wp-site-blocks .leo-catalog-main ul.products > li {
  overflow: visible;
  padding-bottom: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body .wp-site-blocks .leo-product-collection ul.wc-block-product-template > li:hover,
html body .wp-site-blocks .leo-catalog-main ul.products > li:hover { transform: none !important; box-shadow: none !important; }
html body .wp-site-blocks .leo-product-collection .wc-block-components-product-image img,
html body .wp-site-blocks .leo-catalog-main ul.products img {
  padding: 0 !important;
  border-radius: 8px !important;
  background: #f6f6f6 !important;
}
html body .wp-site-blocks .leo-product-collection .wp-block-post-title,
html body .wp-site-blocks .leo-catalog-main ul.products .woocommerce-loop-product__title {
  padding: 12px 0 5px !important;
}
html body .wp-site-blocks .leo-product-collection .wc-block-components-product-price,
html body .wp-site-blocks .leo-catalog-main ul.products .price { padding: 0 0 8px !important; }
html body .wp-site-blocks .leo-product-collection .wp-block-button__link,
html body .wp-site-blocks .leo-product-collection .wc-block-components-product-button__button,
html body .wp-site-blocks .leo-catalog-main ul.products .button { margin: 0 !important; }

/* Footer: one centered menu band like the reference, followed by payments. */
html body .wp-site-blocks .leo-footer-v2 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 5px solid #ce202f !important;
  background: #1e376c !important;
  color: #fff !important;
  box-shadow: none !important;
}
html body .wp-site-blocks .leo-footer-v2::before { display: none !important; }
html body .wp-site-blocks .leo-footer-v2 .leo-fwrap {
  display: block !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 44px 24px 22px !important;
}
html body .wp-site-blocks .leo-footer-v2 .leo-fbrand,
html body .wp-site-blocks .leo-footer-v2 .leo-fsearches,
html body .wp-site-blocks .leo-footer-v2 .leo-contact-wrap { display: none !important; }
html body .wp-site-blocks .leo-footer-v2 .leo-fgrid {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
}
html body .wp-site-blocks .leo-footer-v2 .leo-fcol { display: none !important; }
html body .wp-site-blocks .leo-footer-v2 .leo-fcol:nth-child(3) {
  display: block !important;
  max-width: 850px;
  margin: 0 auto;
  padding: 0 !important;
  border: 0 !important;
  text-align: center;
}
html body .wp-site-blocks .leo-footer-v2 .leo-fcol:nth-child(3)::before {
  display: block;
  margin: 0 0 24px;
  content: "Menu";
  color: #fff;
  font-family: var(--leo-heading);
  font-size: 18px;
  font-weight: 700;
}
html body .wp-site-blocks .leo-footer-v2 .leo-fcol:nth-child(3) .leo-fcol-title { display: none !important; }
html body .wp-site-blocks .leo-footer-v2 .leo-fcol-list {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin: 0 !important;
  padding: 0 !important;
}
html body .wp-site-blocks .leo-footer-v2 .leo-fcol-list li {
  margin: 0 !important;
  padding: 0 !important;
}
html body .wp-site-blocks .leo-footer-v2 .leo-fcol-list li:nth-child(1),
html body .wp-site-blocks .leo-footer-v2 .leo-fcol-list li:nth-child(2),
html body .wp-site-blocks .leo-footer-v2 .leo-fcol-list li:nth-child(6) { display: none !important; }
html body .wp-site-blocks .leo-footer-v2 .leo-fcol-list a {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}
html body .wp-site-blocks .leo-footer-v2 .leo-fcol-list a:hover { color: #fff !important; text-decoration: underline !important; }
html body .wp-site-blocks .leo-footer-v2 .leo-fbottom {
  display: flex !important;
  justify-content: center !important;
  gap: 8px 18px !important;
  margin: 38px 0 0 !important;
  padding: 20px 0 0 !important;
  border-top: 1px solid rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.72) !important;
  font-size: 11px !important;
  text-align: center;
}
html body .wp-site-blocks .leo-footer-v2 .leo-fbottom p { color: rgba(255,255,255,.72) !important; }
html body .wp-site-blocks .leo-footer-v2 .leo-fbottom a { color: #fff !important; }
html body .wp-site-blocks .leo-trust-row { display: none !important; }
html body .wp-site-blocks .leo-pay {
  justify-content: center !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 15px 20px 24px !important;
  border: 0 !important;
  border-top: 1px solid rgba(255,255,255,.1) !important;
  background: #1e376c !important;
}
html body .wp-site-blocks .leo-pay-label { color: rgba(255,255,255,.65) !important; }
html body .wp-site-blocks .leo-pay-badge {
  height: 22px !important;
  padding: 2px 5px !important;
  border: 0 !important;
  border-radius: 3px !important;
  background: #fff !important;
}

@media (max-width: 1023px) {
  html body .wp-site-blocks .leo-header-shell { padding-inline: 18px !important; }
  html body .wp-site-blocks .leo-header-row {
    display: grid !important;
    grid-template-columns: minmax(130px, 1fr) auto auto auto !important;
    min-height: 78px;
    gap: 8px !important;
  }
  html body .wp-site-blocks .leo-logo-img { height: 34px !important; max-width: 160px !important; }
  html body .wp-site-blocks .leo-header-actions { display: contents !important; }
  html body .wp-site-blocks .leo-header-actions .leo-search { display: none !important; }
  html body .wp-site-blocks .leo-header-row > .leo-mega {
    grid-column: 2;
    grid-row: 1;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  html body .wp-site-blocks .leo-header-actions .wp-block-woocommerce-customer-account { grid-column: 3; grid-row: 1; }
  html body .wp-site-blocks .leo-header-actions .wp-block-woocommerce-mini-cart { grid-column: 4; grid-row: 1; }
  html body .wp-site-blocks .leo-mega-burger {
    min-width: 34px;
    width: 34px;
    height: 34px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #020912 !important;
    box-shadow: none !important;
    font-size: 0 !important;
  }
  html body .wp-site-blocks .leo-mega-burger::before { content: "☰"; font-size: 21px; line-height: 1; }
  html body .wp-site-blocks .leo-burger-bars { display: none !important; }
  html body .wp-site-blocks .leo-mega-bar {
    justify-content: flex-start !important;
    align-items: stretch !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    padding: 16px 22px 38px !important;
    border: 0 !important;
    border-top: 1px solid #e6e6e6 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  html body .wp-site-blocks .leo-mega-item { border-bottom: 1px solid #e6e6e6 !important; }
  html body .wp-site-blocks .leo-mega .leo-top-btn {
    min-height: 50px !important;
    padding: 10px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #020912 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
  }
  html body .wp-site-blocks .leo-mega .leo-top-btn:hover,
  html body .wp-site-blocks .leo-mega .leo-mega-item.is-open > .leo-top-btn {
    background: transparent !important;
    color: #ce202f !important;
  }
  html body .wp-site-blocks .leo-mega .leo-panel { padding: 0 0 16px !important; }
  html body .wp-site-blocks .leo-mega .leo-panel-inner {
    display: block !important;
    padding: 16px 0 10px !important;
    border: 0 !important;
    border-left: 2px solid #ce202f !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  html body .wp-site-blocks .leo-mega .leo-panel-main {
    display: block !important;
  }
  html body .wp-site-blocks .leo-mega .leo-col {
    margin: 0 !important;
    padding: 16px 0 16px 18px !important;
    border: 0 !important;
    border-bottom: 1px solid #e6e6e6 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html body .wp-site-blocks .leo-mega .leo-col-title {
    margin: 0 0 8px !important;
    color: #1e376c !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
  }
  html body .wp-site-blocks .leo-mega .leo-col-list {
    display: block !important;
    margin: 0 !important;
  }
  html body .wp-site-blocks .leo-mega .leo-col-list li { margin: 0 !important; }
  html body .wp-site-blocks .leo-mega .leo-col-list a {
    display: flex !important;
    min-height: 0 !important;
    padding: 7px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #3a3a3a !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    box-shadow: none !important;
  }
  html body .wp-site-blocks .leo-mega .leo-col-list a:hover { color: #ce202f !important; }
  html body .wp-site-blocks .leo-mega .leo-n {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #6b7280 !important;
    font-size: 11px !important;
  }
  html body .wp-site-blocks .leo-mega .leo-tiles { display: none !important; }
  html body .wp-site-blocks .leo-mega .leo-panel-foot {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 10px 0 4px 18px !important;
    border: 0 !important;
  }
  html body .wp-site-blocks .leo-mega .leo-panel-foot a {
    padding: 8px 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #1e376c !important;
    font-size: 13px !important;
    box-shadow: none !important;
  }
  html body .wp-site-blocks .leo-footer-v2 .leo-fwrap { padding: 38px 20px 18px !important; }
  html body .wp-site-blocks .leo-footer-v2 .leo-fcol-list { gap: 9px 18px !important; }
  html body .wp-site-blocks .leo-footer-v2 .leo-fbottom { display: block !important; margin-top: 30px !important; }
  html body .wp-site-blocks .leo-footer-v2 .leo-fbottom p + p { margin-top: 7px !important; }
}

@media (max-width: 520px) {
  html body .wp-site-blocks .leo-header-shell { padding-inline: 15px !important; }
  html body .wp-site-blocks .leo-header-row { grid-template-columns: minmax(120px, 1fr) auto auto !important; }
  html body .wp-site-blocks .leo-header-actions .wp-block-woocommerce-customer-account { display: none !important; }
  html body .wp-site-blocks .leo-header-actions .wp-block-woocommerce-mini-cart { grid-column: 3; }
  html body .wp-site-blocks .leo-logo-img { max-width: 148px !important; }
  html body.home .wp-site-blocks .entry-content > .leo-section:last-child > div {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    align-items: start !important;
  }
  html body.home .wp-site-blocks .entry-content > .leo-section:last-child .leo-btn {
    display: inline-flex !important;
    width: auto !important;
  }
  html body .wp-site-blocks .leo-footer-v2 .leo-fcol-list { flex-direction: column; align-items: center; gap: 10px !important; }
}

/* ========================================================================== 
   Pagination repair + restrained mobile PDP CRO pass
   ========================================================================== */

html body .wp-site-blocks .leo-query-pagination {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  height: auto !important;
  gap: 7px !important;
}
html body .wp-site-blocks .leo-query-pagination .wp-block-query-pagination-numbers {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
}
html body .wp-site-blocks .leo-query-pagination .page-numbers,
html body .wp-site-blocks .leo-query-pagination .wp-block-query-pagination-previous,
html body .wp-site-blocks .leo-query-pagination .wp-block-query-pagination-next {
  display: grid !important;
  place-items: center !important;
  min-width: 44px !important;
  width: auto !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 13px !important;
  border: 1px solid #dcdcdc !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #1e376c !important;
  box-shadow: none !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
html body .wp-site-blocks .leo-query-pagination .page-numbers.current,
html body .wp-site-blocks .leo-query-pagination a:hover {
  border-color: #1e376c !important;
  background: #1e376c !important;
  color: #fff !important;
}

@media (max-width: 760px) {
  html body .wp-site-blocks .leo-query-pagination {
    margin-top: 28px !important;
    gap: 6px !important;
  }
  html body .wp-site-blocks .leo-query-pagination .wp-block-query-pagination-numbers { gap: 6px !important; }
  html body .wp-site-blocks .leo-query-pagination .page-numbers {
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding-inline: 10px !important;
  }

  html body.single-product .wp-site-blocks .leo-product-main {
    padding: 14px 16px 60px !important;
  }
  html body.single-product .wp-site-blocks .leo-product-main .woocommerce-breadcrumb {
    margin-bottom: 14px !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
  }
  html body.single-product .wp-site-blocks .leo-product-layout { gap: 22px !important; }
  html body.single-product .wp-site-blocks .leo-product-gallery-col {
    padding: 8px !important;
    border-color: #e6e6e6 !important;
    border-radius: 10px !important;
    background: #f7f7f5 !important;
    box-shadow: none !important;
  }
  html body.single-product .wp-site-blocks .flex-control-thumbs { gap: 7px !important; }
  html body.single-product .wp-site-blocks .flex-control-thumbs img { border-radius: 5px !important; }

  html body.single-product .wp-site-blocks .leo-product-summary-col {
    display: flex !important;
    flex-direction: column !important;
    padding-top: 0 !important;
  }
  html body.single-product .wp-site-blocks .leo-product-summary-col > .wp-block-post-title { order: 1; }
  html body.single-product .wp-site-blocks .leo-product-summary-col > .wp-block-woocommerce-product-price { order: 2; }
  html body.single-product .wp-site-blocks .leo-product-summary-col > .wp-block-woocommerce-product-summary { order: 3; }
  html body.single-product .wp-site-blocks .leo-product-summary-col > .wp-block-add-to-cart-form { order: 4; }
  html body.single-product .wp-site-blocks .leo-product-summary-col > .leo-pdp-policies { order: 5; }
  html body.single-product .wp-site-blocks .leo-product-summary-col > .wp-block-woocommerce-paypal-payments-product-smart-buttons { order: 6; }

  html body.single-product .wp-site-blocks h1.wp-block-post-title {
    margin-bottom: 10px !important;
    font-size: clamp(1.75rem, 8vw, 2rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -.025em !important;
  }
  html body.single-product .wp-site-blocks .wp-block-woocommerce-product-price { margin-bottom: 10px !important; }
  html body.single-product .wp-site-blocks .price { font-size: 1.2rem !important; }
  html body.single-product .wp-site-blocks .wp-block-woocommerce-product-summary {
    margin-top: 8px !important;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
  }
  html body.single-product .wp-site-blocks .wp-block-add-to-cart-form { margin-top: 4px !important; }
  html body.single-product .wp-site-blocks form.cart { margin-bottom: 18px !important; }
  html body.single-product .wp-site-blocks table.variations {
    width: 100% !important;
    margin: 12px 0 10px !important;
  }
  html body.single-product .wp-site-blocks table.variations tbody,
  html body.single-product .wp-site-blocks table.variations tr,
  html body.single-product .wp-site-blocks table.variations th,
  html body.single-product .wp-site-blocks table.variations td {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    background: transparent !important;
  }
  html body.single-product .wp-site-blocks table.variations th { padding-bottom: 5px !important; }
  html body.single-product .wp-site-blocks table.variations td { padding-bottom: 0 !important; }
  html body.single-product .wp-site-blocks table.variations select {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    border-radius: 6px !important;
  }
  html body.single-product .wp-site-blocks .woocommerce-variation-add-to-cart {
    display: grid !important;
    grid-template-columns: 70px minmax(0, 1fr) !important;
    gap: 12px 10px !important;
    align-items: stretch !important;
  }
  html body.single-product .wp-site-blocks .woocommerce-variation-add-to-cart > .quantity {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 70px !important;
    margin: 0 !important;
  }
  html body.single-product .wp-site-blocks .woocommerce-variation-add-to-cart > .single_add_to_cart_button {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    border-color: #1e376c !important;
    border-radius: 6px !important;
    background: #1e376c !important;
    box-shadow: none !important;
  }
  html body.single-product .wp-site-blocks .woocommerce-variation-add-to-cart > .leo-design-upload {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    margin-top: 2px !important;
  }
  html body.single-product .wp-site-blocks .leo-pdp-policies {
    margin: 4px 0 8px !important;
    padding: 15px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
  }
  html body.single-product .wp-site-blocks .leo-pdp-row {
    grid-template-columns: 1fr !important;
    gap: 2px !important;
    font-size: 13px !important;
  }
  html body.single-product .wp-site-blocks .woocommerce-tabs ul.tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* Footer payment artwork supplied for the final accepted-payment strip. */
html body .wp-site-blocks .leo-pay {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 9px 14px !important;
  padding: 15px 20px 24px !important;
}
html body .wp-site-blocks .leo-pay .leo-pay-badge { display: none !important; }
html body .wp-site-blocks .leo-pay .leo-pay-label {
  display: block !important;
  margin: 0 !important;
  color: rgba(255,255,255,.72) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}
html body .wp-site-blocks .leo-pay::after {
  display: block;
  width: min(420px, calc(100vw - 120px));
  height: 70px;
  background-color: transparent;
  background-image: url("assets/payment-methods-transparent.png?v=2");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 420px 142px;
  content: "";
}

@media (max-width: 520px) {
  html body .wp-site-blocks .leo-pay {
    display: grid !important;
    justify-items: center !important;
    gap: 9px !important;
    padding: 15px 16px 22px !important;
  }
  html body .wp-site-blocks .leo-pay::after {
    width: min(330px, calc(100vw - 32px));
    height: 56px;
    background-size: 330px 112px;
  }
}

/* Final mobile commerce cascade lock: this file contains legacy sections below
   the base rules, so keep the checkout-critical ordering at the absolute end. */
@media (max-width: 760px) {
  html body.single-product .wp-site-blocks .woocommerce-variation-add-to-cart > .leo-design-upload {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    margin: 0 0 2px !important;
  }
  html body.single-product .wp-site-blocks .woocommerce-variation-add-to-cart > .quantity {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  html body.single-product .wp-site-blocks .woocommerce-variation-add-to-cart > .single_add_to_cart_button {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }
  html body.single-product .wp-site-blocks .leo-pdp-policies { padding: 13px 14px !important; }
  html body.single-product .wp-site-blocks .leo-pdp-row {
    grid-template-columns: 108px minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 8px 0 !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
  }
  html body .wp-site-blocks .leo-product-collection .wp-block-post-title,
  html body .wp-site-blocks .leo-catalog-main ul.products .woocommerce-loop-product__title {
    overflow: hidden;
    display: -webkit-box !important;
    min-height: calc(1.38em * 3);
    padding: 10px 0 4px !important;
    font-size: 14px !important;
    line-height: 1.38 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  html body.woocommerce-checkout .wp-site-blocks .woocommerce form.checkout .form-row-first,
  html body.woocommerce-checkout .wp-site-blocks .woocommerce form.checkout .form-row-last {
    float: none !important;
    clear: both !important;
    width: 100% !important;
  }
  html body.woocommerce-checkout .wp-site-blocks .woocommerce form.checkout .form-row {
    margin-bottom: 12px !important;
  }
  html body.woocommerce-cart .wp-site-blocks .woocommerce .coupon .button,
  html body.woocommerce-cart .wp-site-blocks .woocommerce .checkout-button,
  html body.woocommerce-checkout .wp-site-blocks .woocommerce #place_order {
    border-radius: 5px !important;
  }
}

@media (max-width: 420px) {
  html body.single-product .wp-site-blocks h1.wp-block-post-title {
    font-size: 1.75rem !important;
    line-height: 1.1 !important;
  }
  html body .wp-site-blocks .leo-catalog-heading h1 { font-size: 2rem !important; }
  html body .wp-site-blocks .leo-article h1,
  html body .wp-site-blocks .leo-guides-index h1 {
    font-size: 2.15rem !important;
    line-height: 1.06 !important;
  }
}

/* Production activation: these selectors must remain outside the intentionally
   disabled legacy design block above. */

/* Mobile homepage priority: categories first, featured products next. */
@media (max-width: 760px) {
  html body.home .wp-site-blocks main .entry-content > section:nth-of-type(4),
  html body.home .wp-site-blocks main .wp-block-post-content > section:nth-of-type(4) { order: 3 !important; }
  html body.home .wp-site-blocks main .entry-content > section:nth-of-type(5),
  html body.home .wp-site-blocks main .wp-block-post-content > section:nth-of-type(5) { order: 2 !important; }
  html body.home .wp-site-blocks .leo-home-auto-categories .leo-card-body h3 {
    display: block !important;
    overflow: visible !important;
    min-height: 3.75em;
    font-size: 14px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
  }
  html body.home .wp-site-blocks .leo-home-auto-categories .leo-card-body p {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
}

html body.single-product .wp-site-blocks .leo-design-upload { width: 100% !important; }
html body.single-product .wp-site-blocks .woocommerce-product-gallery__image > a {
  display: block !important;
  aspect-ratio: 1 / 1;
}
html body.single-product .wp-site-blocks .woocommerce-product-gallery__image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}
html body .wp-site-blocks .leo-catalog-shortcuts { margin: 0 auto 18px !important; }
html body .wp-site-blocks .leo-catalog-shortcuts .leo-silo {
  margin: 0 !important;
  padding: 0 0 18px !important;
  border-bottom: 1px solid #e6e6e6 !important;
}
html body .wp-site-blocks .leo-catalog-shortcuts .leo-sec-title {
  margin: 0 0 12px !important;
  font-size: clamp(20px, 2.1vw, 26px) !important;
}
body.woocommerce-cart main,
body.woocommerce-checkout main {
  width: min(100% - 32px, 1120px) !important;
  max-width: 1120px !important;
  margin-inline: auto !important;
  padding-block: 34px 68px !important;
}
body.woocommerce-cart .leo-page-title,
body.woocommerce-checkout .leo-page-title { margin: 0 0 24px !important; color: #1e376c !important; }
body.woocommerce-cart .shop_table,
body.woocommerce-checkout .shop_table,
body.woocommerce-checkout #payment {
  border-color: #dedede !important;
  border-radius: 8px !important;
  background: #fff !important;
}
body.woocommerce-cart .coupon .input-text,
body.woocommerce-checkout .form-row input.input-text,
body.woocommerce-checkout .form-row textarea,
body.woocommerce-checkout .select2-selection {
  min-height: 48px !important;
  border: 1px solid #b9bbc1 !important;
  border-radius: 5px !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.woocommerce-cart .button,
body.woocommerce-cart .checkout-button,
body.woocommerce-checkout .button,
body.woocommerce-checkout #place_order {
  min-height: 48px !important;
  border-radius: 5px !important;
  background: #1e376c !important;
  color: #fff !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  html body.single-product .wp-site-blocks .woocommerce-product-gallery__wrapper {
    min-height: calc(100vw - 50px);
  }
  html body .wp-site-blocks .leo-catalog-shortcuts { overflow: hidden; width: 100% !important; }
  html body .wp-site-blocks .leo-catalog-shortcuts .leo-chip-grid {
    overflow-x: auto;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    width: 100%;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  html body .wp-site-blocks .leo-catalog-shortcuts .leo-chip {
    flex: 0 0 170px;
    min-width: 170px;
    padding: 11px 0 !important;
    scroll-snap-align: start;
  }
  html body .wp-site-blocks .leo-mega .leo-panel .leo-col-list li:nth-child(n+5),
  html body .wp-site-blocks .leo-mega .leo-panel .leo-col-guides { display: none !important; }

  body.home main .entry-content,
  body.home main .wp-block-post-content { display: flex !important; flex-direction: column !important; }
  body.home main .entry-content > section:nth-of-type(1),
  body.home main .wp-block-post-content > section:nth-of-type(1) { order: 0; }
  body.home main .entry-content > section:nth-of-type(3),
  body.home main .wp-block-post-content > section:nth-of-type(3) { order: 1; }
  body.home main .entry-content > section:nth-of-type(4),
  body.home main .wp-block-post-content > section:nth-of-type(4) { order: 2; }
  body.home main .entry-content > section:nth-of-type(5),
  body.home main .wp-block-post-content > section:nth-of-type(5) { order: 3; }
  body.home main .entry-content > section:nth-of-type(9),
  body.home main .wp-block-post-content > section:nth-of-type(9) { order: 4; }
  body.home main .entry-content > section:nth-of-type(12),
  body.home main .wp-block-post-content > section:nth-of-type(12) { order: 5; }
  body.home main .entry-content > section:nth-of-type(6),
  body.home main .wp-block-post-content > section:nth-of-type(6) { order: 6; }
  body.home main .entry-content > section:nth-of-type(7),
  body.home main .wp-block-post-content > section:nth-of-type(7) { order: 7; }
  body.home main .entry-content > section:nth-of-type(8),
  body.home main .wp-block-post-content > section:nth-of-type(8) { order: 8; }
  body.home main .entry-content > section:nth-of-type(2),
  body.home main .wp-block-post-content > section:nth-of-type(2) { order: 9; }
  body.home main .entry-content > section:nth-of-type(10),
  body.home main .wp-block-post-content > section:nth-of-type(10) { order: 10; }
  body.home main .entry-content > section:nth-of-type(11),
  body.home main .wp-block-post-content > section:nth-of-type(11) { order: 11; }

  body.woocommerce-cart main,
  body.woocommerce-checkout main { width: calc(100% - 32px) !important; padding-block: 24px 52px !important; }
  body.woocommerce-checkout .col2-set .col-1,
  body.woocommerce-checkout .col2-set .col-2,
  body.woocommerce-checkout .form-row-first,
  body.woocommerce-checkout .form-row-last { float: none !important; width: 100% !important; }
  body.woocommerce-checkout #order_review,
  body.woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout #place_order { width: 100% !important; }
  body.woocommerce-cart .coupon {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  body.woocommerce-cart .coupon .input-text,
  body.woocommerce-cart .coupon .button,
  body.woocommerce-cart .checkout-button { width: 100% !important; margin: 0 !important; }
  body.woocommerce-cart table.cart td.actions .coupon {
    float: none !important;
    width: 100% !important;
    grid-template-columns: 1fr !important;
  }
  body.woocommerce-checkout .woocommerce-message .button { display: none !important; }
}
