/* puentecolor-custom-css-loaded */
/*
 * Puente Color child theme (parent: Hummingbird 2.1.2, Bootstrap 5.3.3).
 * The parent is compiled only, so everything here is plain CSS layered on top
 * of its custom properties. Sections:
 *   1. Tokens
 *   2. Base
 *   3. Header
 *   4. Buttons and forms
 *   5. Home
 *   6. Product miniatures
 *   7. Listing
 *   8. Product page, cart and checkout
 *   9. Footer
 *  10. Responsive
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  /* Brand navy (#24245c) and a derived tint/shade scale. */
  --pc-navy-50: #f3f3f9;
  --pc-navy-100: #e4e4f1;
  --pc-navy-200: #c9c9e3;
  --pc-navy-300: #a0a0c9;
  --pc-navy-400: #6b6b9f;
  --pc-navy-500: #3d3d78;
  --pc-navy: #24245c; /* 600: brand primary */
  --pc-navy-700: #1d1d4a;
  --pc-navy-800: #161639;
  --pc-navy-900: #0f0f27;

  /* Brand slate (#324856), used for links and accents. */
  --pc-slate-50: #f2f5f7;
  --pc-slate-100: #e3e9ed;
  --pc-slate-200: #c7d2d9;
  --pc-slate: #324856;
  --pc-slate-hover: #000;

  --pc-text: #1f2530;
  --pc-text-muted: #5a6270;
  --pc-border: #dde1e6;
  --pc-surface: #fff;
  --pc-surface-alt: var(--pc-navy-50);
  --pc-focus: #8a8aff;

  /* Shape, elevation, motion. */
  --pc-radius: 5px;
  --pc-radius-lg: 8px;
  --pc-shadow-sm: 0 1px 2px rgba(15, 15, 39, 0.08);
  --pc-shadow-md: 0 4px 14px rgba(15, 15, 39, 0.12);
  --pc-transition: 0.15s ease-in-out;

  /* Spacing scale (4px base). */
  --pc-space-1: 0.25rem;
  --pc-space-2: 0.5rem;
  --pc-space-3: 1rem;
  --pc-space-4: 1.5rem;
  --pc-space-5: 2.5rem;
  --pc-space-6: 4rem;

  /* Type scale. Body copy is never below 14px (0.875rem). */
  --pc-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pc-fs-sm: 0.875rem;
  --pc-fs-base: 1rem;
  --pc-fs-lg: 1.25rem;
  --pc-fs-xl: 1.75rem;
  --pc-fs-2xl: 2.25rem;

  /* Bootstrap / Hummingbird variables. */
  --bs-body-font-family: var(--pc-font);
  --bs-body-font-size: var(--pc-fs-base);
  --bs-body-color: var(--pc-text);
  --bs-body-bg: #fff;
  --bs-primary: var(--pc-navy);
  --bs-primary-rgb: 36, 36, 92;
  --bs-primary-text-emphasis: var(--pc-navy);
  --bs-primary-bg-subtle: var(--pc-navy-100);
  --bs-primary-border-subtle: var(--pc-navy-200);
  --bs-secondary: var(--pc-slate);
  --bs-secondary-rgb: 50, 72, 86;
  --bs-link-color: var(--pc-slate);
  --bs-link-color-rgb: 50, 72, 86;
  --bs-link-hover-color: var(--pc-slate-hover);
  --bs-link-hover-color-rgb: 0, 0, 0;
  --bs-border-color: var(--pc-border);
  --bs-border-radius: var(--pc-radius);
  --bs-border-radius-sm: var(--pc-radius);
  --bs-focus-ring-color: rgba(36, 36, 92, 0.3);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
body {
  background-color: #fff;
  color: var(--pc-text);
  font-family: var(--pc-font);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  color: var(--pc-navy);
  font-family: var(--pc-font);
  font-weight: 700;
}

a {
  transition: color var(--pc-transition);
}

/* One consistent, visible keyboard focus ring. */
:focus-visible {
  outline: 3px solid var(--pc-focus);
  outline-offset: 2px;
}

/* Section titles on home and modules. */
.section-title {
  color: var(--pc-navy);
  font-size: var(--pc-fs-xl);
  margin-bottom: var(--pc-space-4);
  padding-bottom: var(--pc-space-2);
  position: relative;
}

.section-title::after {
  background: var(--pc-slate);
  border-radius: 2px;
  content: "";
  display: block;
  height: 3px;
  margin-top: var(--pc-space-2);
  width: 3rem;
}

.breadcrumb__wrapper {
  background: var(--pc-surface-alt);
}

.breadcrumb-link {
  color: var(--pc-slate);
}

/* WhatsApp widget (ets_whatsapp): the module renders inside a Bootstrap .row,
   so `.row > *` stretched it into a full-width bar. Compact floating bubble,
   bottom right; the greeting pill is hidden so it never grows over content. */
body .ets_wa_whatsapp_block,
body .ets_wa_whatsapp_block.right_bottom {
  bottom: 1rem;
  display: block;
  left: auto;
  margin: 0;
  max-width: none;
  padding: 0;
  right: 1rem;
  width: auto;
  z-index: 1020;
}

body .ets_wa_whatsapp_block > a {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--pc-shadow-md);
  display: flex;
  height: 3.25rem;
  justify-content: center;
  width: 3.25rem;
}

body .ets_wa_whatsapp_block > a img {
  float: none;
  height: 100%;
  width: 100%;
}

body .ets_wa_whatsapp_block .ets_wa_title {
  display: none;
}

/* On phones, pages whose main job is a button or a form (product, cart,
   checkout, account forms, contact) would have the bubble floating over their
   controls, so it is not shown there; the phone number stays in the header. */
@media (max-width: 767.98px) {
  body .ets_wa_whatsapp_block {
    bottom: 0.75rem;
    right: 0.75rem;
  }

  body .ets_wa_whatsapp_block > a {
    height: 2.75rem;
    width: 2.75rem;
  }

  body#product .ets_wa_whatsapp_block,
  body#cart .ets_wa_whatsapp_block,
  body#checkout .ets_wa_whatsapp_block,
  body#authentication .ets_wa_whatsapp_block,
  body#registration .ets_wa_whatsapp_block,
  body#password .ets_wa_whatsapp_block,
  body#contact .ets_wa_whatsapp_block {
    display: none;
  }
}

/* ==========================================================================
   3. Header
   Three tiers: thin top bar (phone, account, cart), logo + search + menu row.
   ========================================================================== */
#header {
  --bs-body-color: #fff;
  --bs-link-color: #fff;
  --bs-link-color-rgb: 255, 255, 255;
  --bs-link-hover-color: #fff;
  --bs-link-hover-color-rgb: 255, 255, 255;
  --bs-secondary-color: #fff;
  --bs-border-color: rgba(255, 255, 255, 0.18);
  background: var(--pc-navy);
  color: #fff;
  font-family: var(--pc-font);
  font-size: var(--pc-fs-sm);
  line-height: 1.5;
}

#header .header-top {
  background: var(--pc-navy-800);
  border-bottom: 0;
  color: #fff;
  padding-block: var(--pc-space-1);
}

#header .header-bottom {
  background: var(--pc-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: var(--pc-space-2);
}

/* Text links inside the header: white.
   Material icons keep their own icon font. */
#header a,
#header .header-block__title,
#header .ps-contactinfo__phone,
#header .ps-mainmenu__tree > li .ps-mainmenu__tree-link,
#header .ps-mainmenu__tree > li.current .ps-mainmenu__tree-link {
  background: transparent;
  color: #fff;
  font-family: var(--pc-font);
  font-size: var(--pc-fs-sm);
}

body #header i.material-icons,
body #header .material-icons,
body #header .header-block__icon {
  color: #fff;
  font-size: 1.5rem;
}

/* The white icon colour is for the navy bars only: the offcanvas panel is a
   light surface, so its icons (submenu chevrons, back arrow) are navy. */
body #header .offcanvas i.material-icons,
body #header .offcanvas .material-icons {
  color: var(--pc-navy);
}

#header a {
  transition: opacity var(--pc-transition), background-color var(--pc-transition);
}

#header .header-top a:hover,
#header .header-bottom .header-block a:hover {
  opacity: 0.8;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* Menu items: pill-like hover, underline on the current section. */
#header .ps-mainmenu__tree > li .ps-mainmenu__tree-link {
  border-radius: var(--pc-radius);
  font-weight: 600;
  padding: 0.75rem 0.5rem;
}

#header .ps-mainmenu__tree {
  gap: 0.125rem;
}

#header .ps-mainmenu__tree > li .ps-mainmenu__tree-link:hover,
#header .ps-mainmenu__tree > li .ps-mainmenu__tree-link:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

#header .ps-mainmenu__tree > li.current .ps-mainmenu__tree-link {
  box-shadow: inset 0 -3px 0 #fff;
}

#header a:focus-visible,
#header button:focus-visible,
#header input:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

#header .header-block__badge {
  background: #fff;
  color: var(--pc-navy);
  font-weight: 700;
}

/* Search: clearly usable white field, 5px radius, dark icon. */
#header .ps-searchbar input,
#header .ps-searchbar__input,
#header input[type="search"],
#header input[type="text"] {
  background-color: #fff;
  border: 2px solid transparent;
  border-radius: var(--pc-radius);
  color: var(--pc-text);
  font-size: var(--pc-fs-base);
  min-height: 2.75rem;
}

#header .ps-searchbar input::placeholder,
#header input[type="search"]::placeholder {
  color: var(--pc-text-muted);
  opacity: 1;
}

#header .ps-searchbar input:focus,
#header input[type="search"]:focus {
  border-color: var(--pc-focus);
  box-shadow: 0 0 0 3px rgba(138, 138, 255, 0.35);
  outline: 0;
}

body #header .ps-searchbar i.material-icons,
body #header .ps-searchbar .material-icons,
body #header .ps-searchbar i {
  color: var(--pc-navy);
}

/* Search suggestions open as a white panel: dark text, one tidy row per result. */
#header .ps-searchbar__dropdown {
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow-md);
  max-height: min(70vh, 28rem);
  overflow-y: auto;
  padding: var(--pc-space-2);
}

#header .ps-searchbar__result-link {
  align-items: center;
  border-radius: var(--pc-radius);
  color: var(--pc-navy);
  display: flex;
  font-size: var(--pc-fs-sm);
  gap: var(--pc-space-3);
  padding: var(--pc-space-2);
  text-decoration: none;
}

#header .ps-searchbar__result-link:hover,
#header .ps-searchbar__result-link:focus-visible,
#header .ps-searchbar__result-link[aria-selected="true"] {
  background: var(--pc-navy-50);
  box-shadow: none;
  color: var(--pc-navy);
}

#header .ps-searchbar__result-image {
  flex: 0 0 3rem;
  height: 3rem;
  object-fit: contain;
  width: 3rem;
}

#header .ps-searchbar__result-name {
  color: inherit;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}

/* Header dropdowns (customer account menu) are white panels: dark text. */
#header .dropdown-menu {
  border: 1px solid var(--bs-border-color);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow-md);
  padding: var(--pc-space-2);
}

#header .dropdown-menu .dropdown-item {
  align-items: center;
  border-radius: var(--pc-radius);
  color: var(--pc-navy);
  display: flex;
  gap: var(--pc-space-2);
  opacity: 1;
  padding: var(--pc-space-2) var(--pc-space-3);
  text-decoration: none;
}

#header .dropdown-menu .dropdown-item .material-icons {
  color: var(--pc-slate);
  margin: 0;
}

#header .dropdown-menu .dropdown-item:hover,
#header .dropdown-menu .dropdown-item:focus-visible {
  background: var(--pc-navy-50);
  color: var(--pc-navy);
  opacity: 1;
  text-decoration: none;
}

/* Logo stays undistorted on the navy header. */
#header .logo {
  height: auto;
}

/* Mega menu and dropdown panels are white: dark text inside them. */
#header .submenu,
#header .submenu a,
#header .ps-mainmenu__desktop .dropdown-menu,
#header .ps-mainmenu__desktop .dropdown-menu a {
  background-color: #fff !important;
  color: var(--pc-slate) !important;
}

#header .submenu a:hover,
#header .submenu a:focus-visible {
  background-color: var(--pc-slate-50) !important;
  color: #000 !important;
  outline-color: var(--pc-navy);
}

/* Desktop mega menu: the left list is a single column so that the children
   of the hovered item open right beside it. With more than one column the
   pointer crosses other items on its way to the right pane and the pane
   switches before it can be reached. */
#header .submenu__row {
  --bs-gutter-x: 0;
}

#header .submenu__left {
  border-right: 1px solid var(--pc-border);
  display: flex;
  flex: 0 0 18rem;
  flex-direction: column;
  gap: 0.125rem;
  padding-block: var(--pc-space-3);
  padding-inline: 0 var(--pc-space-3);
  width: 18rem;
}

#header .submenu__left .submenu__left-item {
  font-size: var(--pc-fs-base);
  font-weight: 600;
  gap: var(--pc-space-3);
  padding: 0.5rem 0.75rem;
}

#header .submenu__left .submenu__left-item.active,
#header .submenu__left .submenu__left-item:hover {
  background-color: var(--pc-navy-50) !important;
  color: var(--pc-navy) !important;
}

#header .submenu__right {
  flex: 1 1 0;
  padding-block: var(--pc-space-3);
  padding-inline: var(--pc-space-3) 0;
  width: auto;
}

#header .submenu__right a {
  color: var(--pc-navy) !important;
  font-size: var(--pc-fs-base);
}

#header .submenu__right .menu-item__group-main-item {
  font-size: var(--pc-fs-lg) !important;
}

/* Mobile offcanvas menu keeps the default light surface. */
#header .offcanvas,
#header .offcanvas a {
  color: var(--pc-text) !important;
}

/* Offcanvas: comfortable touch targets (44px rows, 16px text). */
#header .offcanvas {
  --bs-offcanvas-width: min(22rem, 100vw);
  border-right: 0;
  max-width: 100vw;
}

#header .offcanvas .menu__list {
  margin: 0;
  padding: 0;
}

#header .offcanvas .menu__list > li,
#header .offcanvas .menu__list li {
  align-items: center;
  border-bottom: 1px solid var(--pc-border);
  display: flex;
}

#header .offcanvas .menu__link {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  font-size: var(--pc-fs-base);
  font-weight: 600;
  min-height: 3rem;
  padding: 0.75rem 1rem;
}

#header .offcanvas .menu__toggle-child,
#header .offcanvas .js-back-button {
  align-items: center;
  display: inline-flex;
  font-size: var(--pc-fs-base);
  justify-content: center;
  min-height: 3rem;
  min-width: 3rem;
}

#header .offcanvas .js-back-button {
  font-weight: 600;
  gap: 0.25rem;
}

#header .offcanvas .btn-close {
  min-height: 2.75rem;
  min-width: 2.75rem;
}

/* ==========================================================================
   4. Buttons and forms
   ========================================================================== */
.btn {
  --bs-btn-border-radius: var(--pc-radius);
  font-weight: 600;
  transition: background-color var(--pc-transition), border-color var(--pc-transition),
    color var(--pc-transition), box-shadow var(--pc-transition);
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--pc-navy);
  --bs-btn-border-color: var(--pc-navy);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--pc-navy-700);
  --bs-btn-hover-border-color: var(--pc-navy-700);
  --bs-btn-focus-shadow-rgb: 36, 36, 92;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--pc-navy-800);
  --bs-btn-active-border-color: var(--pc-navy-800);
  --bs-btn-disabled-color: var(--pc-text-muted);
  --bs-btn-disabled-bg: var(--pc-navy-100);
  --bs-btn-disabled-border-color: var(--pc-navy-200);
  --bs-btn-disabled-opacity: 1;
}

/* Disabled buttons read as disabled (flat, muted), not as a faded primary. */
.btn:disabled,
.btn.disabled,
input.btn:disabled {
  background-color: var(--pc-navy-100);
  border-color: var(--pc-navy-200);
  color: var(--pc-text-muted);
  cursor: not-allowed;
  opacity: 1;
}

.btn-outline-primary {
  --bs-btn-color: var(--pc-navy);
  --bs-btn-border-color: var(--pc-navy);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--pc-navy);
  --bs-btn-hover-border-color: var(--pc-navy);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--pc-navy-700);
  --bs-btn-active-border-color: var(--pc-navy-700);
}

.btn-secondary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--pc-slate);
  --bs-btn-border-color: var(--pc-slate);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--pc-slate-hover);
  --bs-btn-hover-border-color: var(--pc-slate-hover);
  --bs-btn-active-bg: #000;
  --bs-btn-active-border-color: #000;
}

.form-control,
.form-select,
.custom-select {
  border-color: var(--pc-border);
  border-radius: var(--pc-radius);
  font-family: var(--pc-font);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--pc-navy);
  box-shadow: 0 0 0 3px rgba(36, 36, 92, 0.2);
}

.form-check-input:checked {
  background-color: var(--pc-navy);
  border-color: var(--pc-navy);
}

/* ==========================================================================
   5. Home
   The slider scales with the viewport (no fixed height that crops on mobile);
   on wide screens its height is capped so it never swallows the fold.
   ========================================================================== */
.ps-imageslider .ps-imageslider__figure {
  height: auto;
}

.ps-imageslider .carousel-item img {
  display: block;
  height: auto;
  width: 100%;
}

@media (min-width: 1200px) {
  .ps-imageslider .carousel-item img {
    max-height: 500px;
    object-fit: cover;
    object-position: center;
  }
}

/* Indicators sit below the artwork (the banners carry legal text at the bottom)
   as small dots; arrows get a dark translucent circle so they stay legible. */
.ps-imageslider .carousel {
  display: flex;
  flex-direction: column;
}

.ps-imageslider .carousel-indicators {
  align-items: center;
  bottom: auto;
  gap: 0.25rem;
  margin: 0;
  order: 2;
  padding: var(--pc-space-2) 0;
  position: static;
}

.ps-imageslider .carousel-indicators [data-bs-target] {
  background-color: var(--pc-navy-200);
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  box-sizing: border-box;
  height: 0.5rem;
  margin: 0 0.25rem;
  width: 0.5rem;
}

.ps-imageslider .carousel-indicators .active {
  background-color: var(--pc-navy);
  box-shadow: none;
}

.ps-imageslider .carousel-indicators [data-bs-target]::after {
  content: "";
  inset: -0.5rem;
  position: absolute;
}

.ps-imageslider .carousel-indicators [data-bs-target] {
  position: relative;
}

.carousel-control-prev,
.carousel-control-next {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(15, 15, 39, 0.65);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
  height: 2.5rem;
  width: 2.5rem;
}

.carousel-control-prev-icon::before,
.carousel-control-next-icon::before {
  color: #fff;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon,
.carousel-control-prev:focus-visible .carousel-control-prev-icon,
.carousel-control-next:focus-visible .carousel-control-next-icon {
  background-color: var(--pc-navy);
}

/* The arrows must not span 15% of the slide as a dead click area. */
.ps-imageslider .carousel-control-prev,
.ps-imageslider .carousel-control-next {
  bottom: 2rem;
  width: 4rem;
}

.ps-customtext {
  margin-block: var(--pc-space-4) 0;
}

.ps-featuredproducts,
.ps-newproducts,
.ps-bestsellers {
  margin-block: var(--pc-space-4);
}

.module-products__buttons .btn {
  margin-top: var(--pc-space-3);
}

.ps-emailsubscription {
  background: var(--pc-surface-alt) !important;
}

/* Heading starts on the page grid edge; the form sits at the opposite edge. */
/* (Bootstrap's justify-content-center utility wins inside its cascade layer,
   so the heading's auto margin absorbs the free space instead.) */
@media (min-width: 992px) {
  .ps-emailsubscription .h3 {
    margin-right: auto;
  }
}

.ps-emailsubscription .h3 {
  color: var(--pc-navy);
  font-size: var(--pc-fs-lg);
}

/* ==========================================================================
   6. Product miniatures
   Tidy cards: square image, two-line name clamp, clear price, subtle hover.
   ========================================================================== */
.product-miniature {
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius-lg);
  height: 100%;
  overflow: hidden;
  transition: box-shadow var(--pc-transition), border-color var(--pc-transition);
}

.product-miniature:hover,
.product-miniature:focus-within {
  border-color: var(--pc-navy-200);
  box-shadow: var(--pc-shadow-md);
}

.product-miniature__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-miniature__image-container {
  aspect-ratio: 1 / 1;
  background: #fff;
}

.product-miniature__image-link {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
}

.product-miniature__image {
  height: 100%;
  object-fit: contain;
  padding: var(--pc-space-2);
  width: 100%;
}

.product-miniature__infos {
  display: flex;
  flex-direction: column;
  padding: var(--pc-space-3) var(--pc-space-3) var(--pc-space-2);
}

.product-miniature__title {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  font-size: var(--pc-fs-base);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0;
  overflow: hidden;
}

.product-miniature .product-miniature__title,
.product-miniature .product-miniature__title a {
  color: var(--pc-slate);
  font-weight: 600;
  text-decoration: none;
}

.product-miniature__title a:hover {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.product-miniature__price {
  color: var(--pc-navy);
  font-size: var(--pc-fs-lg);
  font-weight: 700;
}

.product-miniature__regular-price {
  color: var(--pc-text-muted);
  font-size: var(--pc-fs-sm);
}

/* Name and price stay together; the buy area is pushed to the card bottom so
   bottoms line up across a row. */
.product-miniature__bottom {
  flex: 1 1 auto;
  padding: 0;
}

.product-miniature__infos {
  gap: var(--pc-space-2);
}

.product-miniature__actions {
  margin-top: auto;
  padding: 0 var(--pc-space-3) var(--pc-space-3);
}

/* One add-to-cart treatment at every width: stepper above a full-width,
   labelled button (Hummingbird switches to an icon-only button on wide cards). */
.product-miniature__form {
  align-items: stretch;
  flex-direction: column;
  width: 100%;
}

.product-miniature__form .quantity-button input {
  max-width: unset;
}

.product-miniature__add {
  border-radius: var(--pc-radius);
  width: 100%;
}

.product-miniature__add .product-miniature__add-text {
  display: inline;
}

/* Flags: discount is a clear navy-on-white tag, the others solid slate. */
.product-flags .badge {
  border-radius: var(--pc-radius);
  font-size: var(--pc-fs-sm);
  font-weight: 700;
  padding: 0.2rem 0.5rem;
}

.product-flags .badge:not(.discount) {
  background-color: var(--pc-slate);
  border-color: var(--pc-slate);
  color: #fff;
}

.product-flags .badge.discount {
  background-color: var(--pc-navy);
  border-color: var(--pc-navy);
  color: #fff;
}

/* ==========================================================================
   7. Listing
   Hummingbird's grid is kept. The left column is trimmed to 3/12 and the
   product area shows 4 per row from xl, as before the upgrade.
   ========================================================================== */
.page-title-section h1,
.page-title-section .h1 {
  color: var(--pc-navy);
  font-size: var(--pc-fs-2xl);
}

.category__description {
  color: var(--pc-text);
}

/* Category image as a full-width banner below the description. */
.category-banner-full {
  margin: var(--pc-space-3) 0 var(--pc-space-4);
  width: 100%;
}

.category-banner-full,
.category-banner-full picture {
  display: block;
  max-width: none;
  width: 100%;
}

/* Full width of the content column. The generated cover is 1000x200 (2x copy
   2000x400 exists); it never exceeds its column on this layout, so no blur. */
.category-banner-full img {
  aspect-ratio: 5 / 1;
  border-radius: var(--pc-radius-lg);
  display: block;
  height: auto;
  max-width: none;
  object-fit: cover;
  width: 100%;
}

/* Sidebar blocks: white, quiet, aligned to the tokens. */
.left-column .left-block,
.left-column .ps-categorytree,
.left-column #search_filters_wrapper {
  background: #fff;
}

.left-block__title {
  border-bottom: 2px solid var(--pc-navy);
  color: var(--pc-navy);
  font-size: var(--pc-fs-lg);
  margin-bottom: var(--pc-space-3);
  padding-bottom: var(--pc-space-2);
}

.left-block__title-link {
  color: var(--pc-navy);
}

.category-tree__item-link {
  color: var(--pc-slate);
  display: block;
  padding-block: var(--pc-space-1);
}

.category-tree__item-link:hover {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.left-column .accordion-button {
  box-shadow: none;
  color: var(--pc-slate);
}

.left-column .accordion-button:not(.collapsed) {
  background: var(--pc-surface-alt);
  color: var(--pc-navy);
}

.search-filters__item,
.facet-label {
  font-size: var(--pc-fs-sm);
}

/* Sort dropdown: a long label is truncated instead of widening the page. */
.products__selection,
.products__sort,
.products__sort-dropdown {
  min-width: 0;
}

.products__sort-dropdown {
  max-width: 100%;
}

.products__sort-dropdown-button {
  max-width: 100%;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pagination {
  --bs-pagination-active-bg: var(--pc-navy);
  --bs-pagination-active-border-color: var(--pc-navy);
  --bs-pagination-color: var(--pc-navy);
  --bs-pagination-hover-color: var(--pc-navy);
  --bs-pagination-hover-bg: var(--pc-navy-50);
  --bs-pagination-border-color: var(--pc-navy-200);
  --bs-pagination-disabled-color: var(--pc-text-muted);
  gap: var(--pc-space-1);
}

.pagination .page-link {
  align-items: center;
  border-radius: var(--pc-radius);
  display: inline-flex;
  font-size: var(--pc-fs-base);
  font-weight: 600;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
}

.pagination .page-item + .page-item .page-link {
  margin-left: 0;
}

.pagination .page-item.active .page-link {
  background-color: var(--pc-navy);
  border-color: var(--pc-navy);
  color: #fff;
}

.pagination .page-link:disabled,
.pagination .page-link.disabled {
  background-color: var(--pc-surface-alt);
  border-color: var(--pc-border);
}

/* On phones the category tree would push the products ~500px down; the main
   menu already offers category navigation, so the tree is hidden below 768px
   (the filters stay behind the "Filtrar" button). */
@media (max-width: 767.98px) {
  .left-column .ps-categorytree {
    display: none;
  }
}

@media (min-width: 1200px) {
  .layout-left-column .products,
  .layout-right-column .products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================================
   8. Product page, cart and checkout
   ========================================================================== */
.product__title,
.page-product h1 {
  color: var(--pc-navy);
}

.product__price,
.product-prices .current-price,
.current-price-value {
  color: var(--pc-navy);
  font-weight: 700;
}

/* Descriptions are pasted from another site with inline font-family and
   colours: the font is forced back to the theme font; colours are untouched. */
.product__description-short,
.product__description-short *,
.product__description,
.product__description *,
#product-details,
#product-details * {
  font-family: var(--pc-font) !important;
}

/* Related products: a snap row on small screens, a centred wrapping flex on
   desktop (no orphan card stuck to the left); never hides products. */
#product .product__accessories .products,
#product .ps-categoryproducts .products,
#product .ps-viewedproduct .products {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--pc-space-3);
  overflow-x: auto;
  padding-bottom: var(--pc-space-2);
  scroll-padding-inline: var(--pc-space-3);
  scroll-snap-type: x mandatory;
}

#product .product__accessories .products > *,
#product .ps-categoryproducts .products > *,
#product .ps-viewedproduct .products > * {
  flex: 0 0 min(16rem, 72%);
  height: auto;
  scroll-snap-align: start;
}

@media (min-width: 992px) {
  #product .product__accessories .products,
  #product .ps-categoryproducts .products,
  #product .ps-viewedproduct .products {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
  }

  #product .product__accessories .products > *,
  #product .ps-categoryproducts .products > *,
  #product .ps-viewedproduct .products > * {
    flex: 0 0 calc((100% - 3 * var(--pc-space-3)) / 4);
  }

  /* Exactly five items fill one row instead of leaving an orphan. */
  #product .products:has(> :nth-child(5):last-child) > * {
    flex-basis: calc((100% - 4 * var(--pc-space-3)) / 5);
  }
}

.breadcrumb {
  min-width: 0;
}

.breadcrumb-item {
  min-width: 0;
  white-space: normal;
}

.cart-summary,
.checkout-grid__aside-wrapper .accordion-item,
.cart-grid__summary .card {
  border-color: var(--pc-border);
  border-radius: var(--pc-radius-lg);
}

.checkout-navigation a,
.cart-detailed-product-line a {
  color: var(--pc-slate);
}

.alert-success {
  --bs-alert-border-color: var(--pc-slate-200);
}

/* ==========================================================================
   9. Footer
   Dark navy block with readable light text; copyright row is removed by the
   template override (the checkout keeps its own short line).
   ========================================================================== */
.footer__before {
  background: var(--pc-surface-alt);
}

.blockreassurance--dark,
.blockreassurance {
  background: var(--pc-surface-alt);
  border-block: 1px solid var(--pc-border);
  color: var(--pc-navy);
}

.blockreassurance .reassurance__title,
.blockreassurance .reassurance__content {
  color: var(--pc-navy);
  font-weight: 600;
}

/* Reassurance icons are inline SVGs filled with the module's default blue. */
.reassurance__image svg path[fill] {
  fill: var(--pc-navy);
}

/* Contact sidebar: the e-mail address wraps only when it cannot fit. */
.ps-contactinfo__info a,
.ps-contactinfo__email a {
  font-size: var(--pc-fs-base);
  overflow-wrap: anywhere;
}

.ps-contactinfo__info {
  min-width: 0;
}

/* Slightly smaller so the full address fits the sidebar on one line. */
.ps-contactinfo__info--email a {
  font-size: 0.9375rem;
}

.footer__main {
  background: var(--pc-navy-800);
  color: var(--pc-navy-100);
  padding-block: var(--pc-space-5) var(--pc-space-4);
}

.footer__main .footer-block__title,
.footer__main .footer-block__title a {
  color: #fff;
  font-size: var(--pc-fs-base);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer__main .footer-block a,
.footer__main a {
  color: var(--pc-navy-100);
  text-decoration: none;
}

.footer__main .footer-block a:hover,
.footer__main a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer__main :focus-visible {
  outline-color: #fff;
}

.footer-block__list a {
  font-size: var(--pc-fs-sm);
}

/* ==========================================================================
   10. Responsive
   ========================================================================== */
/* Mobile header: compact paddings, 44px touch targets. */
@media (max-width: 767.98px) {
  #header .header-bottom {
    padding-block: var(--pc-space-2);
  }

  #header .header-block__action-btn {
    min-height: 2.75rem;
    min-width: 2.75rem;
  }

  .section-title {
    font-size: var(--pc-fs-lg);
  }

  .page-title-section h1,
  .page-title-section .h1 {
    font-size: var(--pc-fs-xl);
  }

  .product-miniature__infos {
    padding: var(--pc-space-2);
  }

  .product-miniature__actions {
    padding: 0 var(--pc-space-2) var(--pc-space-2);
  }

  /* No wishlist button on product miniatures below 768px. */
  .product-miniature .wishlist-button-add,
  .product-miniature .wishlist-button {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
