/* Shared storefront rounding and compact product purchase controls. */
:root {
    --rei-radius-card: 24px;
    --rei-radius-control: 14px;
    --rei-radius-inset: 8px;
}

.wrapper button.button,
.wrapper a.button,
.wrapper .btn,
.wrapper input[type="submit"],
.wrapper .btn-cart {
    border-radius: var(--rei-radius-control) !important;
}
.wrapper .input-text:not(.qty),
.wrapper select,
.wrapper textarea {
    border-radius: var(--rei-radius-control) !important;
}
.wrapper .category-products .product-item-info.rei-card-upgrade,
.wrapper .rei-home-card-scope .product-item-info.rei-home-card-upgrade,
.wrapper .product-view.rei-pdp-shell .product-essential,
.wrapper .product-view.rei-pdp-shell .product-collateral .box-collateral {
    border-radius: var(--rei-radius-card) !important;
}
.wrapper .category-products .product-item-info.rei-card-upgrade .product-image,
.wrapper .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-image,
.wrapper .product-view.rei-pdp-shell .product-img-box,
.wrapper .product-view.rei-pdp-shell .product-shop {
    border-radius: 16px !important;
}

/* Home, search and category cards use the same compact price spacing. */
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .price-box,
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .price-box {
    min-height: 0 !important;
    margin: 5px 0 !important;
}
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .product-name,
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-name {
    display: block !important;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    overflow: hidden !important;
    text-align: center !important;
}
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .product-name a,
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-name a {
    display: -webkit-box !important;
    width: 100% !important;
    max-height: 40px !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    font-weight: 700 !important;
    text-align: center !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-item-details,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-details {
    min-height: 0 !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cdz-bottom-no-effect,
html#top body .category-products.rei-list-card-scope .products-grid .cdz-bottom-no-effect {
    min-height: 0 !important;
    flex-basis: auto !important;
}
html#top body.cms-home .homegrid .products-grid .item .product-item-info {
    min-height: 0 !important;
}
html#top body.cms-home .homegrid .products-grid .item .product-name {
    min-height: 40px !important;
}

/* Keep category and search cards aligned when products have fewer thumbnails. */
html#top body .category-products.rei-list-card-scope .products-grid .product-gallery {
    height: 51px !important;
    min-height: 51px !important;
    max-height: 51px !important;
    overflow: hidden !important;
}

/* Remove the invisible compare/wishlist reserve and leave 5px below Add. */
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade {
    padding-bottom: 5px !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-actions-right,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .product-actions-right {
    display: none !important;
}

/* Price hierarchy: currency unchanged, integer +2px, cents -1px. */
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .price .rei-price-currency,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .price .rei-price-currency {
    font-size: 1em !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .price .rei-price-major,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .price .rei-price-major {
    font-size: calc(1em + 2px) !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .price .rei-price-minor,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .price .rei-price-minor {
    font-size: calc(1em - 1px) !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .price .rei-price-currency,
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .price .rei-price-major,
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .price .rei-price-minor,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .price .rei-price-currency,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .price .rei-price-major,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .price .rei-price-minor {
    line-height: 1 !important;
    vertical-align: baseline !important;
}

/* The quantity control fills the same purchase column as Add to Cart. */
html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart,
html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart {
    width: calc(100% - 10px) !important;
    margin: 0 5px !important;
}
html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart .cart-qty,
html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart .cart-qty,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty_cart {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
    align-items: center !important;
    column-gap: 4px !important;
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    position: relative !important;
    left: 0 !important;
    right: auto !important;
    box-sizing: border-box !important;
    padding: 4px !important;
    border: 1px solid #e8e3dc !important;
    border-radius: var(--rei-radius-control) !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12) !important;
}
html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart .qty-ctl,
html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart .qty-ctl,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty-ctl {
    height: 40px !important;
    min-width: 0 !important;
}
html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart .qty-ctl button,
html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart .qty-ctl button,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty-ctl button {
    display: block !important;
    width: 100% !important;
    height: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: var(--rei-radius-inset) !important;
    box-shadow: none !important;
    cursor: pointer !important;
}
html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart .decrease,
html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart .decrease,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .decrease {
    background: #fde8e8 !important;
}
html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart .increase,
html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart .increase,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .increase {
    background: #e4f6e7 !important;
}
html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart .decrease:before,
html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart .decrease:before,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .decrease:before {
    color: #a52525 !important;
}
html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart .increase:before,
html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart .increase:before,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .increase:before {
    color: #167a32 !important;
}
html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart input.qty,
html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart input.qty,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart input.qty {
    height: 38px !important;
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart .btn-cart,
html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart .btn-cart,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .btn-cart {
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: var(--rei-radius-control) !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-item-inner,
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cdz-buttons-container,
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cdz-buttons-inner,
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .actions-primary,
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cdz-bottom-no-effect,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .product-item-inner,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .cdz-buttons-container,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .cdz-buttons-inner,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .actions-primary,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .cdz-bottom-no-effect {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cdz-bottom-no-effect,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .cdz-bottom-no-effect {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-item-inner,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .product-item-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cdz-buttons-container,
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cdz-buttons-inner,
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .actions-primary,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .cdz-buttons-container,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .cdz-buttons-inner,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .actions-primary {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .product-button-top,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .product-button-bottom {
    width: 100% !important;
    box-sizing: border-box !important;
}
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty_cart {
    grid-template-columns: 46px minmax(0, 1fr) 46px !important;
    min-height: 56px !important;
    height: 56px !important;
}
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty-ctl,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty-ctl button {
    height: 48px !important;
}
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart input.qty {
    height: 46px !important;
}

/* Product cards based on the approved compact reference. */
:root {
    --rei-card-reference-border: #f3c270;
    --rei-card-reference-green: #20c66a;
    --rei-card-reference-green-hover: #149b50;
    --rei-card-reference-text: #505050;
}

html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade {
    padding: 5px !important;
    border: 2px solid var(--rei-card-reference-border) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: hidden !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade:hover,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade:hover {
    border-color: var(--rei-card-reference-border) !important;
    box-shadow: 0 4px 12px rgba(54, 36, 7, .10) !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cdz-hover-section,
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cdz-product-top,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .cdz-hover-img,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .cdz-product-top {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-image,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .product-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1.08 / 1 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 11px 11px 0 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: hidden !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-image img,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .product-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    opacity: 1 !important;
    transform: none !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .alternative-img,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .alternative-img,
html#top body .category-products.rei-list-card-scope .products-grid .product-gallery,
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cdz-product-lbs,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .cdz-product-lbs {
    display: none !important;
}

html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .rei-card-quickview,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .rei-card-quickview {
    position: absolute !important;
    right: 10px !important;
    bottom: 9px !important;
    z-index: 4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 1px solid #dce3ec !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #1e4f86 !important;
    box-shadow: 0 2px 9px rgba(20, 46, 78, .15) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .rei-card-quickview:before,
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .rei-card-quickview:after,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .rei-card-quickview:before,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .rei-card-quickview:after {
    display: none !important;
    content: none !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .rei-card-quickview svg,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .rei-card-quickview svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .rei-card-quickview:hover,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .rei-card-quickview:hover {
    color: #fff !important;
    border-color: #1e4f86 !important;
    background: #1e4f86 !important;
}

html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-item-details,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .product-item-details {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-name,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .product-name {
    width: calc(100% - 14px) !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 7px 7px 0 !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-name a,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .product-name a {
    display: -webkit-box !important;
    overflow: hidden !important;
    width: 100% !important;
    max-height: 40px !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    color: var(--rei-card-reference-text) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    letter-spacing: 0 !important;
    text-align: left !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .price-box,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .price-box {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 38px !important;
    margin: 2px 0 5px !important;
    color: #000 !important;
    line-height: 34px !important;
    text-align: center !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .price-box .price,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .price-box .price {
    color: #000 !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 34px !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .price .rei-price-currency,
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .price .rei-price-major,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .price .rei-price-currency,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .price .rei-price-major {
    color: #000 !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 34px !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .price .rei-price-minor,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .price .rei-price-minor {
    position: relative !important;
    top: -.55em !important;
    color: #000 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    vertical-align: baseline !important;
}

html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart,
html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart {
    width: 100% !important;
    margin: 0 !important;
    gap: 6px !important;
}
html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart .cart-qty,
html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart .cart-qty {
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 4px !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
}
html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart input.qty,
html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart input.qty {
    height: 38px !important;
    color: #000 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 38px !important;
}
html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart .qty-ctl,
html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart .qty-ctl button,
html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart .qty-ctl,
html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart .qty-ctl button {
    height: 40px !important;
}
html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart .qty-ctl button,
html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart .qty-ctl button {
    border-radius: 7px !important;
}
html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart .qty-ctl button:before,
html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart .qty-ctl button:before {
    font-size: 24px !important;
    font-weight: 500 !important;
}
html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart .btn-cart,
html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart .btn-cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 8px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--rei-card-reference-green) !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-transform: none !important;
}
html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart .btn-cart span,
html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart .btn-cart span span,
html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart .btn-cart span,
html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart .btn-cart span span {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    text-transform: none !important;
}
html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart .btn-cart:hover,
html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart .btn-cart:hover {
    background: var(--rei-card-reference-green-hover) !important;
}
html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart .btn-cart:before,
html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart .btn-cart:before {
    display: none !important;
    content: none !important;
}

/* Keep the related-product carousel on the same compact card structure. */
html#top body .rei-related-card-scope .product-item-details,
html#top body .rei-related-card-scope .cdz-product-bottom,
html#top body .rei-related-card-scope .cdz-buttons-container,
html#top body .rei-related-card-scope .cdz-buttons-inner {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
html#top body .rei-related-card-scope .cdz-product-bottom,
html#top body .rei-related-card-scope .cdz-buttons-container,
html#top body .rei-related-card-scope .cdz-buttons-inner {
    display: block !important;
}
html#top body .rei-related-card-scope .cart-wrapper.rei-home-card-cart {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    height: auto !important;
    gap: 6px !important;
}

@media (max-width: 767px) {
    html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .rei-card-quickview,
    html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .rei-card-quickview {
        right: 7px !important;
        bottom: 7px !important;
        width: 40px !important;
        height: 40px !important;
    }
    html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-name a,
    html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .product-name a {
        font-size: 13px !important;
        line-height: 18px !important;
    }
    html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .price-box .price,
    html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .price-box .price,
    html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .price .rei-price-currency,
    html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .price .rei-price-major,
    html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .price .rei-price-currency,
    html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .price .rei-price-major {
        font-size: 24px !important;
    }
    html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart .btn-cart,
    html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart .btn-cart {
        font-size: 22px !important;
    }
}
