/* 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;
    }
}

/* Shared compact card purchase layout: image/details above, quantity on the
 * details side, and the full-width cart action anchored at the bottom. */
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 {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) !important;
    grid-template-rows: 182px !important;
    align-items: center !important;
    height: 204px !important;
    min-height: 204px !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cdz-hover-section,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .cdz-hover-img {
    width: 100% !important;
    height: 182px !important;
    min-height: 182px !important;
    margin: 0 !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center !important;
    box-sizing: border-box !important;
}

html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .cdz-product-top {
    width: 100% !important;
    height: 120px !important;
    align-self: 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 .product-item-info.rei-card-upgrade .product-item-details {
    position: static !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: start !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
}

html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cdz-bottom-no-effect {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 70px !important;
    min-height: 0 !important;
    margin: 0 !important;
}

html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .cdz-bottom-no-effect {
    position: absolute !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    width: auto !important;
    height: 70px !important;
    min-height: 0 !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 .product-item-info.rei-card-upgrade .product-image {
    width: 100% !important;
    height: 120px !important;
    min-height: 120px !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !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 .product-item-info.rei-card-upgrade .product-image img {
    max-width: 100% !important;
    max-height: 120px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

html#top body .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart,
html#top body .category-products.rei-list-card-scope .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart {
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) !important;
    grid-template-rows: 30px 34px !important;
    gap: 6px !important;
    width: 100% !important;
    height: 70px !important;
    margin: 0 !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-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: 30px !important;
    min-height: 30px !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 {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 8px !important;
    gap: 8px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    box-sizing: border-box !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: 34px !important;
    white-space: nowrap !important;
}

/* The category template has a legacy, more-specific 44/46px control rule. */
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty {
    grid-template-columns: 30px minmax(0, 1fr) 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 3px !important;
}

html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .qty-ctl,
html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .qty-ctl button {
    height: 24px !important;
}

html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart input.qty {
    height: 24px !important;
    line-height: 24px !important;
}

html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .btn-cart {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 8px !important;
    gap: 8px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
}

html#top body .category-products.rei-list-card-scope .products-grid .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .btn-cart 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 span span {
    font-size: 13px !important;
    line-height: 34px !important;
}

@media (max-width: 767px) {
    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 {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) !important;
        grid-template-rows: 182px !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 {
        padding: 0 4px !important;
        gap: 5px !important;
        font-size: 12px !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: 12px !important;
    }

    html#top body .rei-home-card-scope .cart-wrapper.rei-home-card-cart .btn-cart > .rei-cart-icon,
    html#top body .category-products.rei-list-card-scope .cart-wrapper.rei-card-cart .btn-cart > .rei-cart-icon {
        width: 20px !important;
        height: 20px !important;
        flex-basis: 20px !important;
    }

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

/* Card da listagem = card da Home (02/nov/2026): busca, categoria e sub-categoria
 * usam o mesmo visual do card da Home (rei-reference-layout.css): moldura, imagem
 * contida na caixa de 120px no topo, nome à esquerda, preço 25px, "- qtd +" e botão.
 * Nome e link do nome são gravados inline por list.phtml (fixReiListCardButtons).
 * padding-bottom fica com o bloco do celular abaixo. */
html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade {
    padding-top: 10px !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
    border: 1px solid #e4e8ee !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 3px 12px rgba(7, 22, 42, .06) !important;
    overflow: hidden !important;
}

html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 18px rgba(7, 22, 42, .12) !important;
}

html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade .cdz-hover-img {
    align-self: start !important;
}

html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade .product-image {
    height: 120px !important;
    min-height: 120px !important;
    margin: 0 !important;
}

html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade .product-image > img,
html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade .product-image img:not(.alternative-img) {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade .price-box .price,
html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade .price .rei-price-currency,
html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade .price .rei-price-major {
    font-size: 25px !important;
    line-height: 29px !important;
}

html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade .price .rei-price-minor {
    font-size: 12px !important;
}

html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .cart-qty {
    padding: 2px !important;
    border-radius: 7px !important;
}

html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .qty-ctl button {
    border-radius: 5px !important;
}

html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart input.qty {
    font-size: 24px !important;
    color: #000 !important;
}

html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade .cart-wrapper.rei-card-cart .btn-cart {
    gap: 10px !important;
    padding: 0 10px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
}

/* Card estreito em pé (01-02/nov/2026): com o card dividido em duas colunas o
 * "- qtd +" ficava estreito demais e escondia o número. Card com menos de 225px
 * (celular, tablet e 1024-1199px com filtros) fica em pé: imagem / nome e preço /
 * quantidade (linha inteira) / botão. list.phtml mede cada card e aplica
 * .rei-card-stacked (ou .rei-card-compact, abaixo) e grava inline a grade do
 * .cart-wrapper; o card da Home é tratado em rei-reference-layout.css. */
html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade.rei-card-stacked {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 130px auto !important;
    align-items: start !important;
    height: 100% !important;
    min-height: 0 !important;
    /* espaço reservado para o bloco quantidade + botão (absoluto, 70px) */
    padding-bottom: 92px !important;
}

html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade.rei-card-stacked .cdz-hover-img {
    height: 130px !important;
    min-height: 0 !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
}

html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade.rei-card-stacked .product-item-details {
    grid-column: 1 !important;
    grid-row: 2 !important;
}

html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade.rei-card-stacked .cart-wrapper.rei-card-cart {
    grid-template-columns: minmax(0, 1fr) !important;
}

html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade.rei-card-stacked .cart-wrapper.rei-card-cart .cart-qty {
    grid-column: 1 !important;
}

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

/* Card médio (225-259px, ex.: 4 por linha com filtros em 1440px): mantém as duas
 * colunas com "- +" de 24px e sem recuo no campo, que antes sobrava com 11px úteis. */
html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade.rei-card-compact .cart-wrapper.rei-card-cart .cart-qty {
    grid-template-columns: 24px minmax(0, 1fr) 24px !important;
    column-gap: 2px !important;
}

html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade.rei-card-compact .cart-wrapper.rei-card-cart .qty-ctl,
html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade.rei-card-compact .cart-wrapper.rei-card-cart .qty-ctl button {
    width: 24px !important;
    min-width: 24px !important;
}

html#top body .category-products.rei-list-card-scope .products-grid li.item.product-item .product-item-info.rei-card-upgrade.rei-card-compact .cart-wrapper.rei-card-cart input.qty {
    padding: 0 !important;
}

/* ==========================================================================
   Carrinho AJAX "Meu Carrinho" (01/nov/2026)
   Usado em: dropdown do header (checkout/cart/sidebar.phtml -> .rei-mc-dd)
             popup pos-adicionar (ajaxcart/footer_cart.phtml -> #footer-cart .rei-mc-pop)
   ========================================================================== */
.rei-mc{
  --mc-ink:#111418; --mc-muted:#6b7280; --mc-line:#e5e7eb; --mc-soft:#f2f4f7;
  --mc-green1:#55c95f; --mc-green2:#2fae45; --mc-yellow:#f8c51c; --mc-yellow-soft:#fdf0c4;
  box-sizing:border-box; color:var(--mc-ink) !important; font-size:14px; line-height:1.3; text-align:left;
}
.rei-mc *,.rei-mc *:before,.rei-mc *:after{box-sizing:border-box;}
.rei-mc svg{display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.rei-mc .rei-mc-sr{position:absolute !important;width:1px !important;height:1px !important;overflow:hidden !important;clip:rect(0 0 0 0) !important;white-space:nowrap !important;}

/* cabecalho */
.rei-mc .rei-mc-head{display:flex !important;align-items:center;gap:14px;padding:18px 18px 16px 22px;border-bottom:1px solid var(--mc-line);background:#fff;flex:0 0 auto;}
.rei-mc .rei-mc-head-icon{position:relative;display:inline-flex;width:36px;height:36px;flex:0 0 36px;color:var(--mc-ink);margin:6px 4px 0 0;background:none !important;}
.rei-mc .rei-mc-head-icon svg{width:36px;height:36px;stroke-width:2.1;}
.rei-mc .rei-mc-badge{position:absolute;top:-10px;right:-12px;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:var(--mc-yellow);color:var(--mc-ink);font-size:13px;font-weight:800;line-height:24px;text-align:center;}
.rei-mc .rei-mc-title{flex:1 1 auto;margin:0;font-size:22px !important;font-weight:800 !important;letter-spacing:-.01em;color:var(--mc-ink) !important;text-transform:none !important;}
.rei-mc .rei-mc-title .amount{display:inline !important;opacity:1 !important;visibility:visible !important;}
.rei-mc .rei-mc-title .loading{font-size:13px;font-weight:600;color:var(--mc-muted);margin-left:8px;}
.rei-mc .rei-mc-close{display:inline-flex !important;align-items:center;justify-content:center;width:36px !important;height:36px !important;min-height:0 !important;padding:0 !important;margin:0 !important;border:0 !important;border-radius:8px;background:transparent !important;color:var(--mc-ink) !important;font-size:34px !important;font-weight:300 !important;line-height:1 !important;text-decoration:none !important;cursor:pointer;position:static !important;float:none !important;box-shadow:none !important;}
.rei-mc .rei-mc-close:hover{background:var(--mc-soft) !important;}
.rei-mc .rei-mc-close:after,.rei-mc .rei-mc-close:before{display:none !important;content:none !important;}

/* corpo */
.rei-mc .rei-mc-body{padding:16px !important;background:#fff !important;border:0 !important;}
.rei-mc .rei-mc-summary{display:grid;grid-template-columns:1fr 1fr;align-items:center;margin:0 0 16px;padding:16px 14px;border-radius:16px;background:var(--mc-soft);}
.rei-mc .rei-mc-sum{display:flex;align-items:center;gap:12px;min-width:0;padding:0 8px;}
.rei-mc .rei-mc-sum + .rei-mc-sum{border-left:1px solid #d5dae1;padding-left:16px;}
.rei-mc .rei-mc-sum-ico{width:34px;height:34px;flex:0 0 34px;color:#4b5563;stroke-width:1.6;}
.rei-mc .rei-mc-sum-txt{display:flex;flex-direction:column;min-width:0;}
.rei-mc .rei-mc-sum-label{font-size:12px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;color:#4b5563;}
.rei-mc .rei-mc-sum-value,.rei-mc a.rei-mc-sum-value{font-size:21px;font-weight:800;line-height:1.15;color:var(--mc-ink) !important;text-decoration:none !important;white-space:nowrap;}
.rei-mc .rei-mc-sum-value .price{font:inherit !important;color:inherit !important;}

/* botoes */
.rei-mc .actions{margin:0 0 16px !important;padding:0 !important;border:0 !important;background:none !important;float:none !important;width:auto !important;position:static !important;height:auto !important;}
.rei-mc .rei-mc-checkout,.rei-mc button.button.rei-mc-checkout{position:relative;display:flex !important;align-items:center;justify-content:center;gap:14px;width:100% !important;height:52px !important;min-height:0 !important;margin:0 !important;padding:0 48px !important;border:0 !important;border-radius:999px !important;background:linear-gradient(180deg,var(--mc-green1),var(--mc-green2)) !important;box-shadow:0 8px 18px rgba(47,174,69,.28) !important;color:var(--mc-ink) !important;font-size:18px !important;font-weight:800 !important;letter-spacing:.01em;text-transform:uppercase !important;cursor:pointer;transform:none !important;}
.rei-mc .rei-mc-checkout:hover{filter:brightness(1.04);}
.rei-mc .rei-mc-checkout svg{width:26px;height:26px;stroke-width:2.1;}
.rei-mc .rei-mc-checkout span{color:var(--mc-ink) !important;background:none !important;padding:0 !important;height:auto !important;line-height:1 !important;font:inherit !important;}
.rei-mc .rei-mc-chev{position:absolute;right:24px;top:50%;width:9px;height:9px;margin-top:-5px;border-top:2.5px solid currentColor;border-right:2.5px solid currentColor;transform:rotate(45deg);}
.rei-mc .rei-mc-viewcart{position:relative;display:flex !important;align-items:center;justify-content:center;gap:12px;height:50px;margin:4px 0 0;border:1.5px solid #4b5563;border-radius:999px;background:#fff;color:var(--mc-ink) !important;font-size:17px;font-weight:700;text-decoration:none !important;}
.rei-mc .rei-mc-viewcart:hover{background:var(--mc-soft);}
.rei-mc .rei-mc-viewcart svg{width:24px;height:24px;}

/* lista de itens */
.rei-mc .cart-items{float:none !important;width:100% !important;height:auto !important;max-height:none !important;padding:0 !important;margin:0 !important;background:none !important;overflow:visible !important;}
.rei-mc .rei-mc-list{display:grid !important;gap:12px;margin:0 0 14px !important;padding:0 !important;list-style:none !important;border:0 !important;float:none !important;width:auto !important;}
.rei-mc .rei-mc-item{display:grid !important;grid-template-columns:84px minmax(0,1fr) 36px;align-items:center;gap:14px;margin:0 !important;padding:12px !important;border:1px solid var(--mc-line) !important;border-radius:16px !important;background:#fff !important;box-shadow:0 1px 3px rgba(17,20,24,.04) !important;float:none !important;width:auto !important;min-height:0 !important;}
.rei-mc .rei-mc-item:before,.rei-mc .rei-mc-item:after{display:none !important;content:none !important;}
.rei-mc .rei-mc-img{display:flex !important;align-items:center;justify-content:center;width:84px !important;height:84px !important;margin:0 !important;padding:4px !important;border:0 !important;border-radius:12px;background:#f6f7f9 !important;overflow:hidden;float:none !important;}
.rei-mc .rei-mc-img img{width:100% !important;height:100% !important;max-width:none !important;object-fit:contain;mix-blend-mode:multiply;}
.rei-mc .rei-mc-info{min-width:0;display:flex !important;flex-direction:column;align-items:flex-start;gap:4px;float:none !important;width:auto !important;padding:0 !important;margin:0 !important;}
.rei-mc .rei-mc-name{display:-webkit-box !important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-height:none !important;margin:0 !important;padding:0 !important;font-size:15px !important;font-weight:700 !important;line-height:1.28 !important;color:var(--mc-ink) !important;text-transform:none !important;}
.rei-mc .rei-mc-name a{color:inherit !important;text-decoration:none !important;font:inherit !important;}
.rei-mc .rei-mc-brand{margin:0 !important;font-size:13px;color:var(--mc-muted);}
.rei-mc .rei-mc-options{margin:0;font-size:12px;color:var(--mc-muted);}
.rei-mc .rei-mc-options dt,.rei-mc .rei-mc-options dd{display:inline;margin:0;}
.rei-mc .rei-mc-qp{display:inline-flex;align-items:center;margin-top:6px;border-radius:999px;background:var(--mc-soft);white-space:nowrap;}
.rei-mc .rei-mc-qty{display:inline-flex;align-items:center;height:30px;padding:0 12px;border-radius:999px;background:var(--mc-yellow-soft);font-size:15px;font-weight:800;color:var(--mc-ink);}
.rei-mc .rei-mc-price{padding:0 14px 0 10px;font-size:15px;font-weight:500;color:#333;}
.rei-mc .rei-mc-price .price{font:inherit !important;color:inherit !important;padding:0 !important;}
.rei-mc .rei-mc-actions{display:flex !important;flex-direction:column;gap:10px;align-self:center;float:none !important;width:auto !important;}
.rei-mc .rei-mc-btn,.rei-mc a.btn-remove.rei-mc-btn,.rei-mc a.btn-edit.rei-mc-btn{position:static !important;display:inline-flex !important;align-items:center;justify-content:center;width:36px !important;height:36px !important;margin:0 !important;padding:0 !important;border:1px solid #d1d5db !important;border-radius:8px !important;background:#f9fafb !important;color:#1f2937 !important;font-size:0 !important;text-indent:0 !important;text-decoration:none !important;overflow:visible !important;float:none !important;opacity:1 !important;visibility:visible !important;box-shadow:0 1px 2px rgba(17,20,24,.06);}
.rei-mc .rei-mc-btn:hover{background:#fff !important;border-color:#9ca3af !important;}
.rei-mc .rei-mc-btn:before,.rei-mc .rei-mc-btn:after{display:none !important;content:none !important;}
.rei-mc .rei-mc-btn svg{width:19px;height:19px;}
.rei-mc .rei-mc-btn.btn-remove:hover{color:#d92c35 !important;}
.rei-mc .rei-mc-empty{margin:0 !important;padding:18px 6px !important;text-align:center;color:var(--mc-muted);font-size:14px;}

/* editor de quantidade (popup, aberto pelo lapis) */
.rei-mc .rei-mc-editqty{display:none !important;align-items:stretch;gap:0;margin:8px 0 0 !important;height:32px;border:1px solid var(--mc-line);border-radius:9px;overflow:hidden;background:#fff;}
.rei-mc .rei-mc-item.is-editing .rei-mc-editqty{display:inline-flex !important;}
.rei-mc .rei-mc-editqty .btn-IncDec{width:32px !important;height:30px !important;margin:0 !important;padding:0 !important;border:0 !important;border-radius:0 !important;float:none !important;font-size:17px !important;font-weight:800 !important;line-height:30px !important;cursor:pointer;}
.rei-mc .rei-mc-editqty .btn-IncDec:first-child{background:#fdeaea !important;color:#d92c35 !important;}
.rei-mc .rei-mc-editqty .btn-IncDec:nth-of-type(2){background:#e8f8ec !important;color:#159447 !important;}
.rei-mc .rei-mc-editqty input.item-qty{width:40px !important;height:30px !important;margin:0 !important;padding:0 !important;border:0 !important;float:none !important;text-align:center;font-size:15px !important;font-weight:800 !important;color:var(--mc-ink) !important;background:#fff !important;}
.rei-mc .rei-mc-editqty .rei-mc-qty-ok{height:30px;margin:0 !important;padding:0 12px !important;border:0 !important;border-left:1px solid var(--mc-line) !important;border-radius:0 !important;background:#075ef3 !important;color:#fff !important;font-size:12px !important;font-weight:800 !important;cursor:pointer;}

/* popup pos-adicionar (#footer-cart criado pelo ajaxcart_effect.js) */
#footer-cart{position:fixed !important;top:auto !important;bottom:18px !important;left:auto !important;right:18px !important;width:min(430px,calc(100vw - 36px)) !important;height:auto !important;max-height:calc(100vh - 36px) !important;padding:0 !important;margin:0 !important;border:0 !important;background:transparent !important;box-shadow:none !important;z-index:99999 !important;}
#footer-cart .rei-mc-pop{display:flex !important;flex-direction:column;max-height:calc(100vh - 36px);border:0 !important;border-radius:24px !important;background:#fff !important;box-shadow:0 22px 50px rgba(17,20,24,.25),0 4px 12px rgba(17,20,24,.08) !important;overflow:hidden;height:auto !important;}
#footer-cart .rei-mc-pop .cart-content{display:block;flex:1 1 auto;min-height:0;height:auto !important;max-height:none !important;overflow-y:auto !important;overflow-x:hidden;position:static !important;}
#footer-cart .rei-mc-pop .cart-content[style*="display: none"]{display:none !important;}
/* celular (02/nov/2026): sem a barra flutuante "Meu Carrinho"; o carrinho fica no ícone do topo */
@media (max-width:767px){#footer-cart{display:none !important;}}

/* dropdown do header */
.cdz-top-cart .block-cart.rei-mc-dd{position:absolute !important;top:calc(100% + 10px) !important;right:0 !important;left:auto !important;width:430px !important;max-width:calc(100vw - 24px) !important;margin:0 !important;padding:0 !important;border:0 !important;border-radius:24px !important;background:#fff !important;box-shadow:0 22px 50px rgba(17,20,24,.22),0 4px 12px rgba(17,20,24,.08) !important;overflow:hidden;z-index:10050 !important;}
.cdz-top-cart .block-cart.rei-mc-dd .rei-mc-body{max-height:calc(100vh - 190px);overflow-y:auto;}
.cdz-top-cart .block-cart.rei-mc-dd .block-title{display:none !important;}

@media (max-width:480px){
  .rei-mc .rei-mc-head{padding:16px 14px 14px 18px;}
  .rei-mc .rei-mc-title{font-size:21px !important;}
  .rei-mc .rei-mc-body{padding:12px !important;}
  .rei-mc .rei-mc-summary{padding:14px 8px;}
  .rei-mc .rei-mc-sum{gap:9px;padding:0 4px;}
  .rei-mc .rei-mc-sum + .rei-mc-sum{padding-left:12px;}
  .rei-mc .rei-mc-sum-ico{width:28px;height:28px;flex-basis:28px;}
  .rei-mc .rei-mc-sum-value,.rei-mc a.rei-mc-sum-value{font-size:19px;}
  .rei-mc .rei-mc-checkout,.rei-mc button.button.rei-mc-checkout{font-size:17px !important;height:50px !important;}
  .rei-mc .rei-mc-item{grid-template-columns:76px minmax(0,1fr) 36px;gap:12px;padding:10px !important;}
  .rei-mc .rei-mc-img{width:76px !important;height:76px !important;}
  .rei-mc .rei-mc-name{font-size:14px !important;}
}
/* Meu Carrinho - reforcos contra regras antigas do tema (custombless/styles) */
#footer-cart .rei-mc .rei-mc-head-icon:before,#footer-cart .rei-mc .rei-mc-head-icon:after,.cdz-top-cart .rei-mc .rei-mc-head-icon:before,.cdz-top-cart .rei-mc .rei-mc-head-icon:after{display:none !important;content:none !important;background:none !important;}
#footer-cart .rei-mc .rei-mc-body,#footer-cart .rei-mc .rei-mc-head,.cdz-top-cart .rei-mc .rei-mc-body{box-shadow:none !important;}
#footer-cart .rei-mc .rei-mc-name,#footer-cart .rei-mc .rei-mc-name a,.cdz-top-cart .rei-mc .rei-mc-name,.cdz-top-cart .rei-mc .rei-mc-name a{white-space:normal !important;overflow-wrap:anywhere;}
#footer-cart .rei-mc .rei-mc-name,.cdz-top-cart .rei-mc .rei-mc-name{display:-webkit-box !important;-webkit-box-orient:vertical !important;-webkit-line-clamp:2 !important;overflow:hidden !important;max-width:100% !important;}
