:root {
  --pg-ink: #07142f;
  --pg-ink-soft: #17243d;
  --pg-blue: #075fd9;
  --pg-blue-dark: #034cae;
  --pg-cyan: #12b8d5;
  --pg-green: #0b6b36;
  --pg-muted: #667085;
  --pg-soft: #f6f8fb;
  --pg-border: #dfe5ec;
  --pg-border-strong: #c9d2dc;
  --pg-white: #fff;
  --pg-danger: #c72c41;
  --pg-radius-sm: 8px;
  --pg-radius: 12px;
  --pg-radius-lg: 16px;
  --pg-shadow-sm: 0 4px 14px rgba(7, 20, 47, 0.06);
  --pg-shadow: 0 16px 40px rgba(7, 20, 47, 0.1);
  --pg-container: 1280px;
  --pg-transition: 180ms ease;
}

/* Catégories — navigation contextuelle restaurée */

#category #left-column .piecegsm-sidebar-mobile-header,
.piecegsm-sidebar-backdrop {
  display: none;
}

#category #left-column .block-categories,
#category #left-column .piecegsm-sidebar-availability {
  margin: 0;
  border: 1px solid var(--pg-border);
  background: var(--pg-white);
}

#category #left-column .block-categories {
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: var(--pg-shadow-sm);
}

#category #left-column .piecegsm-sidebar-title {
  min-height: 54px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--pg-white);
  background: var(--pg-blue);
  font-size: 1rem;
  font-weight: 800;
}

#category #left-column .piecegsm-sidebar-title .material-icons {
  font-size: 1.2rem;
}

#category #left-column .category-top-menu {
  margin: 0;
  padding: 0.8rem 1rem 1rem;
}

#category #left-column .category-top-menu > li:first-child > a {
  margin: 0;
  padding: 0.35rem 0.45rem 0.65rem;
  display: block;
  color: var(--pg-ink);
  font-size: 0.92rem;
  font-weight: 800;
}

#category #left-column .category-sub-menu {
  margin: 0;
}

#category #left-column .category-sub-menu li {
  position: relative;
}

#category #left-column .category-sub-menu a {
  min-height: 40px;
  padding: 0.65rem 2.25rem 0.65rem 0.65rem;
  display: flex;
  align-items: center;
  border-radius: 6px;
  color: var(--pg-ink-soft);
  font-size: 0.84rem;
  line-height: 1.25;
}

#category #left-column .category-sub-menu a:hover,
#category #left-column .category-sub-menu a:focus,
#category #left-column .category-sub-menu a[aria-current="page"] {
  color: var(--pg-blue);
  background: rgba(7, 95, 217, 0.09);
  font-weight: 700;
}

#category #left-column .piecegsm-category-disclosure {
  width: 36px;
  height: 36px;
  position: absolute;
  z-index: 1;
  top: 2px;
  right: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--pg-blue);
}

#category #left-column .piecegsm-category-disclosure .material-icons {
  font-size: 1.1rem;
}

#category #left-column .category-sub-menu li[data-depth]:not([data-depth="0"]) > a {
  padding-left: 1rem;
  font-size: 0.79rem;
}

#category #left-column .piecegsm-sidebar-availability {
  padding: 0.9rem 1rem;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: var(--pg-shadow-sm);
}

#category #left-column .piecegsm-sidebar-availability h2 {
  margin: 0 0 0.35rem;
  color: var(--pg-ink);
  font-size: 0.9rem;
}

@media (min-width: 992px) {
  #category #wrapper > .container > .row {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
  }

#category #left-column {
width: 250px;
max-width: 250px;
padding: 0;
display: block;
flex: 0 0 250px;
    position: sticky;
    top: 1rem;
  }

  #category #content-wrapper,
  #category #content-wrapper.left-column {
    width: auto;
    max-width: none;
    padding-right: 0;
    padding-left: 1.5rem;
    flex: 1 1 0;
  }

  #category .piecegsm-catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #category .piecegsm-products-grid,
  #category .products.row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  #category #left-column {
    width: min(88vw, 340px);
    max-width: 340px;
    height: 100dvh;
    padding: 0 0 2rem;
    display: none;
    position: fixed;
    z-index: 1052;
    top: 0;
    bottom: 0;
    left: -340px;
    overflow-y: auto;
    background: var(--pg-white);
    box-shadow: 18px 0 48px rgba(15, 31, 53, 0.2);
    visibility: hidden;
    transform: translateX(-105%);
    transition: transform 180ms ease, visibility 180ms ease;
  }

  #category #left-column.is-open {
    visibility: visible;
    transform: translateX(0);
  }

  #category #left-column .piecegsm-sidebar-mobile-header {
    min-height: 58px;
    padding: 0 0.75rem 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--pg-border);
  }

  #category #left-column .piecegsm-sidebar-close {
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--pg-soft);
    color: var(--pg-ink);
  }

  #category #left-column .block-categories,
  #category #left-column .piecegsm-sidebar-availability {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .piecegsm-sidebar-backdrop {
    width: 100vw;
    height: 100dvh;
    padding: 0;
    display: block;
    position: fixed;
    z-index: 1051;
    inset: 0;
    border: 0;
    background: rgba(10, 25, 45, 0.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  body.piecegsm-catalog-sidebar-open {
    overflow: hidden;
  }

  body.piecegsm-catalog-sidebar-open .piecegsm-sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  #category #left-column,
  .piecegsm-sidebar-backdrop {
    transition: none;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--pg-ink-soft);
  background: var(--pg-white);
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--pg-blue);
  transition: color var(--pg-transition), border-color var(--pg-transition), background-color var(--pg-transition), transform var(--pg-transition), box-shadow var(--pg-transition);
}

a:hover,
a:focus {
  color: var(--pg-blue-dark);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--pg-blue);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--pg-container);
}

.h1,
.h2,
.h3,
.h4,
h1,
h2,
h3,
h4 {
  color: var(--pg-ink);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.btn {
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: var(--pg-radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  transition: background-color var(--pg-transition), border-color var(--pg-transition), color var(--pg-transition), transform var(--pg-transition), box-shadow var(--pg-transition);
}

.btn-primary,
.btn-primary:active,
.btn-primary:focus {
  border-color: var(--pg-blue);
  background: var(--pg-blue);
  color: var(--pg-white);
  box-shadow: none;
}

.btn-primary:hover {
  border-color: var(--pg-blue-dark);
  background: var(--pg-blue-dark);
  color: var(--pg-white);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(7, 95, 217, 0.2);
}

.form-control,
.form-control-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  min-height: 48px;
  border: 1px solid var(--pg-border-strong);
  border-radius: 6px;
  background-color: var(--pg-white);
  color: var(--pg-ink-soft);
  font-size: 1rem;
  box-shadow: none;
  transition: border-color var(--pg-transition), box-shadow var(--pg-transition);
}

.form-control:focus,
.form-control-select:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--pg-blue);
  box-shadow: 0 0 0 3px rgba(7, 95, 217, 0.12);
}

#wrapper {
  padding-top: 1.4rem;
  background: var(--pg-white);
  box-shadow: none;
}

#wrapper .breadcrumb {
  margin-bottom: 1.25rem;
  color: var(--pg-muted);
  font-size: 0.9rem;
}

#wrapper .breadcrumb li::after {
  color: #a9b2bf;
}

#wrapper .breadcrumb li a {
  color: var(--pg-muted);
}

/* Header */

#header {
  position: relative;
  z-index: 40;
  background: var(--pg-white);
  color: var(--pg-ink-soft);
  box-shadow: 0 1px 0 var(--pg-border);
}

#header .header-nav {
  max-height: none;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  background: #fbfcfd;
  color: var(--pg-muted);
  font-size: 0.86rem;
}

#header .header-nav .container,
#header .header-nav .row {
  min-height: 40px;
}

#header .header-nav .hidden-sm-down {
  width: 100%;
}

#header .header-nav .piecegsm-contact-strip,
#header .header-nav .right-nav {
  display: flex;
  min-height: 40px;
  align-items: center;
}

#header .header-nav .right-nav {
  gap: 0.35rem;
  justify-content: flex-end;
}

#header .header-nav .right-nav > div,
#header .header-nav .right-nav > a {
  height: 40px;
  display: flex;
  align-items: center;
}

#header .header-nav .blockcart,
#header .header-nav .user-info {
  height: 40px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--pg-ink-soft);
}

#header .header-nav .blockcart.active {
  background: transparent;
  color: var(--pg-ink-soft);
}

#header .header-nav .blockcart a,
#header .header-nav .user-info a {
  color: inherit;
}

#header .header-nav .piecegsm-header-action {
  position: relative;
  min-height: 34px;
  padding: 0.25rem 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--pg-ink);
  line-height: 1;
  text-decoration: none;
  transition: background-color var(--pg-transition), border-color var(--pg-transition), color var(--pg-transition), box-shadow var(--pg-transition);
}

#header .header-nav .piecegsm-header-action:hover,
#header .header-nav .piecegsm-header-action:focus-visible {
  border-color: #c9dcfa;
  background: #f2f7ff;
  color: var(--pg-blue-dark);
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 85, 198, 0.08);
}

#header .header-nav .piecegsm-header-action:focus-visible,
#header .header-nav .piecegsm-header-logout:focus-visible {
  outline: 2px solid var(--pg-blue);
  outline-offset: 2px;
}

#header .header-nav .piecegsm-header-action__icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #edf4ff;
  color: var(--pg-blue);
  flex: 0 0 28px;
}

#header .header-nav .piecegsm-header-action__icon svg,
#header .header-nav .piecegsm-header-logout svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#header .header-nav .piecegsm-header-action__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

#header .header-nav .piecegsm-header-action__label {
  color: #738096;
  font-size: 0.61rem;
  font-weight: 650;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
}

#header .header-nav .piecegsm-header-action__value {
  max-width: 150px;
  overflow: hidden;
  color: var(--pg-ink);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#header .header-nav .piecegsm-header-logout {
  width: 32px;
  height: 32px;
  margin-left: 0.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #7b8798;
  transition: background-color var(--pg-transition), border-color var(--pg-transition), color var(--pg-transition);
}

#header .header-nav .piecegsm-header-logout:hover,
#header .header-nav .piecegsm-header-logout:focus-visible {
  border-color: #f0cbd1;
  background: #fff5f6;
  color: #b4233a;
}

#header .header-nav .piecegsm-header-action--cart {
  padding-right: 0.6rem;
}

#header .header-nav .cart-products-count {
  min-width: 20px;
  height: 20px;
  padding: 0 0.32rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--pg-blue);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

#header .header-nav .blockcart.inactive .cart-products-count {
  background: #dce3ed;
  color: #59667a;
}

#header .header-top {
  padding: 0.7rem 0 0;
  background: var(--pg-white);
  box-shadow: none;
}

.piecegsm-header-main {
  min-height: 60px;
  align-items: center;
}

#header #_desktop_logo {
  display: flex;
  align-items: center;
  padding-top: 0;
}

#header #_desktop_logo h1 {
  width: 190px;
  height: 48px;
  margin: 0;
  line-height: 0;
  overflow: hidden;
}

#header #_desktop_logo h1 > a,
#header #_desktop_logo > a {
  width: 190px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#header #_desktop_logo img {
  width: auto;
  max-width: none;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

#header .header-top-right {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: flex-end;
}

#header #_desktop_top_menu,
#header #_mobile_top_menu {
  display: none !important;
}

#header #search_widget {
  width: 100%;
  max-width: 720px;
  min-width: 0;
  margin: 0;
  float: none;
  flex: 1 1 720px;
}

#header #search_widget form {
  height: 52px;
  border: 1px solid var(--pg-border-strong);
  border-radius: var(--pg-radius-sm);
  background: var(--pg-white);
  overflow: hidden;
  transition: border-color var(--pg-transition), box-shadow var(--pg-transition);
}

#header #search_widget form:focus-within {
  border-color: var(--pg-blue);
  box-shadow: 0 0 0 3px rgba(7, 95, 217, 0.12);
}

#header #search_widget form input {
  width: 100%;
  height: 50px;
  padding: 0 4.2rem 0 1.15rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pg-ink-soft);
  font-size: 1rem;
  box-shadow: none;
}

#header #search_widget form button[type="submit"] {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 56px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--pg-blue);
  color: var(--pg-white);
}

#header #search_widget form button[type="submit"] .search {
  position: static;
  padding: 0;
}

#header #search_widget form i.clear {
  right: 60px;
}

#header #search_widget form button[type="submit"] .search {
  color: var(--pg-white);
  font-size: 1.6rem;
}

.piecegsm-primary-nav {
  display: flex;
  min-height: 50px;
  margin-top: 0.7rem;
  align-items: center;
  gap: clamp(1.6rem, 3.2vw, 3rem);
  border-top: 1px solid var(--pg-border);
}

.piecegsm-primary-nav a {
  position: relative;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  color: var(--pg-ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.piecegsm-primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--pg-blue);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--pg-transition);
}

.piecegsm-primary-nav a:hover::after,
.piecegsm-primary-nav a:focus::after {
  transform: scaleX(1);
}

.piecegsm-menu-toggle {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pg-ink);
}

.piecegsm-mobile-nav {
  display: grid;
  width: 100%;
  padding: 0.5rem 0;
}

.piecegsm-mobile-nav a {
  display: flex;
  min-height: 50px;
  padding: 0 1rem;
  align-items: center;
  border-bottom: 1px solid var(--pg-border);
  color: var(--pg-ink);
  font-weight: 600;
}

/* Homepage */

#index #wrapper {
  padding-top: 0;
}

#index #wrapper > .container {
  max-width: none;
  padding: 0;
}

#index #wrapper .breadcrumb {
  display: none;
}

#index #content-wrapper {
  padding: 0;
}

.piecegsm-hero {
  border-bottom: 1px solid var(--pg-border);
  background: var(--pg-white);
}

.piecegsm-hero-grid {
  display: grid;
  min-height: 510px;
  padding-right: 0;
  grid-template-columns: minmax(0, 0.95fr) minmax(520px, 1.2fr);
  align-items: stretch;
}

.piecegsm-hero-copy {
  display: flex;
  max-width: 610px;
  padding: 4.8rem 3.8rem 4.8rem 0.75rem;
  flex-direction: column;
  justify-content: center;
}

.piecegsm-hero-copy h1 {
  max-width: 620px;
  margin: 0 0 1.25rem;
  color: var(--pg-ink);
  font-size: clamp(3rem, 4.4vw, 4.45rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.piecegsm-hero-title-line {
  display: block;
  white-space: normal;
}

@media (max-width: 360px) {
  .piecegsm-hero-copy h1,
  .piecegsm-hero-title {
    font-size: 2.15rem;
  }
}

.piecegsm-hero-title {
  max-width: 620px;
  margin: 0 0 1.25rem;
  color: var(--pg-ink);
  font-size: clamp(3rem, 4.4vw, 4.45rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.piecegsm-hero-copy p {
  max-width: 540px;
  margin: 0 0 2rem;
  color: var(--pg-ink-soft);
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.48;
}

.piecegsm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.piecegsm-hero-actions .btn {
  min-width: 190px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.piecegsm-btn-secondary {
  border: 1px solid var(--pg-blue);
  background: var(--pg-white);
  color: var(--pg-blue);
}

.piecegsm-btn-secondary:hover {
  border-color: var(--pg-blue-dark);
  background: #f4f8ff;
  color: var(--pg-blue-dark);
  transform: translateY(-1px);
}

.piecegsm-hero-media {
  min-height: 510px;
  background: var(--pg-white);
  overflow: hidden;
}

.piecegsm-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.piecegsm-categories {
  padding: 2.5rem 0 3rem;
  background: var(--pg-white);
}

.piecegsm-section-heading {
  margin-bottom: 1.5rem;
  text-align: center;
}

.piecegsm-section-heading h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
}

.piecegsm-categories-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
}

.piecegsm-section-heading p {
  margin: 0;
  color: var(--pg-muted);
  font-size: 1rem;
}

.piecegsm-category-rail {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.piecegsm-category-card {
  position: relative;
  display: grid;
  min-height: 148px;
  padding: 1.25rem 1rem;
  grid-template-rows: 1fr auto;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-white);
  color: var(--pg-ink);
  overflow: hidden;
}

.piecegsm-category-card > .material-icons:first-child {
  align-self: center;
  color: var(--pg-blue);
  font-size: 2.7rem;
}

.piecegsm-category-card > span {
  padding-right: 1.5rem;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
}

.piecegsm-category-card .piecegsm-card-arrow {
  position: absolute;
  right: 0.85rem;
  bottom: 1rem;
  color: var(--pg-ink);
  font-size: 1.1rem;
}

.piecegsm-category-card:hover,
.piecegsm-category-card:focus {
  border-color: rgba(7, 95, 217, 0.45);
  color: var(--pg-blue);
  transform: translateY(-3px);
  box-shadow: var(--pg-shadow-sm);
}

.piecegsm-home-modules {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

#index .piecegsm-home-modules > .banner,
#index .piecegsm-home-modules > a.banner,
#index .piecegsm-home-modules #custom-text,
#index .piecegsm-home-modules #carousel {
  display: none !important;
}

#index .piecegsm-home-modules .featured-products {
  width: 100%;
  margin: 0;
  clear: both;
  float: none;
}

#index .piecegsm-home-modules .featured-products > h2,
#index .piecegsm-home-modules .featured-products .products-section-title {
  margin: 0 0 1.7rem;
  color: var(--pg-ink);
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  text-align: left;
  text-transform: none;
}

#index .piecegsm-home-modules .featured-products .all-product-link {
  margin-top: 1.4rem;
  color: var(--pg-blue);
  font-weight: 700;
}

/* Catalog and product cards */

.products {
  align-items: stretch;
}

.products.row {
  display: grid;
  margin: 0;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#index .products.row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#index .piecegsm-home-modules .featured-products .products {
  display: grid;
  margin: 0;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#index .piecegsm-home-modules .featured-products .products > .product-miniature,
#index .piecegsm-home-modules .featured-products .products > article,
#index .piecegsm-home-modules .featured-products .products > div {
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
}

.products.row > .product-miniature,
.products.row > article,
.products.row > div {
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
}

.piecegsm-products-grid {
  display: grid !important;
  margin: 0;
  gap: 1rem;
  align-items: stretch;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#index .piecegsm-products-grid,
#index .piecegsm-home-modules .featured-products .piecegsm-products-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.piecegsm-products-grid > .piecegsm-product-grid-item,
.piecegsm-products-grid > .product-grid-item,
.piecegsm-products-grid > article,
.piecegsm-products-grid > div {
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
}

.piecegsm-products-toolbar {
  margin-bottom: 1.1rem;
  padding: 0.2rem 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.piecegsm-products-count,
.piecegsm-products-controls,
.piecegsm-products-showing {
  color: var(--pg-muted);
  font-size: 0.9rem;
}

.piecegsm-products-section > .piecegsm-active-filters {
  margin-top: 1rem;
}

.piecegsm-category-main {
  width: 100%;
}

.piecegsm-page-title {
  margin: 0 0 0.5rem;
  color: var(--pg-ink);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  text-transform: none;
}

.piecegsm-category-header {
  min-height: 0;
  margin-bottom: 1rem;
  padding: 1.75rem;
  border: 0;
  border-bottom: 1px solid var(--pg-border);
  background: var(--pg-white);
  box-shadow: none;
}

.piecegsm-category-subsection {
  margin-bottom: 1.5rem;
}

.piecegsm-category-title {
  margin: 0 0 0.35rem;
  color: var(--pg-ink);
  font-size: clamp(2rem, 3vw, 3rem);
  text-transform: none;
}

.piecegsm-category-summary {
  align-items: start;
}

.piecegsm-category-description {
  color: var(--pg-muted);
  font-size: 1rem;
  font-weight: 400;
}

.piecegsm-category-cover img {
  width: 118px;
  height: 118px;
  border-radius: var(--pg-radius);
  object-fit: contain;
}

.piecegsm-subcategories {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-white);
}

.piecegsm-subcategories-title {
  margin-bottom: 1rem;
  color: var(--pg-ink);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: none;
}

.piecegsm-subcategories-list {
  display: flex;
  margin: 0;
  padding-bottom: 0.55rem;
  gap: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-color: var(--pg-border-strong) transparent;
  scrollbar-width: thin;
}

.piecegsm-subcategory-item {
  width: 142px;
  min-width: 142px;
  margin: 0;
  flex: 0 0 142px;
  scroll-snap-align: start;
  text-align: left;
}

.piecegsm-subcategory-image-link {
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-sm);
  background: var(--pg-white);
}

.piecegsm-subcategory-image-link:hover {
  border-color: rgba(7, 95, 217, 0.45);
}

.piecegsm-subcategory-name {
  display: block;
  padding: 0.5rem 0.25rem 0;
  color: var(--pg-blue);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-transform: none;
}

.piecegsm-subcategory-image-link img {
  max-width: 86%;
  max-height: 56px;
  object-fit: contain;
}

.piecegsm-subcategory-description {
  color: var(--pg-muted);
  font-size: 1rem;
}

.product-miniature .thumbnail-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-white);
  box-shadow: none;
  overflow: hidden;
  transition: border-color var(--pg-transition), transform var(--pg-transition), box-shadow var(--pg-transition);
}

.product-miniature .thumbnail-container:hover {
  border-color: rgba(7, 95, 217, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--pg-shadow-sm);
}

.product-miniature .thumbnail-container::after {
  display: none;
}

.product-miniature .product-thumbnail {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--pg-white);
  overflow: hidden;
}

.product-miniature .product-thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
  transform: scale(0.92);
  transition: transform 240ms ease;
}

.product-miniature .thumbnail-container:hover .product-thumbnail img {
  transform: scale(0.97);
}

.product-miniature .product-description {
  position: static;
  width: 100%;
  height: auto;
  min-height: 128px;
  padding: 0.9rem 1rem 1rem;
  background: var(--pg-white);
}

.product-miniature .product-title {
  min-height: 2.7em;
  margin: 0 0 0.6rem;
  color: var(--pg-ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

.product-miniature .product-title a {
  color: inherit;
}

.product-miniature .product-price-and-shipping {
  color: var(--pg-ink);
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
}

.product-miniature .product-flags {
  top: 0.75rem;
  left: 0.75rem;
}

.product-miniature .product-flags li.product-flag {
  min-height: auto;
  margin: 0 0 0.35rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  background: var(--pg-blue);
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.03em;
  box-shadow: none;
}

.product-miniature .product-flags li.product-flag.out_of_stock {
  background: var(--pg-danger);
}

.product-miniature .highlighted-informations {
  top: auto;
  right: 0.75rem;
  bottom: 0.75rem;
  left: auto;
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.product-miniature .highlighted-informations .quick-view {
  display: inline-flex;
  width: 40px;
  height: 40px;
  margin: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pg-blue);
  border-radius: 6px;
  background: var(--pg-white);
  color: var(--pg-blue);
  font-size: 0;
}

.product-miniature .highlighted-informations .quick-view .material-icons {
  margin: 0;
  font-size: 1.2rem;
}

.product-miniature .variant-links {
  display: none;
}

.piecegsm-product-shell,
.piecegsm-product-card,
.piecegsm-product-card.product-miniature {
  height: 100%;
}

.piecegsm-product-card .piecegsm-product-image,
.piecegsm-product-card .product-thumbnail {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--pg-white);
  overflow: hidden;
}

.piecegsm-product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
  transform: scale(0.92);
  transition: transform 240ms ease;
}

.piecegsm-product-card:hover .piecegsm-product-image img {
  transform: scale(0.97);
}

.piecegsm-product-card .piecegsm-product-pricing,
.piecegsm-product-card .product-price-and-shipping {
  color: var(--pg-ink);
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
}

.piecegsm-product-card .piecegsm-quick-view,
.piecegsm-product-card .quick-view {
  display: inline-flex;
  width: 40px;
  height: 40px;
  margin: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pg-blue);
  border-radius: 6px;
  background: var(--pg-white);
  color: var(--pg-blue);
  font-size: 0;
}

.piecegsm-product-card .piecegsm-quick-view .material-icons,
.piecegsm-product-card .quick-view .material-icons {
  margin: 0;
  font-size: 1.2rem;
}

.piecegsm-product-card .product-description,
.piecegsm-product-card .product-title,
.piecegsm-product-card .product-price-and-shipping {
  width: 100%;
}

/* Product cards — single component shared by every catalog surface */
.piecegsm-product-shell {
  min-width: 0;
  margin-bottom: 0;
}

.piecegsm-product-card,
.piecegsm-product-card.product-miniature {
  min-width: 0;
  height: 100%;
}

.piecegsm-product-card .thumbnail-container {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid #dfe6f0;
  border-radius: 12px;
  background: var(--pg-white);
  box-shadow: 0 1px 2px rgba(7, 20, 47, 0.02);
  overflow: hidden;
  isolation: isolate;
  transition: border-color var(--pg-transition), transform var(--pg-transition), box-shadow var(--pg-transition);
}

.piecegsm-product-card .thumbnail-container:hover {
  border-color: rgba(7, 95, 217, 0.38);
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(7, 20, 47, 0.1);
}

.piecegsm-product-card .thumbnail-top {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(168px, 15vw, 210px);
  flex: 0 0 auto;
  border-bottom: 1px solid #edf1f6;
  background: #fafbfe;
  overflow: hidden;
}

.piecegsm-product-card .piecegsm-product-image,
.piecegsm-product-card .product-thumbnail {
  position: absolute !important;
  inset: 0 !important;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  width: 100% !important;
  height: 100% !important;
  padding: 0;
  box-sizing: border-box;
  aspect-ratio: auto;
  background: var(--pg-white);
  overflow: hidden;
}

.piecegsm-product-card .piecegsm-product-image picture,
.piecegsm-product-card .product-thumbnail picture {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  flex: 0 0 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.piecegsm-product-card .piecegsm-product-image img,
.piecegsm-product-card .product-thumbnail img {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  object-fit: contain !important;
  object-position: center !important;
  transform: none;
  transition: transform 260ms ease;
}

.piecegsm-product-card .thumbnail-container:hover .piecegsm-product-image img,
.piecegsm-product-card .thumbnail-container:hover .product-thumbnail img {
  transform: none;
}

.piecegsm-product-card .product-description {
  position: static;
  display: flex;
  width: 100%;
  min-height: 174px;
  padding: 1rem;
  flex: 1 1 auto;
  flex-direction: column;
  background: var(--pg-white);
}

.piecegsm-product-card .product-title {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 0;
  color: var(--pg-ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.piecegsm-product-card .product-title a {
  color: inherit;
}

.piecegsm-product-card .product-title a:hover {
  color: var(--pg-blue);
}

.piecegsm-product-reviews {
  min-height: 24px;
  margin-top: 0.35rem;
}

.piecegsm-product-card .piecegsm-product-reviews .product-list-reviews {
  position: static;
  top: auto;
  left: auto;
  justify-content: flex-start;
  width: auto;
  min-height: 20px;
  margin: 0;
  padding: 0;
  background: transparent;
}

.piecegsm-product-card .piecegsm-product-reviews .comments-nb {
  margin-left: 0.35rem;
  color: var(--pg-muted);
  font-size: 0.76rem;
}

.piecegsm-product-card.reviews-loaded:not(.has-reviews) .piecegsm-product-reviews {
  display: none;
}

.piecegsm-product-card-footer {
  display: flex;
  min-width: 0;
  margin-top: auto;
  padding-top: 0.7rem;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.6rem;
  border-top: 1px solid #edf1f6;
}

.piecegsm-product-card-summary {
  min-width: 0;
  flex: 1 1 auto;
}

.piecegsm-product-card .piecegsm-product-pricing,
.piecegsm-product-card .product-price-and-shipping {
  display: flex;
  min-height: 24px;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.45rem;
  color: var(--pg-ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
}

.piecegsm-product-card .piecegsm-price-row {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.piecegsm-product-card .regular-price {
  color: var(--pg-muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration-thickness: 1px;
}

.piecegsm-product-card .discount-product {
  display: inline-flex;
  min-height: 20px;
  padding: 0.15rem 0.38rem;
  align-items: center;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--pg-blue-dark);
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1;
}

.piecegsm-product-status {
  min-height: 1.25em;
  margin-top: 0.32rem;
  color: var(--pg-muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.piecegsm-product-status.is-new {
  color: var(--pg-blue);
}

.piecegsm-product-status.is-low-stock {
  color: #a55b00;
}

.piecegsm-product-status.is-unavailable,
.piecegsm-product-status .piecegsm-status-out {
  color: var(--pg-danger);
}

.piecegsm-product-card .highlighted-informations.piecegsm-product-actions {
  position: static;
  display: flex;
  width: auto;
  height: auto;
  padding: 0;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  box-shadow: none;
}

.piecegsm-card-cart-form {
  margin: 0;
}

.piecegsm-product-card .piecegsm-card-action,
.piecegsm-product-card .piecegsm-quick-view,
.piecegsm-product-card .quick-view {
  display: inline-flex;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd8ea;
  border-radius: 9px;
  background: var(--pg-white);
  color: var(--pg-blue);
  font-size: 0;
  box-shadow: none;
  cursor: pointer;
}

.piecegsm-product-card .piecegsm-card-action:hover,
.piecegsm-product-card .piecegsm-card-action:focus-visible {
  border-color: var(--pg-blue);
  background: #f2f7ff;
  color: var(--pg-blue-dark);
}

.piecegsm-product-card .piecegsm-card-add-to-cart {
  border-color: var(--pg-blue);
  background: var(--pg-blue);
  color: var(--pg-white);
}

.piecegsm-product-card .piecegsm-card-add-to-cart:hover,
.piecegsm-product-card .piecegsm-card-add-to-cart:focus-visible {
  border-color: var(--pg-blue-dark);
  background: var(--pg-blue-dark);
  color: var(--pg-white);
}

.piecegsm-product-card .piecegsm-card-add-to-cart:disabled {
  border-color: #8fb6ea;
  background: #8fb6ea;
  color: var(--pg-white);
  cursor: wait;
}

.piecegsm-product-card .piecegsm-card-action .material-icons,
.piecegsm-product-card .piecegsm-quick-view .material-icons,
.piecegsm-product-card .quick-view .material-icons {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1;
}

.piecegsm-product-card .product-flags {
  top: 0.75rem;
  left: 0.75rem;
  z-index: 8;
}

.piecegsm-product-card .product-flags li.product-flag {
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(7, 20, 47, 0.08);
}

.piecegsm-product-card .product-flags .new,
.piecegsm-product-card .product-flags .out_of_stock {
  display: none;
}

.piecegsm-product-card .thumbnail-container .wishlist-button-add {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 12;
  display: inline-flex;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e6ef;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #536176;
  box-shadow: 0 6px 16px rgba(7, 20, 47, 0.08);
  transition: border-color var(--pg-transition), background-color var(--pg-transition), color var(--pg-transition), transform var(--pg-transition), box-shadow var(--pg-transition);
}

.piecegsm-product-card .thumbnail-container .wishlist-button-add:hover {
  border-color: rgba(7, 95, 217, 0.35);
  background: var(--pg-white);
  color: var(--pg-blue);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(7, 20, 47, 0.12);
}

.piecegsm-product-card .thumbnail-container .wishlist-button-add:focus-visible {
  outline: 3px solid var(--pg-blue);
  outline-offset: 2px;
}

.piecegsm-product-card .thumbnail-container .wishlist-button-add .material-icons {
  margin: 0;
  font-size: 1.28rem;
}

/* Product page bridge classes */
#product .piecegsm-product-page .product-container,
#product .product-container {
  margin: 0 -1rem 2.5rem;
  align-items: flex-start;
}

#product .piecegsm-product-page .product-container > .piecegsm-product-gallery,
#product .piecegsm-product-page .product-container > .piecegsm-product-content {
  padding: 0 1rem;
}

.piecegsm-product-title {
  margin: 0.15rem 0 1rem;
  color: var(--pg-ink);
  font-size: clamp(1.9rem, 2.8vw, 2.65rem);
  font-weight: 800;
  line-height: 1.12;
  text-transform: none;
}

.piecegsm-product-short-description {
  display: none;
}

.piecegsm-product-tabs {
  margin-top: 2.5rem;
  padding: 0;
  border-top: 1px solid var(--pg-border);
  background: var(--pg-white);
  box-shadow: none;
}

.piecegsm-product-tabs .nav-tabs {
  border-bottom: 1px solid var(--pg-border);
}

/* Category listings */

#category #wrapper,
#manufacturer #wrapper,
#supplier #wrapper,
#prices-drop #wrapper,
#new-products #wrapper,
#best-sales #wrapper,
#search #wrapper {
  background: var(--pg-white);
}

#category #left-column,
#manufacturer #left-column,
#supplier #left-column,
#prices-drop #left-column,
#new-products #left-column,
#best-sales #left-column,
#search #left-column {
  display: none;
  padding-left: 0;
}

#category #content-wrapper,
#manufacturer #content-wrapper,
#supplier #content-wrapper,
#prices-drop #content-wrapper,
#new-products #content-wrapper,
#best-sales #content-wrapper,
#search #content-wrapper {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  padding-right: 0;
  padding-left: 0;
}

.block-category {
  min-height: 0;
  margin-bottom: 1rem;
  padding: 1.75rem;
  border: 0;
  border-bottom: 1px solid var(--pg-border);
  background: var(--pg-white);
  box-shadow: none;
}

.block-category h1 {
  margin: 0 0 0.35rem;
  color: var(--pg-ink);
  font-size: clamp(2rem, 3vw, 3rem);
  text-transform: none;
}

.block-category .block-category-inner {
  align-items: start;
}

.block-category .block-category-inner #category-description p,
.block-category .block-category-inner #category-description strong {
  color: var(--pg-muted);
  font-size: 1rem;
  font-weight: 400;
}

.block-category .category-cover img {
  width: 118px;
  height: 118px;
  border-radius: var(--pg-radius);
  object-fit: contain;
}

#subcategories {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-white);
}

#subcategories .subcategory-heading {
  margin-bottom: 1rem;
  color: var(--pg-ink);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: none;
}

#subcategories ul {
  display: flex;
  margin: 0;
  padding-bottom: 0.55rem;
  gap: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-color: var(--pg-border-strong) transparent;
  scrollbar-width: thin;
}

#subcategories ul li {
  width: 142px;
  min-width: 142px;
  margin: 0;
  flex: 0 0 142px;
  scroll-snap-align: start;
  text-align: left;
}

#subcategories ul li .subcategory-image {
  padding: 0;
}

#subcategories ul li .subcategory-image a {
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-sm);
  background: var(--pg-white);
}

#subcategories ul li .subcategory-image a:hover {
  border-color: rgba(7, 95, 217, 0.45);
}

#subcategories ul li .subcategory-image a img {
  max-width: 86%;
  max-height: 56px;
  object-fit: contain;
}

#subcategories ul li .subcategory-name {
  display: block;
  padding: 0.5rem 0.25rem 0;
  color: var(--pg-blue);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-transform: none;
}

.block-categories,
#search_filters {
  margin-bottom: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-white);
  box-shadow: none;
}

.block-categories .h6,
#search_filters .facet .facet-title {
  color: var(--pg-ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: none;
}

.block-categories .category-sub-menu li,
#search_filters .facet .facet-label {
  margin: 0;
  padding: 0.32rem 0;
}

.block-categories .category-sub-menu li > a,
#search_filters .facet .facet-label a {
  color: var(--pg-ink-soft);
  font-size: 0.86rem;
}

.block-categories .category-sub-menu li > a:hover,
#search_filters .facet .facet-label a:hover {
  color: var(--pg-blue);
}

.products-selection {
  margin-bottom: 1.1rem;
  padding: 0.2rem 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.products-selection .total-products,
.products-selection .sort-by {
  color: var(--pg-muted);
  font-size: 0.9rem;
}

.products-sort-order .select-title {
  min-width: 190px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--pg-border-strong);
  border-radius: 6px;
  background: var(--pg-white);
  color: var(--pg-ink-soft);
  box-shadow: none;
}

.pagination {
  margin-top: 1.5rem;
}

.pagination .page-list {
  box-shadow: none;
}

.pagination a,
.pagination .current a {
  color: var(--pg-ink-soft);
  font-weight: 600;
}

.pagination .current a {
  color: var(--pg-blue);
}

/* Product detail */

#product #wrapper {
  background: var(--pg-white);
}

#product #main .product-container {
  margin: 0 -1rem 2.5rem;
  align-items: flex-start;
}

#product #main .product-container > .col-md-6 {
  padding: 0 1rem;
}

#product .page-content {
  position: relative;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-white);
  overflow: hidden;
}

#product .product-cover {
  margin: 0;
}

#product .product-cover img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  background: var(--pg-white);
  object-fit: contain;
}

#product .images-container .product-images > li.thumb-container > .thumb {
  margin: 0.85rem 0.55rem;
  border: 1px solid var(--pg-border);
  border-radius: 6px;
}

#product .images-container .product-images > li.thumb-container > .thumb.selected,
#product .images-container .product-images > li.thumb-container > .thumb:hover {
  border-color: var(--pg-blue);
}

#product .product-container .h1 {
  margin: 0.15rem 0 1rem;
  color: var(--pg-ink);
  font-size: clamp(1.9rem, 2.8vw, 2.65rem);
  font-weight: 800;
  line-height: 1.12;
  text-transform: none;
}

#product .product-prices {
  margin: 0 0 1rem;
}

#product .current-price {
  margin: 0;
}

#product .current-price span {
  color: var(--pg-blue);
  font-size: 2rem;
  font-weight: 800;
}

#product .tax-shipping-delivery-label {
  color: var(--pg-muted);
  font-size: 0.84rem;
}

#product .product-information > .product-description {
  display: none;
}

#product .product-actions {
  margin-top: 1.25rem;
}

#product .product-add-to-cart {
  padding-top: 1.15rem;
  border-top: 1px solid var(--pg-border);
}

#product .product-add-to-cart .control-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--pg-ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

#product .product-quantity {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

#product .product-quantity .qty {
  width: 82px;
}

#product .product-quantity #quantity_wanted {
  width: 82px;
  height: 54px;
  margin: 0;
  border-radius: 6px;
}

#product .product-quantity .add {
  flex: 1 1 auto;
}

#product .product-quantity .add .btn {
  width: 100%;
  height: 54px;
  margin: 0;
}

#product #product-availability {
  display: inline-flex;
  margin-top: 0.9rem;
  align-items: center;
  color: var(--pg-green);
  font-weight: 700;
}

#product #product-availability .material-icons {
  color: var(--pg-green);
}

.piecegsm-product-support {
  display: flex;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px solid var(--pg-border);
}

.piecegsm-product-support > .material-icons {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf2ff;
  color: var(--pg-blue);
}

.piecegsm-product-support p {
  margin: 0;
  color: var(--pg-ink-soft);
  line-height: 1.45;
}

.piecegsm-product-support strong,
.piecegsm-product-support span {
  display: block;
}

.piecegsm-product-support a {
  font-weight: 700;
}

#product .social-sharing {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--pg-border);
}

#product .tabs {
  margin-top: 2.5rem;
  padding: 0;
  border-top: 1px solid var(--pg-border);
  background: var(--pg-white);
  box-shadow: none;
}

#product .tabs .nav-tabs {
  border-bottom: 1px solid var(--pg-border);
}

#product .tabs .nav-tabs .nav-link {
  padding: 1rem 1.1rem;
  border: 0;
  color: var(--pg-muted);
  font-weight: 700;
}

#product .tabs .nav-tabs .nav-link.active,
#product .tabs .nav-tabs .nav-link:hover {
  color: var(--pg-blue);
}

#product .tabs .nav-tabs .nav-link.active {
  border-bottom: 3px solid var(--pg-blue);
}

#product .tabs .tab-content {
  max-width: 980px;
  padding: 1.75rem 1rem 2rem;
  color: var(--pg-ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

/* Cart */

#cart #wrapper,
#checkout #wrapper {
  background: var(--pg-white);
}

#cart .cart-grid-body .card,
#cart .cart-grid-right .card,
#checkout .cart-grid-right .card {
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-white);
  box-shadow: none;
}

#cart .cart-grid-body .card-block,
#cart .cart-grid-right .card-block {
  padding: 1.4rem;
}

#cart .cart-grid-body .card-block h1 {
  color: var(--pg-ink);
  font-size: 1.75rem;
  text-transform: none;
}

#cart .cart-item {
  padding: 1rem 0;
  border-top: 1px solid var(--pg-border);
}

#cart .cart-item .product-line-info a,
#cart .cart-item .product-price {
  color: var(--pg-ink);
}

#cart .cart-summary-line .label,
#cart .cart-summary-line .value {
  color: var(--pg-ink-soft);
}

#cart .cart-summary-line.cart-total {
  padding-top: 1rem;
  border-top: 1px solid var(--pg-border);
}

#cart .cart-summary-line.cart-total .label,
#cart .cart-summary-line.cart-total .value {
  color: var(--pg-ink);
  font-size: 1.1rem;
  font-weight: 800;
}

#cart .checkout .btn {
  width: 100%;
}

/* Checkout */

#checkout #header .header-nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  background: var(--pg-white);
}

#checkout #header #_desktop_logo img {
  max-width: 190px;
}

#checkout #wrapper {
  padding-top: 2rem;
}

#checkout #content > .row {
  align-items: flex-start;
}

#checkout .container-blockreassurance {
  display: none;
}

.piecegsm-checkout-progress {
  position: relative;
  display: grid;
  margin: 0 0 1.25rem;
  padding: 0 0.6rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.piecegsm-checkout-progress::before {
  position: absolute;
  top: 18px;
  right: 12.5%;
  left: 12.5%;
  height: 1px;
  background: var(--pg-border-strong);
  content: "";
}

.piecegsm-progress-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  color: var(--pg-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.piecegsm-progress-number {
  display: inline-flex;
  width: 37px;
  height: 37px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pg-border-strong);
  border-radius: 50%;
  background: var(--pg-white);
  color: var(--pg-muted);
  font-size: 0.9rem;
}

.piecegsm-progress-step.is-current,
.piecegsm-progress-step.is-complete {
  color: var(--pg-blue);
}

.piecegsm-progress-step.is-current .piecegsm-progress-number {
  border-color: var(--pg-blue);
  background: var(--pg-blue);
  color: var(--pg-white);
}

.piecegsm-progress-step.is-complete .piecegsm-progress-number {
  border-color: var(--pg-green);
  background: var(--pg-green);
  color: var(--pg-white);
}

#checkout .checkout-step {
  margin-bottom: 0.85rem;
  padding: 0;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-white);
  box-shadow: none;
  overflow: hidden;
}

#checkout .checkout-step .step-title {
  margin: 0;
  padding: 1.2rem 1.35rem;
  border-bottom: 1px solid transparent;
  color: var(--pg-muted);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
}

#checkout .checkout-step.-current .step-title {
  border-bottom-color: var(--pg-border);
  color: var(--pg-ink);
}

#checkout .checkout-step.-complete .step-title {
  color: var(--pg-ink-soft);
}

#checkout .checkout-step .step-title .step-number {
  display: inline-flex;
  width: 30px;
  height: 30px;
  margin-right: 0.6rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pg-border-strong);
  border-radius: 50%;
  color: inherit;
  font-size: 0.85rem;
}

#checkout .checkout-step.-current .step-title .step-number {
  border-color: var(--pg-blue);
  background: var(--pg-blue);
  color: var(--pg-white);
}

#checkout .checkout-step .content {
  padding: 1.5rem;
}

#checkout .checkout-step .step-edit {
  color: var(--pg-blue) !important;
  font-size: 0.84rem;
}

#checkout .nav-inline {
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--pg-border);
}

#checkout .nav-inline .nav-link {
  padding: 0.7rem 0.85rem;
  color: var(--pg-muted);
  font-weight: 600;
}

#checkout .nav-inline .nav-link.active {
  border-bottom: 2px solid var(--pg-blue);
  color: var(--pg-blue);
}

#checkout .form-group {
  margin-bottom: 1.15rem;
}

#checkout .form-control-label {
  padding-top: 0.7rem;
  color: var(--pg-ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

#checkout .form-control-comment,
#checkout .form-informations,
#checkout .help-block {
  color: var(--pg-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

#checkout .form-informations {
  margin: 1.5rem 0 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--pg-border);
}

#checkout .form-informations-title {
  color: var(--pg-ink-soft);
  font-size: 1.05rem;
}

#checkout .continue.btn,
#checkout .js-address-form .form-footer .btn {
  min-width: 180px;
}

#checkout .delivery-option {
  margin-bottom: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-sm);
  background: var(--pg-white);
  transition: border-color var(--pg-transition), box-shadow var(--pg-transition);
}

#checkout .delivery-option:hover,
#checkout .delivery-option:has(input:checked) {
  border-color: var(--pg-blue);
  box-shadow: 0 0 0 2px rgba(7, 95, 217, 0.08);
}

#checkout .payment-option {
  min-height: 64px;
  margin-bottom: 0.65rem;
  padding: 1rem;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-sm);
  background: var(--pg-white);
  transition: border-color var(--pg-transition), box-shadow var(--pg-transition);
}

.piecegsm-js #checkout .payment-option .ps-hidden-by-js {
  display: none !important;
}

#checkout .payment-option:hover,
#checkout .payment-option:has(input:checked) {
  border-color: var(--pg-blue);
  box-shadow: 0 0 0 2px rgba(7, 95, 217, 0.08);
}

#checkout .payment-option label {
  min-height: 30px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--pg-ink);
  font-weight: 700;
  cursor: pointer;
}

#checkout .payment-option label img {
  width: auto;
  max-width: 120px;
  max-height: 32px;
}

#checkout .payment-options .additional-information {
  margin: -0.15rem 0 1rem;
  padding: 0 1.15rem;
  color: var(--pg-ink-soft);
  line-height: 1.55;
}

.piecegsm-checkout-summary {
  position: sticky;
  top: 1rem;
  border: 1px solid var(--pg-border) !important;
  border-radius: var(--pg-radius) !important;
  background: var(--pg-white);
  box-shadow: var(--pg-shadow-sm) !important;
  overflow: hidden;
}

.piecegsm-summary-toggle {
  display: flex;
  width: 100%;
  min-height: 64px;
  padding: 0 1.15rem;
  align-items: center;
  gap: 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--pg-border);
  background: var(--pg-white);
  color: var(--pg-ink);
  font-size: 1rem;
  text-align: left;
}

.piecegsm-summary-toggle span {
  flex: 1 1 auto;
  font-weight: 700;
}

.piecegsm-summary-toggle strong {
  font-size: 1.08rem;
}

.piecegsm-summary-toggle .material-icons {
  color: var(--pg-blue);
  transition: transform var(--pg-transition);
}

.piecegsm-checkout-summary.is-collapsed .piecegsm-summary-details {
  display: none;
}

.piecegsm-checkout-summary.is-collapsed .piecegsm-summary-toggle {
  border-bottom: 0;
}

.piecegsm-checkout-summary:not(.is-collapsed) .piecegsm-summary-toggle .material-icons {
  transform: rotate(180deg);
}

#checkout .cart-grid-right .card-block {
  padding: 1rem 1.15rem;
}

#checkout .cart-summary-line {
  color: var(--pg-ink-soft);
}

#checkout .cart-summary-line.cart-total {
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--pg-border);
}

#checkout .cart-summary-line.cart-total .label,
#checkout .cart-summary-line.cart-total .value {
  color: var(--pg-ink);
  font-size: 1.08rem;
  font-weight: 800;
}

/* Footer */

#footer {
  padding-top: 0;
  background: var(--pg-white);
}

.footer-container {
  margin-top: 0;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--pg-border);
  background: var(--pg-white);
  box-shadow: none;
}

.footer-container .h3,
.footer-container .h4,
.footer-container .links .h3 {
  margin-bottom: 1rem;
  color: var(--pg-ink);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-container li a,
.footer-container .block-contact,
.footer-container .block-contact a {
  color: var(--pg-muted);
  font-size: 0.88rem;
}

.footer-container li a:hover,
.footer-container .block-contact a:hover {
  color: var(--pg-blue);
}

.block_newsletter {
  padding: 2rem 0;
  border-top: 1px solid var(--pg-border);
  border-bottom: 1px solid var(--pg-border);
  background: var(--pg-white);
}

.block_newsletter p,
.block_newsletter form input[type="email"] {
  color: var(--pg-muted);
}

.block_newsletter form input[type="email"] {
  height: 50px;
  border-color: var(--pg-border-strong);
}

.block_newsletter form input[type="submit"] {
  height: 50px;
  border-radius: 0 6px 6px 0;
  background: var(--pg-blue);
  color: var(--pg-white);
  font-weight: 700;
}

/* Responsive */

@media (max-width: 1199px) {
  .piecegsm-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(460px, 1fr);
  }

  .piecegsm-hero-copy {
    padding-left: 1.25rem;
  }

  .piecegsm-category-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #subcategories ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .products.row,
  .piecegsm-products-grid,
  #index .products.row,
  #index .piecegsm-products-grid,
  #index .piecegsm-home-modules .featured-products .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .piecegsm-hero-copy h1,
  .piecegsm-hero-title {
    font-size: clamp(2.55rem, 6vw, 3rem);
  }

  .piecegsm-hero-grid {
    min-height: 460px;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 1fr);
  }

  .piecegsm-hero-copy {
    padding: 3.2rem 2rem 3.2rem 1.25rem;
  }

  .piecegsm-hero-media {
    min-height: 460px;
  }

  #product .product-container .h1 {
    font-size: 1.9rem;
  }

  #product .product-quantity {
    flex-wrap: wrap;
  }

  #product .product-quantity .add {
    min-width: 220px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  #wrapper {
    padding-top: 1rem;
  }

  #header .header-nav {
    height: 64px;
    border-bottom: 1px solid var(--pg-border);
    background: var(--pg-white);
  }

  #header .header-nav .container,
  #header .header-nav .row,
  #header .header-nav .mobile {
    height: 64px;
    min-height: 64px;
  }

  #header .header-nav .mobile {
    display: flex;
    align-items: center;
  }

  #header .header-nav .mobile #menu-icon {
    order: 1;
  }

  #header .header-nav .mobile #_mobile_logo {
    display: flex;
    min-width: 0;
    margin-right: auto;
    order: 2;
    align-items: center;
  }

  #header .header-nav .mobile #_mobile_user_info {
    order: 3;
  }

  #header .header-nav .mobile #_mobile_cart {
    order: 4;
  }

  #header .header-nav .top-logo a {
    width: 132px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

#header .header-nav .top-logo img {
    width: auto;
    max-width: none;
    height: auto;
    max-height: 34px;
    margin: 0;
    object-fit: contain;
  }

  #header .header-nav .user-info,
  #header .header-nav .blockcart {
    min-width: 46px;
    height: 64px;
    margin: 0;
    padding: 0 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #header .header-nav .piecegsm-header-action__copy,
  #header .header-nav .piecegsm-header-logout {
    display: none !important;
  }

  #header .header-nav .piecegsm-header-action {
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    justify-content: center;
    border-radius: 11px;
  }

  #header .header-nav .piecegsm-header-action__icon {
    width: 34px;
    height: 34px;
    background: transparent;
    flex-basis: 34px;
  }

  #header .header-nav .piecegsm-header-action__icon svg {
    width: 23px;
    height: 23px;
  }

  #header .header-nav .piecegsm-header-action--cart {
    padding: 0;
  }

  #header .header-nav .cart-products-count {
    position: absolute;
    top: 4px;
    right: 1px;
    min-width: 18px;
    height: 18px;
    padding: 0 0.25rem;
    border: 2px solid #fff;
    font-size: 0.62rem;
  }

  #header .header-top {
    padding: 0.8rem 0;
  }

  #header .header-top .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  #header .header-top-right {
    min-height: 50px;
    padding: 0;
  }

  #header #search_widget {
    width: 100%;
  }

  #header #search_widget form,
  #header #search_widget form button[type="submit"] {
    height: 50px;
  }

  #header #search_widget form input {
    height: 48px;
    font-size: 0.95rem;
  }

  #mobile_top_menu_wrapper {
    width: calc(100% + 32px);
    margin: 0.8rem -16px -0.8rem;
    border-top: 1px solid var(--pg-border);
    background: var(--pg-white);
    box-shadow: 0 14px 26px rgba(7, 20, 47, 0.12);
  }

  #index #wrapper > .container {
    padding: 0;
  }

  .piecegsm-hero-grid {
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .piecegsm-hero-copy {
    max-width: none;
    padding: 3rem 20px 1.6rem;
    order: 1;
  }

  .piecegsm-hero-copy h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.55rem, 12vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
  }

  .piecegsm-hero-title {
    margin-bottom: 1rem;
    font-size: clamp(2.55rem, 12vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
  }

  .piecegsm-hero-copy p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    line-height: 1.45;
  }

  .piecegsm-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .piecegsm-hero-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .piecegsm-hero-actions .piecegsm-btn-secondary {
    display: none;
  }

  .piecegsm-hero-media {
    min-height: 0;
    height: min(78vw, 390px);
    order: 2;
  }

  .piecegsm-hero-media img {
    object-position: center;
  }

  .piecegsm-categories {
    padding: 2.25rem 0 2.5rem;
  }

  .piecegsm-section-heading {
    padding: 0 0.4rem;
    text-align: left;
  }

  .piecegsm-section-heading h2 {
    font-size: 1.85rem;
    line-height: 1.12;
  }

  .piecegsm-category-rail {
    display: flex;
    margin-right: -16px;
    padding-right: 16px;
    gap: 0.75rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .piecegsm-category-rail::-webkit-scrollbar {
    display: none;
  }

  .piecegsm-category-card {
    min-width: 148px;
    min-height: 150px;
    flex: 0 0 148px;
    scroll-snap-align: start;
  }

  .piecegsm-home-modules {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  #index .piecegsm-home-modules .featured-products > h2,
  #index .piecegsm-home-modules .featured-products .products-section-title {
    font-size: 1.85rem;
  }

  .products.row,
  #index .products.row,
  #index .piecegsm-home-modules .featured-products .products {
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-miniature .product-description {
    min-height: 125px;
    padding: 0.75rem;
  }

  .product-miniature .product-title {
    font-size: 0.82rem;
  }

  .product-miniature .highlighted-informations {
    display: none;
  }

  .block-category {
    padding: 1.25rem 0;
  }

  .block-category h1 {
    font-size: 2rem;
  }

  .block-category .category-cover {
    display: none;
  }

  #subcategories {
    margin-right: -16px;
    margin-left: -16px;
    padding: 1rem 16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  #subcategories ul {
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  #subcategories ul::-webkit-scrollbar {
    display: none;
  }

  #subcategories ul li {
    min-width: 132px;
    flex: 0 0 132px;
    scroll-snap-align: start;
  }

  #category #left-column,
  #manufacturer #left-column,
  #supplier #left-column,
  #prices-drop #left-column,
  #new-products #left-column,
  #best-sales #left-column,
  #search #left-column {
    padding: 0;
  }

  #search_filter_controls {
    margin-bottom: 0.75rem;
  }

  #product #main .product-container {
    margin: 0 0 1.5rem;
  }

  #product #main .product-container > .col-md-6 {
    padding: 0;
  }

  #product .page-content {
    margin-bottom: 1.4rem;
  }

  #product .product-container .h1 {
    font-size: 1.85rem;
    line-height: 1.17;
  }

  #product .product-quantity {
    flex-wrap: nowrap;
  }

  #product .product-quantity .add {
    min-width: 0;
  }

  #product .product-quantity .add .btn {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    font-size: 0.88rem;
  }

  #product .tabs {
    margin-top: 1.5rem;
  }

  #product .tabs .nav-tabs {
    display: flex;
    overflow-x: auto;
  }

  #product .tabs .nav-tabs .nav-item {
    flex: 0 0 auto;
  }

  #cart .cart-grid-body,
  #cart .cart-grid-right,
  #checkout .cart-grid-body,
  #checkout .cart-grid-right {
    padding: 0;
  }

  #cart .cart-grid-right {
    margin-top: 1rem;
  }

  #checkout #header .header-nav {
    min-height: 64px;
  }

  #checkout #wrapper {
    padding-top: 1rem;
  }

  #checkout #content > .row {
    display: flex;
    margin: 0;
    flex-direction: column;
  }

  #checkout #content > .row > .piecegsm-checkout-progress {
    width: 100%;
    order: -2;
  }

  #checkout .cart-grid-right {
    margin-bottom: 1rem;
    order: -1;
  }

  .piecegsm-checkout-summary {
    position: static;
    margin-bottom: 0;
    box-shadow: none !important;
  }

  .piecegsm-checkout-progress {
    margin: 0.25rem 0 1rem;
    padding: 0;
  }

  .piecegsm-checkout-progress::before {
    right: 12%;
    left: 12%;
  }

  .piecegsm-progress-label {
    font-size: 0.7rem;
  }

  #checkout .checkout-step {
    margin-bottom: 0.7rem;
  }

  #checkout .checkout-step .step-title {
    padding: 1rem;
    font-size: 1rem;
  }

  #checkout .checkout-step .content {
    padding: 1.15rem 1rem 1.25rem;
  }

  #checkout .checkout-step .content .form-group {
    margin-right: 0;
    margin-left: 0;
  }

  #checkout .form-control-label {
    padding-right: 0;
    padding-bottom: 0.35rem;
    padding-left: 0;
    text-align: left;
  }

  #checkout .form-control-comment {
    padding-top: 0.35rem;
    padding-left: 0;
  }

  #checkout .continue.btn,
  #checkout .js-address-form .form-footer .btn {
    width: 100%;
    min-width: 0;
    float: none !important;
  }

  #checkout .delivery-option {
    padding: 0.8rem;
  }

  .block_newsletter {
    padding: 1.5rem 0;
  }

  .footer-container {
    padding: 2rem 0 1.25rem;
  }

  .footer-container .links .title {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--pg-border);
  }
}

@media (max-width: 420px) {
  .piecegsm-hero-copy h1,
  .piecegsm-hero-title {
    font-size: 2.65rem;
  }

  .products.row,
  .piecegsm-products-grid,
  #index .products.row,
  #index .piecegsm-products-grid,
  #index .piecegsm-home-modules .featured-products .products {
    grid-template-columns: 1fr 1fr;
  }

  .piecegsm-progress-label {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Ajustements ciblés : hero, header, contrôles produit et catalogue */

@media (min-width: 768px) {
  .piecegsm-hero-media {
    position: relative;
  }

  .piecegsm-hero-media::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: clamp(72px, 9vw, 128px);
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.92) 24%, rgba(255, 255, 255, 0.52) 58%, rgba(255, 255, 255, 0) 100%);
    content: "";
    pointer-events: none;
  }
}

#product .product-quantity .qty {
  width: 94px;
  flex: 0 0 94px;
}

#product .product-quantity .bootstrap-touchspin {
  width: 94px;
  height: 54px;
  display: grid;
  grid-template-columns: 1fr 30px;
  border: 1px solid var(--pg-border-strong);
  border-radius: 6px;
  background: var(--pg-white);
  box-shadow: none;
  overflow: hidden;
}

#product .product-quantity .bootstrap-touchspin .input-group-addon {
  display: none !important;
}

#product .product-quantity .bootstrap-touchspin #quantity_wanted {
  width: 62px;
  height: 52px;
  padding: 0 0.75rem;
  grid-column: 1;
  grid-row: 1;
  border: 0;
  border-radius: 0;
  background: var(--pg-white);
  box-shadow: none;
  appearance: textfield;
}

#product .product-quantity .bootstrap-touchspin #quantity_wanted::-webkit-inner-spin-button,
#product .product-quantity .bootstrap-touchspin #quantity_wanted::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

#product .product-quantity .bootstrap-touchspin .input-group-btn-vertical {
  position: static;
  width: 30px;
  height: 52px;
  display: flex;
  grid-column: 2;
  grid-row: 1;
  flex-direction: column;
  border-left: 1px solid var(--pg-border-strong);
}

#product .product-quantity .bootstrap-touchspin .btn-touchspin {
  position: static;
  width: 29px;
  min-width: 0;
  height: 26px !important;
  min-height: 0 !important;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: #f8fafc;
  color: var(--pg-ink);
  box-shadow: none;
  flex: 0 0 26px;
  line-height: 1;
}

#product .product-quantity .bootstrap-touchspin .bootstrap-touchspin-up {
  border-bottom: 1px solid var(--pg-border-strong);
}

#product .product-quantity .bootstrap-touchspin .touchspin-up::before,
#product .product-quantity .bootstrap-touchspin .touchspin-down::before {
  font-family: "Material Icons";
  font-size: 18px;
  line-height: 1;
}

#product .product-quantity .bootstrap-touchspin .btn-touchspin > i {
  display: none;
}

#product .product-quantity .bootstrap-touchspin .btn-touchspin::before {
  font-family: "Material Icons";
  font-size: 18px;
  line-height: 1;
}

#product .product-quantity .bootstrap-touchspin .bootstrap-touchspin-up::before {
  content: "keyboard_arrow_up";
}

#product .product-quantity .bootstrap-touchspin .bootstrap-touchspin-down::before {
  content: "keyboard_arrow_down";
}

#product .product-quantity .bootstrap-touchspin .touchspin-up::before {
  content: "keyboard_arrow_up";
}

#product .product-quantity .bootstrap-touchspin .touchspin-down::before {
  content: "keyboard_arrow_down";
}

/* Aperçu rapide : sélecteur de quantité horizontal, lisible et sans débordement. */
.quickview .product-add-to-cart .control-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--pg-ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.quickview .product-quantity {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.quickview .product-quantity .qty {
  width: 118px;
  margin: 0;
  flex: 0 0 118px;
}

.quickview .product-quantity .bootstrap-touchspin {
  width: 118px;
  height: 48px;
  display: grid;
  grid-template-columns: 36px 46px 36px;
  grid-template-rows: 46px;
  border: 1px solid var(--pg-border-strong);
  border-radius: 8px;
  background: var(--pg-white);
  box-shadow: none;
  overflow: hidden;
}

.quickview .product-quantity .bootstrap-touchspin .input-group-addon {
  display: none !important;
}

.quickview .product-quantity .bootstrap-touchspin #quantity_wanted {
  width: 46px;
  height: 46px;
  min-width: 0;
  margin: 0;
  padding: 0 0.25rem;
  grid-column: 2;
  grid-row: 1;
  border: 0;
  border-radius: 0;
  background: var(--pg-white);
  color: var(--pg-ink);
  font-weight: 750;
  text-align: center;
  box-shadow: none;
  appearance: textfield;
}

.quickview .product-quantity .bootstrap-touchspin #quantity_wanted::-webkit-inner-spin-button,
.quickview .product-quantity .bootstrap-touchspin #quantity_wanted::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.quickview .product-quantity .bootstrap-touchspin .input-group-btn-vertical {
  display: contents;
}

.quickview .product-quantity .bootstrap-touchspin .btn-touchspin {
  position: static;
  width: 36px;
  min-width: 0;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: #f8fafc;
  color: var(--pg-ink);
  box-shadow: none;
  line-height: 1;
}

.quickview .product-quantity .bootstrap-touchspin .bootstrap-touchspin-down {
  grid-column: 1;
  grid-row: 1;
  border-right: 1px solid var(--pg-border-strong);
}

.quickview .product-quantity .bootstrap-touchspin .bootstrap-touchspin-up {
  grid-column: 3;
  grid-row: 1;
  border-left: 1px solid var(--pg-border-strong);
}

.quickview .product-quantity .bootstrap-touchspin .btn-touchspin > i {
  display: none;
}

.quickview .product-quantity .bootstrap-touchspin .btn-touchspin::before {
  display: block;
  color: currentColor;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.quickview .product-quantity .bootstrap-touchspin .bootstrap-touchspin-up::before {
  content: "+";
}

.quickview .product-quantity .bootstrap-touchspin .bootstrap-touchspin-down::before {
  content: "\2212";
}

.quickview .product-quantity .bootstrap-touchspin .btn-touchspin:hover,
.quickview .product-quantity .bootstrap-touchspin .btn-touchspin:focus-visible {
  background: #edf4ff;
  color: var(--pg-blue-dark);
}

.quickview .product-quantity .add {
  min-width: 168px;
  margin: 0;
  flex: 1 1 190px;
}

.quickview .product-quantity .add .btn {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  white-space: nowrap;
}

@media (max-width: 575px) {
  .quickview .product-quantity {
    gap: 0.625rem;
  }

  .quickview .product-quantity .qty {
    width: 112px;
    flex-basis: 112px;
  }

  .quickview .product-quantity .bootstrap-touchspin {
    width: 112px;
    grid-template-columns: 34px 42px 34px;
  }

  .quickview .product-quantity .bootstrap-touchspin #quantity_wanted {
    width: 42px;
  }

  .quickview .product-quantity .bootstrap-touchspin .btn-touchspin {
    width: 34px;
  }

  .quickview .product-quantity .add {
    min-width: min(100%, 168px);
    flex-basis: 168px;
  }
}

.products-sort-order .select-title {
  height: 44px;
  min-height: 44px;
  padding: 0 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.2;
}

.products-sort-order .select-title .material-icons {
  margin-left: 1rem;
  line-height: 1;
}

.piecegsm-apple-brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.piecegsm-footer-signature {
  margin: 1.4rem 0 0;
  color: var(--pg-muted);
  font-size: 0.84rem;
}

.piecegsm-footer-signature a {
  color: var(--pg-blue);
  font-weight: 600;
}

#header #search_widget form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: none !important;
}

#header #search_widget form button[type="submit"] .search {
  position: static !important;
  width: auto;
  height: auto;
  margin: 0;
  display: block;
  line-height: 1;
  transform: none;
}

@media (max-width: 767px) {
  #header .header-nav,
  #header .header-nav .container,
  #header .header-nav .row,
  #header .header-nav .mobile {
    height: 56px;
    min-height: 56px;
  }

  #header .header-nav .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  #header .header-nav .row {
    width: 100%;
    margin: 0;
  }

  #header .header-nav .mobile {
    width: 100%;
    padding: 0;
  }

  #header .header-nav .mobile #menu-icon {
    width: 40px;
    margin-right: 0.5rem;
  }

  #header .header-nav .top-logo a,
  #checkout #header .header-nav .top-logo a {
    width: 120px;
    height: 38px;
  }

  #header .header-nav .top-logo img.piecegsm-brand-logo,
  #checkout #header .header-nav .top-logo img.piecegsm-brand-logo {
    width: 118px;
    max-height: 38px;
  }

  #header .header-top {
    padding: 0.25rem 0 0.5rem;
  }

  #header .header-top-right {
    min-height: 46px;
  }

  #header #search_widget form,
  #header #search_widget form button[type="submit"] {
    height: 46px;
  }

  #header #search_widget form input {
    height: 44px;
  }

  #header .piecegsm-hero-media {
    position: relative;
  }

  #header .piecegsm-hero-media::before {
    display: none;
  }

  .products-sort-order .select-title {
    height: 48px;
    min-height: 48px;
  }

  .piecegsm-hero-copy {
    padding: 1.5rem 16px 0;
  }

  .piecegsm-hero-copy h1,
  .piecegsm-hero-title {
    margin-bottom: 0.9rem;
    font-size: 2.4rem;
    line-height: 1.04;
  }

  .piecegsm-hero-copy p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .piecegsm-hero-actions .btn {
    min-height: 48px;
  }

  .piecegsm-hero-actions {
    position: relative;
    z-index: 2;
  }

  .piecegsm-hero-media {
    position: relative;
    z-index: 1;
    margin-top: -1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Maquettes PieceGSM 2026 — composition et responsive final */

:root {
  --pg-container: 1320px;
}

@media (min-width: 768px) {
  .container {
    width: calc(100% - 8rem);
    max-width: var(--pg-container);
  }
}

#header .piecegsm-contact-strip a {
  color: var(--pg-blue);
  font-weight: 700;
}

#header .header-top {
  padding-top: 1.15rem;
}

.piecegsm-header-main {
  min-height: 72px;
}

#header #_desktop_logo h1,
#header #_desktop_logo > a,
#header #_desktop_logo h1 > a {
  width: 190px;
  height: 54px;
  padding: 0;
  justify-content: flex-start;
}

#header #_desktop_logo img.piecegsm-brand-logo {
  width: 188px;
  height: auto;
  max-height: 54px;
  filter: saturate(1.55) contrast(1.08);
}

#header .header-top-right {
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .piecegsm-hero-grid {
    height: 510px;
    min-height: 510px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .piecegsm-hero-copy {
    max-width: none;
    padding-top: 3rem;
    padding-right: 1.25rem;
    padding-bottom: 3rem;
  }

  .piecegsm-hero-copy h1,
  .piecegsm-hero-title {
    max-width: 620px;
    font-size: clamp(3rem, 4.25vw, 4.15rem);
  }
}

.piecegsm-primary-nav {
  min-height: 56px;
  margin-top: 0.6rem;
}

.piecegsm-primary-nav a {
  min-height: 56px;
}

.piecegsm-category-card {
  min-height: 172px;
  padding: 0.8rem 1rem 1rem;
  grid-template-rows: 112px auto;
  border-radius: 7px;
}

.piecegsm-category-card > .piecegsm-category-visual {
  width: 100%;
  height: 112px;
  padding: 0;
  display: block;
  align-self: stretch;
  background-image: url("../img/category-components-v1.png");
  background-repeat: no-repeat;
  background-size: 700% auto;
  background-position-y: 50%;
}

.piecegsm-category-visual--screen { background-position-x: 0%; }
.piecegsm-category-visual--battery { background-position-x: 16.6667%; }
.piecegsm-category-visual--connector { background-position-x: 33.3333%; }
.piecegsm-category-visual--camera { background-position-x: 50%; }
.piecegsm-category-visual--speaker { background-position-x: 66.6667%; }
.piecegsm-category-visual--chassis { background-position-x: 83.3333%; }
.piecegsm-category-visual--components { background-position-x: 100%; }

.piecegsm-category-card > span:not(.piecegsm-category-visual) {
  padding-right: 1.2rem;
  align-self: end;
  font-size: 0.95rem;
  white-space: nowrap;
}

.piecegsm-category-card .piecegsm-card-arrow {
  right: 0.65rem;
  bottom: 0.9rem;
  font-size: 1.25rem;
}

/* Catégorie */

#category .piecegsm-category-intro {
  margin-bottom: 1rem;
}

#category .piecegsm-category-header {
  margin: 0;
  padding: 0;
  border: 0;
}

#category .piecegsm-category-title {
  margin: 0 0 0.15rem;
  font-size: clamp(2.25rem, 3vw, 2.8rem);
  line-height: 1.05;
}

#category .piecegsm-category-description,
#category .piecegsm-category-description p {
  margin: 0;
  color: var(--pg-muted);
  font-size: 1.05rem;
}

#category .piecegsm-category-subsection {
  margin-bottom: 1.65rem;
}

#category #subcategories.piecegsm-subcategories {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#category #subcategories .piecegsm-subcategories-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.85rem;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  overflow: visible;
}

#category #subcategories .piecegsm-subcategory-item {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.piecegsm-subcategory-link {
  min-height: 50px;
  padding: 0.55rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--pg-border);
  border-radius: 5px;
  background: var(--pg-white);
  color: var(--pg-blue);
  transition: border-color var(--pg-transition), box-shadow var(--pg-transition), transform var(--pg-transition);
}

.piecegsm-subcategory-link:hover,
.piecegsm-subcategory-link:focus {
  border-color: rgba(7, 95, 217, 0.45);
  transform: translateY(-1px);
  box-shadow: var(--pg-shadow-sm);
}

#category #subcategories .piecegsm-subcategory-image-link {
  width: 38px;
  height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  border: 0;
}

#category #subcategories .piecegsm-subcategory-image-link img {
  width: auto;
  max-width: 38px;
  height: auto;
  max-height: 25px;
  object-fit: contain;
}

#category #subcategories .piecegsm-subcategory-name {
  padding: 0;
  color: var(--pg-blue);
  font-size: 0.72rem;
  line-height: 1.15;
  text-align: left;
}

.piecegsm-brand-fallback {
  color: var(--pg-ink);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.piecegsm-all-brands-link {
  color: var(--pg-ink);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.piecegsm-all-brands-link .material-icons {
  font-size: 1rem;
}

.piecegsm-catalog-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
}

.piecegsm-catalog-layout--full {
  grid-template-columns: minmax(0, 1fr);
}

.piecegsm-catalog-filters {
  border: 1px solid var(--pg-border);
  border-radius: 6px;
  background: var(--pg-white);
  overflow: hidden;
}

.piecegsm-filter-header {
  min-height: 52px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--pg-border);
}

.piecegsm-filter-header strong {
  color: var(--pg-ink);
  font-size: 1.05rem;
}

.piecegsm-filter-header a {
  font-size: 0.8rem;
}

.piecegsm-filter-group {
  padding: 1rem;
  border-bottom: 1px solid var(--pg-border);
}

.piecegsm-filter-group:last-child {
  border-bottom: 0;
}

.piecegsm-filter-group h2 {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.piecegsm-filter-options {
  display: grid;
  gap: 0.45rem;
}

.piecegsm-filter-option {
  width: 100%;
  min-height: 26px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 0;
  background: transparent;
  color: var(--pg-ink-soft);
  font-size: 0.82rem;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.piecegsm-filter-option:hover,
.piecegsm-filter-option:focus {
  color: var(--pg-blue);
}

.piecegsm-filter-checkbox {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 1px solid var(--pg-border-strong);
  background: var(--pg-white);
}

.piecegsm-stock-filter[aria-pressed="true"] .piecegsm-filter-checkbox {
  border-color: var(--pg-blue);
  background: var(--pg-blue);
  box-shadow: inset 0 0 0 3px var(--pg-white);
}

.piecegsm-products-section {
  min-width: 0;
}

/* Fiche produit */

#product .piecegsm-product-page .product-container {
  margin-bottom: 0;
}

#product .piecegsm-product-gallery {
  flex: 0 0 52%;
  max-width: 52%;
}

#product .piecegsm-product-content {
  flex: 0 0 48%;
  max-width: 48%;
  padding-left: 2.75rem !important;
}

#product .page-content {
  width: 100%;
  max-width: none;
  border-radius: 7px;
}

#product .piecegsm-clean-product-images .product-cover img {
  width: 100%;
  height: 310px;
  aspect-ratio: 1.45 / 1;
  padding: 1.5rem;
  object-fit: contain;
}

#product .piecegsm-clean-product-images .product-cover {
  width: 100%;
  max-width: none;
}

#product .piecegsm-product-gallery .product-flags,
#product .piecegsm-product-content .wishlist-button,
#product .piecegsm-product-content .tax-shipping-delivery-label {
  display: none !important;
}

#product .product-add-to-cart {
  display: flex;
  flex-direction: column;
}

#product .product-add-to-cart #product-availability {
  width: 100%;
  margin: 0 0 1rem;
  order: 1;
}

#product .product-add-to-cart > .control-label {
  order: 2;
}

#product .product-add-to-cart > .product-quantity {
  order: 3;
}

#product .product-add-to-cart > .product-minimal-quantity {
  order: 4;
}

#product .product-add-to-cart > .piecegsm-product-support {
  order: 5;
}

#product .piecegsm-clean-product-images .mask {
  width: 100%;
}

#product .piecegsm-clean-product-images .product-images {
  justify-content: flex-start;
}

#product .product-container .h1,
#product .piecegsm-product-title {
  margin-top: 0;
  font-size: clamp(1.8rem, 2.4vw, 2.35rem);
  line-height: 1.12;
}

#product .piecegsm-product-tabs {
  width: 100%;
  margin-top: 1.5rem;
  clear: both;
}

#product .piecegsm-product-tabs .tab-content {
  max-width: none;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

#product .piecegsm-product-tabs .tab-pane > .product-description {
  display: grid;
  column-gap: 4rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr;
}

#product .piecegsm-product-tabs .tab-pane > .product-description > * {
  break-inside: avoid;
}

#product .piecegsm-product-tabs .product-description > :nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

#product .piecegsm-product-tabs .product-description > :nth-child(2) {
  grid-column: 1;
  grid-row: 2 / span 3;
}

#product .piecegsm-product-tabs .product-description > :nth-child(3) {
  grid-column: 2;
  grid-row: 1;
}

#product .piecegsm-product-tabs .product-description > :nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

#product .piecegsm-product-tabs .product-description > :nth-child(5) {
  grid-column: 2;
  grid-row: 3;
}

#product .piecegsm-product-tabs .product-description > :nth-child(6) {
  grid-column: 2;
  grid-row: 4;
}

#product .piecegsm-product-tabs .product-description ul {
  padding-left: 1.25rem;
  list-style: disc;
}

#product .piecegsm-product-tabs .product-description strong[style] {
  font-size: inherit !important;
}

#product .product-comments,
#product .product-comments-additional-info,
#product #product-comments-list-header,
#product .product-comment-list-item {
  display: none !important;
}

/* Checkout */

#checkout #header .header-nav .piecegsm-brand-logo {
  width: 176px;
  height: auto;
  max-height: 54px;
}

#checkout .piecegsm-summary-toggle {
  min-height: 106px;
  padding: 1rem 1.2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.85rem 1rem;
}

#checkout .piecegsm-summary-title {
  color: var(--pg-ink);
  font-size: 1.05rem;
  font-weight: 700;
}

#checkout .piecegsm-summary-toggle > .material-icons {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

#checkout .piecegsm-summary-count {
  grid-column: 1;
  grid-row: 2;
  color: var(--pg-ink-soft);
  font-size: 0.96rem;
  font-weight: 400;
}

#checkout .piecegsm-summary-toggle strong {
  grid-column: 2;
  grid-row: 2;
  color: var(--pg-ink);
  font-size: 1.25rem;
  white-space: nowrap;
}

#checkout .piecegsm-summary-toggle strong span {
  display: inline;
}

#checkout .checkout-step .step-title {
  display: flex;
  align-items: center;
}

#checkout .piecegsm-step-title-label {
  color: inherit;
  font: inherit;
}

#checkout .checkout-step.-current .step-title .step-number {
  display: none;
}

#checkout .checkout-step.-current .step-title {
  padding: 1.5rem 1.5rem 0.5rem;
  border-bottom: 0;
  font-size: 1.75rem;
  font-weight: 800;
}

#checkout .checkout-step .content {
  padding: 1.4rem 1.5rem 1.5rem;
}

#checkout .checkout-step .content .form-group > .col-md-6,
#checkout .checkout-step .content .form-group > .col-md-8,
#checkout .checkout-step .content .form-group > .col-md-9,
#checkout .checkout-step .content .form-group > .col-md-10 {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
  flex: 0 0 100%;
}

#checkout .checkout-step .content .form-control,
#checkout .checkout-step .content input[type="text"],
#checkout .checkout-step .content input[type="email"],
#checkout .checkout-step .content input[type="password"],
#checkout .checkout-step .content input[type="date"] {
  width: 100%;
  min-height: 52px;
}

#checkout .checkout-step .content .form-control-label {
  width: 100%;
  max-width: none;
  padding: 0 0 0.35rem;
  flex: 0 0 100%;
  text-align: left;
}

#checkout .checkout-step .content .form-control-comment {
  width: 100%;
  max-width: none;
  padding: 0.35rem 0 0;
  flex: 0 0 100%;
}

#checkout .checkout-step .content .form-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--pg-border);
}

#checkout .checkout-step .content .continue.btn {
  min-height: 58px;
  font-size: 1.05rem;
}

@media (max-width: 1199px) {
  #category #subcategories .piecegsm-subcategories-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .piecegsm-catalog-layout {
    gap: 1.4rem;
    grid-template-columns: 235px minmax(0, 1fr);
  }

  #category .piecegsm-products-grid,
  #category .products.row,
  #new-products .piecegsm-products-grid,
  #new-products .products.row,
  #prices-drop .piecegsm-products-grid,
  #prices-drop .products.row,
  #best-sales .piecegsm-products-grid,
  #best-sales .products.row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  #header .header-top {
    padding-top: 0.8rem;
  }

  #header .header-nav .top-logo a,
  #checkout #header .header-nav .top-logo a {
    width: 150px;
    height: 42px;
  }

  #header .header-nav .top-logo img.piecegsm-brand-logo,
  #checkout #header .header-nav .top-logo img.piecegsm-brand-logo {
    width: 142px;
    height: auto;
    max-height: 42px;
  }

  .piecegsm-category-rail {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }

  .piecegsm-category-card {
    width: auto;
    min-width: 0;
    min-height: 118px;
    padding: 0.35rem 0.45rem 0.6rem;
    grid-template-rows: 72px auto;
  }

  .piecegsm-category-card > .piecegsm-category-visual {
    height: 72px;
  }

  .piecegsm-category-card > span:not(.piecegsm-category-visual) {
    padding-right: 0.85rem;
    font-size: 0.72rem;
    line-height: 1.1;
    white-space: normal;
  }

  .piecegsm-category-card .piecegsm-card-arrow {
    right: 0.25rem;
    bottom: 0.5rem;
    font-size: 1rem;
  }

  .piecegsm-section-heading {
    text-align: center;
  }

  .piecegsm-section-heading p {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  #category #content-wrapper,
  #category #content-wrapper.left-column {
    padding-right: 16px;
    padding-left: 16px;
  }

  #category .piecegsm-category-title {
    font-size: 2rem;
  }

  #category #subcategories.piecegsm-subcategories {
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding: 0 0 0.35rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  #category #subcategories .piecegsm-subcategories-list {
    width: max-content;
    display: flex;
    gap: 0.65rem;
  }

  #category #subcategories .piecegsm-subcategory-item {
    width: 124px;
    min-width: 124px;
    flex: 0 0 124px;
  }

  .piecegsm-subcategory-link {
    min-height: 48px;
  }

  .piecegsm-catalog-layout {
    display: block;
  }

  #product .piecegsm-product-gallery,
  #product .piecegsm-product-content {
    max-width: 100%;
    flex: 0 0 100%;
  }

  #product .piecegsm-product-content {
    padding-left: 0 !important;
  }

  #product .piecegsm-clean-product-images .product-cover img {
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 0.75rem;
  }

  #product .piecegsm-product-tabs .tab-pane > .product-description {
    display: block;
  }

  #checkout #header .header-nav .mobile {
    display: flex;
    align-items: center;
  }

  #checkout #header .header-nav .mobile #menu-icon { order: 1; }
  #checkout #header .header-nav .mobile #_mobile_logo { margin-right: auto; order: 2; }
  #checkout #header .header-nav .mobile #_mobile_user_info { order: 3; }
  #checkout #header .header-nav .mobile #_mobile_cart { order: 4; }

  #header .piecegsm-brand-logo {
    filter: saturate(1.55) contrast(1.08);
  }

  #checkout .piecegsm-summary-toggle {
    min-height: 112px;
  }

  #checkout .checkout-step.-current .step-title {
    padding: 1.4rem 1rem 0.35rem;
    font-size: 1.65rem;
  }

  #checkout .checkout-step .content {
    padding: 1.2rem 1rem 1.35rem;
  }

  #checkout .checkout-step .content .form-group {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .piecegsm-category-rail {
    gap: 0.55rem;
  }

  .piecegsm-category-card {
    min-height: 112px;
    grid-template-rows: 68px auto;
  }

  .piecegsm-category-card > .piecegsm-category-visual {
    height: 68px;
  }

  #checkout .piecegsm-progress-label {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
  }
}

/* Piece GSM — authentification client */
.piecegsm-auth-page {
  width: 100%;
  padding: clamp(2rem, 4vw, 4.75rem) 0 clamp(3rem, 6vw, 6rem);
  color: var(--pg-ink-soft);
}

/* Le thème Classic limite ces deux pages à 640px. La grille Piece GSM gère
   elle-même sa largeur et doit pouvoir utiliser tout le content-wrapper. */
.page-authentication #content.piecegsm-auth-page,
.page-registration #content.piecegsm-auth-page,
.page-password #content.piecegsm-auth-page {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.piecegsm-auth-page [hidden] {
  display: none !important;
}

.piecegsm-auth-page > .notifications-container:empty {
  display: none;
}

.piecegsm-auth-layout {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
}

.piecegsm-auth-page--registration .piecegsm-auth-layout {
  width: min(100%, 1240px);
  grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.62fr);
}

.piecegsm-auth-card,
.piecegsm-auth-benefits {
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-white);
}

.piecegsm-auth-card {
  min-width: 0;
  padding: clamp(1.45rem, 3.2vw, 2.8rem);
  box-shadow: 0 10px 32px rgba(7, 20, 47, 0.045);
}

.piecegsm-auth-tabs {
  margin: calc(clamp(1.45rem, 3.2vw, 2.8rem) * -1) calc(clamp(1.45rem, 3.2vw, 2.8rem) * -1) 2rem;
  padding: 0 clamp(1.45rem, 3.2vw, 2.8rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--pg-border);
}

.piecegsm-auth-tabs a {
  min-height: 58px;
  padding: 0.95rem 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid transparent;
  color: var(--pg-muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-align: center;
}

.piecegsm-auth-tabs a:hover,
.piecegsm-auth-tabs a:focus-visible,
.piecegsm-auth-tabs a[aria-current="page"] {
  border-bottom-color: var(--pg-blue);
  color: var(--pg-blue);
}

.piecegsm-auth-card__header {
  margin-bottom: 2rem;
}

.piecegsm-auth-card__header h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.12;
}

.piecegsm-auth-card__header > p:last-child {
  max-width: 630px;
  margin: 0;
  color: var(--pg-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.piecegsm-auth-eyebrow {
  margin: 0 0 0.45rem;
  color: var(--pg-blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.piecegsm-auth-form {
  width: 100%;
}

.piecegsm-auth-field {
  min-width: 0;
  margin-bottom: 1.15rem;
}

.piecegsm-auth-field__label,
.piecegsm-account-type legend {
  width: 100%;
  margin: 0 0 0.45rem;
  color: var(--pg-ink);
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.35;
}

.piecegsm-auth-field__label span,
.piecegsm-account-type legend span,
.piecegsm-auth-field.is-required .piecegsm-auth-field__label::after {
  color: var(--pg-danger);
}

.piecegsm-auth-field.is-required .piecegsm-auth-field__label::after {
  content: " *";
}

.piecegsm-auth-field .form-control {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--pg-border-strong);
  border-radius: var(--pg-radius-sm);
  background: var(--pg-white);
  color: var(--pg-ink);
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color var(--pg-transition), box-shadow var(--pg-transition), background-color var(--pg-transition);
}

.piecegsm-auth-field .form-control:hover {
  border-color: #9eabba;
}

.piecegsm-auth-field .form-control:focus {
  border-color: var(--pg-blue);
  box-shadow: 0 0 0 4px rgba(7, 95, 217, 0.11);
  outline: none;
}

.piecegsm-auth-field.has-error .form-control,
.piecegsm-auth-field .form-control[aria-invalid="true"] {
  border-color: var(--pg-danger);
}

.piecegsm-auth-field.is-valid .form-control:not([aria-invalid="true"]) {
  border-color: rgba(11, 107, 54, 0.65);
  background-image: radial-gradient(circle, var(--pg-green) 0 2px, transparent 2.5px);
  background-position: calc(100% - 1rem) 50%;
  background-repeat: no-repeat;
}

.piecegsm-auth-password {
  position: relative;
  display: flex;
}

.piecegsm-auth-password .form-control {
  padding-right: 6.4rem;
}

.piecegsm-password-toggle.btn {
  min-width: 86px;
  min-height: 40px;
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-left: 1px solid var(--pg-border);
  border-radius: 0 var(--pg-radius-sm) var(--pg-radius-sm) 0;
  background: var(--pg-soft);
  color: var(--pg-blue);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.piecegsm-password-toggle.btn:hover,
.piecegsm-password-toggle.btn:focus {
  background: #eaf2ff;
  color: var(--pg-blue-dark);
}

.piecegsm-auth-field__errors {
  margin: 0.45rem 0 0;
  padding: 0;
  color: var(--pg-danger);
  font-size: 0.84rem;
  line-height: 1.4;
  list-style: none;
  animation: piecegsm-auth-error-in 180ms ease-out;
}

.piecegsm-password-match {
  min-height: 1.2rem;
  margin: 0.4rem 0 0;
  color: var(--pg-muted);
  font-size: 0.82rem;
}

.piecegsm-password-match.is-valid {
  color: var(--pg-green);
}

.piecegsm-password-match.is-invalid {
  color: var(--pg-danger);
}

.piecegsm-auth-grid {
  display: grid;
  gap: 0 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.piecegsm-auth-grid > .field-password-policy {
  min-width: 0;
}

.piecegsm-register-section + .piecegsm-register-section {
  margin-top: 1rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--pg-border);
}

.piecegsm-register-section > h2,
.piecegsm-register-section__heading h2 {
  margin: 0 0 1rem;
  font-size: 1.08rem;
  line-height: 1.3;
}

.piecegsm-register-section__heading {
  margin-bottom: 1rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.piecegsm-register-section__heading h2,
.piecegsm-register-section__heading p {
  margin-bottom: 0;
}

.piecegsm-register-section__heading > p {
  max-width: 260px;
  color: var(--pg-muted);
  font-size: 0.8rem;
  text-align: right;
}

.piecegsm-account-type {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.piecegsm-account-type__options {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.piecegsm-account-type__option {
  min-height: 104px;
  margin: 0;
  padding: 1rem;
  display: grid;
  align-items: center;
  gap: 0.9rem;
  grid-template-columns: 42px minmax(0, 1fr);
  border: 1px solid var(--pg-border-strong);
  border-radius: var(--pg-radius-sm);
  background: var(--pg-white);
  color: var(--pg-ink-soft);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--pg-transition), background-color var(--pg-transition), box-shadow var(--pg-transition), transform var(--pg-transition);
}

.piecegsm-account-type__option:hover,
.piecegsm-account-type__option:has(input:focus-visible) {
  border-color: var(--pg-blue);
  box-shadow: 0 0 0 3px rgba(7, 95, 217, 0.1);
}

.piecegsm-account-type__option:has(input:checked) {
  border-color: var(--pg-blue);
  background: #f5f9ff;
  box-shadow: inset 0 0 0 1px var(--pg-blue);
}

.piecegsm-account-type__option input {
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
}

.piecegsm-account-type__visual {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #edf4ff;
  color: var(--pg-blue);
}

.piecegsm-account-type__visual svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.piecegsm-account-type__option strong,
.piecegsm-account-type__option small {
  display: block;
}

.piecegsm-account-type__option strong {
  margin-bottom: 0.15rem;
  color: var(--pg-ink);
  font-size: 0.93rem;
}

.piecegsm-account-type__option small {
  color: var(--pg-muted);
  font-size: 0.77rem;
  line-height: 1.35;
}

.piecegsm-professional-fields {
  animation: piecegsm-auth-section-in 220ms ease-out;
}

.piecegsm-auth-checkbox {
  min-height: 44px;
  margin: 0;
  display: grid;
  align-items: start;
  gap: 0.75rem;
  grid-template-columns: 22px minmax(0, 1fr);
  color: var(--pg-ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
  cursor: pointer;
}

.piecegsm-auth-checkbox input {
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
}

.piecegsm-auth-checkbox__control {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pg-border-strong);
  border-radius: 5px;
  background: var(--pg-white);
  color: transparent;
  font-size: 0.8rem;
  font-weight: 900;
}

.piecegsm-auth-checkbox input:checked + .piecegsm-auth-checkbox__control {
  border-color: var(--pg-blue);
  background: var(--pg-blue);
  color: var(--pg-white);
}

.piecegsm-auth-checkbox input:focus-visible + .piecegsm-auth-checkbox__control {
  outline: 3px solid var(--pg-blue);
  outline-offset: 2px;
}

.piecegsm-auth-checkbox em {
  color: var(--pg-muted);
  font-weight: 400;
}

.piecegsm-auth-form__utility {
  margin: -0.25rem 0 1.4rem;
  text-align: right;
}

.piecegsm-auth-form__utility a {
  font-size: 0.88rem;
  font-weight: 700;
}

.piecegsm-auth-form__footer {
  margin-top: 0.4rem;
}

.piecegsm-auth-submit.btn {
  width: 100%;
  min-height: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid var(--pg-blue);
  border-radius: var(--pg-radius-sm);
  background: var(--pg-blue);
  color: var(--pg-white);
  box-shadow: 0 8px 18px rgba(7, 95, 217, 0.16);
}

.piecegsm-auth-submit.btn:hover,
.piecegsm-auth-submit.btn:focus {
  border-color: var(--pg-blue-dark);
  background: var(--pg-blue-dark);
  color: var(--pg-white);
  box-shadow: 0 10px 22px rgba(7, 95, 217, 0.22);
  transform: translateY(-1px);
}

.piecegsm-auth-submit.btn:disabled {
  border-color: #7da7df;
  background: #7da7df;
  cursor: wait;
  opacity: 1;
  transform: none;
}

.piecegsm-auth-submit__spinner {
  width: 17px;
  height: 17px;
  display: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: var(--pg-white);
  border-radius: 50%;
  animation: piecegsm-auth-spin 700ms linear infinite;
}

.piecegsm-auth-submit.is-loading .piecegsm-auth-submit__spinner {
  display: inline-block;
}

.piecegsm-auth-switch {
  margin: 1.35rem 0 0;
  color: var(--pg-muted);
  font-size: 0.9rem;
  text-align: center;
}

.piecegsm-auth-switch a {
  margin-left: 0.2rem;
  font-weight: 800;
}

.piecegsm-auth-alert {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--pg-radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
}

.piecegsm-auth-alert p {
  margin: 0;
}

.piecegsm-auth-alert p + p {
  margin-top: 0.35rem;
}

.piecegsm-auth-alert--error {
  border-color: rgba(199, 44, 65, 0.22);
  background: #fff6f7;
  color: #992033;
}

.piecegsm-auth-alert--success {
  border-color: rgba(21, 148, 71, 0.22);
  background: #f3fbf6;
  color: #0c7034;
}

.piecegsm-auth-benefits {
  min-width: 0;
  padding: clamp(1.7rem, 3.3vw, 3rem);
  position: sticky;
  top: 1.25rem;
  overflow: hidden;
  background: #f7faff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.piecegsm-auth-benefits::after {
  width: 220px;
  height: 220px;
  position: absolute;
  right: -115px;
  bottom: -120px;
  border: 44px solid rgba(7, 95, 217, 0.035);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.piecegsm-auth-benefits__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(7, 95, 217, 0.18);
  border-radius: 50%;
  background: var(--pg-white);
  color: var(--pg-blue);
}

.piecegsm-auth-benefits__icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.piecegsm-auth-benefits h2 {
  margin: 0 0 1.55rem;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.22;
}

.piecegsm-auth-benefits__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.piecegsm-auth-benefits__list li {
  margin: 0;
  padding: 0.72rem 0;
  display: grid;
  align-items: start;
  gap: 0.75rem;
  grid-template-columns: 28px minmax(0, 1fr);
  border-bottom: 1px solid rgba(201, 210, 220, 0.65);
}

.piecegsm-auth-benefits__bullet {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8f2ff;
  color: var(--pg-blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.piecegsm-auth-benefits__list strong,
.piecegsm-auth-benefits__list li span:last-child {
  display: block;
}

.piecegsm-auth-benefits__list strong {
  margin-bottom: 0.1rem;
  color: var(--pg-ink);
  font-size: 0.9rem;
}

.piecegsm-auth-benefits__list li span:last-child {
  color: var(--pg-muted);
  font-size: 0.79rem;
  line-height: 1.45;
}

.piecegsm-auth-benefits__security {
  margin: 1.35rem 0 0;
  display: flex;
  align-items: start;
  gap: 0.65rem;
  color: #53617a;
  font-size: 0.78rem;
  line-height: 1.45;
}

.piecegsm-auth-benefits__security span {
  color: var(--pg-blue);
}

.piecegsm-auth-back {
  margin-bottom: 1.6rem;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 700;
}

.piecegsm-auth-card--status {
  text-align: center;
}

.piecegsm-auth-card--status .piecegsm-auth-card__header > p:last-child,
.piecegsm-auth-card--status > p {
  margin-right: auto;
  margin-left: auto;
}

.piecegsm-auth-status-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf8ef;
  color: var(--pg-green);
  font-size: 1.45rem;
  font-weight: 900;
}

.piecegsm-auth-card--status > p {
  max-width: 520px;
  color: var(--pg-muted);
}

.piecegsm-auth-card--status .piecegsm-auth-submit {
  margin-top: 1rem;
}

.piecegsm-auth-page .password-strength-feedback {
  margin-top: 0.55rem !important;
  padding: 0.7rem 0.8rem;
  border-radius: 7px;
  background: var(--pg-soft);
  color: var(--pg-muted);
  font-size: 0.78rem;
}

.piecegsm-auth-page .password-strength-feedback .progress {
  height: 5px;
  margin-bottom: 0.45rem !important;
  border-radius: 99px;
  background: #dbe2eb;
}

.piecegsm-auth-page .password-strength-feedback .progress-bar {
  border-radius: 99px;
}

.piecegsm-auth-page .password-requirements p {
  margin: 0.25rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.piecegsm-auth-page .password-requirements .material-icons {
  font-size: 1rem;
}

.piecegsm-privacy {
  width: min(100%, 850px);
  margin: 0 auto;
  color: var(--pg-ink-soft);
}

.piecegsm-privacy__header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--pg-border);
}

.piecegsm-privacy__header h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.piecegsm-privacy section + section {
  margin-top: 2rem;
}

.piecegsm-privacy h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.piecegsm-privacy p {
  color: var(--pg-muted);
  line-height: 1.75;
}

@keyframes piecegsm-auth-spin {
  to { transform: rotate(360deg); }
}

@keyframes piecegsm-auth-error-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes piecegsm-auth-section-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
  .piecegsm-auth-layout,
  .piecegsm-auth-page--registration .piecegsm-auth-layout {
    max-width: 760px;
    grid-template-columns: minmax(0, 1fr);
  }

  .piecegsm-auth-benefits {
    position: static;
  }

  .piecegsm-auth-benefits::after {
    display: none;
  }
}

@media (max-width: 767px) {
  .piecegsm-auth-page {
    padding: 1.25rem 0 3rem;
  }

  .piecegsm-auth-page .container,
  #authentication #content-wrapper,
  #registration #content-wrapper,
  #password #content-wrapper {
    padding-right: 18px;
    padding-left: 18px;
  }

  .piecegsm-auth-layout {
    gap: 1rem;
  }

  .piecegsm-auth-card {
    padding: 1.25rem;
    border-radius: 10px;
  }

  .piecegsm-auth-tabs {
    margin: -1.25rem -1.25rem 1.55rem;
    padding: 0 0.55rem;
  }

  .piecegsm-auth-tabs a {
    min-height: 54px;
    padding-right: 0.35rem;
    padding-left: 0.35rem;
    font-size: 0.82rem;
  }

  .piecegsm-auth-card__header {
    margin-bottom: 1.6rem;
  }

  .piecegsm-auth-card__header h1 {
    font-size: 1.75rem;
  }

  .piecegsm-auth-card__header > p:last-child {
    font-size: 0.94rem;
  }

  .piecegsm-auth-grid,
  .piecegsm-account-type__options {
    grid-template-columns: minmax(0, 1fr);
  }

  .piecegsm-account-type__option {
    min-height: 84px;
    padding: 0.85rem;
  }

  .piecegsm-register-section__heading {
    display: block;
  }

  .piecegsm-register-section__heading > p {
    max-width: none;
    margin-top: 0.3rem;
    text-align: left;
  }

  .piecegsm-auth-benefits {
    padding: 1.35rem;
  }

  .piecegsm-auth-benefits__icon,
  .piecegsm-auth-benefits > .piecegsm-auth-eyebrow,
  .piecegsm-auth-benefits h2,
  .piecegsm-auth-benefits__list li:nth-child(n + 4) {
    display: none;
  }

  .piecegsm-auth-benefits__list li {
    padding: 0.65rem 0;
  }

  .piecegsm-auth-benefits__security {
    margin-top: 0.85rem;
  }

  .page-authentication #footer .block_newsletter .row,
  .page-registration #footer .block_newsletter .row {
    margin-right: 0;
    margin-left: 0;
  }
}

@media (max-width: 360px) {
  .piecegsm-auth-page .container,
  #authentication #content-wrapper,
  #registration #content-wrapper,
  #password #content-wrapper {
    padding-right: 12px;
    padding-left: 12px;
  }

  .piecegsm-auth-card {
    padding: 1rem;
  }

  .piecegsm-auth-tabs {
    margin-right: -1rem;
    margin-left: -1rem;
  }

  .piecegsm-auth-password .form-control {
    padding-right: 5.5rem;
  }

  .piecegsm-password-toggle.btn {
    min-width: 72px;
    font-size: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .piecegsm-auth-page *,
  .piecegsm-auth-page *::before,
  .piecegsm-auth-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .piecegsm-account-type__option:has(input:checked),
  .piecegsm-auth-checkbox input:checked + .piecegsm-auth-checkbox__control {
    outline: 2px solid CanvasText;
  }
}

/* Piece GSM — panier, checkout et espace client premium */

#cart #wrapper,
#checkout #wrapper,
.piecegsm-account-page {
  background: #f6f8fb;
}

#cart #wrapper,
#checkout #wrapper {
  padding: clamp(1.5rem, 3vw, 3rem) 0 4rem;
}

/* Panier */

html:has(body#cart),
html:has(body#checkout),
body#cart,
body#checkout {
  overflow-x: hidden;
}

#cart .cart-grid.row {
  display: grid;
  align-items: start;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, 0.75fr);
  margin: 0;
}

#cart .cart-grid-body,
#cart .cart-grid-right {
  width: auto;
  max-width: none;
  padding: 0;
  float: none;
}

#cart .cart-container,
#cart .cart-summary {
  border: 1px solid #dce3ec;
  border-radius: 14px;
  background: var(--pg-white);
  box-shadow: 0 14px 36px rgba(15, 33, 58, 0.07);
  overflow: hidden;
}

#cart .cart-container > .card-block:first-child {
  padding: 1.6rem 1.75rem 1.25rem;
}

#cart .cart-container > .card-block:first-child h1 {
  margin: 0;
  color: var(--pg-ink);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

#cart .cart-container > .separator {
  margin: 0;
  border-color: var(--pg-border);
}

#cart .cart-overview {
  padding: 0 1.75rem;
}

#cart .cart-item {
  padding: 1.45rem 0;
  border-top: 1px solid var(--pg-border);
}

#cart .cart-item:first-child {
  border-top: 0;
}

#cart .product-line-grid {
  display: grid;
  align-items: center;
  gap: 1.25rem;
  grid-template-columns: 112px minmax(0, 1fr) minmax(210px, 0.7fr);
}

#cart .product-line-grid-left,
#cart .product-line-grid-body,
#cart .product-line-grid-right {
  width: auto;
  max-width: none;
  padding: 0;
  float: none;
}

#cart .product-line-grid-left img {
  width: 112px;
  height: 112px;
  padding: 0.45rem;
  border: 1px solid var(--pg-border);
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

#cart .product-line-info > .label,
#cart .product-line-info a.label {
  color: var(--pg-ink);
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.45;
  white-space: normal;
}

#cart .product-line-grid-body .product-price {
  margin: 0.55rem 0 0;
  color: var(--pg-blue);
  font-size: 1rem;
  font-weight: 800;
}

#cart .product-line-grid-body br {
  display: none;
}

#cart .product-line-actions > .row,
#cart .product-line-actions > .row > div,
#cart .product-line-actions .row {
  margin: 0;
}

#cart .product-line-actions .qty {
  min-width: 116px;
}

#cart .product-line-actions .bootstrap-touchspin {
  width: 112px;
  height: 46px;
  display: grid;
  grid-template-columns: 1fr 38px;
  border: 1px solid var(--pg-border-strong);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

#cart .product-line-actions .bootstrap-touchspin input {
  width: 100%;
  height: 44px;
  padding: 0 0.5rem;
  border: 0;
  background: transparent;
  color: var(--pg-ink);
  font-weight: 750;
  text-align: center;
  box-shadow: none;
}

#cart .product-line-actions .input-group-btn-vertical {
  position: static;
  width: 38px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  border-left: 1px solid var(--pg-border);
}

#cart .product-line-actions .input-group-btn-vertical .btn {
  width: 38px;
  height: 22px !important;
  min-height: 0 !important;
  position: static;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: #f8fafc;
  color: var(--pg-ink);
}

#cart .product-line-actions .input-group-btn-vertical .btn:first-child {
  border-bottom: 1px solid var(--pg-border);
}

#cart .product-line-actions .input-group-btn-vertical .material-icons {
  display: none;
}

#cart .product-line-actions .bootstrap-touchspin-up::before,
#cart .product-line-actions .bootstrap-touchspin-down::before {
  display: block;
  color: currentColor;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1;
}

#cart .product-line-actions .bootstrap-touchspin-up::before {
  content: "+";
}

#cart .product-line-actions .bootstrap-touchspin-down::before {
  content: "\2212";
}

#cart .product-line-actions .input-group-btn-vertical .btn:disabled,
#cart .product-line-actions .input-group-btn-vertical .btn.disabled {
  color: #9aa5b5;
  opacity: 0.72;
}

#cart .product-line-actions .price {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--pg-ink);
  font-size: 1.02rem;
}

#cart .remove-from-cart {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #6f7b8f;
}

#cart .remove-from-cart:hover,
#cart .remove-from-cart:focus-visible {
  border-color: #f1cbd1;
  background: #fff6f7;
  color: #b4233a;
}

#cart .cart-grid-body > .label {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  color: var(--pg-blue);
  font-weight: 700;
}

#cart .cart-grid-right {
  position: sticky;
  top: 1rem;
}

#cart .cart-summary .cart-detailed-totals,
#cart .cart-summary > .card-block {
  padding: 1.35rem 1.5rem;
}

#cart .cart-summary-line {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

#cart .cart-summary-line.cart-total {
  margin-top: 0.65rem;
  padding-top: 1rem;
}

#cart .cart-detailed-actions {
  padding: 0 1.5rem 1.5rem;
}

#cart .cart-detailed-actions .btn {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 9px 20px rgba(7, 95, 217, 0.18);
}

/* Checkout */

#checkout #header {
  box-shadow: 0 1px 0 var(--pg-border);
}

#checkout #header .piecegsm-checkout-header {
  min-height: 76px;
  padding: 0;
  border: 0;
  background: #fff;
}

.piecegsm-checkout-header__inner {
  min-height: 76px;
  display: grid;
  align-items: center;
  gap: 1.5rem;
  grid-template-columns: auto 1fr auto;
}

.piecegsm-checkout-header__brand {
  display: inline-flex;
  align-items: center;
}

#checkout #header .piecegsm-checkout-header__brand .piecegsm-brand-logo {
  width: 178px;
  height: auto;
  max-height: 48px;
  margin: 0;
}

.piecegsm-checkout-header__secure {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: #5d6a7d;
  font-size: 0.84rem;
  font-weight: 650;
}

.piecegsm-checkout-header__secure .material-icons {
  color: var(--pg-green);
  font-size: 1.15rem;
}

.piecegsm-checkout-header__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.piecegsm-checkout-header__actions a {
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 8px;
  color: var(--pg-ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.piecegsm-checkout-header__actions a:hover,
.piecegsm-checkout-header__actions a:focus-visible {
  background: #f1f6fd;
  color: var(--pg-blue);
}

.piecegsm-checkout-header__count {
  min-width: 22px;
  height: 22px;
  padding: 0 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  background: var(--pg-blue);
  color: #fff;
  font-size: 0.72rem;
}

#checkout #content > .row {
  display: grid;
  align-items: start;
  gap: clamp(1.4rem, 2.8vw, 2.5rem);
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.72fr);
  margin: 0;
}

#checkout .cart-grid-body,
#checkout .cart-grid-right {
  width: auto;
  max-width: none;
  padding: 0;
  float: none;
}

.piecegsm-checkout-intro {
  margin-bottom: 1.5rem;
}

.piecegsm-checkout-intro p {
  margin: 0 0 0.35rem;
  color: var(--pg-blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.piecegsm-checkout-intro h1 {
  margin: 0 0 0.45rem;
  color: var(--pg-ink);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 850;
  letter-spacing: -0.04em;
}

.piecegsm-checkout-intro span {
  color: var(--pg-muted);
  font-size: 0.93rem;
}

#checkout .piecegsm-checkout-progress {
  margin-bottom: 1.35rem;
  padding: 0 0.5rem;
}

#checkout .piecegsm-progress-number {
  width: 40px;
  height: 40px;
  border-width: 2px;
  box-shadow: 0 0 0 5px #f6f8fb;
}

#checkout .piecegsm-progress-label {
  font-size: 0.8rem;
  font-weight: 750;
}

#checkout .checkout-step {
  margin-bottom: 0.9rem;
  border-color: #dbe2ec;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(15, 33, 58, 0.045);
}

#checkout .checkout-step.-complete {
  box-shadow: none;
}

#checkout .checkout-step.-complete .step-title {
  min-height: 70px;
  padding: 1rem 1.25rem;
  background: #fff;
  font-size: 0.98rem;
}

#checkout .checkout-step.-complete .step-title::before {
  content: none;
}

#checkout .checkout-step.-complete .done {
  width: 24px;
  height: 24px;
  margin-right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf8ef;
  color: var(--pg-green);
  font-size: 0.9rem;
}

#checkout .checkout-step.-complete .step-number,
#checkout .checkout-step.-current .done {
  display: none;
}

#checkout .checkout-step.-current .step-number {
  width: 32px;
  height: 32px;
  margin-right: 0.65rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-color: var(--pg-blue);
  border-radius: 50%;
  background: var(--pg-blue);
  color: #fff;
  font-size: 0.85rem;
}

#checkout .checkout-step.-current {
  border-color: rgba(7, 95, 217, 0.32);
  box-shadow: 0 16px 40px rgba(15, 33, 58, 0.08);
}

#checkout .checkout-step.-current .step-title {
  padding: 1.5rem 1.6rem 0.35rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: -0.025em;
}

#checkout .checkout-step .content {
  padding: 1.25rem 1.6rem 1.65rem;
}

#checkout .checkout-step .step-edit {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 750;
}

#checkout .nav-inline {
  display: flex;
  gap: 1rem;
}

#checkout .nav-inline .nav-link {
  min-height: 44px;
  padding: 0.7rem 0.2rem;
}

#checkout .form-control,
#checkout input[type="text"],
#checkout input[type="email"],
#checkout input[type="password"],
#checkout input[type="date"],
#checkout select {
  min-height: 52px;
  border-color: var(--pg-border-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--pg-ink);
  box-shadow: none;
}

#checkout .form-control:focus,
#checkout input:focus,
#checkout select:focus {
  border-color: var(--pg-blue);
  box-shadow: 0 0 0 3px rgba(7, 95, 217, 0.11);
}

#checkout button[data-action="show-password"] {
  min-width: 86px;
  border-color: var(--pg-border-strong);
  border-left: 0;
  background: #f5f8fc;
  color: var(--pg-blue);
  font-size: 0.72rem;
  font-weight: 800;
}

#checkout .continue.btn,
#checkout .js-address-form .form-footer .btn {
  min-height: 54px;
  padding: 0.85rem 1.45rem;
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 9px 20px rgba(7, 95, 217, 0.16);
}

#checkout .delivery-option,
#checkout .payment-option {
  border-radius: 9px;
  background: #fff;
}

#checkout .delivery-option:has(input:checked),
#checkout .payment-option:has(input:checked) {
  border-color: var(--pg-blue);
  background: #f7faff;
  box-shadow: 0 0 0 2px rgba(7, 95, 217, 0.09);
}

#checkout .ps-hidden-by-js {
  display: none !important;
}

#checkout .condition-label label,
#checkout .custom-checkbox label {
  color: var(--pg-ink-soft);
  line-height: 1.5;
}

#checkout .piecegsm-checkout-summary {
  position: sticky;
  top: 1rem;
  border-color: #dbe2ec !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 38px rgba(15, 33, 58, 0.075) !important;
}

#checkout .piecegsm-summary-toggle {
  min-height: 102px;
  background: #fbfcfe;
}

#checkout .piecegsm-checkout-help {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  display: grid;
  align-items: center;
  gap: 0.8rem;
  grid-template-columns: 42px minmax(0, 1fr);
  border: 1px solid #dce3ec;
  border-radius: 10px;
  background: #fff;
  color: var(--pg-ink-soft);
}

#checkout .piecegsm-checkout-help > .material-icons {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf2ff;
  color: var(--pg-blue);
}

#checkout .piecegsm-checkout-help strong,
#checkout .piecegsm-checkout-help span {
  display: block;
}

#checkout .piecegsm-checkout-help strong {
  margin-bottom: 0.15rem;
  color: var(--pg-ink);
  font-size: 0.88rem;
}

#checkout .piecegsm-checkout-help span {
  color: var(--pg-muted);
  font-size: 0.8rem;
}

.piecegsm-checkout-footer {
  min-height: 86px;
  padding: 1.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border-top: 1px solid var(--pg-border);
  background: #fff;
  color: var(--pg-muted);
  font-size: 0.8rem;
}

.piecegsm-checkout-footer a {
  color: #53617a;
  font-weight: 700;
}

.piecegsm-checkout-footer a:hover,
.piecegsm-checkout-footer a:focus-visible {
  color: var(--pg-blue);
}

/* Espace client */

html:has(.piecegsm-account-page) {
  overflow-x: hidden;
}

#my-account,
#identity,
#addresses,
#address,
#history,
#order-detail,
#order-slip,
#discount,
#order-follow,
#order-return {
  overflow-x: hidden;
}

.piecegsm-account-page {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2.5vw, 2rem) 4rem;
  box-sizing: border-box;
  border: 0;
  box-shadow: none;
  overflow-x: clip;
}

.piecegsm-account-hero {
  margin-bottom: 1.6rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid #dce3ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 33, 58, 0.055);
}

.piecegsm-account-hero p {
  margin: 0 0 0.35rem;
  color: var(--pg-blue);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.piecegsm-account-hero h1 {
  margin: 0 0 0.4rem;
  color: var(--pg-ink);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  text-transform: none;
}

.piecegsm-account-hero > div > span {
  color: var(--pg-muted);
  font-size: 0.93rem;
}

.piecegsm-account-hero__shop {
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--pg-border-strong);
  border-radius: 8px;
  color: var(--pg-ink);
  font-size: 0.83rem;
  font-weight: 750;
  white-space: nowrap;
}

.piecegsm-account-hero__shop:hover,
.piecegsm-account-hero__shop:focus-visible {
  border-color: var(--pg-blue);
  color: var(--pg-blue);
}

.piecegsm-account-layout {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: grid;
  align-items: start;
  gap: 1.6rem;
  grid-template-columns: 260px minmax(0, 1fr);
}

.piecegsm-account-sidebar {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  position: sticky;
  top: 1rem;
  border: 1px solid #dce3ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 33, 58, 0.045);
  overflow: hidden;
}

.piecegsm-account-profile {
  padding: 1.2rem;
  display: grid;
  align-items: center;
  gap: 0.75rem;
  grid-template-columns: 44px minmax(0, 1fr);
  border-bottom: 1px solid var(--pg-border);
  background: #fbfcfe;
}

.piecegsm-account-profile > span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf2ff;
  color: var(--pg-blue);
}

.piecegsm-account-profile strong,
.piecegsm-account-profile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.piecegsm-account-profile strong {
  color: var(--pg-ink);
  font-size: 0.88rem;
}

.piecegsm-account-profile small {
  margin-top: 0.1rem;
  color: var(--pg-muted);
  font-size: 0.74rem;
}

.piecegsm-account-nav {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.55rem;
}

.piecegsm-account-nav a {
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 8px;
  color: #4f5d72;
  font-size: 0.84rem;
  font-weight: 700;
}

.piecegsm-account-nav a .material-icons {
  color: #7d899b;
  font-size: 1.2rem;
}

.piecegsm-account-nav a:hover,
.piecegsm-account-nav a:focus-visible,
.piecegsm-account-nav a[aria-current="page"] {
  background: #edf4ff;
  color: var(--pg-blue);
}

.piecegsm-account-nav a[aria-current="page"] .material-icons {
  color: var(--pg-blue);
}

.piecegsm-account-nav__separator {
  height: 1px;
  margin: 0.5rem 0;
  display: block;
  background: var(--pg-border);
}

.piecegsm-account-content {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid #dce3ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 33, 58, 0.045);
}

.piecegsm-account-content--my-account {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.piecegsm-account-dashboard-intro {
  margin-bottom: 1.15rem;
}

.piecegsm-account-dashboard-intro h2 {
  margin: 0 0 0.3rem;
  color: var(--pg-ink);
  font-size: 1.35rem;
  font-weight: 800;
}

.piecegsm-account-dashboard-intro p {
  margin: 0;
  color: var(--pg-muted);
}

.piecegsm-account-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.piecegsm-account-tile,
.piecegsm-account-grid--modules > a {
  min-height: 128px;
  padding: 1.15rem;
  display: grid;
  align-items: center;
  gap: 0.9rem;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  border: 1px solid #dce3ec;
  border-radius: 11px;
  background: #fff;
  color: var(--pg-ink);
  box-shadow: 0 8px 24px rgba(15, 33, 58, 0.04);
  transition: border-color var(--pg-transition), box-shadow var(--pg-transition), transform var(--pg-transition);
}

.piecegsm-account-tile:hover,
.piecegsm-account-tile:focus-visible,
.piecegsm-account-grid--modules > a:hover,
.piecegsm-account-grid--modules > a:focus-visible {
  border-color: rgba(7, 95, 217, 0.48);
  color: var(--pg-blue);
  box-shadow: 0 14px 32px rgba(15, 33, 58, 0.075);
  transform: translateY(-2px);
}

.piecegsm-account-tile__icon,
.piecegsm-account-grid--modules .link-item > .material-icons {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eaf2ff;
  color: var(--pg-blue);
}

.piecegsm-account-tile strong,
.piecegsm-account-tile small {
  display: block;
}

.piecegsm-account-tile strong {
  margin-bottom: 0.25rem;
  color: var(--pg-ink);
  font-size: 0.94rem;
}

.piecegsm-account-tile small {
  color: var(--pg-muted);
  font-size: 0.77rem;
  line-height: 1.45;
}

.piecegsm-account-tile__arrow {
  color: #9aa5b4;
  font-size: 1.15rem;
}

.piecegsm-account-grid--modules {
  margin-top: 0.9rem;
}

.piecegsm-account-grid--modules > a {
  width: auto;
  max-width: none;
  padding: 1.15rem;
  float: none;
}

.piecegsm-account-grid--modules .link-item {
  display: contents;
  color: var(--pg-ink);
  font-weight: 750;
}

.piecegsm-account-content h6 {
  margin: 0 0 1.25rem;
  color: var(--pg-muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.55;
}

.piecegsm-account-content .form-control {
  min-height: 50px;
  border-color: var(--pg-border-strong);
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
}

.piecegsm-account-content .form-control:focus {
  border-color: var(--pg-blue);
  box-shadow: 0 0 0 3px rgba(7, 95, 217, 0.1);
}

.piecegsm-account-content .form-control-label {
  color: var(--pg-ink-soft);
  font-weight: 700;
}

.piecegsm-account-content .form-footer {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--pg-border);
}

.piecegsm-account-content .form-footer .btn {
  min-height: 50px;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
  font-weight: 800;
}

.piecegsm-account-content .table {
  margin: 0;
  border: 1px solid var(--pg-border);
  border-radius: 9px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.piecegsm-account-content .table thead th {
  padding: 0.85rem 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--pg-border);
  background: #f6f8fb;
  color: #56647a;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.piecegsm-account-content .table tbody td,
.piecegsm-account-content .table tbody th {
  padding: 1rem 0.75rem;
  vertical-align: middle;
  border: 0;
  border-bottom: 1px solid var(--pg-border);
  color: var(--pg-ink-soft);
  background: #fff;
}

.piecegsm-account-content .table tbody tr:last-child td,
.piecegsm-account-content .table tbody tr:last-child th {
  border-bottom: 0;
}

.piecegsm-account-content .alert {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid #cdddf3;
  border-radius: 9px;
  background: #f4f8fe;
  color: #405774;
}

.piecegsm-account-content .address {
  min-height: 100%;
  border: 1px solid #dce3ec;
  border-radius: 10px;
  box-shadow: none;
  overflow: hidden;
}

.piecegsm-account-content .address .address-body,
.piecegsm-account-content .address .address-footer {
  padding: 1.1rem;
}

.piecegsm-account-content .addresses-footer a {
  min-height: 46px;
  padding: 0.65rem 0.9rem;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: var(--pg-blue);
  color: #fff;
  font-weight: 750;
}

.piecegsm-account-content .orders .order,
.piecegsm-account-content .cart-rules .cart-rule,
.piecegsm-account-content .credit-slips .credit-slip,
.piecegsm-account-content .order-returns .order-return {
  margin-bottom: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--pg-border);
  border-radius: 9px;
  background: #fff;
}

@media (max-width: 991px) {
  #cart .cart-grid.row,
  #checkout #content > .row {
    grid-template-columns: minmax(0, 1fr);
  }

  #cart .cart-grid-right,
  #checkout .cart-grid-right {
    position: static;
  }

  #checkout .cart-grid-right {
    grid-row: 1;
  }

  #checkout .cart-grid-body {
    grid-row: 2;
  }

  .piecegsm-account-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .piecegsm-account-sidebar {
    position: static;
  }

  .piecegsm-account-profile {
    display: none;
  }

  .piecegsm-account-nav {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .piecegsm-account-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .piecegsm-account-nav__separator {
    width: 1px;
    height: 32px;
    margin: auto 0.2rem;
    flex: 0 0 1px;
  }
}

@media (max-width: 767px) {
  #cart #wrapper,
  #checkout #wrapper {
    padding: 1rem 0 3rem;
  }

  #cart .cart-grid.row,
  #checkout #content > .row {
    gap: 1rem;
  }

  #cart .cart-container > .card-block:first-child,
  #cart .cart-overview {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  #cart .product-line-grid {
    align-items: start;
    gap: 0.85rem;
    grid-template-columns: 88px minmax(0, 1fr);
  }

  #cart .product-line-grid-left img {
    width: 88px;
    height: 88px;
  }

  #cart .product-line-grid-right {
    grid-column: 1 / -1;
    padding-top: 0.75rem;
    border-top: 1px solid var(--pg-border);
  }

  #cart .product-line-actions > .row {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr auto;
  }

  #cart .product-line-actions > .row > div:first-child {
    display: none;
  }

  #cart .product-line-actions > .row > .col-md-10 {
    width: auto;
    padding: 0;
  }

  #cart .product-line-actions > .row > .col-md-2 {
    width: auto;
    padding: 0;
  }

  #checkout #header .piecegsm-checkout-header,
  .piecegsm-checkout-header__inner {
    min-height: 64px;
  }

  .piecegsm-checkout-header__inner {
    padding-right: 16px;
    padding-left: 16px;
    gap: 0.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #checkout #header .piecegsm-checkout-header__brand .piecegsm-brand-logo {
    width: 145px;
    max-height: 42px;
  }

  .piecegsm-checkout-header__secure {
    display: none;
  }

  .piecegsm-checkout-header__actions a {
    min-width: 42px;
    padding: 0.45rem;
    justify-content: center;
  }

  .piecegsm-checkout-header__count {
    min-width: 19px;
    height: 19px;
    font-size: 0.66rem;
  }

  #checkout .cart-grid-right {
    margin: 0;
  }

  #checkout .piecegsm-summary-toggle {
    min-height: 88px;
  }

  .piecegsm-checkout-intro {
    margin: 0.4rem 0 1.2rem;
  }

  .piecegsm-checkout-intro h1 {
    font-size: 1.75rem;
  }

  .piecegsm-checkout-intro span {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  #checkout .piecegsm-checkout-progress {
    margin-right: -0.25rem;
    margin-left: -0.25rem;
    padding: 0;
  }

  #checkout .piecegsm-progress-number {
    width: 34px;
    height: 34px;
    box-shadow: 0 0 0 3px #f6f8fb;
  }

  #checkout .piecegsm-checkout-progress::before {
    top: 16px;
  }

  #checkout .piecegsm-progress-label {
    font-size: 0.68rem;
  }

  #checkout .checkout-step.-current .step-title {
    padding: 1.25rem 1rem 0.25rem;
    font-size: 1.35rem;
  }

  #checkout .checkout-step .content {
    padding: 1rem 1rem 1.25rem;
  }

  #checkout .checkout-step.-complete .step-title {
    min-height: 60px;
    padding: 0.85rem 1rem;
  }

  #checkout .nav-inline {
    gap: 0.6rem;
    overflow-x: auto;
  }

  #checkout .continue.btn,
  #checkout .js-address-form .form-footer .btn {
    width: 100%;
  }

  .piecegsm-account-page {
    padding: 1rem 14px 3rem;
  }

  .piecegsm-account-hero {
    padding: 1.25rem;
    display: block;
  }

  .piecegsm-account-hero h1 {
    font-size: 1.8rem;
  }

  .piecegsm-account-hero > div > span {
    display: block;
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .piecegsm-account-hero__shop {
    margin-top: 1rem;
  }

  .piecegsm-account-layout {
    gap: 1rem;
  }

  .piecegsm-account-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .piecegsm-account-tile,
  .piecegsm-account-grid--modules > a {
    min-height: 110px;
  }

  .piecegsm-account-content {
    padding: 1rem;
  }

  .piecegsm-account-content--my-account {
    padding: 0;
  }
}

@media (max-width: 380px) {
  #checkout .piecegsm-progress-label {
    max-width: 68px;
    line-height: 1.2;
  }

  .piecegsm-account-tile {
    padding: 0.95rem;
    gap: 0.7rem;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
  }

  .piecegsm-account-tile__icon {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 575px) {
  #footer .block_newsletter > .row {
    margin-right: 0;
    margin-left: 0;
  }

  .piecegsm-products-grid,
  .products.row,
  #index .products.row,
  #index .piecegsm-products-grid,
  #index .piecegsm-home-modules .featured-products .products,
  #category .piecegsm-products-grid,
  #category .products.row,
  #new-products .piecegsm-products-grid,
  #new-products .products.row,
  #prices-drop .piecegsm-products-grid,
  #prices-drop .products.row,
  #best-sales .piecegsm-products-grid,
  #best-sales .products.row {
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .piecegsm-product-card .thumbnail-top {
    height: 154px;
  }

  .piecegsm-product-card .product-description {
    min-height: 178px;
    padding: 0.8rem;
  }

  .piecegsm-product-card .product-title {
    min-height: 3.95em;
    font-size: 0.82rem;
    line-height: 1.32;
    -webkit-line-clamp: 3;
  }

  .piecegsm-product-reviews {
    min-height: 20px;
    margin-top: 0.25rem;
  }

  .piecegsm-product-card-footer {
    padding-top: 0.6rem;
    align-items: stretch;
    flex-direction: column;
    gap: 0.55rem;
  }

  .piecegsm-product-card .piecegsm-product-pricing,
  .piecegsm-product-card .product-price-and-shipping {
    font-size: 0.93rem;
  }

  .piecegsm-product-status {
    font-size: 0.61rem;
  }

  .piecegsm-product-card .piecegsm-product-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 0.35rem;
  }

  .piecegsm-product-card .piecegsm-card-action,
  .piecegsm-product-card .piecegsm-quick-view,
  .piecegsm-product-card .quick-view {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    flex-basis: 44px;
    border-radius: 8px;
  }

  .piecegsm-product-card .thumbnail-container .wishlist-button-add {
    top: 0.6rem;
    right: 0.6rem;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #cart *,
  #checkout *,
  .piecegsm-account-page *,
  .piecegsm-product-card,
  .piecegsm-product-card * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Revue responsive finale — shell, accueil et pied de page */

#footer .block_newsletter form > .row > .col-xs-12:last-child p:not(.alert) {
  margin-top: 0.75rem;
  color: #526078;
  font-size: 0.875rem;
  line-height: 1.55;
}

#footer .piecegsm-footer-address {
  margin: 0;
  color: #526078;
  font-style: normal;
  line-height: 1.7;
}

#footer .piecegsm-footer-phone,
#footer .piecegsm-footer-fax,
#footer .piecegsm-footer-email {
  margin: 0.65rem 0 0;
  color: #526078;
  line-height: 1.55;
}

#footer .piecegsm-footer-phone a {
  color: var(--pg-ink);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (min-width: 768px) and (max-width: 991px) {
  .container {
    width: calc(100% - 2rem);
  }

  #header #_desktop_logo {
    max-width: 218px;
    flex: 0 0 218px;
  }

  #header .header-top-right {
    max-width: calc(100% - 218px);
    flex: 1 1 0;
  }

  #header #_desktop_logo h1,
  #header #_desktop_logo > a,
  #header #_desktop_logo h1 > a {
    width: 188px;
    max-width: 100%;
  }

  #header #_desktop_logo img.piecegsm-brand-logo {
    width: 188px;
    max-width: 100%;
  }

  .piecegsm-hero-grid {
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .piecegsm-hero-copy {
    padding: 3rem 1.25rem 2.5rem;
  }

  .piecegsm-hero-media {
    height: 340px;
    min-height: 340px;
  }

  .footer-container > .container > .row:first-child {
    display: grid;
    gap: 2rem 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-container > .container > .row:first-child > .links.col-md-6 {
    width: 100%;
    max-width: none;
    grid-column: 1 / -1;
  }

  .footer-container > .container > .row:first-child > .block-contact,
  .footer-container > .container > .row:first-child > #block_myaccount_infos {
    width: 100%;
    max-width: none;
  }
}

/* Mobile étroit : réserver une largeur fixe au logo pour éviter son rognage. */
@media (max-width: 350px) {
  #header .header-nav .mobile #menu-icon {
    width: 44px;
    min-width: 44px;
    margin-right: 0;
    flex: 0 0 44px;
  }

  #header .header-nav .mobile #_mobile_logo {
    min-width: 116px;
    flex: 0 0 116px;
  }

  #header .header-nav .top-logo a,
  #checkout #header .header-nav .top-logo a {
    width: 116px;
    overflow: visible;
  }

  #header .header-nav .top-logo img.piecegsm-brand-logo,
  #checkout #header .header-nav .top-logo img.piecegsm-brand-logo {
    width: 112px;
    max-width: 112px;
  }
}

/* Fiche produit — conserver le CTA complet et une cible favori tactile. */
#product .product-quantity > .wishlist-button-product {
  min-width: 44px;
  min-height: 44px;
}

@media (min-width: 400px) and (max-width: 767px) {
  #product .product-quantity {
    gap: 0.625rem;
  }
}

@media (max-width: 399px), (min-width: 768px) and (max-width: 991px) {
  #product .product-quantity {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 0.75rem;
  }

  #product .product-quantity .qty {
    grid-column: 1;
    grid-row: 1;
  }

  #product .product-quantity > .wishlist-button-product {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
  }

  #product .product-quantity .add {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* PieceGSM — plan du site compact et navigable */
.page-sitemap .page-header {
  margin-bottom: 0.35rem;
}

.page-sitemap .page-header h1 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 2.5vw, 2rem);
  text-transform: none;
}

.page-sitemap .sitemap-title {
  text-transform: none;
}

.piecegsm-sitemap {
  --sitemap-row-height: 44px;
  width: 100%;
  margin-bottom: 2rem;
}

.piecegsm-sitemap__intro {
  max-width: 48rem;
  margin: 0 0 1.25rem;
  color: var(--pg-muted);
}

.piecegsm-sitemap__search {
  position: relative;
  width: min(100%, 720px);
  margin-bottom: 1rem;
  color: var(--pg-muted);
}

.piecegsm-sitemap__search > .material-icons {
  position: absolute;
  top: 50%;
  left: 1rem;
  z-index: 1;
  transform: translateY(-50%);
  font-size: 1.35rem;
  pointer-events: none;
}

.piecegsm-sitemap__search-input {
  width: 100%;
  height: 50px;
  padding: 0 3.25rem;
  border: 1px solid var(--pg-border-strong);
  border-radius: var(--pg-radius-sm);
  color: var(--pg-ink);
  background: var(--pg-white);
  font: inherit;
  box-shadow: 0 1px 2px rgba(7, 20, 47, 0.03);
  transition: border-color var(--pg-transition), box-shadow var(--pg-transition);
}

.piecegsm-sitemap__search-input:focus {
  border-color: var(--pg-blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(7, 95, 217, 0.12);
}

.piecegsm-sitemap__search-clear {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--pg-muted);
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.piecegsm-sitemap__search-clear:hover {
  color: var(--pg-ink);
  background: var(--pg-soft);
}

.piecegsm-sitemap__directory {
  overflow: hidden;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-white);
  box-shadow: var(--pg-shadow-sm);
}

.piecegsm-sitemap__tabs {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  border-bottom: 1px solid var(--pg-border);
  scrollbar-width: thin;
}

.piecegsm-sitemap__tab {
  min-width: 155px;
  min-height: 52px;
  padding: 0.75rem 1.5rem;
  flex: 0 0 auto;
  border: 0;
  border-right: 1px solid var(--pg-border);
  border-bottom: 3px solid transparent;
  color: var(--pg-ink-soft);
  background: var(--pg-white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--pg-transition), border-color var(--pg-transition), background-color var(--pg-transition);
}

.piecegsm-sitemap__tab:hover {
  color: var(--pg-blue);
  background: var(--pg-soft);
}

.piecegsm-sitemap__tab.is-active {
  color: var(--pg-blue);
  border-bottom-color: var(--pg-blue);
  background: rgba(7, 95, 217, 0.035);
}

.piecegsm-sitemap__panels {
  min-height: 260px;
}

.piecegsm-sitemap__panel {
  padding: 0.75rem;
}

.piecegsm-sitemap__panel[hidden],
.piecegsm-sitemap__results[hidden],
.piecegsm-sitemap__search-clear[hidden],
.piecegsm-sitemap__tab[hidden],
.piecegsm-sitemap__empty[hidden],
.piecegsm-sitemap ul[hidden] {
  display: none !important;
}

.piecegsm-sitemap__panel-heading {
  min-height: 42px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.piecegsm-sitemap__panel-heading h2 {
  margin: 0;
  font-size: 1rem;
}

.piecegsm-sitemap__expand-all {
  min-height: 38px;
  padding: 0.45rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--pg-border-strong);
  border-radius: var(--pg-radius-sm);
  color: var(--pg-ink-soft);
  background: var(--pg-white);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.piecegsm-sitemap__expand-all:hover {
  color: var(--pg-blue);
  border-color: var(--pg-blue);
}

.piecegsm-sitemap__expand-all .material-icons {
  font-size: 1.15rem;
}

.piecegsm-sitemap__tree {
  max-height: min(54vh, 520px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-sm);
  scrollbar-color: var(--pg-border-strong) transparent;
  scrollbar-width: thin;
}

.piecegsm-sitemap__tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.piecegsm-sitemap__tree li {
  position: relative;
  min-height: var(--sitemap-row-height);
  padding-left: 2.75rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--pg-border);
}

.piecegsm-sitemap__tree li:last-child {
  border-bottom: 0;
}

.piecegsm-sitemap__tree li > a {
  min-width: 0;
  min-height: var(--sitemap-row-height);
  padding: 0.7rem 0.5rem;
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  color: var(--pg-ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.piecegsm-sitemap__tree li > a:hover {
  color: var(--pg-blue);
}

.piecegsm-sitemap__tree .nested {
  width: 100%;
  margin-left: -1.5rem;
  border-top: 1px solid var(--pg-border);
}

.piecegsm-sitemap__tree .nested li {
  padding-left: 3.5rem;
}

.piecegsm-sitemap__tree .nested .nested li {
  padding-left: 4.25rem;
}

.piecegsm-sitemap__tree .nested .nested .nested li {
  padding-left: 5rem;
}

.piecegsm-sitemap__branch-toggle {
  position: absolute;
  top: 4px;
  left: 0.4rem;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--pg-ink-soft);
  background: transparent;
  cursor: pointer;
}

.piecegsm-sitemap__branch-toggle:hover {
  color: var(--pg-blue);
  background: var(--pg-soft);
}

.piecegsm-sitemap__branch-toggle .material-icons {
  font-size: 1.25rem;
  transition: transform var(--pg-transition);
}

.piecegsm-sitemap li.is-expanded > .piecegsm-sitemap__branch-toggle .material-icons {
  transform: rotate(90deg);
}

.piecegsm-sitemap__count {
  min-width: 24px;
  height: 22px;
  margin-left: 0.25rem;
  padding: 0 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--pg-blue);
  background: rgba(7, 95, 217, 0.08);
  font-size: 0.75rem;
  font-weight: 700;
}

.piecegsm-sitemap__results {
  max-height: min(58vh, 560px);
  padding: 1rem;
  overflow: auto;
  overscroll-behavior: contain;
}

.piecegsm-sitemap__results-count {
  margin: 0 0 0.75rem;
  color: var(--pg-muted);
  font-size: 0.88rem;
}

.piecegsm-sitemap__results-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  list-style: none;
}

.piecegsm-sitemap__results-list li {
  min-width: 0;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-sm);
}

.piecegsm-sitemap__results-list a {
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  color: var(--pg-ink-soft);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.piecegsm-sitemap__results-list li > span {
  padding: 0 0.85rem 0.65rem;
  display: block;
  color: var(--pg-muted);
  font-size: 0.78rem;
}

.piecegsm-sitemap__empty {
  margin: 2rem 0;
  color: var(--pg-muted);
  text-align: center;
}

.piecegsm-sitemap.is-searching .piecegsm-sitemap__tabs {
  min-height: 3px;
  border-bottom: 3px solid var(--pg-blue);
}

@media (max-width: 767px) {
  .page-sitemap .page-header h1 {
    font-size: 1.75rem;
  }

  .piecegsm-sitemap__intro {
    margin-bottom: 1rem;
    font-size: 0.95rem;
  }

  .piecegsm-sitemap__search {
    margin-bottom: 0.75rem;
  }

  .piecegsm-sitemap__search-input {
    height: 48px;
    padding-left: 2.85rem;
    font-size: 0.95rem;
  }

  .piecegsm-sitemap__tab {
    min-width: 0;
    min-height: 48px;
    padding: 0.65rem 0.3rem;
    flex: 1 1 25%;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .piecegsm-sitemap__panel {
    padding: 0.6rem;
  }

  .piecegsm-sitemap__panel-heading {
    align-items: flex-end;
    flex-direction: column;
    gap: 0.4rem;
  }

  .piecegsm-sitemap__panel-heading h2 {
    align-self: flex-start;
  }

  .piecegsm-sitemap__tree {
    max-height: 52vh;
  }

  .piecegsm-sitemap__tree li {
    padding-left: 2.55rem;
  }

  .piecegsm-sitemap__tree .nested li {
    padding-left: 3.15rem;
  }

  .piecegsm-sitemap__tree .nested .nested li {
    padding-left: 3.75rem;
  }

  .piecegsm-sitemap__tree .nested .nested .nested li {
    padding-left: 4.35rem;
  }

  .piecegsm-sitemap__results-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 350px) {
  .piecegsm-sitemap__tab {
    min-width: max-content;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .piecegsm-sitemap__branch-toggle .material-icons {
    transition: none;
  }
}

/* Home: the full-bleed wrapper must not inherit Bootstrap's root row gutters. */
#index #wrapper > .container > .row {
  margin-right: 0;
  margin-left: 0;
}

#index #wrapper > .container > .row > #content-wrapper {
  padding-right: 0;
  padding-left: 0;
}

@media (max-width: 767px) {
  .piecegsm-hero-grid {
    overflow: visible;
  }

  .piecegsm-hero-copy {
    padding: 2rem 20px 1.5rem;
  }

  .piecegsm-hero-copy h1,
  .piecegsm-hero-title {
    font-size: clamp(2.15rem, 10.5vw, 2.65rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
  }

  .piecegsm-hero-media {
    margin-top: 0;
  }
}

@media (max-width: 360px) {
  .piecegsm-hero-copy h1,
  .piecegsm-hero-title {
    font-size: 2.15rem;
  }
}

/* Revue catalogue et fiche produit — densité, médias et cibles tactiles */

.piecegsm-product-card .thumbnail-top {
  height: auto;
  aspect-ratio: 4 / 3;
}

#category #subcategories .piecegsm-subcategory-image-link,
#category #subcategories .piecegsm-subcategory-image-link picture {
  width: 40px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  overflow: hidden;
}

#category #subcategories .piecegsm-subcategory-image-link img {
  width: 36px;
  max-width: 36px;
  height: 24px;
  max-height: 24px;
  object-fit: contain;
  object-position: center;
  transform: scale(2.25);
  transform-origin: center;
}

#category #subcategories .piecegsm-subcategory-image-link img.piecegsm-apple-brand-logo {
  width: 24px;
  max-width: 24px;
  height: 24px;
  max-height: 24px;
  transform: none;
}

.piecegsm-filter-option {
  min-height: 44px;
  padding: 0.45rem 0;
}

.piecegsm-filter-checkbox {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.piecegsm-product-status {
  font-size: 0.75rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

#product .piecegsm-product-gallery .product-cover img {
  max-height: 460px;
  object-fit: contain;
}

@media (max-width: 991px) {
  .piecegsm-catalog-layout {
    display: block;
  }

  .piecegsm-catalog-filters {
    display: none;
    margin-bottom: 1rem;
  }

  .piecegsm-catalog-filters.is-open {
    display: block;
  }

  #category .piecegsm-products-grid,
  #category .products.row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  #wrapper .breadcrumb {
    width: 100%;
    padding-bottom: 0.35rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  #wrapper .breadcrumb ol {
    width: max-content;
    min-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
  }

  #wrapper .breadcrumb li:first-child {
    margin-left: 0;
  }

  #category #subcategories.piecegsm-subcategories {
    padding-bottom: 0.65rem;
    scrollbar-color: var(--pg-border-strong) transparent;
    scrollbar-width: thin;
    box-shadow: inset -18px 0 16px -20px rgba(7, 20, 47, 0.7);
  }

  #category #subcategories.piecegsm-subcategories::-webkit-scrollbar {
    height: 4px;
  }

  #category #subcategories.piecegsm-subcategories::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--pg-border-strong);
  }

  .piecegsm-product-card .thumbnail-top {
    aspect-ratio: 1 / 1;
  }

  .piecegsm-product-status {
    font-size: 0.72rem;
  }

  #product .piecegsm-product-gallery .product-cover img,
  #product .piecegsm-clean-product-images .product-cover img {
    width: 100%;
    height: min(70vw, 280px);
    max-height: 280px;
    aspect-ratio: auto;
    padding: 0.75rem;
  }
}

@media (max-width: 350px) {
  .piecegsm-products-grid,
  .products.row,
  #index .products.row,
  #index .piecegsm-products-grid,
  #index .piecegsm-home-modules .featured-products .products,
  #category .piecegsm-products-grid,
  #category .products.row,
  #new-products .piecegsm-products-grid,
  #new-products .products.row,
  #prices-drop .piecegsm-products-grid,
  #prices-drop .products.row,
  #best-sales .piecegsm-products-grid,
  #best-sales .products.row {
    grid-template-columns: minmax(0, 1fr);
  }

  .piecegsm-product-card .thumbnail-top {
    height: 190px;
  }
}

/* Piece GSM — états panier, réassurance, 404 et correctifs auth */
.piecegsm-cart-empty {
  width: min(100%, 720px);
  min-height: 0;
  margin-right: auto;
  margin-left: auto;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-white);
}

.piecegsm-cart-empty .card-block {
  padding: clamp(2rem, 6vw, 3.5rem);
  display: flex;
  align-items: center;
  flex-direction: column;
}

.piecegsm-cart-empty .material-icons {
  margin-bottom: 1rem;
  color: var(--pg-blue);
  font-size: 3rem;
}

.piecegsm-cart-empty h1 {
  margin-bottom: 0.75rem;
}

.piecegsm-cart-empty p {
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

#cart #block-reassurance {
  margin-top: 1rem;
  padding: 0 1rem;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-white);
  box-shadow: none;
}

#cart #block-reassurance ul {
  margin: 0;
  padding: 0;
}

#cart #block-reassurance li {
  margin: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--pg-border);
}

#cart #block-reassurance li:last-child {
  border-bottom: 0;
}

#cart #block-reassurance .block-reassurance-item {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#cart #block-reassurance .material-icons,
#cart #block-reassurance i,
#cart #block-reassurance svg {
  flex: 0 0 auto;
  color: var(--pg-blue);
  fill: currentColor;
}

#cart #block-reassurance img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
  filter: invert(32%) sepia(92%) saturate(1820%) hue-rotate(203deg) brightness(92%) contrast(101%);
}

.piecegsm-not-found {
  width: min(100%, 720px);
  margin-right: auto;
  margin-left: auto;
  padding: clamp(2rem, 6vw, 3.5rem);
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-white);
}

.piecegsm-not-found__search {
  width: min(100%, 560px);
  margin: 1.5rem auto;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.piecegsm-not-found__search .form-control,
.piecegsm-not-found__search .btn {
  min-height: 48px;
}

.piecegsm-not-found__search .form-control {
  min-width: 0;
}

@media (max-width: 575px) {
  .piecegsm-not-found__search {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 360px) {
  .piecegsm-auth-tabs a {
    width: 100%;
    min-width: 0;
    padding-right: 0.2rem;
    padding-left: 0.2rem;
    overflow-wrap: anywhere;
    font-size: 0.82rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .page-authentication #wrapper > .container > .row,
  .page-registration #wrapper > .container > .row {
    width: auto;
    margin-right: 0;
    margin-left: 0;
  }

  .page-authentication #content-wrapper,
  .page-registration #content-wrapper {
    float: none;
    padding-right: 0;
    padding-left: 0;
  }

  .page-authentication #content-wrapper,
  .page-registration #content-wrapper,
  .page-authentication .piecegsm-auth-page,
  .page-registration .piecegsm-auth-page,
  .page-authentication .piecegsm-auth-layout,
  .page-registration .piecegsm-auth-layout,
  .page-authentication .piecegsm-auth-benefits,
  .page-registration .piecegsm-auth-benefits {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .page-authentication .piecegsm-auth-card,
  .page-registration .piecegsm-auth-card,
  .page-authentication .piecegsm-auth-card > *,
  .page-registration .piecegsm-auth-card > *,
  .page-authentication .piecegsm-auth-benefits > *,
  .page-registration .piecegsm-auth-benefits > * {
    min-width: 0;
  }
}

/* Garde de cascade: ces règles doivent rester après les anciens overrides catalogue. */
body#category {
  overflow-x: clip;
}

html.piecegsm-category-page {
  overflow-x: clip;
}

body#category #page,
body#category #wrapper {
  max-width: 100vw;
  overflow-x: clip;
}

@media (min-width: 992px) {
  #category #wrapper > .container > .row {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
  }

  #category #left-column {
    width: 250px;
    max-width: 250px;
    padding: 0;
    display: block;
    flex: 0 0 250px;
    position: sticky;
    top: 1rem;
  }

  #category #content-wrapper,
  #category #content-wrapper.left-column {
    width: auto;
    max-width: none;
    padding-right: 0;
    padding-left: 1.5rem;
    flex: 1 1 0;
  }

  #category .piecegsm-catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #category .piecegsm-products-grid,
  #category .products.row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  #category #left-column {
    width: min(88vw, 340px);
    max-width: 340px;
    height: 100dvh;
    padding: 0 0 2rem;
    display: block;
    position: fixed;
    z-index: 1052;
    top: 0;
    bottom: 0;
    left: -340px;
    overflow-y: auto;
    background: var(--pg-white);
    visibility: hidden;
    transform: none;
    transition: left 180ms ease, visibility 180ms ease;
  }

  #category #left-column.is-open {
    display: block;
    left: 0;
    visibility: visible;
    transform: none;
  }
}
