/* Canonical catalogue card system.
   Every native PrestaShop listing uses the same component geometry; product
   identity and route never participate in presentation. */

:root {
  --wg-card-surface: #fff;
  --wg-card-bg: #fff;
  --wg-card-media: #eaf2fd;
  --wg-card-border: #dce5f2;
  --wg-card-text: #13213d;
  --wg-card-muted: #52617d;
  --wg-card-sale: #c8283b;
  --wg-card-action: #2a6bd1;
}

/* A product card has one surface on every route.  The native product-page
   shelves used to leave the article transparent and only paint its inner
   container, which made the same card react differently to section colours. */
html body#product #main :is(.wg-prod-cross, .wg-prod-same) .product-miniature {
  background: var(--wg-card-surface) !important;
}

/* Builder shelves use the same visual component as native PrestaShop cards. */
html body .pxb-products--cards {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

html body .pxb-card {
  position: relative !important;
  display: flex !important;
  min-width: 0 !important;
  min-height: 500px !important;
  margin: 0 !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border: 1px solid var(--wg-card-border) !important;
  border-radius: 14px !important;
  background: var(--wg-card-surface) !important;
  box-shadow: none !important;
}

html body .pxb-card__wish {
  position: absolute !important;
  z-index: 8 !important;
  top: 10px !important;
  right: 10px !important;
  display: grid !important;
  width: 38px !important;
  height: 38px !important;
  place-items: center !important;
  border: 1px solid var(--wg-card-border) !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: var(--wg-card-text) !important;
  font-size: 24px !important;
  text-decoration: none !important;
}

html body .pxb-card__media {
  display: flex !important;
  width: 100% !important;
  height: 240px !important;
  min-height: 240px !important;
  margin: 0 !important;
  padding: 20px !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--wg-card-media) !important;
}

html body .pxb-card__media img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 200px !important;
  margin: auto !important;
  object-fit: contain !important;
}

html body .pxb-card__body {
  display: flex !important;
  min-height: 258px !important;
  padding: 16px !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  gap: 8px !important;
  background: #fff !important;
}

html body .pxb-card__brand {
  color: #52617d !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

html body .pxb-card__title {
  min-height: 42px !important;
  margin: 0 !important;
  font: 600 16px/1.3 Inter, system-ui, sans-serif !important;
}

html body .pxb-card__title a { color: var(--wg-card-text) !important; text-decoration: none !important; }
html body .pxb-card__rating { display: flex !important; gap: 6px !important; color: #52617d !important; font-size: 13px !important; }
html body .pxb-card__stars { color: #f5a623 !important; }
html body .pxb-card__variants,
html body .pxb-card__unit,
html body .pxb-card__lowest { color: #52617d !important; font-size: 12px !important; line-height: 1.35 !important; }
html body .pxb-card__price-row { display: flex !important; margin-top: auto !important; align-items: baseline !important; gap: 8px !important; }
html body .pxb-card__price { color: var(--wg-card-text) !important; font-family: 'Barlow Condensed','Arial Narrow',sans-serif !important; font-size: 24px !important; font-weight: 700 !important; }
html body .pxb-card__price-old { color: #8a97ac !important; font-size: 14px !important; text-decoration: line-through !important; }
html body .pxb-card__btn { display: flex !important; width: 100% !important; min-height: 40px !important; margin-top: 2px !important; align-items: center !important; justify-content: center !important; border-radius: 10px !important; background: #2a6bd1 !important; color: #fff !important; font-size: 14px !important; font-weight: 600 !important; text-decoration: none !important; }

@media (max-width: 991px) {
  html body .pxb-products--cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px !important; }
}

@media (max-width: 575px) {
  html body .pxb-products--cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  html body .pxb-card { min-height: 286px !important; }
  html body .pxb-card__media { height: 150px !important; min-height: 150px !important; padding: 10px !important; }
  html body .pxb-card__media img { max-height: 130px !important; }
  html body .pxb-card__body { min-height: 136px !important; padding: 10px !important; gap: 5px !important; }
  html body .pxb-card__title { min-height: 34px !important; font-size: 13px !important; line-height: 17px !important; }
  html body .pxb-card :is(.pxb-card__brand,.pxb-card__rating,.pxb-card__variants,.pxb-card__unit,.pxb-card__lowest,.pxb-card__wish) { display: none !important; }
  html body .pxb-card__price { font-size: 20px !important; }
  html body .pxb-card__btn { min-height: 36px !important; padding: 6px !important; font-size: 12px !important; }
}

body#cart .pxb-section--products {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 56px 0 !important;
  overflow: visible !important;
  background: #f5f8fe !important;
}

body#cart .pxb-section--products .pxb-section__head { margin-bottom: 28px !important; }

@media (max-width: 575px) {
  html body#cart footer#footer.js-footer,
  body#cart :is(.wg-cart-bestsellers, .wg-trustbar, .wg-newsletter, .wg-footer) {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  html body#cart .wg-cart-bestsellers > .wg-container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 16px !important;
  }

  html body#cart .wg-cart-bestsellers .pxb-products--cards {
    display: grid !important;
    width: auto !important;
    margin: 0 -16px !important;
    padding: 0 16px 10px !important;
    grid-template-columns: none !important;
    grid-auto-flow: column !important;
    grid-auto-columns: min(46vw, 174px) !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain !important;
    scroll-snap-type: inline mandatory !important;
    scrollbar-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-items: start !important;
  }

  html body#cart .wg-cart-bestsellers .pxb-products--cards::-webkit-scrollbar {
    display: none !important;
  }

  html body#cart .wg-cart-bestsellers .pxb-card {
    width: 100% !important;
    min-width: 0 !important;
    height: 282px !important;
    min-height: 282px !important;
    max-height: 282px !important;
    scroll-snap-align: start !important;
  }

  html body#cart .wg-cart-bestsellers .pxb-card__media {
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    padding: 10px !important;
  }

  html body#cart .wg-cart-bestsellers .pxb-card__media img {
    max-width: 116px !important;
    max-height: 130px !important;
  }

  html body#cart .wg-cart-bestsellers .pxb-card__body {
    height: 132px !important;
    min-height: 132px !important;
    max-height: 132px !important;
    padding: 10px !important;
    gap: 5px !important;
  }

  html body#cart .wg-cart-bestsellers .pxb-card__brand,
  html body#cart .wg-cart-bestsellers .pxb-card__rating,
  html body#cart .wg-cart-bestsellers .pxb-card__variants,
  html body#cart .wg-cart-bestsellers .pxb-card__unit,
  html body#cart .wg-cart-bestsellers .pxb-card__lowest {
    display: none !important;
  }

  html body#cart .wg-cart-bestsellers .pxb-card__wish {
    display: grid !important;
  }

  html body#cart .wg-cart-bestsellers .pxb-card__title {
    min-height: 32px !important;
    max-height: 32px !important;
    margin: 0 !important;
    overflow: hidden !important;
    font-size: 13px !important;
    line-height: 16px !important;
  }

  html body#cart .wg-cart-bestsellers .pxb-card__price {
    margin-top: auto !important;
    font-size: 18px !important;
    line-height: 20px !important;
  }

  html body#cart .wg-cart-bestsellers .pxb-card__action {
    min-height: 36px !important;
    height: 36px !important;
    padding: 7px 8px !important;
    font-size: 12px !important;
  }
}

/* Shared card primitives. Home shelves, cross-sells and native catalogue
   listings use one image well and one wishlist control. Route-specific files
   must not redefine these internals. */
html body .product-miniature .wishlist-button,
html body .product-miniature .wg-card__wishlist {
  position: absolute !important;
  z-index: 8 !important;
  top: 10px !important;
  right: 10px !important;
}

html body .product-miniature :is(.wg-card__wishlist, .wishlist-button-add) {
  display: flex !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--wg-card-border) !important;
  border-radius: 50% !important;
  background: var(--wg-card-surface) !important;
  color: var(--wg-card-text) !important;
  box-shadow: none !important;
  text-decoration: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

html body .product-miniature :is(.wg-card__wishlist, .wishlist-button-add) i {
  color: var(--wg-card-text) !important;
  font-size: 20px !important;
}

html body .product-miniature .thumbnail-container > .thumbnail-top.thumbnail-top {
  position: relative !important;
  height: 250px !important;
  min-height: 250px !important;
  margin: 0 !important;
  padding: 12px 12px 0 !important;
}

html body .product-miniature .thumbnail-container > .thumbnail-top.thumbnail-top .product-thumbnail,
html body .product-miniature .thumbnail-container > .thumbnail-top.thumbnail-top .product-thumbnail picture {
  display: flex !important;
  width: 100% !important;
  height: 240px !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: var(--wg-card-media) !important;
}

html body .product-miniature .thumbnail-container > .thumbnail-top.thumbnail-top .product-thumbnail img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 216px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}

html body:is(#category, #search, #manufacturer, #supplier, #prices-drop, #new-products, #best-sales)
#wrapper .product-miniature :is(.wg-card__variants, .product-price-and-shipping > *, .wg-card__actions) {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

html body:is(#category, #search, #manufacturer, #supplier, #prices-drop, #new-products, #best-sales)
#wrapper .product-miniature .product-price-and-shipping {
  display: flex !important;
  height: auto !important;
  min-height: 46px !important;
  margin-top: auto !important;
  padding: 0 !important;
  flex: 0 0 46px !important;
  flex-flow: row wrap !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  column-gap: 10px !important;
  text-align: left !important;
  transform: none !important;
}

html body:is(#category, #search, #manufacturer, #supplier, #prices-drop, #new-products, #best-sales)
#wrapper .product-miniature .wg-card__lowest {
  position: static !important;
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  line-height: 1.4 !important;
  transform: none !important;
}

html body:is(#category, #search, #manufacturer, #supplier, #prices-drop, #new-products, #best-sales)
#wrapper .product-miniature :is(.unit-price, .wg-card__unit) {
  width: 100% !important;
  flex-basis: 100% !important;
  text-align: left !important;
}

html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
#js-product-list .product-miniature,
html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
#js-product-list .thumbnail-container,
html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
#js-product-list .product-description {
  background: var(--wg-card-surface) !important;
}

html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
#js-product-list :is(.thumbnail-top, .product-thumbnail, .product-thumbnail picture) {
  background: var(--wg-card-media) !important;
}

@media (min-width: 992px) {
  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .products {
    display: grid !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .products > .product,
  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .product-miniature,
  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .thumbnail-container {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 523px !important;
    min-height: 523px !important;
    max-height: 523px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .thumbnail-container {
    overflow: hidden !important;
    border: 1px solid var(--wg-card-border) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list :is(.thumbnail-top, .product-thumbnail, .product-thumbnail picture) {
    display: flex !important;
    width: 100% !important;
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 240px !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .product-description {
    width: 100% !important;
    height: 281px !important;
    min-height: 281px !important;
    max-height: 281px !important;
    padding: 16px !important;
    flex: 0 0 281px !important;
    gap: 8px !important;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .products {
    display: grid !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .products > .product,
  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .product-miniature,
  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .thumbnail-container {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 523px !important;
    min-height: 523px !important;
    max-height: 523px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .thumbnail-container {
    overflow: hidden !important;
    border: 1px solid var(--wg-card-border) !important;
    border-radius: 14px !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list :is(.thumbnail-top, .product-thumbnail, .product-thumbnail picture) {
    display: flex !important;
    width: 100% !important;
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 240px !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .product-description {
    width: 100% !important;
    height: 281px !important;
    min-height: 281px !important;
    max-height: 281px !important;
    padding: 16px !important;
    flex: 0 0 281px !important;
    gap: 8px !important;
  }
}

@media (max-width: 575px) {
  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .products,
  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .products.row {
    display: grid !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .products > .product,
  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .product-miniature,
  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .thumbnail-container {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 282px !important;
    min-height: 282px !important;
    max-height: 282px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .thumbnail-container {
    overflow: hidden !important;
    border: 1px solid var(--wg-card-border) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list :is(.thumbnail-top, .product-thumbnail) {
    display: flex !important;
    width: 100% !important;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    margin: 0 !important;
    padding: 9px 0 !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 150px !important;
    overflow: hidden !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .product-thumbnail picture,
  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .product-thumbnail img {
    display: block !important;
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    height: 132px !important;
    min-height: 132px !important;
    max-height: 132px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    object-fit: contain !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .product-description {
    display: flex !important;
    width: 100% !important;
    height: 132px !important;
    min-height: 132px !important;
    max-height: 132px !important;
    padding: 10px !important;
    gap: 0 !important;
    overflow: hidden !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list :is(.wg-card__brand, .product-list-reviews, .wg-card__variants, .wg-card__lowest, .wg-card__unit, .wg-card__list-copy, .wg-card__list-stock, .quick-view) {
    display: none !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .product-title {
    display: block !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    margin: 0 0 5px !important;
    overflow: hidden !important;
    font-size: 13px !important;
    line-height: 17px !important;
    text-transform: none !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .product-title a {
    font-size: 13px !important;
    line-height: 17px !important;
    text-transform: none !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .product-price-and-shipping {
    display: flex !important;
    width: 100% !important;
    height: 23px !important;
    min-height: 23px !important;
    max-height: 23px !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    align-items: baseline !important;
    flex-flow: row nowrap !important;
    gap: 6px !important;
    overflow: hidden !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .wg-card__price-current {
    color: var(--wg-card-text) !important;
    font-size: 20px !important;
    line-height: 23px !important;
    white-space: nowrap !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .product-price-and-shipping:has(.regular-price) .wg-card__price-current {
    color: var(--wg-card-sale) !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .regular-price {
    display: inline !important;
    margin: 0 !important;
    color: #7d899e !important;
    font-size: 12px !important;
    line-height: 18px !important;
    white-space: nowrap !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .wg-card__actions {
    display: block !important;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .wg-card__cart {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 8px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 359px) {
  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .wg-card__cart {
    gap: 4px !important;
    padding-right: 5px !important;
    padding-left: 5px !important;
    font-size: 11px !important;
  }

  html body:is(#category, #search, #prices-drop, #new-products, #best-sales, #manufacturer, #supplier)
  #products:not(.wg-view-list) #js-product-list .wg-card__cart span {
    min-width: 0 !important;
    overflow: hidden !important;
    font-size: 11px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

/* Product shelves use the same canonical card component as every catalogue
   route. This block intentionally loads after product-final.css so the old
   absolute-position card variants cannot create per-route geometry. */
@media (min-width: 768px) {
  html body#product #main > .tabs {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  html body#product #main :is(.wg-prod-cross, .wg-prod-same) :is(.products, .wg-prod-same__grid) {
    display: grid !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 32px 0 0 !important;
    padding: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
    overflow: visible !important;
  }

  html body#product #main :is(.wg-prod-cross, .wg-prod-same) :is(.products, .wg-prod-same__grid) > *,
  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .product-miniature,
  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .thumbnail-container {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 523px !important;
    min-height: 523px !important;
    max-height: 523px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .thumbnail-container {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 1px solid var(--wg-card-border) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  html body#product #main :is(.wg-prod-cross, .wg-prod-same) :is(.thumbnail-top, .product-thumbnail, .product-thumbnail picture) {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    width: 100% !important;
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 240px !important;
    overflow: hidden !important;
    background: var(--wg-card-media) !important;
  }

  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .product-thumbnail img {
    display: block !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
  }

  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .product-description {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    width: 100% !important;
    height: 281px !important;
    min-height: 281px !important;
    max-height: 281px !important;
    margin: 0 !important;
    padding: 16px !important;
    flex: 0 0 281px !important;
    flex-direction: column !important;
    gap: 8px !important;
    overflow: hidden !important;
    background: #fff !important;
    text-align: left !important;
  }

  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .product-description > * {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
  }

  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .wg-card__brand {
    display: block !important;
    height: 14px !important;
    min-height: 14px !important;
    max-height: 14px !important;
    overflow: hidden !important;
    color: var(--wg-card-muted) !important;
    font-size: 11px !important;
    line-height: 14px !important;
  }

  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .product-title {
    display: block !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    overflow: hidden !important;
    font-size: 16px !important;
    line-height: 21px !important;
    text-transform: none !important;
  }

  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .product-title a {
    color: var(--wg-card-text) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 21px !important;
    text-transform: none !important;
  }

  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .product-list-reviews,
  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .wg-card__variants {
    display: flex !important;
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    align-items: center !important;
    overflow: hidden !important;
    color: var(--wg-card-muted) !important;
    font-size: 13px !important;
    line-height: 16px !important;
  }

  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .product-price-and-shipping {
    position: static !important;
    display: block !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    margin-top: auto !important;
    padding: 0 !important;
    flex: 0 0 46px !important;
    overflow: visible !important;
    text-align: left !important;
  }

  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .wg-card__price-current {
    display: inline-block !important;
    color: var(--wg-card-text) !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 26px !important;
  }

  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .product-price-and-shipping:has(.regular-price) .wg-card__price-current {
    color: var(--wg-card-sale) !important;
  }

  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .wg-card__price-old {
    display: inline-block !important;
    width: auto !important;
    margin-left: 6px !important;
    color: #8a97ac !important;
    font-size: 14px !important;
    line-height: 20px !important;
    text-decoration: line-through !important;
  }

  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .wg-card__unit {
    position: static !important;
    inset: auto !important;
    display: block !important;
    height: 17px !important;
    min-height: 17px !important;
    margin-top: 2px !important;
    color: var(--wg-card-muted) !important;
    font-size: 13px !important;
    line-height: 17px !important;
  }

  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .wg-card__lowest {
    display: block !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    color: var(--wg-card-muted) !important;
    font-size: 12px !important;
    line-height: 17px !important;
  }

  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .wg-card__lowest:empty {
    display: none !important;
  }

  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .wg-card__actions {
    display: block !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    flex: 0 0 36px !important;
  }

  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .wg-card__actions :is(.add-to-cart, .wg-card__cart) {
    display: flex !important;
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #2a6bd1 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
    text-transform: none !important;
  }
}

@media (max-width: 767px) {
  /* The product-page shelves are the same card component as mobile listings.
     Keep the CTA geometry identical instead of inheriting the old 36px shelf
     variant from mobile-global.css. */
  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .product-miniature,
  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .thumbnail-container {
    background: var(--wg-card-surface) !important;
  }

  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .wg-card__actions,
  html body#product #main :is(.wg-prod-cross, .wg-prod-same) .wg-card__actions :is(.add-to-cart, .wg-card__cart) {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }
}

@media (min-width: 992px) {
  html body#product #main :is(.wg-prod-cross, .wg-prod-same) :is(.products, .wg-prod-same__grid) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
