/* 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: var(--rei-card-reference-minus-bg) !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: var(--rei-card-reference-plus-bg) !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: var(--rei-card-reference-minus) !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: var(--rei-card-reference-plus) !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 supplied reference card. */
:root {
    --rei-card-reference-border: #e5e7eb;
    --rei-card-reference-blue: #075ef3;
    --rei-card-reference-text: #07162a;
    --rei-card-reference-minus-bg: #fce6e8;
    --rei-card-reference-minus: #b91c1c;
    --rei-card-reference-plus-bg: #dff5e7;
    --rei-card-reference-plus: #15803d;
}

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: 12px !important;
    border: 1px solid var(--rei-card-reference-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06) !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 7px 24px rgba(7, 22, 42, .11) !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;
    top: 10px !important;
    bottom: auto !important;
    z-index: 4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--rei-card-reference-text) !important;
    box-shadow: 0 4px 12px rgba(7, 22, 42, .10) !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: 24px !important;
    height: 24px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.1 !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: var(--rei-card-reference-blue) !important;
    background: var(--rei-card-reference-blue) !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: center !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: var(--rei-card-reference-blue) !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: var(--rei-card-reference-blue) !important;
    font-size: 26px !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: var(--rei-card-reference-blue) !important;
    font-size: 26px !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: var(--rei-card-reference-blue) !important;
    font-size: 13px !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: 44px !important;
    min-height: 44px !important;
    padding: 3px !important;
    border: 1px solid #e5e7eb !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: 36px !important;
    color: var(--rei-card-reference-text) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 36px !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: 36px !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: 9px !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: 26px !important;
    font-weight: 700 !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: 46px !important;
    min-height: 46px !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--rei-card-reference-blue) !important;
    box-shadow: none !important;
    color: #fff !important;
    gap: 10px !important;
    font-size: 14px !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: #064dcc !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;
        top: 7px !important;
        bottom: auto !important;
        width: 42px !important;
        height: 42px !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: 14px !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: 26px !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: 14px !important;
    }
}

/* ===== Rei da Loja visual system 2026-11-01 =====
 * Global storefront refinement. Keep catalog, quote, checkout and stock logic
 * untouched; this layer only normalizes composition, spacing and affordances.
 */
:root {
    --rei-ink: #07162a;
    --rei-muted: #64748b;
    --rei-blue: #075ef3;
    --rei-blue-dark: #064dcc;
    --rei-gold: #d99a1b;
    --rei-surface: #ffffff;
    --rei-canvas: #f6f8fc;
    --rei-border: #e5e7eb;
    --rei-success-bg: #e4f6e7;
    --rei-success: #167a32;
    --rei-danger-bg: #fde8e8;
    --rei-danger: #a52525;
}

html#top body {
    background: var(--rei-canvas);
    color: var(--rei-ink);
    font-family: Arial, Helvetica, sans-serif;
}

html#top body .wrapper {
    background: transparent !important;
}

html#top body .main-container,
html#top body .main-container .container,
html#top body .col-main-containter,
html#top body .col-wrapper-main {
    background: transparent !important;
}

html#top body a,
html#top body button,
html#top body input,
html#top body select,
html#top body textarea {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

html#top body a:focus,
html#top body button:focus,
html#top body input:focus,
html#top body select:focus,
html#top body textarea:focus {
    outline: 3px solid rgba(7, 94, 243, .24) !important;
    outline-offset: 2px;
}

/* Shared storefront surfaces and headings. */
html#top body .page-title,
html#top body .category-title,
html#top body .category-products + .toolbar,
html#top body .catalogsearch-result-index .page-title {
    color: var(--rei-ink) !important;
}

html#top body .breadcrumbs {
    color: var(--rei-muted) !important;
    background: transparent !important;
    border: 0 !important;
}

html#top body .breadcrumbs a:hover,
html#top body .page-title a:hover {
    color: var(--rei-blue) !important;
}

/* Product grids: four columns desktop, three tablet, two mobile. The high
 * specificity also wins over legacy inline widget rules in the theme. */
html#top body .rei-home-card-scope .products.same-height.row > li.item.product-item,
html#top body .rei-home-card-scope .item-group > li.item.product-item,
html#top body .category-products.rei-list-card-scope .products-grid > ul.products > li.item.product-item {
    width: 25% !important;
    max-width: 25% !important;
    flex: 0 0 25% !important;
    box-sizing: border-box !important;
    padding: 8px !important;
    margin: 0 !important;
}

html#top body .rei-home-card-scope .products-grid > .product-items,
html#top body .rei-home-card-scope .products-grid > ul.products,
html#top body .rei-home-card-scope .products-grid > ul.item-group,
html#top body .category-products.rei-list-card-scope .products-grid > ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade {
    min-height: 100% !important;
    padding: 12px !important;
    border: 1px solid var(--rei-border) !important;
    border-radius: 20px !important;
    background: var(--rei-surface) !important;
    box-shadow: 0 8px 22px rgba(7, 22, 42, .06) !important;
    color: var(--rei-ink) !important;
    overflow: visible !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 .product-item-info.rei-card-upgrade:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(7, 94, 243, .28) !important;
    box-shadow: 0 14px 30px rgba(7, 22, 42, .12) !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 .product-item-info.rei-card-upgrade .product-image {
    height: 208px !important;
    min-height: 208px !important;
    margin: 0 0 12px !important;
    padding: 8px !important;
    border: 1px solid #eef0f4 !important;
    border-radius: 16px !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-image > img,
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-image img:not(.alternative-img),
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .product-image > img,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .product-image img:not(.alternative-img) {
    max-width: 100% !important;
    max-height: 190px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    position: static !important;
    margin: 0 auto !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 .product-item-info.rei-card-upgrade .product-item-details {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 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 .product-item-info.rei-card-upgrade .product-name {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 0 8px !important;
    text-align: left !important;
    overflow: hidden !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 .product-item-info.rei-card-upgrade .product-name a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    max-height: 42px !important;
    overflow: hidden !important;
    color: var(--rei-ink) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 21px !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 .product-item-info.rei-card-upgrade .price-box {
    min-height: 38px !important;
    margin: 0 0 10px !important;
    text-align: left !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 .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 .product-item-info.rei-card-upgrade .price .rei-price-currency,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .price .rei-price-major {
    color: var(--rei-blue) !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 .product-item-info.rei-card-upgrade .price .rei-price-minor {
    color: var(--rei-blue) !important;
    font-size: 14px !important;
    font-weight: 800 !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 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !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 {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    min-height: 46px !important;
    height: 46px !important;
    padding: 3px !important;
    border: 1px solid var(--rei-border) !important;
    border-radius: 14px !important;
    background: #fff !important;
    overflow: hidden !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 {
    background: var(--rei-danger-bg) !important;
    color: var(--rei-danger) !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 {
    background: var(--rei-success-bg) !important;
    color: var(--rei-success) !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: 40px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--rei-ink) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-align: center !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;
    min-height: 48px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--rei-blue) !important;
    color: #fff !important;
    box-shadow: 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-blue-dark) !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: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 48px !important;
    white-space: nowrap !important;
}

html#top body .rei-home-card-scope .rei-card-quickview,
html#top body .category-products.rei-list-card-scope .rei-card-quickview {
    width: 40px !important;
    height: 40px !important;
    border: 1px solid var(--rei-border) !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 5px 14px rgba(7, 22, 42, .10) !important;
}

/* Search and category controls. */
html#top body.catalog-category-view .toolbar,
html#top body.catalogsearch-result-index .toolbar,
html#top body.catalog-category-view .block-layered-nav,
html#top body.catalogsearch-result-index .block-layered-nav {
    border-color: var(--rei-border) !important;
    background: var(--rei-surface) !important;
    border-radius: 16px !important;
}

html#top body.catalog-category-view .block-layered-nav,
html#top body.catalogsearch-result-index .block-layered-nav {
    box-shadow: 0 6px 18px rgba(7, 22, 42, .05) !important;
}

html#top body.catalog-category-view .sorter select,
html#top body.catalogsearch-result-index .sorter select,
html#top body.catalog-category-view .toolbar select,
html#top body.catalogsearch-result-index .toolbar select {
    min-height: 42px !important;
    border: 1px solid var(--rei-border) !important;
    border-radius: 12px !important;
    color: var(--rei-ink) !important;
    background: #fff !important;
}

/* Product detail purchase panel: blue conversion system, no price overlap. */
html#top body.catalog-product-view .product-view.rei-pdp-shell .product-essential {
    background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%) !important;
    border-color: var(--rei-border) !important;
    box-shadow: 0 18px 42px rgba(7, 22, 42, .08) !important;
}

html#top body.catalog-product-view .product-view.rei-pdp-shell .product-img-box,
html#top body.catalog-product-view .product-view.rei-pdp-shell .product-shop {
    background: #fff !important;
    border-color: var(--rei-border) !important;
    box-shadow: 0 8px 22px rgba(7, 22, 42, .05) !important;
}

html#top body.catalog-product-view .product-view.rei-pdp-shell .product-name-h1 {
    color: var(--rei-ink) !important;
}

html#top body.catalog-product-view .product-view.rei-pdp-shell .product-shop-wrap {
    border-top: 0 !important;
    padding-top: 8px !important;
    margin-top: 8px !important;
}

html#top body.catalog-product-view .product-view.rei-pdp-shell .product-shop-price-stock {
    background: #fff !important;
    border-color: rgba(7, 94, 243, .16) !important;
}

html#top body.catalog-product-view .product-view.rei-pdp-shell .product-shop-price-stock .price {
    color: var(--rei-blue) !important;
}

html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .product-button-bottom .btn-cart {
    background: var(--rei-blue) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
}

html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .product-button-bottom .btn-cart:hover {
    background: var(--rei-blue-dark) !important;
}

html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .btn-cart {
    background: var(--rei-blue) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
}

html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .btn-cart:hover {
    background: var(--rei-blue-dark) !important;
}

html#top body.catalog-product-view .product-view.rei-pdp-shell .product-collateral .box-collateral {
    background: #fff !important;
    border-color: var(--rei-border) !important;
    box-shadow: 0 8px 22px rgba(7, 22, 42, .05) !important;
}

/* Header and footer keep the same brand while reducing visual noise. */
html#top body .header,
html#top body .header-container,
html#top body .footer {
    background: #fff !important;
}

html#top body .header {
    border-bottom: 1px solid var(--rei-border) !important;
}

html#top body .footer {
    border-top: 1px solid var(--rei-border) !important;
}

@media (min-width: 768px) and (max-width: 1199px) {
    html#top body .rei-home-card-scope .products.same-height.row > li.item.product-item,
    html#top body .rei-home-card-scope .item-group > li.item.product-item,
    html#top body .category-products.rei-list-card-scope .products-grid > ul.products > li.item.product-item {
        width: 33.3333% !important;
        max-width: 33.3333% !important;
        flex-basis: 33.3333% !important;
    }
}

@media (max-width: 767px) {
    html#top body .rei-home-card-scope .products.same-height.row > li.item.product-item,
    html#top body .rei-home-card-scope .item-group > li.item.product-item,
    html#top body .category-products.rei-list-card-scope .products-grid > ul.products > li.item.product-item {
        width: 50% !important;
        max-width: 50% !important;
        flex-basis: 50% !important;
        padding: 6px !important;
    }

    html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade,
    html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade {
        padding: 8px !important;
        border-radius: 18px !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 .product-item-info.rei-card-upgrade .product-image {
        height: 150px !important;
        min-height: 150px !important;
        margin-bottom: 10px !important;
    }

    html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-image > img,
    html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-image img:not(.alternative-img),
    html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .product-image > img,
    html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .product-image img:not(.alternative-img) {
        max-height: 138px !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 .product-item-info.rei-card-upgrade .product-name {
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        margin-bottom: 6px !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 .product-item-info.rei-card-upgrade .product-name a {
        font-size: 13px !important;
        line-height: 20px !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 .product-item-info.rei-card-upgrade .price-box {
        min-height: 34px !important;
        margin-bottom: 8px !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 .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 .product-item-info.rei-card-upgrade .price .rei-price-currency,
    html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .price .rei-price-major {
        font-size: 22px !important;
        line-height: 28px !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 .product-item-info.rei-card-upgrade .price .rei-price-minor {
        font-size: 12px !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: 38px minmax(0, 1fr) 38px !important;
        min-height: 44px !important;
        height: 44px !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 {
        min-height: 46px !important;
        border-radius: 12px !important;
        padding: 0 8px !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 {
        font-size: 13px !important;
        line-height: 46px !important;
    }

    html#top body.catalog-product-view .product-view.rei-pdp-shell .product-essential {
        padding: 10px !important;
        border-radius: 18px !important;
    }

    html#top body.catalog-product-view .product-view.rei-pdp-shell .product-shop {
        padding: 16px !important;
    }

    html#top body.catalog-product-view .product-view.rei-pdp-shell .product-shop-price-stock {
        padding: 12px !important;
        border-radius: 16px !important;
    }

    html#top body.catalog-product-view .product-view.rei-pdp-shell .product-shop-price-stock .price {
        font-size: 36px !important;
        line-height: 42px !important;
    }

    html#top body.catalog-product-view .product-view.rei-pdp-shell .product-collateral {
        margin-top: 14px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html#top body *,
    html#top body *::before,
    html#top body *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Ajustes responsivos 2026-10-31 =====
 * Celular: botao "Adicionar ao carrinho" cabendo no card, sem faixa vazia
 * acima do cabecalho mobile e titulos do rodape visiveis.
 * Seletores com .btn-cart duplicado para vencer os <style> inline do
 * homegrid.phtml e do list.phtml, que usam a mesma especificidade.
 */
@media (max-width: 767px) {
    html#top body .header-container {
        min-height: 0 !important;
    }

    html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .btn-cart.btn-cart,
    html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .btn-cart.btn-cart {
        gap: 6px !important;
        padding: 0 6px !important;
        white-space: normal !important;
    }

    html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .btn-cart.btn-cart > .rei-cart-icon,
    html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .btn-cart.btn-cart > .rei-cart-icon {
        width: 18px !important;
        height: 18px !important;
        flex: 0 0 18px !important;
    }

    html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .btn-cart.btn-cart > .rei-cart-icon svg,
    html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .btn-cart.btn-cart > .rei-cart-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .btn-cart.btn-cart > span:not(.rei-cart-icon),
    html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .btn-cart.btn-cart > span:not(.rei-cart-icon) {
        flex: 0 1 auto !important;
        min-width: 0 !important;
    }

    html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .btn-cart.btn-cart > span:not(.rei-cart-icon) > span,
    html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .btn-cart.btn-cart > span:not(.rei-cart-icon) > span {
        display: block !important;
        font-size: 13px !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        text-align: center !important;
    }

    html#top body .footer .footer-box .cdz-toggle-title.hidden-xs {
        display: block !important;
        margin: 14px 0 6px !important;
    }
}

@media (max-width: 359px) {
    html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .btn-cart.btn-cart > span:not(.rei-cart-icon) > span,
    html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .btn-cart.btn-cart > span:not(.rei-cart-icon) > span {
        font-size: 12px !important;
    }
}

/* Celular: seta do rodape sem acordeao funcional e 2px de rolagem lateral
 * na pagina de produto (.container com 8px x .row com -10px). */
@media (max-width: 767px) {
    html#top body .footer .footer-box .cdz-toggle-title.hidden-xs::before {
        display: none !important;
    }

    html#top body.catalog-product-view .container > .row {
        margin-left: -8px !important;
        margin-right: -8px !important;
    }
}

/* ===== Seletor de quantidade 2026-10-31 =====
 * Copia a referencia enviada: pilula branca, botoes quadrados rosa/verde e
 * sinais de traco fino desenhados em CSS. Altura igual ao botao de carrinho.
 * Classe dobrada para vencer os <style> inline de homegrid/list/view.
 */
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .cart-qty.cart-qty,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty_cart.qty_cart {
    display: grid !important;
    align-items: center !important;
    column-gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 4px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(7, 22, 42, .08) !important;
    overflow: hidden !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .cart-qty.cart-qty .qty-ctl,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty .qty-ctl,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty_cart.qty_cart .qty-ctl {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .cart-qty.cart-qty .qty-ctl button,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty .qty-ctl button,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty_cart.qty_cart .qty-ctl button {
    position: relative !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: background-color .15s ease !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .cart-qty.cart-qty .qty-ctl button.decrease,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty .qty-ctl button.decrease,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty_cart.qty_cart .qty-ctl button.decrease {
    background: #fde7e9 !important;
    color: #b42318 !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .cart-qty.cart-qty .qty-ctl button.increase,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty .qty-ctl button.increase,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty_cart.qty_cart .qty-ctl button.increase {
    background: #e3f6e8 !important;
    color: #15803d !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .cart-qty.cart-qty .qty-ctl button.decrease:hover,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty .qty-ctl button.decrease:hover,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty_cart.qty_cart .qty-ctl button.decrease:hover {
    background: #fbd5d9 !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .cart-qty.cart-qty .qty-ctl button.decrease:focus-visible,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty .qty-ctl button.decrease:focus-visible,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty_cart.qty_cart .qty-ctl button.decrease:focus-visible {
    background: #fbd5d9 !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .cart-qty.cart-qty .qty-ctl button.increase:hover,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty .qty-ctl button.increase:hover,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty_cart.qty_cart .qty-ctl button.increase:hover {
    background: #cdeed7 !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .cart-qty.cart-qty .qty-ctl button.increase:focus-visible,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty .qty-ctl button.increase:focus-visible,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty_cart.qty_cart .qty-ctl button.increase:focus-visible {
    background: #cdeed7 !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .cart-qty.cart-qty .qty-ctl button:before,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty .qty-ctl button:before,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty_cart.qty_cart .qty-ctl button:before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: 14px !important;
    height: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 1px !important;
    background: currentColor !important;
    color: inherit !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: 0 !important;
    transform: translate(-50%, -50%) !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .cart-qty.cart-qty .qty-ctl button:after,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty .qty-ctl button:after,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty_cart.qty_cart .qty-ctl button:after {
    content: none !important;
    display: none !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .cart-qty.cart-qty .qty-ctl button.increase:after,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty .qty-ctl button.increase:after,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty_cart.qty_cart .qty-ctl button.increase:after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 2px !important;
    height: 14px !important;
    margin: 0 !important;
    border-radius: 1px !important;
    background: currentColor !important;
    transform: translate(-50%, -50%) !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .cart-qty.cart-qty input.qty,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty input.qty,
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty_cart.qty_cart input.qty {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #1f2937 !important;
    font-weight: 500 !important;
    text-align: center !important;
    outline-offset: 0 !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .cart-qty.cart-qty,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty {
    grid-template-columns: 36px minmax(0, 1fr) 36px !important;
    height: 46px !important;
    min-height: 46px !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .cart-qty.cart-qty .qty-ctl,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty .qty-ctl {
    width: 36px !important;
    height: 36px !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .cart-qty.cart-qty .qty-ctl button,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty .qty-ctl button {
    width: 36px !important;
    height: 36px !important;
}
html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .cart-qty.cart-qty input.qty,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty input.qty {
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
}
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty_cart.qty_cart {
    grid-template-columns: 38px minmax(0, 1fr) 38px !important;
    height: 48px !important;
    min-height: 48px !important;
}
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty_cart.qty_cart .qty-ctl {
    width: 38px !important;
    height: 38px !important;
}
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty_cart.qty_cart .qty-ctl button {
    width: 38px !important;
    height: 38px !important;
}
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .qty_cart.qty_cart input.qty {
    height: 38px !important;
    line-height: 38px !important;
    font-size: 20px !important;
}
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .btn-cart.btn-cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 15px !important;
    line-height: 1 !important;
}

@media (min-width: 768px) and (max-width: 991px) {
    html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty {
        grid-template-columns: 32px minmax(0, 1fr) 32px !important;
        height: 46px !important;
        min-height: 46px !important;
    }
    html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty .qty-ctl {
        width: 32px !important;
        height: 32px !important;
    }
    html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty .qty-ctl button {
        width: 32px !important;
        height: 32px !important;
    }
    html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty input.qty {
        height: 32px !important;
        line-height: 32px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 767px) {
    html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .cart-qty.cart-qty,
    html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty {
        grid-template-columns: 34px minmax(0, 1fr) 34px !important;
        height: 46px !important;
        min-height: 46px !important;
    }
    html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .cart-qty.cart-qty .qty-ctl,
    html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty .qty-ctl {
        width: 34px !important;
        height: 34px !important;
    }
    html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .cart-qty.cart-qty .qty-ctl button,
    html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty .qty-ctl button {
        width: 34px !important;
        height: 34px !important;
    }
    html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .cart-qty.cart-qty input.qty,
    html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty.cart-qty input.qty {
        height: 34px !important;
        line-height: 34px !important;
        font-size: 16px !important;
    }
}
/* Produto: a linha do seletor herdava margin-left/float do tema e saia
 * desalinhada do botao "Adicionar". */
html#top body.catalog-product-view .product-view.rei-pdp-shell .rei-pdp-cart .product-button-top.product-button-top {
    float: none !important;
    width: 100% !important;
    margin: 0 0 12px !important;
}
