/* Shared WooCommerce cards, including product recommendations and archive subcategories. */
:is(.woocommerce, .woocommerce-page) ul.products {
  --sp-loop-columns: 4;
  display: grid !important;
  grid-template-columns: repeat(var(--sp-loop-columns), minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: clamp(12px, 2vw, 24px);
  margin-inline: 0;
  padding-inline: 0;
}

:is(.woocommerce, .woocommerce-page) ul.products::before,
:is(.woocommerce, .woocommerce-page) ul.products::after {
  content: none;
  display: none;
}

:is(.woocommerce, .woocommerce-page) ul.products.columns-1 { --sp-loop-columns: 1; }
:is(.woocommerce, .woocommerce-page) ul.products.columns-2 { --sp-loop-columns: 2; }
:is(.woocommerce, .woocommerce-page) ul.products.columns-3 { --sp-loop-columns: 3; }
:is(.woocommerce, .woocommerce-page) ul.products.columns-5 { --sp-loop-columns: 5; }
:is(.woocommerce, .woocommerce-page) ul.products.columns-6 { --sp-loop-columns: 6; }

:is(.woocommerce, .woocommerce-page) ul.products > li.product {
  display: flex;
  flex-direction: column;
  float: none !important;
  clear: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0;
  align-self: stretch;
  box-sizing: border-box;
  border: 1px solid #e0e2e5;
  border-radius: 14px;
  background: #fff;
  overflow-wrap: anywhere;
}

:is(.woocommerce, .woocommerce-page) ul.products li.product :is(.card-product, .woocommerce-LoopProduct-link, .woocommerce-loop-product__link),
:is(.woocommerce, .woocommerce-page) ul.products li.product.product-category > a {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

:is(.woocommerce, .woocommerce-page) ul.products li.product .card-product {
  margin: 0;
  border: 0;
  box-shadow: none;
  border-radius: inherit;
}

:is(.woocommerce, .woocommerce-page) ul.products li.product .card-product .content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

:is(.woocommerce, .woocommerce-page) ul.products li.product .card-image {
  height: auto;
  margin: 0;
  overflow: visible;
}

:is(.woocommerce, .woocommerce-page) ul.products li.product :is(.card-image img, a > img) {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: scale-down !important;
  object-position: center !important;
  transform: none !important;
  padding: clamp(4px, 1vw, 12px);
  margin: 0 0 10px !important;
  border-radius: 13px 13px 0 0;
  background: #f7f7f8;
}

:is(.woocommerce, .woocommerce-page) ul.products li.product :is(.woocommerce-loop-product__title, .woocommerce-loop-category__title) {
  padding: 0 12px;
  margin: 4px 0 8px;
  color: #24262a;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.3;
}

:is(.woocommerce, .woocommerce-page) ul.products > li.product > a :is(.price, .sp-product-unit, .sp-product-mode, .star-rating) {
  align-self: start;
  margin-inline: 12px;
}

:is(.woocommerce, .woocommerce-page) ul.products li.product .footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

:is(.woocommerce, .woocommerce-page) ul.products li.product .footer .stats {
  display: flex;
  flex: 1 0 100%;
  min-width: 0;
  margin: 0;
  float: none;
}

:is(.woocommerce, .woocommerce-page) ul.products li.product :is(a.button, a.add_to_cart_button, a:has(> .sp-card-action-label), a.added_to_cart) {
  display: inline-flex !important;
  width: auto;
  min-height: 44px;
  max-width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9px !important;
  padding: 8px 10px !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  text-align: center;
  text-indent: 0 !important;
  text-transform: none !important;
  white-space: normal;
}

:is(.woocommerce, .woocommerce-page) ul.products > li.product > :is(a.button, a.add_to_cart_button, a:has(> .sp-card-action-label), a.added_to_cart) {
  margin: auto 10px 10px;
}

:is(.woocommerce, .woocommerce-page) ul.products li.product .stats > :is(a.button, a.add_to_cart_button, a:has(> .sp-card-action-label)) {
  flex: 1 1 auto;
  margin: 0;
}

:is(.woocommerce ul.products li.product, .woocommerce-page ul.products li.product) a:has(> .sp-card-action-label),
body.single-product .product button.single_add_to_cart_button {
  --sp-cart-icon: url("cart.svg");
  background: #b52323 !important;
  color: #fff !important;
  border: 1px solid #b52323;
  text-decoration: none;
}

:is(.woocommerce ul.products li.product, .woocommerce-page ul.products li.product) a:has(> .sp-card-action-label):hover,
body.single-product .product button.single_add_to_cart_button:hover {
  background: #981a1a !important;
  color: #fff !important;
}

.sp-card-action-label {
  display: inline;
  min-width: 0;
  visibility: visible;
  font-size: inherit;
  line-height: inherit;
}

:is(.woocommerce ul.products li.product, .woocommerce-page ul.products li.product) a:has(> .sp-card-action-label)::before {
  content: none !important;
}

body.single-product .product button.single_add_to_cart_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  gap: 8px;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  text-transform: none;
  white-space: normal;
}

.sp-cart-glyph,
body.single-product .product button.single_add_to_cart_button::before {
  content: "";
  display: inline-block;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  background-color: currentColor;
  mask: var(--sp-cart-icon) center / contain no-repeat;
}

:is(.woocommerce, .woocommerce-page) ul.products li.product :is(a,button):focus-visible,
body.single-product .product button.single_add_to_cart_button:focus-visible {
  outline: 3px solid #a51e1e !important;
  outline-offset: 3px !important;
}

body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image > a > img:not(.zoomImg),
body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: scale-down;
  object-position: center;
  background: #f7f7f8;
  border-radius: 14px;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs img {
  aspect-ratio: 1;
  object-fit: scale-down;
  object-position: center;
}

.seepower-site .see-grid:has(> .see-card-link:is([href^="/product/"], [href^="/product-category/"])) {
  grid-auto-rows: 1fr;
  align-items: stretch;
}

body .seepower-site .see-grid > .see-card-link:is([href^="/product/"], [href^="/product-category/"]) > img {
  box-sizing: border-box;
  width: 100%;
  height: auto !important;
  aspect-ratio: 4 / 3;
  object-fit: scale-down !important;
  object-position: center !important;
  background: #f7f7f8;
}

.seepower-site .see-grid > .see-card-link:is([href^="/product/"], [href^="/product-category/"]) .see-card-action {
  margin-top: auto;
}

@media (max-width: 1020px) {
  :is(.woocommerce, .woocommerce-page) ul.products:not(.columns-1, .columns-2) { --sp-loop-columns: 3; }
}

@media (max-width: 680px) {
  :is(.woocommerce, .woocommerce-page) ul.products:not(.columns-1) { --sp-loop-columns: 2; }
}

@media (max-width: 350px) {
  :is(.woocommerce, .woocommerce-page) ul.products { grid-template-columns: minmax(0, 1fr); }
}

/* The outer card supplies the shared edge for WooCommerce category links. */
body.woocommerce-page ul.products > li.product.product-category > a {
  border: 0 !important;
}

/* Keep the native form order on all widths and one decorative idle icon. */
body.single-product .product .summary .sp-purchase-panel form.cart:not(.variations_form, .grouped_form) {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
}

body.single-product .product .summary .sp-purchase-panel form.cart:not(.variations_form, .grouped_form) .sp-quantity-field {
  align-self: start;
  margin: 0;
}

body.single-product .product .summary .sp-purchase-panel form.cart .quantity {
  float: none !important;
  margin: 0 !important;
}

body.single-product .product .summary .sp-purchase-panel form.cart .quantity input.qty {
  min-height: 44px;
  min-width: 60px;
  padding-inline: 8px;
  background: #fff !important;
  color: #24262a !important;
  border: 1px solid #747780 !important;
  border-radius: 8px;
  opacity: 1;
}

body.single-product .product .summary .sp-purchase-panel form.cart:not(.variations_form, .grouped_form) button.single_add_to_cart_button {
  float: none !important;
  margin: 0;
}

body.single-product .product button.single_add_to_cart_button:not(.loading, .added)::after {
  content: none !important;
  display: none !important;
}

body.single-product .product button.single_add_to_cart_button:not(.loading, .added) > :is(.fa-shopping-cart, .fa-cart-plus, [data-icon="shopping-cart"]) {
  display: none !important;
}

/* The theme's caret border doubles the Font Awesome arrow inside this menu item. */
body .navbar #menu-item-5916 > a .caret:has(> svg[data-icon="chevron-down"]) {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  border: 0 !important;
  vertical-align: middle;
  line-height: 1;
}

body .navbar #menu-item-5916 > a .caret > svg[data-icon="chevron-down"] {
  display: block;
  width: .8em;
  height: .8em;
}

body.home #see-l01-search-input::placeholder,
body .sp-catalogue-tools .sp-catalogue-form input[type="search"]::placeholder {
  color: #646464 !important;
  opacity: 1 !important;
}

body .sp-catalogue-tools .sp-catalogue-form input[type="search"] {
  border: 1px solid #747780 !important;
}

body .woocommerce-breadcrumb,
body .woocommerce-breadcrumb a {
  color: #4e5560 !important;
}

body .woocommerce-breadcrumb a {
  text-decoration: underline;
  text-underline-offset: .15em;
}

body .sp-catalogue-tools .sp-filters > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  list-style: none;
}

body .sp-catalogue-tools .sp-filters > summary::-webkit-details-marker {
  display: none;
}

body .sp-catalogue-tools .sp-filters > summary::after {
  content: "";
  display: block;
  box-sizing: border-box;
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}

body .sp-catalogue-tools .sp-filters[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}

/* One outer frame and a common top edge for classic WooCommerce category cards. */
body.woocommerce-page ul.products > li.product.product-category > a {
  display: flex !important;
  justify-content: flex-start !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: inherit;
  box-shadow: none !important;
}

body.woocommerce-page ul.products > li.product.product-category > a > img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  margin: 0 !important;
  border: 0;
  border-radius: 13px 13px 0 0;
  box-shadow: none !important;
}

/* Make room for the existing quote shortcut above the native navigation. */
body:not(.admin-bar) header.header-with-topbar:has(> .hestia-top-bar #block-12 a[href="/devis-location-seepower/"]) {
  --sp-top-bar-height: 56px;
}

body:not(.admin-bar) header.header-with-topbar:has(> .hestia-top-bar #block-12 a[href="/devis-location-seepower/"]) > .hestia-top-bar {
  height: var(--sp-top-bar-height);
  max-height: none;
  overflow: visible;
}

body:not(.admin-bar) .hestia-top-bar > .container > .row > .pull-right:has(> #block-12 a[href="/devis-location-seepower/"]) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: var(--sp-top-bar-height);
  max-height: none;
}

body:not(.admin-bar) .hestia-top-bar #block-12:has(a[href="/devis-location-seepower/"]) {
  margin: 0;
}

body:not(.admin-bar) header.header-with-topbar:has(> .hestia-top-bar #block-12 a[href="/devis-location-seepower/"]) > .navbar.header-with-topbar:not(.navbar-scroll-point) {
  top: var(--sp-top-bar-height);
}

@media (min-width: 769px) {
  body:not(.admin-bar) header.header-with-topbar:has(> .hestia-top-bar #block-12 a[href="/devis-location-seepower/"]) > .navbar:not(.navbar-scroll-point) #menu-item-5922 {
    display: none;
  }
}

@media (max-width: 768px) {
  body:not(.admin-bar) header.header-with-topbar:has(> .hestia-top-bar #block-12 a[href="/devis-location-seepower/"]) > .navbar.navbar-fixed-top.header-with-topbar:not(.navbar-scroll-point) .navbar-collapse {
    margin-top: calc(70px + var(--sp-top-bar-height));
  }
}

/* At tablet widths, use the space between the logo and the end of the row. */
@media (min-width: 769px) and (max-width: 991px) {
  body:not(.admin-bar) header.header-with-topbar:has(> .hestia-top-bar #block-12 a[href="/devis-location-seepower/"]) > .navbar.hestia_left:not(.navbar-scroll-point) > .container {
    display: flex;
    align-items: center;
  }

  body:not(.admin-bar) .navbar.hestia_left:not(.navbar-scroll-point) > .container > .navbar-header {
    flex: 0 0 auto;
  }

  body:not(.admin-bar) .navbar.hestia_left:not(.navbar-scroll-point) > .container > #main-navigation {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  body:not(.admin-bar) .navbar.hestia_left:not(.navbar-scroll-point) #main-navigation > #menu-seepower-navigation-2026 {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
    max-width: none;
  }

  body:not(.admin-bar) .navbar.hestia_left:not(.navbar-scroll-point) #menu-seepower-navigation-2026 > li > a {
    min-height: 44px;
    padding-inline: 10px;
  }
}

/* Prevent desktop editorial headings from splitting French words. */
@media (min-width: 981px) {
  body.page-id-5892 .see-l04-cover-grid > div > h2,
  body.page-id-5905 .see-hero-copy > h2 {
    font-size: clamp(32px, 3.2vw, 46px) !important;
    line-height: 1.12;
    overflow-wrap: normal;
    word-break: normal;
  }

  body.page-id-5905 .see-hero-copy > h2 {
    font-size: clamp(28px, 2.5vw, 36px) !important;
  }
}

/* Logistic.jpg contains four panels. Show the whole graphic and its caption. */
body.page-id-5905 .see-hero-visual:has(> img.wp-image-1978) {
  align-self: center;
  min-height: 0;
  aspect-ratio: auto;
}

body.page-id-5905 .see-hero-visual:has(> img.wp-image-1978)::after {
  content: none;
}

body.page-id-5905 .see-hero-visual > img.wp-image-1978 {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
}

body.page-id-5905 .see-hero-visual:has(> img.wp-image-1978) > .see-hero-label {
  position: static;
  max-width: none;
  border-radius: 0;
}

/* Shared card proportions for category and product grids. */
body.woocommerce-shop ul.products:has(> li.product-category) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
:is(.woocommerce, .woocommerce-page) ul.products {
  grid-auto-rows: auto;
}
:is(.woocommerce, .woocommerce-page) ul.products > li.product {
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease;
}
:is(.woocommerce, .woocommerce-page) ul.products > li.product:hover {
  border-color: #a51e1e;
  box-shadow: 0 6px 18px #24262a13;
}
body.woocommerce-page ul.products > li.product.product-category > a:has(.sp-card-media):focus-visible {
  outline-offset: -3px !important;
}
.sp-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 13px 13px 0 0;
  background: #f4f3f1;
}
.sp-product-card-media > a {
  position: absolute;
  inset: 0;
  display: block;
}
.sp-product-card-media > a:focus-visible {
  outline-offset: -4px !important;
  z-index: 1;
}
body.woocommerce-page ul.products li.product .sp-card-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0;
  background: transparent;
}
body.woocommerce-page ul.products li.product .sp-card-media.is-product-photo img {
  object-fit: scale-down !important;
  padding: 8px;
}
.sp-card-copy {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 15px 16px;
  color: #4e5560;
}
.sp-rental-category-copy {
  padding-inline-end: 40px;
}
body.woocommerce-page ul.products li.product .sp-card-copy .sp-card-title {
  margin: 0 0 6px;
  padding: 0;
  color: #24262a;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 750;
  line-height: 1.25;
  text-align: start;
  text-transform: none;
}
body.woocommerce-page ul.products li.product .sp-card-title a {
  display: inline;
  color: inherit;
}
body.woocommerce-page ul.products li.product .sp-card-title a:hover {
  text-decoration: underline;
  text-underline-offset: .15em;
}
.sp-rental-category-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}
.sp-rental-category-arrow {
  position: absolute;
  inset-inline-end: 15px;
  top: 14px;
  color: #a51e1e;
  font-size: 20px;
}
.sp-product-card-copy {
  flex: 1 1 auto;
  padding-bottom: 10px;
}
body.woocommerce-page ul.products li.product .sp-product-card-copy .price {
  margin: 6px 0 0;
  color: #24262a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
body.woocommerce-page ul.products li.product .sp-product-card-copy .sp-product-unit {
  margin: 6px 0 0;
}
body.woocommerce-page ul.products li.product .sp-product-card-copy .sp-product-mode {
  margin: 1px 0 0;
}
.sp-product-card-actions {
  display: grid;
  gap: 5px;
  padding: 0 15px 15px;
}
body.woocommerce-page ul.products li.product .sp-product-card-actions > a.button {
  width: 100%;
  margin: 0;
}
body.woocommerce-page ul.products li.product a.added_to_cart.wc-forward {
  position: static !important;
  inset: auto !important;
  float: none !important;
  clear: both;
  grid-column: 1 / -1;
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  min-height: 44px;
  margin: 0;
  opacity: 1;
  transform: none !important;
  color: #8a2121 !important;
  background: #fff !important;
  border: 1px solid #dbbfbf;
  text-decoration: underline;
  text-underline-offset: .15em;
}
body.woocommerce-page ul.products li.product .sp-product-card-actions > a.added_to_cart.wc-forward::before,
body.woocommerce-page ul.products li.product .sp-product-card-actions > a.added_to_cart.wc-forward::after {
  content: none !important;
}
@media (max-width: 780px) {
  body.woocommerce-shop ul.products:has(> li.product-category) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  body.woocommerce-shop ul.products:has(> li.product-category) {
    grid-template-columns: minmax(0, 1fr);
  }
  .sp-product-card-actions {
    padding-inline: 8px;
  }
  .sp-product-card-copy {
    padding-inline: 10px;
  }
}

/* Suppress the extra pointer-focus rectangle while keeping a strong keyboard indicator. */
body.woocommerce-page ul.products > li.product.product-category > a:focus:not(:focus-visible),
body.tax-product_cat .sp-category-back:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}
body.woocommerce-page ul.products > li.product.product-category > a:focus-visible {
  outline: 3px solid #a51e1e !important;
  outline-offset: -3px !important;
}

.sp-card-quantity:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 44px;
  color: #24262a;
  font-size: 14px;
}
.sp-card-quantity > label {
  margin: 0;
  font-weight: 650;
}
body.woocommerce-page ul.products li.product .sp-card-quantity .quantity {
  float: none;
  margin: 0;
}
body.woocommerce-page ul.products li.product .sp-card-quantity input.qty {
  width: 62px;
  min-height: 44px;
  margin: 0;
  padding: 4px;
  border: 1px solid #bfc2c7;
  border-radius: 7px;
  background: #fff;
  color: #24262a;
  font-size: 16px;
}
.sp-card-quantity input:focus-visible {
  outline: 2px solid #a51e1e;
  outline-offset: 2px;
}

body.single-product .product .sharedaddy,
body.single-product .product .jp-sharing-input-touch {
  display: none !important;
}

/* Use the compact home tile throughout the rental catalogue landing page. */
body.woocommerce-shop ul.products:has(> li.product-category .sp-family-tile-image) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
body.woocommerce-shop ul.products[class*="columns-"] > li.product-category.product:has(.sp-family-tile-image) {
  padding: 0;
}
.sp-family-tile-image {
  height: 132px;
  overflow: hidden;
  border-radius: 13px 13px 0 0;
  background: #edeff0;
}
.see-lot01 .sp-family-tile-image img,
body.woocommerce-shop ul.products[class*="columns-"] li.product-category.product a .sp-family-tile-image img,
body.woocommerce-shop ul.products[class*="columns-"] li.product-category.product:hover a .sp-family-tile-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.see-lot01 .sp-family-tile-image.is-product-photo img,
body.woocommerce-shop ul.products[class*="columns-"] li.product-category.product a .sp-family-tile-image.is-product-photo img {
  object-fit: contain;
  padding: 6px;
  background: #fff;
}
.see-lot01 .sp-family-tile-name,
body.woocommerce-shop ul.products[class*="columns-"] li.product-category.product a .sp-family-tile-name {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 10px 12px;
  font: 750 15px/1.3 system-ui, sans-serif;
  text-align: start;
  text-transform: none;
  color: #24262a;
}
.sp-family-tile-name > span:first-child { min-width: 0; overflow-wrap: break-word; }
.sp-family-tile-arrow { flex: none; color: #a51e1e; }
@media (max-width: 940px) {
  body.woocommerce-shop ul.products:has(> li.product-category .sp-family-tile-image) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  body.woocommerce-shop ul.products:has(> li.product-category .sp-family-tile-image) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 379px) {
  body.woocommerce-shop ul.products:has(> li.product-category .sp-family-tile-image) {
    grid-template-columns: minmax(0, 1fr);
  }
}
