/*
* wishListProduct.css
* Purpose: restyle the Salesforce "My List" (wishlist) product grid to match the
* reference design (4 cards per row, grey image panel, bold name, price, full-width blue button).
* Scope: every rule is prefixed with .wishListProduct (plus !important) so Salesforce's own lwc-* / slds-* CSS cannot override it.
* Usage: add class "wishListProduct" to the root <community_layout-section> element.
*/

.wishListProduct {
 --wl-blue: #0b5cbf;
 --wl-blue-dark: #084a9a;
 --wl-border: #e3e6ea;
 --wl-text: #1a1a1a;
 --wl-muted: #555;
 --wl-panel: #f3f3f3;
 font-family: Arial, Helvetica, sans-serif !important;
}

/* Page heading + count */
.wishListProduct .header-labels {
 display: flex !important;
 align-items: baseline !important;
 gap: 8px !important;
 padding: 0 8px 12px !important;
}
.wishListProduct .header-labels h2 {
 font-size: 22px !important;
 font-weight: 700 !important;
 color: var(--wl-text) !important;
}
.wishListProduct .header-labels p {
 font-size: 14px !important;
 color: var(--wl-muted) !important;
}

/* Grid: 4 columns desktop, 2 tablet, 1 mobile */
.wishListProduct .dxp-grid-item.slds-col {
 width: 25% !important;
 flex: 0 0 25% !important;
 max-width: 25% !important;
 padding: 8px !important;
 box-sizing: border-box !important;
}
@media (max-width: 64em) {
 .wishListProduct .dxp-grid-item.slds-col {
   width: 50% !important;
   flex-basis: 50% !important;
   max-width: 50% !important;
 }
}
@media (max-width: 47.9375em) {
 .wishListProduct .dxp-grid-item.slds-col {
   width: 100% !important;
   flex-basis: 100% !important;
   max-width: 100% !important;
 }
}

/* Card */
.wishListProduct .card-container {
 height: 100% !important;
 background: #fff !important;
 border: 1px solid var(--wl-border) !important;
 border-radius: 6px !important;
 overflow: hidden !important;
 box-shadow: none !important;
}
.wishListProduct .card-item.slds-grid {
 height: 100% !important;
 display: flex !important;
 flex-direction: column !important;
}

/* Image panel */
.wishListProduct .image-area {
 position: relative !important;
 background: var(--wl-panel) !important;
 border: 0 !important;
 height: 270px !important;
 display: flex !important;
 align-items: center !important;
 justify-content: center !important;
}
.wishListProduct .image-area figure {
 width: 100% !important;
 height: 100% !important;
 margin: 0 !important;
}
.wishListProduct .image-area figure a,
.wishListProduct .image-area picture {
 display: flex !important;
 align-items: center !important;
 justify-content: center !important;
 width: 100% !important;
 height: 100% !important;
}
.wishListProduct .image-area img {
 max-width: 100% !important;
 max-height: 100% !important;
 width: auto !important;
 height: 100% !important;
 object-fit: contain !important;
}

/* Remove-from-list icon: small, top right */
.wishListProduct .wishlist-area {
 position: absolute !important;
 top: 6px !important;
 right: 6px !important;
}
.wishListProduct .wishlist-button {
 width: 30px !important;
 height: 30px !important;
 display: flex !important;
 align-items: center !important;
 justify-content: center !important;
 background: #fff !important;
 border: 1px solid var(--wl-border) !important;
 border-radius: 50% !important;
 padding: 0 !important;
}
.wishListProduct .wishlist-button svg {
 width: 16px !important;
 height: 16px !important;
}
.wishListProduct .wishlist-button svg path {
 fill: #c23934 !important;
 stroke: #c23934 !important;
}

/* Text block below the image */
.wishListProduct .card-item > .slds-m-top_small {
 margin: 0 !important;
 padding: 12px 8px 8px !important;
 display: flex !important;
 flex-direction: column !important;
 flex: 1 1 auto !important;
}
.wishListProduct .product-name,
.wishListProduct .product-name span {
 font-size: 13px !important;
 font-weight: 700 !important;
 line-height: 1.3 !important;
 color: var(--wl-text) !important;
 text-transform: uppercase !important;
}
.wishListProduct .product-name-container a {
 text-decoration: none !important;
}

/* Price */
.wishListProduct .pricing,
.wishListProduct .main-price,
.wishListProduct .unavailablePrice {
 font-size: 14px !important;
 font-weight: 700 !important;
 color: var(--wl-text) !important;
}
.wishListProduct .product-info {
 margin-bottom: 10px !important;
}
.wishListProduct .pricing {
 display: block !important;
 padding-top: 10px !important;
 margin-top: 8px !important;
 border-top: 1px solid var(--wl-border) !important;
}
.wishListProduct .unavailablePrice {
 display: block !important;
 padding-top: 10px !important;
 margin-top: 8px !important;
 border-top: 1px solid var(--wl-border) !important;
 color: var(--wl-muted) !important;
 font-weight: 400 !important;
}

/* Action button: full-width blue, pinned to card bottom */
.wishListProduct .card-actions-area {
 margin-top: auto !important;
 padding-top: 10px !important;
}
.wishListProduct .card-actions-area .desktop-button,
.wishListProduct .card-actions-area .slds-button {
 display: block !important;
 width: 100% !important;
 float: none !important;
 margin: 0 !important;
}
.wishListProduct .card-actions-area .slds-button {
 background: var(--wl-blue) !important;
 border: 1px solid var(--wl-blue) !important;
 border-radius: 4px !important;
 color: #fff !important;
 font-size: 14px !important;
 font-weight: 700 !important;
 height: auto !important;
 min-height: 40px !important;
 line-height: 1.3 !important;
 padding: 10px 12px !important;
 overflow: visible !important;
 display: flex !important;
 align-items: center !important;
 justify-content: center !important;
 text-align: center !important;
}
.wishListProduct .card-actions-area .slds-button:hover {
 background: var(--wl-blue-dark) !important;
 border-color: var(--wl-blue-dark) !important;
}
.wishListProduct .card-actions-area .button-label {
 display: inline !important;
 line-height: 1.3 !important;
 color: #fff !important;
}

/* Salesforce renders desktop + mobile buttons; show one per breakpoint */
.wishListProduct .mobile-button { display: none !important; }
@media (max-width: 47.9375em) {
 .wishListProduct .desktop-button { display: none !important; }
 .wishListProduct .mobile-button { display: block !important; }
}

/* Top "My List" brand button is redundant with the heading */
.wishListProduct dxp_base-button { display: none !important; }

/* Grid row: wrap items so 4 cards sit side by side */
.wishListProduct .dxp-block-flexible-container .slds-grid.slds-wrap {
 display: flex !important;
 flex-wrap: wrap !important;
}

/* Keep screen-reader-only text hidden */
.wishListProduct .slds-assistive-text {
 position: absolute !important;
 width: 1px !important;
 height: 1px !important;
 overflow: hidden !important;
 clip: rect(0 0 0 0) !important;
}