﻿/* =====================================================================
 * utimix-inspired storefront restyle (homepage focus)
 * Loaded after theme.css (priority 1000) so these rules win.
 * Direction: blue brand header, hero banner with CTA, clean white
 * product cards. Tweak --util-* tokens to fine-tune the look.
 * ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

:root {
  /* Exact utimix.com palette */
  --util-blue: #0052e2;        /* main header / primary (utimix .site-header) */
  --util-blue-dark: #002e98;   /* top announcement bar (utimix .topbar-wrapper) */
  --util-blue-hover: #0046c4;
  --util-price: #e21e1d;       /* "Novo!" badge red */
  --util-ink: #1a1a2e;
  --util-grey-hero: #ebebee;
  --util-card-radius: 10px;
}

/* utimix uses Inter */
body, .header-top, .featured-products, .product-miniature, button, input, .btn {
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ===================== Header: blue brand bar ===================== */
#header {
  background: var(--util-blue);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .10);
}
/* Two-tone like utimix: dark-navy top utility bar + bright-blue main bar */
#header .header-banner,
#header .header-nav {
  background: var(--util-blue-dark);
  color: #fff;
  border: 0;
  font-size: 13px;
}
#header .header-top {
  background: var(--util-blue);
  padding-top: 14px;
  padding-bottom: 14px;
}
/* White text/links/icons across the header (kept off the search input) */
#header .header-banner a,
#header .header-top a,
#header .header-nav a,
#header .header-top,
#header .header-nav,
#header .material-icons,
#header .blockcart,
#header .blockcart a,
#header #_desktop_user_info a {
  color: #fff;
}
#header a:hover { opacity: .85; }

/* Search widget -> white pill (flex row: icon ﾂｷ input ﾂｷ clear ﾂｷ Buscar btn) */
#header #search_widget form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .14);
  padding: 3px 4px 3px 16px;
  position: relative;
}
#header #search_widget form .material-icons.search {
  position: static;
  color: #9aa3b8;
  font-size: 22px;
  margin: 0 6px 0 0;
  flex: 0 0 auto;
}
#header #search_widget form input[type="text"],
#header #search_widget form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0 !important;
  border-radius: 0;
  padding: 10px 8px;
  background: transparent !important;
  color: #222;
  box-shadow: none !important;
}
#header #search_widget form .material-icons.clear {
  position: static;
  color: #c2c8d6;
  font-size: 19px;
  margin: 0 4px;
  flex: 0 0 auto;
  cursor: pointer;
}
/* solid "Buscar" button on the right end of the pill */
#header #search_widget form .util-search-btn {
  position: static !important;
  top: auto !important;
  right: auto !important;
  transform: none !important;     /* kill theme's translateY(-50%) for abs buttons */
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--util-blue);
  color: #fff !important;
  border: 0;
  border-radius: 22px;
  padding: 9px 22px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}
#header #search_widget form .util-search-btn:hover {
  background: var(--util-blue-hover);
  box-shadow: 0 4px 12px rgba(0, 82, 226, .3);
}
#header #search_widget form .util-search-btn .material-icons {
  position: static !important;
  color: #fff !important;
  font-size: 19px;
  margin: 0;
  flex: 0 0 auto;
}
@media (max-width: 575px) {
  #header #search_widget form .util-search-btn__label { display: none; }
  #header #search_widget form .util-search-btn { padding: 9px 13px; }
}

/* Top menu bar links -> white, readable on blue */
#header #_desktop_top_menu .top-menu a,
#header .js-top-menu .top-menu a,
#header .top-menu a,
#header .top-menu .category a,
#header .top-menu .dropdown-item { color: #fff !important; }
#header .top-menu a:hover { color: #fff !important; opacity: .82; }

/* Cart block -> drop the white box, white icon + count */
#header .blockcart,
#header .blockcart.inactive,
#header .blockcart.active {
  background: transparent !important;
  color: #fff !important;
}
#header .blockcart a,
#header .blockcart .material-icons,
#header .blockcart .cart-products-count { color: #fff !important; }
#header .blockcart .cart-products-count {
  background: #fff;
  color: var(--util-blue) !important;
  border-radius: 999px;
  min-width: 18px;
  padding: 0 5px;
  font-weight: 700;
}

/* User info (Sign in) white */
#header #_desktop_user_info a,
#header #_desktop_user_info .material-icons { color: #fff !important; }

/* Search widget -> wider, fills its column */
#header #search_widget { width: 100%; max-width: 620px; margin-left: auto; }
#header #search_widget form { width: 100%; }
#header #search_widget form input[type="text"] { width: 100%; }

/* utimix-style: logo + search on the main bar, category menu on its own
   centered row below (like utimix's "Departamentos" bar). */
#header .header-top .header-top-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
#header .header-top-right .search-widgets {
  order: 1;
  flex: 1 1 320px;
  margin: 0;
}
#header .header-top-right #_desktop_top_menu,
#header .header-top-right .js-top-menu.menu {
  order: 2;
  flex: 1 1 100%;
  width: 100%;
  margin: 14px 0 0;
}
#header .top-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 8px 0 0;
}
#header .top-menu > .category { white-space: nowrap; }
#header .top-menu > .category > a {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .2px;
}

/* ===== Desktop header: fill the main bar -> Logo | Search | Account | Cart ===== */
@media (min-width: 992px) {
  #header .header-top { padding-top: 16px; padding-bottom: 16px; }
  #header #_desktop_logo img { max-height: 46px; width: auto; }

  #header .header-top .header-top-right {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
  }
  #header .header-top-right .search-widgets,
  #header #search_widget {
    order: 1;
    flex: 1 1 auto;
    max-width: 780px;
    margin: 0;
  }

  /* account + cart cluster on the right of the main bar */
  .util-header-actions {
    order: 2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
  }
  .util-header-actions #_desktop_user_info,
  .util-header-actions #_desktop_cart { margin: 0; padding: 0; }
  #header .util-header-actions .user-info a,
  #header .util-header-actions .blockcart a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: opacity .15s ease;
  }
  #header .util-header-actions .user-info a:hover,
  #header .util-header-actions .blockcart a:hover { opacity: .82; }
  #header .util-header-actions .material-icons { font-size: 27px; color: #fff !important; }
  /* logged-in: name primary, "Sign out" secondary */
  #header .util-header-actions .user-info { display: flex; align-items: center; gap: 14px; }
  #header .util-header-actions .account-name { font-weight: 700; }
  #header .util-header-actions .user-info a.logout {
    font-size: 12px;
    font-weight: 500;
    opacity: .75;
  }
  #header .util-header-actions .user-info a.logout:hover { opacity: 1; }
  /* soft divider between account and cart */
  .util-header-actions #_desktop_cart { position: relative; padding-left: 25px; }
  .util-header-actions #_desktop_cart::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 26px;
    background: rgba(255, 255, 255, .28);
  }
}

/* utility-bar welcome tagline (right side, where the cart used to be) */
.header-nav .right-nav { display: flex; align-items: center; justify-content: flex-end; }
.util-welcome { color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 500; letter-spacing: .2px; }
@media (max-width: 991px) { .util-welcome { display: none; } }

/* vertically center the utility bar (Contact us / tagline on one line) */
#header .header-nav .row { display: flex; align-items: center; min-height: 38px; }
#header .header-nav .row > .hidden-sm-down { display: flex; align-items: center; width: 100%; }
#header .header-nav .row > .hidden-sm-down > [class*="col-"] { display: flex; align-items: center; }
#header .header-nav .right-nav { justify-content: flex-end; }
#header .header-nav #_desktop_contact_link,
#header .header-nav #contact-link,
#header .header-nav #contact-link a {
  display: flex;
  align-items: center;
  line-height: 1;
  margin: 0 !important;
  padding: 0;
  height: auto;
}

/* search button: lock icon + label on the same centerline */
#header #search_widget form .util-search-btn { line-height: 1; }
#header #search_widget form .util-search-btn .material-icons,
#header #search_widget form .util-search-btn .util-search-btn__label {
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* desktop cart: number as a corner badge on the icon (no parentheses) */
#header .util-header-actions #_desktop_cart .blockcart .header { position: relative; }
#header .util-header-actions #_desktop_cart .cart-products-count {
  position: absolute;
  top: -7px;
  left: 15px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  border-radius: 999px;
  background: #fff;
  color: var(--util-blue) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
/* hide the "0" badge when the cart is empty */
#header .util-header-actions #_desktop_cart .blockcart.inactive .cart-products-count { display: none; }
/* drop the "Cart" word 窶・icon + corner badge only */
#header .util-header-actions #_desktop_cart .blockcart .header span.hidden-sm-down:not(.cart-products-count) { display: none; }

/* left search icon: vertically centered in the pill */
#header #search_widget form .material-icons.search { line-height: 1; align-self: center; }

/* ===================== Section titles ===================== */
.featured-products .products-section-title,
.featured-products h2,
section.featured-products > h2 {
  text-align: center;
  font-weight: 800;
  color: var(--util-ink);
  margin-bottom: 26px;
}

/* ===================== Product cards ===================== */
.product-miniature .thumbnail-container {
  background: #fff;
  border: 1px solid #ececf2;
  border-radius: var(--util-card-radius);
  overflow: hidden;
  height: auto;
  transition: box-shadow .2s ease, transform .2s ease;
  padding-bottom: 10px;
}
.product-miniature .thumbnail-container:hover {
  box-shadow: 0 10px 26px rgba(20, 20, 50, .12);
  transform: translateY(-4px);
}
.product-miniature .thumbnail-top { position: relative; }
.product-miniature .product-description { padding: 6px 12px 0; }
.product-miniature .product-title { margin: 4px 0; }
.product-miniature .product-title a {
  color: var(--util-ink);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
}
.product-miniature .product-title a:hover { color: var(--util-blue); }
.product-miniature .product-price-and-shipping {
  color: var(--util-price);
  font-weight: 800;
}
.product-miniature .product-price-and-shipping .price {
  color: var(--util-price);
  font-size: 18px;
}
/* "Novo" / sale flags */
.product-miniature .product-flags li.product-flag {
  background: var(--util-blue);
  border-radius: 6px;
  font-weight: 700;
}
.product-miniature .product-flag.new,
.product-miniature .product-flag.discount,
.product-miniature .product-flag.on-sale { background: var(--util-price); }

/* ===================== Buttons ===================== */
.btn-primary,
.btn-primary:visited {
  background: var(--util-blue);
  border-color: var(--util-blue);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--util-blue-hover);
  border-color: var(--util-blue-hover);
}
.product-miniature .add-to-cart,
.product-add-to-cart .add-to-cart {
  background: var(--util-blue);
  border-color: var(--util-blue);
}

/* ===== utimix-style category band (separate light-blue row below header) =====
   ps_mainmenu was moved from displayTop to displayNavFullWidth, so #_desktop_top_menu
   is now a full-width direct child of #header right below the blue main bar. */
#header > #_desktop_top_menu {
  width: 100%;
  background: #e9f1fe;
  margin: 0;
  box-shadow: inset 0 -1px 0 #d6e2f7;
}
#header > #_desktop_top_menu .top-menu {
  max-width: 1140px;
  margin: 0 auto;
  padding: 8px 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  justify-content: flex-start;
  align-items: center;
}
#header > #_desktop_top_menu > .top-menu > .category > a {
  background: var(--util-blue-dark);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3px;
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background .18s ease, box-shadow .18s ease;
}
#header > #_desktop_top_menu > .top-menu.util-departments-ready > .category:not(.util-departments) {
  display: none !important;
}
#header > #_desktop_top_menu > .top-menu > .category > a::before {
  content: "\2630";
  font-size: 14px;
  line-height: 1;
}
#header > #_desktop_top_menu > .top-menu > .category > a::after {
  content: "\25BE";
  font-size: 11px;
  line-height: 1;
  transition: transform .2s ease;
}
#header > #_desktop_top_menu > .top-menu > .category:hover > a,
#header > #_desktop_top_menu > .top-menu > .category > a:hover {
  background: var(--util-blue);
  color: #fff !important;
  box-shadow: 0 5px 14px rgba(0, 82, 226, .30);
}
#header > #_desktop_top_menu > .top-menu > .category:hover > a::after {
  transform: rotate(180deg);
}
#header > #_desktop_top_menu .top-menu > .category { position: relative !important; }
#header { position: relative; z-index: 300; }
#header > #_desktop_top_menu > .top-menu > .category > .sub-menu {
  left: -15px !important;
  right: auto !important;
  top: 100% !important;
  background: #fff !important;
  border: 1px solid #e8ecf5;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(16, 24, 64, .16), 0 4px 12px rgba(16, 24, 64, .07);
  width: 740px !important;
  min-width: 740px;
  max-width: 740px;
  padding: 14px;
  z-index: 1000 !important;
  display: flex !important;
  gap: 14px;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  transform: translateY(7px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
#header > #_desktop_top_menu > .top-menu > .category > .sub-menu > .top-menu {
  flex: 1 1 auto;
}
.util-departments-content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 22px 28px 20px 20px;
}
#header > #_desktop_top_menu .sub-menu .top-menu.util-departments-list {
  column-count: 1;
}
.util-mega-aside {
  flex: 0 0 220px;
  align-self: stretch;
  border-radius: 10px;
  padding: 22px 20px;
  color: #fff;
  background: linear-gradient(150deg, var(--util-blue) 0%, var(--util-blue-dark) 100%);
  display: flex;
  flex-direction: column;
}
.util-mega-aside__tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.util-mega-aside__title { font-size: 19px; font-weight: 700; line-height: 1.2; margin: 0 0 8px; color: #fff; }
.util-mega-aside__text { font-size: 13px; line-height: 1.5; opacity: .88; margin: 0 0 auto; }
#header #_desktop_top_menu .util-mega-aside .util-mega-aside__cta {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff !important;
  color: var(--util-blue) !important;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 16px;
  border-radius: 8px;
  text-decoration: none;
  opacity: 1 !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
#header #_desktop_top_menu .util-mega-aside .util-mega-aside__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
  color: var(--util-blue) !important;
}
#header #_desktop_top_menu .util-mega-aside .util-mega-aside__title,
#header #_desktop_top_menu .util-mega-aside .util-mega-aside__text,
#header #_desktop_top_menu .util-mega-aside .util-mega-aside__tag { color: #fff !important; }
#header > #_desktop_top_menu > .top-menu > .category > .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
  background: transparent;
}
#header > #_desktop_top_menu > .top-menu > .category:hover > .sub-menu,
#header > #_desktop_top_menu > .top-menu > .category.sfHover > .sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}
#header > #_desktop_top_menu .sub-menu .top-menu {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  column-count: 2;
  column-gap: 16px;
}
#header > #_desktop_top_menu > .top-menu > .category > .sub-menu .top-menu li ul,
#header > #_desktop_top_menu > .top-menu > .category > .sub-menu .sub-menu {
  display: none !important;
}
#header > #_desktop_top_menu .sub-menu li,
#header > #_desktop_top_menu .sub-menu li.category {
  display: block !important;
  width: 100% !important;
  float: none !important;
  white-space: nowrap;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
#header > #_desktop_top_menu .sub-menu li > a {
  display: block;
  padding: 9px 18px;
  color: #444 !important;
  font-weight: 500;
  font-size: 14px;
  background: none !important;
  border-radius: 0;
}
#header > #_desktop_top_menu .sub-menu li > a::after { content: none !important; }
#header > #_desktop_top_menu .sub-menu li > a:hover {
  color: var(--util-blue) !important;
  background: #f3f6fd !important;
}
#header > #_desktop_top_menu .sub-menu .sub-menu {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}
#header > #_desktop_top_menu .sub-menu .sub-menu li > a {
  padding: 6px 18px 6px 32px !important;
  color: #6a6a78 !important;
  font-weight: 400;
  font-size: 13px;
}
#header > #_desktop_top_menu > .top-menu > .category > .sub-menu > .top-menu > li > a {
  display: flex !important;
  align-items: center;
  font-weight: 600;
  color: #2a2f45 !important;
  font-size: 13.5px;
  padding: 11px 14px !important;
  margin: 1px 0;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease, padding .15s ease;
}
#header > #_desktop_top_menu > .top-menu > .category > .sub-menu > .top-menu > li > a::after {
  content: "\203A";
  margin-left: auto;
  color: var(--util-blue);
  font-size: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .15s ease, transform .15s ease;
}
#header > #_desktop_top_menu > .top-menu > .category > .sub-menu > .top-menu > li > a:hover {
  background: #eef3ff !important;
  color: var(--util-blue) !important;
  padding-left: 18px !important;
}
#header > #_desktop_top_menu > .top-menu > .category > .sub-menu > .top-menu > li > a:hover::after {
  opacity: 1;
  transform: translateX(0);
}
#header > #_desktop_top_menu > .top-menu > .category > .sub-menu > .util-departments-content > .top-menu > li > a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  min-height: 39px;
  color: #10172f !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  padding: 6px 0 !important;
  margin: 0;
  border-radius: 0;
}
#header > #_desktop_top_menu > .top-menu > .category > .sub-menu > .util-departments-content > .top-menu > li > a:hover {
  color: var(--util-blue) !important;
  background: transparent !important;
  padding-left: 0 !important;
}
/* Acordeão dos departamentos: botão "+/-" revela as subcategorias,
   espelhando o menu lateral da página de categoria. */
#header #_desktop_top_menu .util-departments-list > li.util-department-item {
  position: relative;
}
#header #_desktop_top_menu .util-departments-list > li.util-department-item > .util-department-link {
  padding-right: 36px !important;
}
#header #_desktop_top_menu .util-department-toggle {
  position: absolute;
  top: 3px;
  right: -4px;
  width: 32px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #07112d;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}
#header #_desktop_top_menu .util-department-toggle::before { content: "+"; }
#header #_desktop_top_menu li.util-open > .util-department-toggle::before { content: "\2212"; }
#header #_desktop_top_menu .util-department-children {
  list-style: none;
  margin: 0 0 8px;
  padding: 2px 0 0;
  display: none;
}
/* O tema esconde TODA <ul> dentro do menu com display:none !important (4 classes
   de especificidade). Para revelar o acordeão é preciso vencer essa regra: usamos
   um seletor mais específico + !important. */
#header > #_desktop_top_menu > .top-menu > .util-departments > .sub-menu .util-departments-list > li.util-open > .util-department-children {
  display: block !important;
}
#header #_desktop_top_menu .util-department-children > li > a {
  display: block;
  padding: 5px 0 5px 2px;
  font-size: 14px;
  font-weight: 500;
  color: #41506b !important;
  text-decoration: none;
}
#header #_desktop_top_menu .util-department-children > li > a:hover {
  color: var(--util-blue) !important;
}

/* Hide leftover placeholder custom-text block (dev test content).
   To use it, set real content in the "Custom text block" module. */
#custom-text { display: none; }

/* Featured product sections: a bit more breathing room */
.featured-products { margin-bottom: 8px; }

/* Links accent */
a { color: var(--util-blue); }
a:hover { color: var(--util-blue-hover); }

/* ============================================================
 * Mobile category menu (drawer) - populated by custom.js
 * ============================================================ */
#header #menu-icon { cursor: pointer; }
#header #menu-icon .material-icons { color: #fff; font-size: 28px; }

@media (max-width: 991px) {
  #mobile_top_menu_wrapper {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 304px;
    max-width: 86vw;
    height: 100%;
    margin: 0;
    background: #fff;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.16, 1, .3, 1);
    z-index: 1200;
    overflow-y: auto;
    box-shadow: 2px 0 28px rgba(10, 18, 50, .22);
    -webkit-overflow-scrolling: touch;
  }
  body.util-mmenu-open #mobile_top_menu_wrapper { transform: translateX(0); }
  .util-mmenu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 50, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 1150;
  }
  body.util-mmenu-open .util-mmenu-overlay { opacity: 1; visibility: visible; }
  body.util-mmenu-open { overflow: hidden; }
  .util-mmenu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: var(--util-blue);
    color: #fff;
    position: sticky;
    top: 0;
  }
  .util-mmenu-title { font-size: 16px; font-weight: 700; letter-spacing: .3px; }
  .util-mmenu-close {
    background: rgba(255, 255, 255, .15);
    border: 0;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }
  .util-mmenu-close:active { background: rgba(255, 255, 255, .3); }
}

.util-mobile-cats { list-style: none; margin: 0; padding: 6px 0; width: 100%; }
.util-mobile-cats li { margin: 0; width: 100%; }
.util-mobile-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  color: #2a2f45 !important;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid #f1f3f8;
  text-decoration: none;
  opacity: 1 !important;
}
.util-mobile-cats a::after {
  content: "\203A";
  color: #c2c8d6;
  font-size: 18px;
}
.util-mobile-cats a:active,
.util-mobile-cats a:hover {
  background: #eef3ff;
  color: var(--util-blue) !important;
}
.util-mobile-cats a:hover::after { color: var(--util-blue); }

/* ============================================================
 * Enterprise polish: product card hover + unified buttons
 * ============================================================ */

/* --- Product card hover: lift, ring, image zoom --- */
.product-miniature .thumbnail-container {
  position: relative;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.product-miniature .thumbnail-container:hover {
  box-shadow: 0 14px 32px rgba(16, 24, 64, .14);
  transform: translateY(-5px);
  border-color: #cfdcff;
}
.product-miniature .thumbnail-container .thumbnail-top,
.product-miniature .thumbnail-container .product-thumbnail { overflow: hidden; }
.product-miniature .thumbnail-container img {
  transition: transform .35s ease;
  will-change: transform;
}
.product-miniature .thumbnail-container:hover img { transform: scale(1.06); }
/* quick-view / actions fade in on hover */
.product-miniature .highlighted-informations,
.product-miniature .product-flags { transition: opacity .2s ease; }

/* --- Unified buttons --- */
.btn,
.btn-primary,
.btn-secondary,
button.btn,
.product-add-to-cart .add-to-cart,
.product-miniature .add-to-cart {
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: .2px;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .08s ease;
}
.btn-primary,
.btn-primary:visited,
.product-add-to-cart .add-to-cart,
.product-miniature .add-to-cart {
  background: var(--util-blue);
  border-color: var(--util-blue);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.product-add-to-cart .add-to-cart:hover,
.product-miniature .add-to-cart:hover {
  background: var(--util-blue-hover);
  border-color: var(--util-blue-hover);
  box-shadow: 0 6px 16px rgba(0, 82, 226, .28);
  color: #fff;
}
.btn-secondary {
  background: #fff;
  border: 1px solid #d7def0;
  color: var(--util-blue);
}
.btn-secondary:hover {
  background: #eef3ff;
  border-color: var(--util-blue);
  color: var(--util-blue);
}
.btn:active,
.product-add-to-cart .add-to-cart:active { transform: translateY(1px); }

/* ============================================================
 * Scrollbars (slim, modern) + mobile overflow guard + z-index
 * ============================================================ */
.util-mmenu-overlay { z-index: 2000 !important; }
@media (max-width: 991px) {
  #mobile_top_menu_wrapper { z-index: 2001 !important; }
  html, body { overflow-x: hidden; }        /* kill stray horizontal scroll on mobile */
}

/* slim scrollbars site-wide */
* { scrollbar-width: thin; scrollbar-color: rgba(120,130,160,.45) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(120,130,160,.45);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(90,100,130,.65); background-clip: padding-box; border: 2px solid transparent; }

#mobile_top_menu_wrapper::-webkit-scrollbar { width: 5px; }
#mobile_top_menu_wrapper::-webkit-scrollbar-thumb { background: rgba(120,130,160,.4); }

/* =====================================================================
 * SITE-WIDE DESIGN SYSTEM v2 窶・utimix-style wholesale storefront
 * Wide container, unified product grid, listing/filter/detail/forms,
 * footer trust module + full mobile adaptation. All additive overrides;
 * no template logic changed.
 * ===================================================================== */
:root {
  --util-maxw: 1500px;          /* main content max width (PC not too narrow) */
  --util-gutter: 28px;          /* container side padding (desktop) */
  --util-secondary: #ff7a00;    /* accent / sale CTA (orange) */
  --util-text: #1f2430;         /* body text */
  --util-text-soft: #5b6373;    /* muted text */
  --util-border: #e6e9f0;       /* hairline borders */
  --util-bg: #f4f6fb;           /* page background tint */
  --util-surface: #ffffff;      /* cards */
  --util-radius: 12px;          /* card radius */
  --util-radius-sm: 8px;
  --util-shadow: 0 2px 10px rgba(20,28,60,.06);
  --util-shadow-lg: 0 14px 32px rgba(16,24,64,.12);
  --util-s1: 8px;  --util-s2: 16px; --util-s3: 24px; --util-s4: 40px; --util-s5: 64px;
}

body { background: var(--util-bg); color: var(--util-text); }

/* ---- Wide container site-wide (header, page, footer share .container) ---- */
.container,
#header .container,
#wrapper > .container,
#footer .container {
  max-width: var(--util-maxw);
  width: 100%;
  padding-left: var(--util-gutter);
  padding-right: var(--util-gutter);
}
/* let the category band match the new width */
#header > #_desktop_top_menu .top-menu { max-width: var(--util-maxw); }
#wrapper { padding-top: var(--util-s3); }

/* ===================== Mobile header bar (logo / cart / user, JS-populated) ===================== */
@media (max-width: 991px) {
  #header .header-nav { background: var(--util-blue); padding: 4px 0; min-height: 56px; }
  #header .header-nav > .container { padding-left: 12px; padding-right: 12px; }
  #header .header-nav > .container > .row {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
    min-height: 48px;
  }
  /* hamburger left, logo centered, user + cart right */
  #header #menu-icon { order: 1; margin: 0; flex: 0 0 auto; position: static; }
  #header #menu-icon .material-icons { color: #fff; font-size: 30px; }
  #header #_mobile_logo {
    order: 2;
    flex: 1 1 auto;
    display: flex !important;
    justify-content: center;
    align-items: center;
    min-width: 0;
    margin: 0 8px;
  }
  #header #_mobile_logo a { display: inline-flex; }
  #header #_mobile_logo img { height: 36px; width: auto; max-width: 170px; border-radius: 6px; }
  #header #_mobile_user_info { order: 3; flex: 0 0 auto; margin: 0; }
  #header #_mobile_cart { order: 4; flex: 0 0 auto; margin-left: 12px; position: relative; }
  #header #_mobile_user_info a,
  #header #_mobile_cart a { color: #fff; display: inline-flex; align-items: center; }
  #header #_mobile_user_info .material-icons,
  #header #_mobile_cart .material-icons { color: #fff; font-size: 27px; }
  #header #_mobile_user_info .hidden-sm-down,
  #header #_mobile_cart .hidden-sm-down { display: none !important; }
  #header #_mobile_cart .cart-products-count {
    position: absolute;
    top: -6px; right: -10px;
    background: #fff;
    color: var(--util-blue);
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 999px;
    padding: 0 4px;
  }
  /* the cloned cart preview dropdown shouldn't float over the page on mobile */
  #header #_mobile_cart .cart-preview .body,
  #header #_mobile_cart .blockcart .modal,
  #header #_mobile_cart .cart_block_list { display: none !important; }
}

/* ===================== Category-band info (desktop: messages beside Departamentos) ===================== */
.util-catbar-info {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  white-space: nowrap;
}
.util-catbar-info__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 500;
  color: #3a4257;
  line-height: 1;
  position: relative;
}
.util-catbar-info__item:last-child { padding-right: 0; }
.util-catbar-info__item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 16px;
  background: rgba(0, 0, 0, .14);
}
#header .util-catbar-info__item .material-icons { font-size: 18px; color: var(--util-blue-dark); }
.util-catbar-info__item strong { color: var(--util-price); font-weight: 800; }
@media (max-width: 1320px) { .util-catbar-info__item { padding: 0 16px; } }
@media (max-width: 1199px) { .util-catbar-info__item:first-child { display: none; } }
@media (max-width: 1023px) { .util-catbar-info__item:nth-child(2) { display: none; } }

/* ===================== Top announcement bar (mobile only) ===================== */
.util-topbar {
  background: var(--util-blue-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .2px;
  display: none;                /* desktop: messages live on the category band */
}
@media (max-width: 991px) { .util-topbar { display: block; } }
.util-topbar__inner {
  max-width: var(--util-maxw);
  margin: 0 auto;
  padding: 8px var(--util-gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  text-align: center;
}
.util-topbar__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.util-topbar__item .material-icons { font-size: 16px; opacity: .9; }
.util-topbar__item strong { font-weight: 700; }
@media (max-width: 767px) {
  .util-topbar__inner { gap: 6px 18px; padding: 7px 14px; font-size: 12px; }
  .util-topbar__item:nth-child(n+3) { display: none; }  /* keep it to 2 key messages */
}

/* ===================== Breadcrumb ===================== */
.breadcrumb {
  background: transparent;
  padding: 0 0 14px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--util-border);
  font-size: 13px;
}
.breadcrumb a { color: var(--util-text-soft); }
.breadcrumb a:hover { color: var(--util-blue); }
.breadcrumb li:last-child span { color: var(--util-text); font-weight: 600; }

/* ===================== Page headings ===================== */
#main .page-header h1,
#js-product-list-header,
.page-home .featured-products h2 {
  font-weight: 800;
  color: var(--util-ink);
  letter-spacing: -.01em;
}
#js-product-list-header {
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 0 0 6px;
}

/* ===================== Unified responsive PRODUCT GRID =====================
 * Override Bootstrap flex columns with CSS grid so cards are even-height and
 * the column count is predictable: 2 (mobile) / 3 / 4 / 5 (wide, no sidebar). */
.products.row,
.featured-products .products {
  display: grid !important;            /* beat theme's #id flex rule */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  align-items: start;                  /* cards size to content (no empty stretch) */
}
@media (min-width: 768px) {
  .products.row, .featured-products .products { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
}
@media (min-width: 1200px) {
  .products.row, .featured-products .products { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
/* full-width listings (home, search, lists without a left filter column) get 5 */
@media (min-width: 1400px) {
  .page-home .featured-products .products,
  .layout-full-width .products.row,
  .page-search .products.row { grid-template-columns: repeat(5, minmax(0,1fr)); }
}
@media (min-width: 1200px) {
  .page-product .featured-products .products,
  .page-product .product-accessories .products.row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
/* neutralise the Bootstrap column wrappers inside the grid */
.products.row > .product,
.products.row > .js-product,
.featured-products .products > .product,
.featured-products .products > .js-product {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
}

/* ---- Even-height product cards (image square, price pinned to bottom) ---- */
.product-miniature { width: 100%; display: flex; margin: 0; }
.product-miniature .thumbnail-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0;
}
.product-miniature .thumbnail-top,
.product-miniature .product-thumbnail {
  display: block;
  width: 100%;
  height: 100% !important;
  aspect-ratio: 1 / 1;
}
.product-miniature .product-thumbnail picture {
  display: block;
  width: 100%;
  height: 100% !important;
}
.product-miniature .product-thumbnail:focus,
.product-miniature .product-thumbnail:active,
.product-miniature .product-title a:focus,
.product-miniature .product-title a:active {
  outline: 0 !important;
  text-decoration: none;
}
.product-miniature .product-thumbnail:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(0, 82, 226, .28);
}
.product-miniature .thumbnail-container:focus-within {
  border-color: rgba(0, 82, 226, .38);
  box-shadow: 0 0 0 3px rgba(0, 82, 226, .14), var(--util-shadow-lg);
}
/* image panel: uniform soft backdrop so every card's image area matches */
.product-miniature .thumbnail-top { background: #f6f7f9; }
.product-miniature .product-thumbnail img,
.product-miniature .thumbnail-container img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: transparent;
  padding: 14px;
  mix-blend-mode: multiply;     /* blends white/grey photo backdrops into the panel */
}
.product-miniature .product-description {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: flex-start;
  padding: 12px 14px 16px;
  background: #fff;
}
.product-miniature .product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  line-height: 1.3;
  margin: 0 0 6px;
}
/* keep price grouped right under the title (no big gap) */
.product-miniature .product-price-and-shipping { margin-top: 2px; }

/* wishlist heart -> top-right corner (flags stay top-left) */
.product-miniature .wishlist-button-add {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 3;
}
.product-miniature .variant-links { min-height: 0; padding: 0; }
.product-miniature .highlighted-informations { border: 0; }
/* price prefix "A partir de" feel via slightly smaller currency, big number */
.product-miniature .product-price-and-shipping .price { font-size: 19px; line-height: 1; }

/* product flags top-left, consistent pill */
.product-miniature .product-flags { position: absolute; top: 10px; left: 10px; margin: 0; z-index: 2; }
.product-miniature .product-flags li.product-flag {
  font-size: 11px;
  padding: 4px 9px;
  margin: 0 0 5px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

/* ===================== LISTING / CATEGORY page ===================== */
#content-wrapper { padding: 0; }
/* sort + count bar -> clean card strip */
#js-product-list-top.products-selection {
  background: var(--util-surface);
  border: 1px solid var(--util-border);
  border-radius: var(--util-radius-sm);
  box-shadow: var(--util-shadow);
  padding: 12px 18px;
  margin: 0 0 var(--util-s3);
  align-items: center;
}
#js-product-list-top .total-products p { margin: 0; color: var(--util-text-soft); font-weight: 600; }
#js-product-list-top .sort-by { color: var(--util-text-soft); font-weight: 600; }
.products-sort-order .select-title {
  border: 1px solid var(--util-border);
  border-radius: var(--util-radius-sm);
  background: #fff;
  color: var(--util-text);
  box-shadow: none;
}

/* ---- Left filter sidebar -> card ---- */
#left-column #search_filters,
#left-column .block-categories,
#left-column .block {
  background: var(--util-surface);
  border: 1px solid var(--util-border);
  border-radius: var(--util-radius);
  box-shadow: var(--util-shadow);
  padding: 18px 18px 8px;
  margin-bottom: var(--util-s3);
}
#search_filters .h6,
#left-column .block .title_block,
#left-column .block-categories .h6 {
  font-size: 15px;
  font-weight: 800;
  color: var(--util-ink);
  text-transform: none;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--util-border);
}
#search_filters .facet { padding-top: 6px; border-top: 1px solid var(--util-border); margin-top: 6px; }
#search_filters .facet:first-of-type { border-top: 0; margin-top: 0; }
#search_filters .facet .facet-title { color: var(--util-text); font-weight: 700; font-size: 14px; }
#search_filters .facet .facet-label a { color: var(--util-text-soft); font-size: 13.5px; }
#search_filters .facet .facet-label a:hover { color: var(--util-blue); }
.active_filters { background: #eef3ff; border: 1px solid #d6e2f7; border-radius: var(--util-radius-sm); padding: 12px 14px; }
.active_filters .filter-block { background: var(--util-blue); color: #fff; border-radius: 999px; }

/* ---- Pagination ---- */
.pagination { margin: var(--util-s3) 0 0; }
.pagination .page-list { display: inline-flex; gap: 6px; padding: 0; }
.pagination .page-list li > * {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--util-border);
  border-radius: var(--util-radius-sm);
  background: #fff;
  color: var(--util-text);
  font-weight: 600;
}
.pagination .page-list li.current > * { background: var(--util-blue); border-color: var(--util-blue); color: #fff; }
.pagination .page-list li > a:hover { border-color: var(--util-blue); color: var(--util-blue); }

/* ---- Subcategories block -> carousel-style horizontal scroller ---- */
#subcategories {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: var(--util-s3);
}
#subcategories .subcategory-heading,
#subcategories h2 { font-weight: 800; color: var(--util-ink); font-size: 16px; margin: 0 0 12px; }
.util-subcat-carousel { position: relative; }
.util-subcat-carousel__viewport { overflow: hidden; border-radius: 10px; }
#subcategories .subcategories-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  list-style: none;
  margin: 0;
  padding: 0 8px 12px;
}
#subcategories .subcategories-list::-webkit-scrollbar { display: none; }
#subcategories .subcategories-list li {
  flex: 0 0 150px;
  width: 150px;
  margin: 0;
  scroll-snap-align: start;
}
#subcategories .subcategory-image,
#subcategories .subcategory-image a { display: block; }
#subcategories .subcategories-list img {
  width: 100%;
  height: 104px;
  object-fit: cover;
  border-radius: var(--util-radius-sm);
  border: 1px solid var(--util-border);
  background: #fff;
  transition: box-shadow .18s ease, transform .18s ease;
}
#subcategories .subcategories-list li:hover img { box-shadow: var(--util-shadow-lg); transform: translateY(-3px); }
#subcategories h5,
#subcategories .subcategory-name {
  display: block;
  text-align: center;
  margin: 8px 0 0;
  font-weight: 600;
  font-size: 13px;
  color: var(--util-text);
}
.util-subcat-carousel__btn {
  position: absolute;
  top: 44px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--util-blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 82, 226, .28);
  cursor: pointer;
  transition: opacity .15s ease, transform .15s ease, background .15s ease;
}
.util-subcat-carousel__btn:hover { background: var(--util-blue-hover); transform: translateY(-1px); }
.util-subcat-carousel__btn:disabled { opacity: .35; cursor: default; transform: none; }
.util-subcat-carousel__btn .material-icons { color: #fff; font-size: 27px; line-height: 1; }
.util-subcat-carousel__btn--prev { left: -9px; }
.util-subcat-carousel__btn--next { right: -9px; }
.util-subcat-carousel--no-overflow .util-subcat-carousel__btn { display: none; }
@media (max-width: 575px) {
  #subcategories .subcategories-list li { flex-basis: 120px; width: 120px; }
  #subcategories .subcategories-list img { height: 82px; }
  #subcategories h5,
  #subcategories .subcategory-name { font-size: 12px; }
  .util-subcat-carousel__btn { top: 34px; width: 30px; height: 30px; }
  .util-subcat-carousel__btn--prev { left: -6px; }
  .util-subcat-carousel__btn--next { right: -6px; }
}

/* ---- Mobile filter drawer (left column becomes off-canvas) ---- */
.util-filter-bar { display: none; margin: 0 0 16px; }
.util-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--util-border);
  color: var(--util-text);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--util-radius-sm);
  box-shadow: var(--util-shadow);
}
.util-filter-btn .material-icons { font-size: 20px; color: var(--util-blue); }
.util-filter-head { display: none; }
@media (max-width: 991px) {
  .util-filter-bar { display: block; }
  #left-column {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 320px; max-width: 88vw; height: 100%;
    margin: 0; padding: 0 0 24px;
    background: var(--util-bg);
    z-index: 2001;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.16, 1, .3, 1);
    overflow-y: auto;
    box-shadow: 2px 0 28px rgba(10, 18, 50, .22);
    -webkit-overflow-scrolling: touch;
  }
  body.util-filters-open #left-column { transform: translateX(0); }
  body.util-filters-open { overflow: hidden; }
  body.util-filters-open .util-mmenu-overlay { opacity: 1; visibility: visible; }
  .util-filter-head { display: flex; position: sticky; top: 0; z-index: 1; }
  #left-column #search_filters,
  #left-column .block-categories,
  #left-column .block {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
    margin: 12px 12px 0;
  }
}

/* ===================== PRODUCT DETAIL page ===================== */
.page-product #content-wrapper { background: transparent; }
.product-container {
  background: var(--util-surface);
  border: 1px solid var(--util-border);
  border-radius: var(--util-radius);
  box-shadow: var(--util-shadow);
  padding: clamp(16px, 2vw, 32px);
  margin-left: 0;
  margin-right: 0;
  margin-bottom: var(--util-s3);
}
.product-container .images-container,
.product-container .product-information { padding-top: 4px; }
.product-prices .current-price .price,
.product-price, .current-price-value {
  color: var(--util-price);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 34px);
}
.product-information .product-description-short { color: var(--util-text-soft); line-height: 1.6; }
.product-actions .add-to-cart {
  font-size: 16px;
  padding: 14px 26px;
  border-radius: var(--util-radius-sm);
}
.product-quantity .qty .input-group,
.product-quantity #quantity_wanted { border-radius: var(--util-radius-sm); }
.product-add-to-cart .control-label { font-weight: 700; }
/* feature/spec table & tabs */
.product-tabs, .tabs {
  background: var(--util-surface);
  border: 1px solid var(--util-border);
  border-radius: var(--util-radius);
  box-shadow: var(--util-shadow);
  padding: clamp(14px, 2vw, 26px);
}
.tabs .nav-tabs .nav-link.active { color: var(--util-blue); border-bottom-color: var(--util-blue); }
.data-sheet .name { background: #f6f8fc; }
/* product page thumbnails */
.product-images > li.thumb-container .thumb,
.images-container .product-images img { border-radius: var(--util-radius-sm); border: 1px solid var(--util-border); }
.product-cover img { border-radius: var(--util-radius); border: 1px solid var(--util-border); }

/* ---- Mobile sticky add-to-cart bar (JS-injected) ---- */
.util-buybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--util-border);
  box-shadow: 0 -6px 20px rgba(16,24,64,.10);
}
.util-buybar__price { font-weight: 800; color: var(--util-price); font-size: 18px; white-space: nowrap; }
.util-buybar__btn {
  flex: 1 1 auto;
  background: var(--util-blue);
  color: #fff;
  border: 0;
  border-radius: var(--util-radius-sm);
  padding: 13px 18px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}
.util-buybar__btn:active { background: var(--util-blue-hover); }
@media (max-width: 767px) {
  body.page-product .util-buybar { display: flex; }
  body.page-product #wrapper { padding-bottom: 76px; }  /* clear the bar */
}

/* ===================== FORMS: login / register / account / contact / cart ===================== */
.page-customer-account #content,
.page-authentication #content,
#authentication .login-form,
.page-addresses .address,
.contact-form,
#cart .cart-grid,
.cart-summary,
.block-categories,
.page-content.card {
  background: var(--util-surface);
  border: 1px solid var(--util-border);
  border-radius: var(--util-radius);
  box-shadow: var(--util-shadow);
}
#cart .cart-grid {
  margin-left: 0;
  margin-right: 0;
}
.page-content.card { padding: clamp(18px, 2.4vw, 32px); }
.form-control,
.form-control:focus {
  border: 1px solid var(--util-border);
  border-radius: var(--util-radius-sm);
  box-shadow: none;
  min-height: 44px;
}
.form-control:focus { border-color: var(--util-blue); box-shadow: 0 0 0 3px rgba(0,82,226,.12); }
label, .form-control-label { font-weight: 600; color: var(--util-text); }
/* account dashboard link tiles */
.page-my-account #content .links a { transition: transform .15s ease, box-shadow .15s ease; }
.page-my-account #content .links a:hover { box-shadow: var(--util-shadow-lg); transform: translateY(-3px); }
.page-my-account #content .links a span.link-item {
  border: 1px solid var(--util-border);
  border-radius: var(--util-radius);
  box-shadow: var(--util-shadow);
  background: #fff;
}
.page-my-account #content .links a:hover span.link-item { border-color: #cfdcff; color: var(--util-blue); }
.page-my-account #content .links i { color: var(--util-blue); }

/* ---- Cart page ---- */
.cart-grid-body .cart-item { border-bottom: 1px solid var(--util-border); }
.cart-summary-line .value, .cart-total .value { color: var(--util-ink); font-weight: 700; }
.cart-detailed-totals .cart-total .value { color: var(--util-price); font-size: 20px; }
.checkout a.btn, .cart-detailed-actions .btn { width: 100%; padding: 14px; font-size: 16px; }

/* ===================== FOOTER + trust badges ===================== */
/* trust badge row injected just above the footer */
.util-trust {
  background: var(--util-surface);
  border-top: 1px solid var(--util-border);
  border-bottom: 1px solid var(--util-border);
  margin-top: var(--util-s4);
}
.util-trust__inner {
  max-width: var(--util-maxw);
  margin: 0 auto;
  padding: 26px var(--util-gutter);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.util-trust__item { display: flex; align-items: center; gap: 13px; }
.util-trust__icon {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: #eef3ff;
  color: var(--util-blue);
}
.util-trust__icon .material-icons { font-size: 24px; }
.util-trust__item > span:last-child { display: flex; flex-direction: column; }
.util-trust__t { display: block; font-weight: 700; font-size: 14px; color: var(--util-ink); line-height: 1.2; }
.util-trust__d { display: block; font-size: 12.5px; color: var(--util-text-soft); margin-top: 2px; }
@media (max-width: 1199px) { .util-trust__inner { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .util-trust__inner { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 20px 16px; } }
@media (max-width: 380px)  { .util-trust__inner { grid-template-columns: 1fr; } }

#footer { background: #0f1320; color: #c4cad8; margin-top: 0; padding-top: var(--util-s4); }
#footer .footer-container { background: transparent; box-shadow: none; margin: 0; padding-top: 0; }
#footer a, #footer .cms-block a, #footer li a { color: #b7c0d4; }
#footer a:hover { color: #fff; }
#footer .h3, #footer .h4, #footer .title h3, #footer .footer-container li.title { color: #fff; font-weight: 700; }
#footer .links .title[data-toggle] { border-color: rgba(255,255,255,.12); }
#footer .block-contact, #footer .links { border: 0; }
#footer .copyright, #footer #footer_sub_menu, #footer .footer__copyright { border-top: 1px solid rgba(255,255,255,.10); color: #8b95ac; }
/* newsletter input on dark footer */
#footer .ps-emailsubscription-block input[type=email],
#footer .newsletter-input {
  border-radius: var(--util-radius-sm) 0 0 var(--util-radius-sm);
  border: 0;
  min-height: 44px;
}

/* ===================== Header / footer alignment pass ===================== */
#header #search_widget,
#header #search_widget * { box-sizing: border-box; }
#header #search_widget form {
  direction: ltr;
  min-height: 48px;
  padding: 4px 5px 4px 16px;
  gap: 8px;
  overflow: hidden;
}
#header #search_widget form .material-icons.search,
#header #search_widget form .material-icons.clear,
#header #search_widget form .util-search-btn .material-icons {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1 !important;
  text-indent: 0;
}
#header #search_widget form .material-icons.search {
  font-size: 22px !important;
  pointer-events: none;
}
#header #search_widget form .material-icons.clear {
  font-size: 20px !important;
}
#header #search_widget form input[type="text"],
#header #search_widget form input[type="search"] {
  height: 40px;
  padding: 0 4px !important;
  line-height: 40px;
  text-align: left;
}
#header #search_widget form .util-search-btn {
  min-width: 118px;
  height: 40px;
  min-height: 40px;
  justify-content: center;
  gap: 5px;
  padding: 0 22px !important;
  border-radius: 999px;
  white-space: nowrap;
}
#header #search_widget form .util-search-btn__label {
  display: inline-flex;
  align-items: center;
  height: 22px;
  line-height: 1;
}

#footer {
  background: #0b1020;
  padding-top: 0;
}
#footer > .container:first-child {
  max-width: none;
  width: 100%;
  padding: 0;
}
#footer > .container:first-child > .row {
  max-width: var(--util-maxw);
  margin: 0 auto;
  padding: 34px var(--util-gutter) 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
#footer > .container:first-child > .row::after,
#footer .footer-container > .container > .row:first-of-type::after {
  display: none;
}
#footer .block_newsletter {
  float: none;
  width: min(100%, 760px);
  flex: 0 1 760px;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none;
  direction: ltr;
  text-align: center;
}
#footer .block_newsletter .row {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  justify-items: center;
}
#footer .block_newsletter .row > * {
  float: none;
  width: auto;
  padding: 0;
}
#footer .block_newsletter p,
#footer .block_newsletter .h3,
#footer .block_newsletter .h4 {
  color: #fff;
  margin: 0;
}
#footer .block_newsletter #block-newsletter-label {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  text-align: center;
}
#footer .block_newsletter form {
  display: block;
  width: min(100%, 560px);
  margin: 0 auto;
}
#footer .block_newsletter form > .row {
  display: block;
  margin: 0;
}
#footer .block_newsletter form > .row > .col-xs-12 {
  float: none;
  width: 100%;
  padding: 0;
}
#footer .block_newsletter form > .row > .col-xs-12:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
#footer .block_newsletter .input-wrapper {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
}
#footer .block_newsletter input[name=submitNewsletter] {
  order: 2;
  float: none !important;
}
#footer .block_newsletter input[type=email] {
  width: 100%;
  min-width: 280px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.96);
  color: var(--util-ink);
  padding: 0 18px;
}
#footer .block_newsletter .btn,
#footer .block_newsletter input[type=submit] {
  height: 46px;
  min-width: 132px;
  border-radius: 999px;
  background: var(--util-blue);
  border: 0;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px !important;
  line-height: 1;
}
#footer .block_newsletter .conditions,
#footer .block_newsletter .msg,
#footer .block_newsletter form p {
  color: #aeb8cc;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  margin: 6px auto 0;
  max-width: 520px;
  text-align: center;
}
#footer .block-social {
  flex: 0 0 auto;
  margin-left: 0;
}
#footer .footer-container {
  padding: 38px 0 24px;
}
#footer .util-footer-head {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
#footer .util-footer-brand__mark {
  color: #fff;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}
#footer .util-footer-brand__text {
  max-width: 560px;
  color: #aeb8cc;
  margin: 12px 0 0;
  line-height: 1.55;
}
#footer .util-footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  color: #8793aa;
  font-size: 13px;
}
#footer .util-footer-contact a {
  color: #fff;
  font-weight: 700;
}
#footer .footer-container > .container > .util-footer-links {
  display: grid;
  grid-template-columns: minmax(360px, 2fr) minmax(180px, 1fr) minmax(220px, 1fr);
  gap: 42px;
  margin: 0;
}
#footer .footer-container > .container > .util-footer-links > * {
  float: none;
  width: auto;
  max-width: none;
  padding: 0;
}
#footer .footer-container .links > .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 34px;
  margin: 0;
}
#footer .footer-container .links > .row > * {
  float: none;
  width: auto;
  padding: 0;
}
#footer .footer-container .wrapper,
#footer .block-contact {
  background: transparent;
}
#footer .footer-container .h3,
#footer .footer-container .h4,
#footer .footer-container .title h3,
#footer .footer-container .title span,
#footer .footer-container .hidden-sm-down,
#footer .footer-container .navbar-toggler,
#footer .footer-container .material-icons {
  color: #fff !important;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 18px;
}
#footer .footer-container ul,
#footer .footer-container li {
  background: transparent !important;
  border: 0 !important;
  padding: 0;
  margin: 0;
}
#footer .footer-container li + li {
  margin-top: 10px;
}
#footer .footer-container a,
#footer .block-contact,
#footer .block-contact #contact-infos {
  color: #b7c2d8;
  font-size: 14px;
  line-height: 1.55;
}
#footer .footer-container a:hover {
  color: #fff;
  text-decoration: none;
}
#footer .block-contact {
  padding: 0;
}
#footer .block-contact #contact-infos {
  padding: 0;
}
#footer .footer-container > .container > .row:last-child {
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.10);
}
#footer .util-footer-copy {
  margin: 0;
}
#footer .util-footer-copy a {
  color: #8390a8;
  font-size: 13px;
}

/* ===================== Section rhythm ===================== */
.featured-products, #products, .page-content, .product-tabs { margin-bottom: var(--util-s4); }

/* ===================== MOBILE polish (touch targets, no overflow) ===================== */
@media (max-width: 991px) {
  #wrapper { padding-top: var(--util-s2); }
  .container, #header .container, #footer .container { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 767px) {
  /* search fills its own row, full width */
  #header #search_widget { max-width: none; }
  /* product detail stacks: images over info already (Bootstrap), tighten */
  .product-container { padding: 14px; }
  /* sort/count bar wraps cleanly */
  #js-product-list-top.products-selection { padding: 10px 12px; }
  #js-product-list-top .total-products { display: block !important; width: 100%; margin-bottom: 6px; }
  /* bigger tap targets for facet links & sort */
  #search_filters .facet .facet-label a { display: inline-block; padding: 6px 0; }
  .pagination .page-list li > * { min-width: 38px; height: 38px; }
  /* cards: tighter 2-col gap */
  .products.row, .featured-products .products { gap: 12px; }
  .product-miniature .product-title { font-size: 13px; min-height: 2.6em; }
  .product-miniature .product-price-and-shipping .price { font-size: 16px; }
}
@media (max-width: 360px) {
  .products.row, .featured-products .products { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
  #header .header-top .util-header-actions {
    display: none !important;
  }
  #header #search_widget form {
    min-height: 46px;
    padding-left: 14px;
    gap: 7px;
  }
  #footer > .container:first-child > .row {
    padding: 28px 16px 22px;
    display: block;
  }
  #footer .block_newsletter {
    max-width: none;
    margin: 0 auto !important;
  }
  #footer .block_newsletter .row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  #footer .footer-container {
    padding: 30px 0 20px;
  }
  #footer .util-footer-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }
  #footer .util-footer-contact {
    align-items: flex-start;
  }
  #footer .footer-container > .container > .util-footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 28px 22px;
  }
  #footer .footer-container .links > .row {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}
@media (max-width: 767px) {
  #header #search_widget form .util-search-btn {
    min-width: 48px;
    width: 48px;
    padding: 0 !important;
  }
  #header #search_widget form .util-search-btn__label {
    display: none !important;
  }
  #footer .block_newsletter #block-newsletter-label {
    font-size: 19px;
  }
  #footer .block_newsletter form > .row > .col-xs-12:first-child {
    align-items: stretch;
  }
  #footer .block_newsletter input[type=email] {
    min-width: 0;
    height: 44px;
  }
  #footer .block_newsletter .btn,
  #footer .block_newsletter input[type=submit] {
    height: 44px;
    min-width: 88px;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  #footer .footer-container > .container > .util-footer-links,
  #footer .footer-container .links > .row {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  #footer .footer-container .links .title,
  #footer .footer-container .links ul {
    background: transparent !important;
  }
}

/* Checkout address selector refinement */
body#checkout section.checkout-step .address-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  justify-content: stretch;
  padding: 14px;
  background: #f5f7fb;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
}

body#checkout section.checkout-step .address-item.checkout-address-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-bottom: 0;
  background: #fff;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body#checkout section.checkout-step .address-item.checkout-address-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: transparent;
}

body#checkout section.checkout-step .address-item.checkout-address-card > header {
  min-height: 0;
  margin-bottom: 0;
}

body#checkout section.checkout-step .address-item.checkout-address-card.selected {
  background: #fff;
  border-color: var(--util-blue);
  box-shadow: 0 0 0 3px rgba(0, 82, 226, 0.10), 0 8px 22px rgba(16, 24, 40, 0.08);
}

body#checkout section.checkout-step .address-item.checkout-address-card.selected::before {
  background: var(--util-blue);
}

body#checkout section.checkout-step .checkout-address-card:not(.selected):hover {
  border-color: #b7c3d7;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.08);
  transform: translateY(-1px);
}

body#checkout section.checkout-step .checkout-address-card .checkout-address-choice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  min-height: 100%;
  padding: 18px 18px 16px;
  text-align: left;
  cursor: pointer;
}

body#checkout section.checkout-step .checkout-address-card .checkout-address-radio {
  margin-top: 1px;
  border-color: #a8b3c7;
  background: #fff;
}

body#checkout section.checkout-step .checkout-address-card .checkout-address-radio input[type="radio"]:checked + span {
  background: var(--util-blue);
}

body#checkout section.checkout-step .checkout-address-card .checkout-address-content {
  display: block;
  min-width: 0;
}

body#checkout section.checkout-step .checkout-address-card .checkout-address-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 9px;
}

body#checkout section.checkout-step .checkout-address-card .address-alias {
  display: block;
  margin-bottom: 0;
  color: #1d2939;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
}

body#checkout section.checkout-step .checkout-address-card .checkout-address-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 9px;
  color: var(--util-blue);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  background: rgba(0, 82, 226, 0.08);
  border: 1px solid rgba(0, 82, 226, 0.18);
  border-radius: 999px;
}

body#checkout section.checkout-step .checkout-address-card .address {
  display: block;
  margin-left: 0;
  color: #475467;
  font-size: 15px;
  line-height: 1.58;
  font-weight: 400;
}

body#checkout section.checkout-step .address-item.checkout-address-card hr {
  margin: 0;
  border: 0;
  border-top: 1px solid #edf1f5;
}

body#checkout section.checkout-step .checkout-address-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: auto;
  padding: 9px 12px;
  text-align: right;
  background: linear-gradient(180deg, #fbfcfe 0%, #f6f8fb 100%);
}

body#checkout section.checkout-step .checkout-address-actions .edit-address,
body#checkout section.checkout-step .checkout-address-actions .delete-address {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  margin: 0;
  padding: 4px 9px;
  color: #475467;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 6px;
}

body#checkout section.checkout-step .checkout-address-actions .edit-address:hover,
body#checkout section.checkout-step .checkout-address-actions .edit-address:focus,
body#checkout section.checkout-step .checkout-address-actions .delete-address:hover,
body#checkout section.checkout-step .checkout-address-actions .delete-address:focus {
  color: var(--util-blue);
  background: rgba(0, 82, 226, 0.06);
  border-color: rgba(0, 82, 226, 0.14);
  text-decoration: none;
}

body#checkout section.checkout-step .checkout-address-actions .delete-address:hover,
body#checkout section.checkout-step .checkout-address-actions .delete-address:focus {
  color: var(--util-price);
  background: rgba(226, 30, 29, 0.06);
  border-color: rgba(226, 30, 29, 0.14);
}

body#checkout section.checkout-step .checkout-address-actions .edit,
body#checkout section.checkout-step .checkout-address-actions .delete {
  font-size: 16px;
}

@media (max-width: 991px) {
  body#checkout section.checkout-step .address-selector {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  body#checkout section.checkout-step .address-item.checkout-address-card {
    width: 100%;
  }
}

