/* Rei da Loja reference layout. Visual-only layer; catalog and cart logic stay intact. */

html#top body.cms-home {
    background: #fff !important;
    color: #07162a !important;
}

/* Promotional hero: centered rail, one main banner and two support banners. */
html#top body.cms-home .slideshow-content .main-content-top {
    padding: 10px 0 0 !important;
}
html#top body.cms-home .slideshow-content .rhb-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 2.4fr) minmax(330px, 1fr) !important;
    gap: 16px !important;
    width: calc(100% - 102px) !important;
    max-width: 1434px !important;
    height: 240px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    border-radius: 9px !important;
}
html#top body.cms-home .slideshow-content .rhb-col-main,
html#top body.cms-home .slideshow-content .rhb-col-side {
    float: none !important;
    width: auto !important;
    height: 240px !important;
    min-height: 0 !important;
    padding: 0 !important;
}
html#top body.cms-home .slideshow-content .rhb-col-main {
    grid-column: 1 !important;
    grid-row: 1 !important;
}
html#top body.cms-home .slideshow-content .rhb-col-side {
    grid-column: 2 !important;
    grid-row: 1 !important;
}
html#top body.cms-home .slideshow-content .rhb-col-main .rhb-link,
html#top body.cms-home .slideshow-content .rhb-col-side .rhb-link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}
html#top body.cms-home .slideshow-content .rhb-col-main .rhb-img,
html#top body.cms-home .slideshow-content .rhb-col-side .rhb-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: fill !important;
}
html#top body.cms-home .slideshow-content .rhb-col-side {
    display: grid !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

html#top body.cms-home .main-container .col-main-containter {
    width: calc(100% - 102px) !important;
    max-width: 1434px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}
html#top body.cms-home .main-container .col-wrapper-main > .std {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}
html#top body.cms-home .main-container .col-wrapper-main > .widget {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
}
html#top body.cms-home .main-container .col-wrapper-main > .widget > .col-sm-24 {
    display: flow-root !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
html#top body.cms-home .rei-home-card-scope {
    width: 100% !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
}

/* Four-column product composition from the reference. */
html#top body.cms-home .rei-home-card-scope .products-grid > ul.products,
html#top body.cms-home .rei-home-card-scope .products-grid > ul.item-group {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
html#top body.cms-home .rei-home-card-scope .products-grid > ul.products:before,
html#top body.cms-home .rei-home-card-scope .products-grid > ul.products:after,
html#top body.cms-home .rei-home-card-scope .products-grid > ul.item-group:before,
html#top body.cms-home .rei-home-card-scope .products-grid > ul.item-group:after {
    display: none !important;
    content: none !important;
}
html#top body.cms-home .rei-home-card-scope .products-grid > .product-items {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}
html#top body.cms-home .rei-home-card-scope .products-grid > .product-items > ul.item-group {
    display: contents !important;
}
html#top body.cms-home .rei-home-card-scope .products-grid > ul.products > li.item.product-item,
html#top body.cms-home .rei-home-card-scope .products-grid > .product-items li.item.product-item {
    display: flex !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    min-height: 204px !important;
    height: 204px !important;
    margin: 0 !important;
    padding: 0 !important;
}
html#top body.cms-home .rei-home-card-scope .products-grid > ul.products.same-height.row > li.item.product-item,
html#top body.cms-home .rei-home-card-scope .products-grid > .product-items > ul.item-group > li.item.product-item {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    flex-basis: 100% !important;
}

/* Compact horizontal card: image/text above, quantity/action below. */
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade {
    display: block !important;
    width: 100% !important;
    min-height: 204px !important;
    height: 100% !important;
    max-height: 204px !important;
    box-sizing: border-box !important;
    padding: 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.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 18px rgba(7, 22, 42, .12) !important;
}
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cdz-hover-section {
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 182px !important;
}
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cdz-product-top {
    position: relative !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: start !important; /* imagem no topo, alinhada ao nome (02/nov) */
    width: 100% !important;
    height: 120px !important;
    margin: 0 !important;
}
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 120px !important;
    min-height: 120px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
}
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-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;
}
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-item-details {
    display: contents !important;
}
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-name {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: end !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 40px !important;
    margin: 0 0 2px !important;
    padding: 0 2px !important;
    overflow: hidden !important;
    text-align: left !important;
}
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-name a {
    display: -webkit-box !important;
    overflow: hidden !important;
    max-height: 40px !important;
    color: #07162a !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 18px !important;
    text-align: left !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .price-box {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 31px !important;
    margin: 0 !important;
    text-align: left !important;
}
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .price-box .price,
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .price .rei-price-currency,
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .price .rei-price-major {
    color: #075ef3 !important;
    font-size: 25px !important;
    font-weight: 800 !important;
    line-height: 29px !important;
}
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .price .rei-price-minor {
    color: #075ef3 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cdz-bottom-no-effect {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    align-self: end !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 4px 0 0 !important;
}
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-item-inner,
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cdz-buttons-container,
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cdz-buttons-inner,
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .actions-primary {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 5px !important;
    width: 100% !important;
    margin: 0 !important;
}
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-qty {
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr) 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 2px !important;
    border: 1px solid #e8edf3 !important;
    border-radius: 7px !important;
    box-shadow: none !important;
}
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-qty .qty-ctl,
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-qty .qty-ctl button,
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade input.qty {
    height: 24px !important;
    min-height: 24px !important;
}
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-qty .qty-ctl button {
    width: 100% !important;
    border-radius: 5px !important;
    font-size: 0 !important;
}
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-qty .qty-ctl button:before {
    font-size: 18px !important;
    line-height: 24px !important;
}
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade input.qty {
    border: 0 !important;
    background: #fff !important;
    color: #07162a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 24px !important;
}
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .btn-cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: #075ef3 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-transform: none !important;
}
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .btn-cart:before {
    display: inline-block !important;
    margin-right: 7px !important;
    color: #fff !important;
    content: "\f07a" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .btn-cart span,
html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .btn-cart span span {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    text-transform: none !important;
}

/* The supplied composition shows three rows of four products before the CTA. */
html#top body.cms-home .rei-home-card-scope .products-grid > ul.products > li.item.product-item:nth-child(n+13),
html#top body.cms-home .rei-home-card-scope .products-grid > .product-items li.item.product-item:nth-child(n+13) {
    display: none !important;
}
html#top body.cms-home .rei-home-card-scope + div[style*="text-align:center"] {
    margin: 0 !important;
    padding: 0 0 4px !important;
    text-align: center !important;
}
html#top body.cms-home .rei-home-card-scope + div[style*="text-align:center"] a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 190px !important;
    height: 34px !important;
    padding: 0 20px !important;
    border-radius: 6px !important;
    background: #0786d1 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

@media (max-width:1199px) {
    html#top body.cms-home .slideshow-content .rhb-wrapper,
    html#top body.cms-home .main-container .col-main-containter {
        width: calc(100% - 40px) !important;
    }
    html#top body.cms-home .rei-home-card-scope .products-grid > ul.products,
    html#top body.cms-home .rei-home-card-scope .products-grid > .product-items {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
@media (max-width:767px) {
    html#top body.cms-home .slideshow-content .rhb-wrapper {
        display: block !important;
        width: calc(100% - 20px) !important;
        height: auto !important;
    }
    html#top body.cms-home .slideshow-content .rhb-col-main {
        height: auto !important;
    }
    html#top body.cms-home .slideshow-content .rhb-col-main .rhb-img {
        height: auto !important;
        object-fit: contain !important;
    }
    html#top body.cms-home .slideshow-content .rhb-col-side {
        display: none !important;
    }
    html#top body.cms-home .main-container .col-main-containter {
        width: calc(100% - 20px) !important;
    }
    html#top body.cms-home .rei-home-card-scope .products-grid > ul.products,
    html#top body.cms-home .rei-home-card-scope .products-grid > .product-items {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    /* Card em pé (01/nov/2026): imagem / nome e preço / quantidade (linha
     * inteira) / botão. Em duas colunas o "- qtd +" ficava com ~57px e
     * escondia o número; homegrid.phtml grava a grade do carrinho com 1 coluna. */
    html#top body.cms-home .rei-home-card-scope .products-grid > ul.products > li.item.product-item,
    html#top body.cms-home .rei-home-card-scope .products-grid > .product-items li.item.product-item {
        min-height: 0 !important;
        height: auto !important;
    }
    html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade {
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        padding: 8px !important;
    }
    html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cdz-hover-section {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        padding-bottom: 76px !important; /* bloco quantidade + botão (absoluto, 70px) */
    }
    html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-name {
        margin: 6px 0 2px !important;
        text-align: center !important;
    }
    html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-name a {
        text-align: center !important;
    }
    html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .price-box {
        justify-content: center !important;
        text-align: center !important;
    }
    html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cart-wrapper.rei-home-card-cart .cart-qty {
        grid-column: 1 !important;
    }
    html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .cdz-product-top,
    html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-image {
        height: 100px !important;
        min-height: 100px !important;
    }
    html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .product-name a {
        font-size: 11px !important;
        line-height: 15px !important;
    }
    html#top body.cms-home .rei-home-card-scope .product-item-info.rei-home-card-upgrade .btn-cart {
        font-size: 10px !important;
    }
}

/* ===== Storefront-wide reference system =====
 * Applies the reference visual language outside the home page too. The
 * selectors are restricted to storefront containers and presentation classes;
 * no cart, quantity, checkout or authentication behavior is changed here.
 */
html#top body:not(.cms-home) {
    background: #f6f8fc !important;
    color: #07162a !important;
}

html#top body:not(.cms-home) .main-container {
    background: transparent !important;
}

html#top body:not(.cms-home) .main-container .main > .container,
html#top body:not(.cms-home) .main-container .main > .col-main-containter,
html#top body:not(.cms-home) .main-container .col-main-containter {
    width: calc(100% - 102px) !important;
    max-width: 1434px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

html#top body:not(.cms-home) .content-breadcrums,
html#top body:not(.cms-home) .breadcrumbs {
    width: calc(100% - 102px) !important;
    max-width: 1434px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

html#top body:not(.cms-home) .breadcrumbs {
    min-height: 36px !important;
    padding: 9px 0 !important;
    color: #64748b !important;
    font-size: 12px !important;
}

html#top body:not(.cms-home) .breadcrumbs a {
    color: #64748b !important;
}

html#top body:not(.cms-home) .breadcrumbs a:hover,
html#top body:not(.cms-home) .breadcrumbs strong {
    color: #075ef3 !important;
}

html#top body:not(.cms-home) .page-title,
html#top body:not(.cms-home) .category-title,
html#top body:not(.cms-home) .catalogsearch-result-index .page-title {
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
}

html#top body:not(.cms-home) .page-title h1,
html#top body:not(.cms-home) .category-title h1,
html#top body:not(.cms-home) .catalogsearch-result-index .page-title h1 {
    color: #07162a !important;
    font-size: clamp(24px, 2.2vw, 34px) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -.02em !important;
    text-transform: none !important;
}

/* Magento notices use the same compact, rounded feedback surfaces. */
html#top body:not(.cms-home) .messages,
html#top body:not(.cms-home) #messages_product_view {
    width: calc(100% - 102px) !important;
    max-width: 1434px !important;
    margin: 12px auto !important;
}

html#top body:not(.cms-home) .messages li,
html#top body:not(.cms-home) #messages_product_view li {
    border-radius: 12px !important;
    border-width: 1px !important;
    box-shadow: 0 5px 16px rgba(7, 22, 42, .05) !important;
}

/* Category/search controls stay in the same white rail as the cards. */
html#top body.catalog-category-view:not(.cms-home) .category-products,
html#top body.catalogsearch-result-index:not(.cms-home) .category-products {
    margin-bottom: 22px !important;
}

html#top body.catalog-category-view:not(.cms-home) .toolbar,
html#top body.catalogsearch-result-index:not(.cms-home) .toolbar,
html#top body.catalog-category-view:not(.cms-home) .block-layered-nav,
html#top body.catalogsearch-result-index:not(.cms-home) .block-layered-nav {
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 4px 16px rgba(7, 22, 42, .05) !important;
}

html#top body.catalog-category-view:not(.cms-home) .toolbar,
html#top body.catalogsearch-result-index:not(.cms-home) .toolbar {
    min-height: 52px !important;
    padding: 8px 12px !important;
}

html#top body.catalog-category-view:not(.cms-home) .toolbar select,
html#top body.catalogsearch-result-index:not(.cms-home) .toolbar select,
html#top body.catalog-category-view:not(.cms-home) .block-layered-nav select,
html#top body.catalogsearch-result-index:not(.cms-home) .block-layered-nav select {
    min-height: 38px !important;
    border: 1px solid #dbe2ea !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #07162a !important;
}

/* Product detail: the page already has the purchase shell marker. These
 * rules align its surrounding rail and secondary information with the card
 * system without changing the add-to-cart form or its option scripts. */
html#top body.catalog-product-view:not(.cms-home) .main-container .main > .container,
html#top body.catalog-product-view:not(.cms-home) .main-container .col-main-containter {
    width: calc(100% - 102px) !important;
    max-width: 1434px !important;
}

html#top body.catalog-product-view:not(.cms-home) .product-view.rei-pdp-shell {
    color: #07162a !important;
}

html#top body.catalog-product-view:not(.cms-home) .product-view.rei-pdp-shell .product-essential,
html#top body.catalog-product-view:not(.cms-home) .product-view.rei-pdp-shell .product-collateral .box-collateral {
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(7, 22, 42, .06) !important;
}

html#top body.catalog-product-view:not(.cms-home) .product-view.rei-pdp-shell .product-name-h1,
html#top body.catalog-product-view:not(.cms-home) .product-view.rei-pdp-shell .product-name-h1 a {
    color: #07162a !important;
    font-weight: 800 !important;
}

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

html#top body.catalog-product-view:not(.cms-home) .product-view.rei-pdp-shell .product-shop-price-stock .price,
html#top body.catalog-product-view:not(.cms-home) .product-view.rei-pdp-shell .price-box .price {
    color: #075ef3 !important;
}

html#top body.catalog-product-view:not(.cms-home) .product-view.rei-pdp-shell .product-collateral .box-collateral h2,
html#top body.catalog-product-view:not(.cms-home) .product-view.rei-pdp-shell .product-collateral .box-collateral h3 {
    color: #07162a !important;
}

/* Cart and checkout surfaces. Quantity controls retain their existing DOM,
 * names, events and AJAX endpoints; only their presentation is normalized. */
html#top body.checkout-cart-index:not(.cms-home) .cart,
html#top body.checkout-cart-index:not(.cms-home) .cart-collaterals,
html#top body.checkout-cart-index:not(.cms-home) .cart-totals,
html#top body.checkout-cart-index:not(.cms-home) .shipping,
html#top body.checkout-cart-index:not(.cms-home) .discount,
html#top body.checkout-onepage-index:not(.cms-home) .checkout-onepage,
html#top body.onestepcheckout-index-index:not(.cms-home) .onestepcheckout {
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(7, 22, 42, .06) !important;
}

html#top body.checkout-cart-index:not(.cms-home) #shopping-cart-table {
    width: 100% !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}

html#top body.checkout-cart-index:not(.cms-home) #shopping-cart-table thead th {
    border: 0 !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

html#top body.checkout-cart-index:not(.cms-home) #shopping-cart-table tbody tr {
    background: #fff !important;
}

html#top body.checkout-cart-index:not(.cms-home) #shopping-cart-table tbody td {
    border-top: 1px solid #eef1f5 !important;
    border-bottom: 1px solid #eef1f5 !important;
    background: #fff !important;
}

html#top body.checkout-cart-index:not(.cms-home) #shopping-cart-table tbody td:first-child {
    border-left: 1px solid #eef1f5 !important;
    border-radius: 12px 0 0 12px !important;
}

html#top body.checkout-cart-index:not(.cms-home) #shopping-cart-table tbody td:last-child {
    border-right: 1px solid #eef1f5 !important;
    border-radius: 0 12px 12px 0 !important;
}

html#top body.checkout-cart-index:not(.cms-home) #shopping-cart-table .qty-quick-controls {
    border-color: #dbe2ea !important;
    border-radius: 9px !important;
    box-shadow: none !important;
}

html#top body.checkout-cart-index:not(.cms-home) #shopping-cart-table .qty-quick-btn {
    background: #fce6e8 !important;
    color: #b91c1c !important;
}

html#top body.checkout-cart-index:not(.cms-home) #shopping-cart-table .qty-quick-btn:last-child {
    background: #dff5e7 !important;
    color: #15803d !important;
}

html#top body.checkout-cart-index:not(.cms-home) .cart-collaterals,
html#top body.checkout-cart-index:not(.cms-home) .cart-totals {
    padding: 18px !important;
}

html#top body.checkout-cart-index:not(.cms-home) .cart-collaterals h2,
html#top body.checkout-cart-index:not(.cms-home) .cart-totals h2,
html#top body.checkout-onepage-index:not(.cms-home) .checkout-onepage h2,
html#top body.onestepcheckout-index-index:not(.cms-home) .onestepcheckout h2 {
    color: #07162a !important;
    font-weight: 800 !important;
}

html#top body.checkout-onepage-index:not(.cms-home) .checkout-onepage .step,
html#top body.onestepcheckout-index-index:not(.cms-home) .onestepcheckout .step {
    border-color: #e5e7eb !important;
    border-radius: 12px !important;
    background: #fff !important;
}

/* Account forms share the same inputs as the reference header and checkout. */
html#top body.customer-account-login:not(.cms-home) .account-login,
html#top body.customer-account-create:not(.cms-home) .account-create,
html#top body.customer-account-index:not(.cms-home) .my-account,
html#top body.persistent-index:not(.cms-home) #rei-register {
    border-color: #e5e7eb !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(7, 22, 42, .06) !important;
}

html#top body.customer-account-login:not(.cms-home) input.input-text,
html#top body.customer-account-create:not(.cms-home) input.input-text,
html#top body.customer-account-create:not(.cms-home) select,
html#top body.customer-account-create:not(.cms-home) textarea,
html#top body.checkout-onepage-index:not(.cms-home) input.input-text,
html#top body.checkout-onepage-index:not(.cms-home) select,
html#top body.checkout-onepage-index:not(.cms-home) textarea,
html#top body.onestepcheckout-index-index:not(.cms-home) input.input-text,
html#top body.onestepcheckout-index-index:not(.cms-home) select,
html#top body.onestepcheckout-index-index:not(.cms-home) textarea {
    min-height: 42px !important;
    border: 1px solid #dbe2ea !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #07162a !important;
}

/* Footer seen in the reference family: white content surface and a compact
 * blue-accented legal strip. Existing links and payment/security assets stay.
 */
html#top body .page-footer.footer-container,
html#top body .page-footer.footer-container .footer {
    background: #fff !important;
}

html#top body .page-footer.footer-container {
    margin-top: 28px !important;
    border-top: 1px solid #e5e7eb !important;
}

html#top body .page-footer.footer-container .footer > .widget .container,
html#top body .page-footer.footer-container .bottom-footer-wrapper .container {
    width: calc(100% - 102px) !important;
    max-width: 1434px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

html#top body .page-footer.footer-container .footer-box {
    min-height: 100% !important;
    padding: 18px 16px !important;
    border: 1px solid #eef1f5 !important;
    border-radius: 12px !important;
    background: #fff !important;
}

html#top body .page-footer.footer-container .footer-box .h5,
html#top body .page-footer.footer-container .footer-box h5 {
    color: #07162a !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

html#top body .page-footer.footer-container .footer-box a {
    color: #075ef3 !important;
}

html#top body .page-footer.footer-container .footer-box a:hover {
    color: #064dcc !important;
}

html#top body .page-footer.footer-container .bottom-footer-wrapper {
    margin-top: 18px !important;
    padding: 14px 0 !important;
    background: #07162a !important;
    color: #fff !important;
}

html#top body .page-footer.footer-container .bottom-footer-wrapper address {
    margin: 0 !important;
    color: #dbe7f4 !important;
    font-size: 12px !important;
}

@media (max-width: 1199px) {
    html#top body:not(.cms-home) .main-container .main > .container,
    html#top body:not(.cms-home) .main-container .main > .col-main-containter,
    html#top body:not(.cms-home) .main-container .col-main-containter,
    html#top body:not(.cms-home) .content-breadcrums,
    html#top body:not(.cms-home) .breadcrumbs,
    html#top body:not(.cms-home) .messages,
    html#top body:not(.cms-home) #messages_product_view,
    html#top body .page-footer.footer-container .footer > .widget .container,
    html#top body .page-footer.footer-container .bottom-footer-wrapper .container {
        width: calc(100% - 40px) !important;
    }
}

@media (max-width: 767px) {
    html#top body:not(.cms-home) .main-container .main > .container,
    html#top body:not(.cms-home) .main-container .main > .col-main-containter,
    html#top body:not(.cms-home) .main-container .col-main-containter,
    html#top body:not(.cms-home) .content-breadcrums,
    html#top body:not(.cms-home) .breadcrumbs,
    html#top body:not(.cms-home) .messages,
    html#top body:not(.cms-home) #messages_product_view,
    html#top body .page-footer.footer-container .footer > .widget .container,
    html#top body .page-footer.footer-container .bottom-footer-wrapper .container {
        width: calc(100% - 20px) !important;
    }

    html#top body:not(.cms-home) .page-title h1,
    html#top body:not(.cms-home) .category-title h1,
    html#top body:not(.cms-home) .catalogsearch-result-index .page-title h1 {
        font-size: 24px !important;
    }

    html#top body.checkout-cart-index:not(.cms-home) .cart-collaterals,
    html#top body.checkout-cart-index:not(.cms-home) .cart-totals {
        padding: 12px !important;
    }

    html#top body .page-footer.footer-container .footer-box {
        margin-bottom: 10px !important;
        padding: 14px !important;
    }
}
