/* FoxiWorld V1120 — fluid catalogue cards from small phones to wide desktops. */
body.catalog-page .v12-catalog-shell,
body.catalog-page .v12-catalog-content,
body.catalog-page .v12-products-grid,
body.catalog-page .v12-product-card,
body.catalog-page .v12-product-media,
body.catalog-page .v12-product-body,
body.catalog-page .v1094-product-info,
body.catalog-page .v1094-buy-panel {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.catalog-page .v12-product-media > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.catalog-page .v12-product-media img,
body.catalog-page .v12-product-card:hover .v12-product-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  padding: 7px !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  transform: none !important;
  transform-origin: center !important;
}

/* The catalogue helper stays available without covering filters or products. */
@media (min-width: 901px) {
  body.catalog-page #storeChatTrigger.fw-chat-launcher {
    display: grid !important;
    place-items: center !important;
    left: 20px !important;
    right: auto !important;
    bottom: 20px !important;
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  body.catalog-page #storeChatTrigger.fw-chat-launcher > span:first-child {
    display: grid !important;
    place-items: center !important;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
  }

  body.catalog-page #storeChatTrigger.fw-chat-launcher > span:nth-child(2) {
    display: none !important;
  }
}

/* Full desktop and laptop: keep all three offer columns readable. */
@media (min-width: 901px) {
  body.catalog-page .v12-products-grid,
  body.catalog-page .v12-products-grid.is-list {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  body.catalog-page .v12-product-card,
  body.catalog-page .v12-products-grid.is-list .v12-product-card {
    display: grid !important;
    grid-template-columns: clamp(190px, 17vw, 232px) minmax(240px, 1fr) clamp(300px, 25vw, 350px) !important;
    width: 100% !important;
    height: 244px !important;
    min-height: 244px !important;
    max-height: 244px !important;
  }

  body.catalog-page .v12-products-grid.is-list .v12-product-card .v12-product-media {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    height: 243px !important;
    min-height: 243px !important;
    padding: 8px !important;
  }

  body.catalog-page .v1094-product-info {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    height: 243px !important;
    min-height: 0 !important;
    padding: 17px clamp(16px, 1.55vw, 22px) 15px !important;
  }

  body.catalog-page .v1094-product-info h2 {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  body.catalog-page .v1094-buy-panel {
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: auto !important;
    height: 243px !important;
    min-height: 0 !important;
    padding: 17px clamp(13px, 1.25vw, 17px) 14px !important;
  }

  body.catalog-page .v1094-buy-panel .v12-product-actions {
    display: grid !important;
    grid-template-columns: 96px minmax(0, 1fr) 44px !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  body.catalog-page .v1094-buy-panel .v12-qty {
    display: grid !important;
    grid-template-columns: 30px 36px 30px !important;
    width: 96px !important;
    min-width: 96px !important;
  }

  body.catalog-page .v1094-buy-panel .v12-qty button {
    width: 30px !important;
    min-width: 30px !important;
  }

  body.catalog-page .v1094-buy-panel .v12-qty input {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
  }

  body.catalog-page .v1094-buy-panel .v12-add-cart,
  body.catalog-page .v1094-buy-panel .v1095-favorite {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* A narrow laptop no longer sacrifices the product description to the sidebar. */
@media (max-width: 1120px) {
  body.catalog-page .v12-catalog-shell {
    display: block !important;
    width: 100% !important;
  }

  body.catalog-page .v128-filter-trigger {
    display: flex !important;
  }

  body.catalog-page .v12-filter-panel {
    position: fixed !important;
    z-index: 5200 !important;
    inset: 0 auto 0 0 !important;
    width: min(380px, 92vw) !important;
    max-width: min(380px, 92vw) !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border-radius: 0 20px 20px 0 !important;
    transform: translateX(-105%) !important;
    transition: transform .22s ease !important;
  }

  body.catalog-page .v12-filter-panel.is-open {
    transform: translateX(0) !important;
  }

  body.catalog-page .v12-filter-heading button {
    display: block !important;
  }

  body.catalog-page .v12-filter-overlay.is-open {
    display: block !important;
    position: fixed !important;
    z-index: 5190 !important;
    inset: 0 !important;
    background: rgba(8, 31, 22, .42) !important;
    backdrop-filter: blur(3px) !important;
  }

  body.catalog-page.filters-open {
    overflow: hidden !important;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  body.catalog-page .v12-product-card,
  body.catalog-page .v12-products-grid.is-list .v12-product-card {
    grid-template-columns: clamp(190px, 21vw, 220px) minmax(260px, 1fr) clamp(300px, 32vw, 340px) !important;
  }
}

/* Tablet: compact first row for the image and description, purchase row below. */
@media (min-width: 641px) and (max-width: 900px) {
  body.catalog-page .v12-products-grid,
  body.catalog-page .v12-products-grid.is-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
  }

  body.catalog-page .v12-product-card,
  body.catalog-page .v12-products-grid.is-list .v12-product-card {
    display: grid !important;
    grid-template-columns: clamp(170px, 24vw, 205px) minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    border: 1px solid #dce6e2 !important;
    border-radius: 14px !important;
    background: #fff !important;
  }

  body.catalog-page .v12-products-grid.is-list .v12-product-card .v12-product-media {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    height: 220px !important;
    min-height: 220px !important;
    padding: 9px !important;
    border-right: 1px solid #edf2f0 !important;
  }

  body.catalog-page .v12-products-grid.is-list .v12-product-card .v12-product-media img {
    padding: 5px !important;
  }

  body.catalog-page .v1094-product-info {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    height: auto !important;
    min-height: 220px !important;
    padding: 16px 18px !important;
    gap: 5px !important;
  }

  body.catalog-page .v1094-product-info h2 {
    max-width: 100% !important;
    font-size: clamp(16px, 2.2vw, 18px) !important;
    overflow-wrap: anywhere !important;
  }

  body.catalog-page .v1094-product-info > p {
    display: -webkit-box !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  body.catalog-page .v1094-compare {
    display: none !important;
  }

  body.catalog-page .v1094-buy-panel {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 12px 14px !important;
    border-top: 1px solid #edf2f0 !important;
    border-left: 0 !important;
    background: #fff !important;
  }

  body.catalog-page .v1096-purchase-benefits {
    display: none !important;
  }

  body.catalog-page .v1094-buy-panel .v12-qty {
    display: grid !important;
    grid-template-columns: 28px 36px 28px !important;
    width: 92px !important;
    min-width: 92px !important;
    height: 44px !important;
  }

  body.catalog-page .v1094-buy-panel .v12-product-actions {
    display: grid !important;
    grid-template-columns: 92px minmax(128px, 1fr) 44px !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body.catalog-page .v1094-buy-panel .v12-add-cart {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  body.catalog-page .v1094-buy-panel {
    display: grid !important;
    grid-template-columns: minmax(130px, .72fr) minmax(180px, 1fr) minmax(280px, 1.35fr) !important;
    grid-template-rows: auto auto !important;
    gap: 7px 12px !important;
    align-items: center !important;
  }

  body.catalog-page .v1094-buy-panel .v12-product-price {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body.catalog-page .v1094-delivery {
    grid-column: 2 !important;
    grid-row: 1 / 3 !important;
  }

  body.catalog-page .v1094-buy-panel .v12-stock {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  body.catalog-page .v1094-buy-panel .v12-product-actions {
    grid-column: 3 !important;
    grid-row: 1 / 3 !important;
  }
}

@media (min-width: 641px) and (max-width: 760px) {
  body.catalog-page .v1094-buy-panel {
    display: grid !important;
    grid-template-columns: minmax(130px, .72fr) minmax(180px, 1fr) !important;
    gap: 8px 12px !important;
    align-items: center !important;
  }

  body.catalog-page .v1094-buy-panel .v12-product-price {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body.catalog-page .v1094-delivery {
    grid-column: 2 !important;
    grid-row: 1 / 3 !important;
  }

  body.catalog-page .v1094-buy-panel .v12-stock {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  body.catalog-page .v1094-buy-panel .v12-product-actions {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    max-width: 430px !important;
    justify-self: end !important;
  }
}

/* Phones: a larger photograph, compact information row and price immediately below. */
@media (max-width: 640px) {
  body.catalog-page .v12-product-card,
  body.catalog-page .v12-products-grid.is-list .v12-product-card {
    display: grid !important;
    grid-template-columns: clamp(118px, 34vw, 150px) minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    border: 0 !important;
    border-bottom: 1px solid #e2e7e5 !important;
    border-radius: 0 !important;
    background: #fff !important;
  }

  body.catalog-page .v12-products-grid.is-list .v12-product-card .v12-product-media {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    height: clamp(160px, 42vw, 184px) !important;
    min-height: clamp(160px, 42vw, 184px) !important;
    padding: 7px 2px 7px 8px !important;
    border-right: 1px solid #edf2f0 !important;
  }

  body.catalog-page .v12-products-grid.is-list .v12-product-card .v12-product-media img,
  body.catalog-page .v12-products-grid.is-list .v12-product-card:hover .v12-product-media img {
    padding: 2px !important;
    object-position: 54% 50% !important;
    transform: scale(1.03) translateX(2px) !important;
  }

  body.catalog-page .v1094-product-info {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 11px 10px 9px 12px !important;
    gap: 4px !important;
  }

  body.catalog-page .v1094-product-info h2 {
    max-width: 100% !important;
    font-size: clamp(14px, 4vw, 16px) !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere !important;
  }

  body.catalog-page .v1094-product-info > p,
  body.catalog-page .v1094-compare {
    display: none !important;
  }

  body.catalog-page .v1094-buy-panel {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 3px 10px 12px !important;
    border-top: 0 !important;
    border-left: 0 !important;
    background: #fff !important;
  }

  body.catalog-page .v1094-buy-panel .v12-product-price > strong {
    font-size: clamp(24px, 7vw, 29px) !important;
  }

  body.catalog-page .v1094-buy-panel .v12-product-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px !important;
    gap: 8px !important;
    width: 100% !important;
  }

  body.catalog-page .v1094-buy-panel .v12-qty,
  body.catalog-page .v1096-purchase-benefits {
    display: none !important;
  }

  body.catalog-page .v1094-buy-panel .v12-add-cart {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
  }
}

@media (max-width: 380px) {
  body.catalog-page .v12-product-card,
  body.catalog-page .v12-products-grid.is-list .v12-product-card {
    grid-template-columns: clamp(108px, 35vw, 126px) minmax(0, 1fr) !important;
  }

  body.catalog-page .v12-products-grid.is-list .v12-product-card .v12-product-media {
    height: 154px !important;
    min-height: 154px !important;
    padding-left: 5px !important;
  }

  body.catalog-page .v1094-product-info {
    padding-left: 9px !important;
    padding-right: 7px !important;
  }
}
