/*
Theme Name: Steelthemes Nest Child
Author: Steelthemes
Description: Nest is a Ecommerce wordpress Theme.
Version: 1.0
Template: steelthemes-nest

This is the child theme for Steelthemes Nest theme, generated with Generate Child Theme plugin by catchthemes.


/* Subcategory Indentation */
.wc-block-product-categories-list ul,
.wc-block-product-categories-list > .wc-block-product-categories-list-item > ul,
.wc-block-product-categories-list > .wc-block-product-categories-list-item > ul > li > ul,
.wc-block-checkbox-list ul,
.wc-block-checkbox-list .wc-block-checkbox-list,
.wc-block-components-checkbox-list ul,
.wc-block-components-checkbox-list .wc-block-components-checkbox-list,
.wc-block-terms-filter ul,
.wc-block-attribute-filter ul,
.widget_product_categories ul.children,
.widget_categories ul.children,
.product-categories ul,
.product-categories .children,
.sidebar-widget .widget_categories ul ul,
.sidebar-widget .widget_product_categories ul ul,
.sidebar-widget ul.children,
li.cat-item ul,
li.cat-parent ul {
    padding-left: 20px !important;
    margin-left: 0 !important;
}

.wc-block-product-categories-list ul ul,
.wc-block-checkbox-list ul ul,
.wc-block-components-checkbox-list ul ul,
.product-categories ul ul,
li.cat-item ul ul {
    padding-left: 20px !important;
}

.wc-block-product-categories-list--depth-1,
.wc-block-product-categories-list-item--depth-1,
.wc-block-checkbox-list-item--depth-1 {
    margin-left: 20px !important;
}

.wc-block-product-categories-list--depth-2,
.wc-block-product-categories-list-item--depth-2,
.wc-block-checkbox-list-item--depth-2 {
    margin-left: 40px !important;
}

.wc-block-product-categories-list--depth-3,
.wc-block-product-categories-list-item--depth-3,
.wc-block-checkbox-list-item--depth-3 {
    margin-left: 60px !important;
}

/* Category Filter Widget Collapse Toggle & Hide Product Counts */
.category-filter-widget,
.category-filter-widget ul {
    list-style: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
}

.category-filter-widget li {
    position: relative !important;
    display: block !important;
    float: none !important;
    margin-bottom: 2px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    clear: both !important;
}

.category-filter-widget li a {
    float: none !important;
    display: inline-block !important;
    font-size: 13.5px !important;
    line-height: 22px !important;
    padding: 2px 0 !important;
    margin: 0 !important;
    color: var(--color-heading, #253D4E);
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.category-filter-widget li.current-cat-active > a,
.category-filter-widget li.active > a,
.category-filter-widget li a:hover {
    color: var(--color-brand, #3BB77E) !important;
}

.category-filter-widget .menu-expand {
    position: absolute !important;
    right: 0 !important;
    top: 3px !important;
    cursor: pointer !important;
    width: 22px !important;
    height: 22px !important;
    line-height: 22px !important;
    text-align: center !important;
    color: #7e7e7e !important;
    transition: transform 0.2s ease !important;
    z-index: 2 !important;
}

.category-filter-widget .menu-expand.active {
    transform: rotate(180deg) !important;
}

.category-filter-widget ul.children {
    display: none;
    clear: both !important;
    width: 100% !important;
    margin-top: 2px !important;
    margin-bottom: 2px !important;
}

/* ==========================================================================
   Redesigned Sidebar Category Menu (.nest-category-menu)
   ========================================================================== */

.nest-sidebar-category-card {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.nest-category-menu,
.nest-category-menu ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nest-category-menu li {
    position: relative !important;
    display: block !important;
    float: none !important;
    clear: both !important;
    margin-bottom: 2px !important;
}

.nest-category-menu > li:last-child {
    margin-bottom: 0 !important;
}

/* Category Link: Full width row with right padding for the arrow */
.nest-category-menu .category-link {
    display: block !important;
    position: relative !important;
    float: none !important;
    clear: none !important;
    padding: 6px 36px 6px 10px !important;
    border-radius: 6px !important;
    color: #253D4E !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    line-height: 22px !important;
    transition: all 0.2s ease-in-out !important;
    box-sizing: border-box !important;
}

.nest-category-menu .category-link:hover {
    color: #3BB77E !important;
    background-color: #f4f6f8 !important;
}

/* Active Category State */
.nest-category-menu li.active > .category-link,
.nest-category-menu li.current-cat-active > .category-link {
    color: #3BB77E !important;
    background-color: rgba(59, 183, 126, 0.08) !important;
    font-weight: 700 !important;
}

/* Expand / Collapse Toggle Arrow: Positioned on the RIGHT of category name */
.nest-category-menu .menu-expand {
    position: absolute !important;
    right: 6px !important;
    top: 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: #f7f8f9 !important;
    color: #7e7e7e !important;
    cursor: pointer !important;
    font-size: 12px !important;
    z-index: 10 !important;
    transition: all 0.25s ease-in-out !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}

.nest-category-menu .menu-expand:hover {
    background: #3BB77E !important;
    color: #ffffff !important;
}

.nest-category-menu .menu-expand.active {
    transform: rotate(180deg) !important;
    background: rgba(59, 183, 126, 0.15) !important;
    color: #3BB77E !important;
}

/* Subcategories Tree Styling */
.nest-category-menu ul.children {
    display: none;
    border-left: 2px solid #e8ecf0 !important;
    margin-left: 14px !important;
    padding-left: 6px !important;
    margin-top: 2px !important;
    margin-bottom: 4px !important;
    clear: both !important;
}

.nest-category-menu ul.children li {
    margin-bottom: 2px !important;
}

.nest-category-menu ul.children .category-link {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #687182 !important;
    padding: 4px 30px 4px 8px !important;
    line-height: 20px !important;
}

.nest-category-menu ul.children .category-link:hover {
    color: #3BB77E !important;
    background-color: #f4f6f8 !important;
}

.nest-category-menu ul.children li.active > .category-link {
    color: #3BB77E !important;
    background-color: rgba(59, 183, 126, 0.08) !important;
    font-weight: 600 !important;
}

/* Clean up counts */
.nest-category-menu small,
.sidebar-widget small,
.wc-block-product-categories-list-item-count {
    display: none !important;
}

/* ==========================================================================
   Homepage Product Section: Header Width Alignment & Equal Height Cards
   ========================================================================== */

/* Align homepage product section width with header container */
.product-tabs_two,
.product-tabs_two.filter_carousel,
.elementor-widget-nest-product-carousel-v1,
.elementor-widget-nest-product-tab-filter-carousel-v1 {
    max-width: 1610px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
}

/* Equal height product cards in carousel */
.theme_carousel .owl-stage {
    display: flex !important;
}

.theme_carousel .owl-item {
    display: flex !important;
    height: auto !important;
}

.theme_carousel .owl-item > div,
.theme_carousel .product-cart-wrap {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    width: 100% !important;
}

.theme_carousel .product-cart-wrap .product-content-wrap {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    justify-content: space-between !important;
}

/* Instant Carousel Transition */
.theme_carousel .owl-stage {
    transition: all 0s linear !important;
    transition-duration: 0s !important;
}

.theme_carousel .owl-item {
    transition: all 0s linear !important;
    transition-duration: 0s !important;
}

/* ==========================================================================
   Custom Native 4-Column Footer Styling
   ========================================================================== */

/* Disable old elementor footer wrapper */
.footer_area,
#footer_contents,
.elementor-224 {
    display: none !important;
}

.custom-lapatilla-footer {
    background-color: #f7f8f9 !important;
    border-top: 1px solid #e5e7eb !important;
    padding-top: 45px !important;
    padding-bottom: 25px !important;
    color: #4f5d77 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.custom-lapatilla-footer .footer-grid-4 {
    display: grid !important;
    grid-template-columns: 2.2fr 2.2fr 2fr 1.6fr !important;
    gap: 35px !important;
    align-items: flex-start !important;
    margin-bottom: 35px !important;
}

.custom-lapatilla-footer .footer-col-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #253D4E !important;
    margin-bottom: 14px !important;
}

.custom-lapatilla-footer .footer-logo-img {
    max-width: 190px !important;
    height: auto !important;
}

.custom-lapatilla-footer .company-name {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #253D4E !important;
    margin-bottom: 6px !important;
}

.custom-lapatilla-footer .company-nipc,
.custom-lapatilla-footer .company-address {
    margin-bottom: 8px !important;
    color: #4f5d77 !important;
}

.custom-lapatilla-footer .store-item strong {
    color: #253D4E !important;
}

.custom-lapatilla-footer .store-hours {
    color: #4f5d77 !important;
    margin-bottom: 0 !important;
}

.custom-lapatilla-footer a {
    color: #4f5d77 !important;
    transition: color 0.2s ease !important;
    text-decoration: none !important;
}

.custom-lapatilla-footer a:hover {
    color: #3BB77E !important;
}

.custom-lapatilla-footer ul.footer-nav-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.custom-lapatilla-footer ul.footer-nav-list li {
    margin-bottom: 10px !important;
}

.custom-lapatilla-footer ul.footer-nav-list li a {
    font-size: 14px !important;
    font-weight: 500 !important;
}

.custom-lapatilla-footer .payment-img {
    max-width: 210px !important;
    height: auto !important;
    margin-top: 4px !important;
}

.custom-lapatilla-footer .footer-bottom-bar {
    border-top: 1px solid #e5e7eb !important;
    padding-top: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

.custom-lapatilla-footer .copyright-text {
    font-size: 13px !important;
    color: #7e7e7e !important;
}

.custom-lapatilla-footer .footer-social-links {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.custom-lapatilla-footer .social-label {
    font-weight: 700 !important;
    color: #253D4E !important;
    margin-right: 5px !important;
}

.custom-lapatilla-footer .footer-social-links a {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background-color: #3BB77E !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
}

.custom-lapatilla-footer .footer-social-links a:hover {
    background-color: #29a56c !important;
    transform: translateY(-2px) !important;
}

@media (max-width: 991px) {
    .custom-lapatilla-footer .footer-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
}

/* ==========================================================================
   Mobile Homepage Design & UX Enhancements (<= 768px)
   ========================================================================== */

@media (max-width: 768px) {
    /* Container & Section Padding */
    .elementor-section {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Product Cards in Mobile Carousel */
    .product-cart-wrap {
        padding: 16px 14px !important;
        border-radius: 14px !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
        border: 1px solid #eef2f5 !important;
        margin: 4px 6px 16px 6px !important;
        background: #ffffff !important;
    }

    .product-cart-wrap .product-img-action-wrap {
        margin-bottom: 12px !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }

    .product-cart-wrap .product-content-wrap h2 {
        font-size: 15px !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
        font-weight: 700 !important;
    }

    .product-cart-wrap .product-card-bottom {
        margin-top: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .product-cart-wrap .add-cart a,
    .product-cart-wrap .add_to_cart_button {
        padding: 8px 16px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
    }

    /* Section Titles */
    .section-title h3,
    .product-tabs_two .section-title h3 {
        font-size: 20px !important;
        font-weight: 700 !important;
        margin-bottom: 14px !important;
    }

    /* Custom Mobile Footer Cards */
    .custom-lapatilla-footer {
        padding-top: 30px !important;
        padding-bottom: 20px !important;
    }

    .custom-lapatilla-footer .footer-grid-4 {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .custom-lapatilla-footer .footer-col {
        background: #ffffff !important;
        padding: 18px 16px !important;
        border-radius: 12px !important;
        border: 1px solid #eef2f5 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    }

    .custom-lapatilla-footer .footer-bottom-bar {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
        padding-top: 16px !important;
    }

    .custom-lapatilla-footer .footer-social-links {
        justify-content: center !important;
    }
}

/* ==========================================================================
   WooCommerce My-Account (/my-account/) Login & Register Box Centering
   ========================================================================== */

.woocommerce-account .woocommerce,
.woocommerce-account #customer_login {
    max-width: 980px !important;
    margin: 0 auto !important;
    padding-top: 30px !important;
    padding-bottom: 40px !important;
}

.woocommerce-account #customer_login {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 30px !important;
}

.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2,
.woocommerce-account #customer_login .col-1,
.woocommerce-account #customer_login .col-2 {
    flex: 1 1 420px !important;
    max-width: 460px !important;
    width: 100% !important;
    float: none !important;
    background: #ffffff !important;
    padding: 32px 28px !important;
    border-radius: 16px !important;
    border: 1px solid #eef2f5 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

.woocommerce-account #customer_login h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #253D4E !important;
    margin-bottom: 22px !important;
    text-align: center !important;
}

.woocommerce-account form.login,
.woocommerce-account form.register {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.woocommerce-account .form-row {
    margin-bottom: 16px !important;
}

.woocommerce-account label {
    font-weight: 600 !important;
    color: #253D4E !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.woocommerce-account input.input-text {
    width: 100% !important;
    height: 48px !important;
    padding: 0 16px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 14px !important;
    background-color: #fff !important;
    color: #253D4E !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.woocommerce-account input.input-text:focus {
    border-color: #3BB77E !important;
    box-shadow: 0 0 0 3px rgba(59, 183, 126, 0.15) !important;
    outline: none !important;
}

/* Scoped to form submit buttons only — avoid touching search/header buttons */
.woocommerce-account #customer_login button[type="submit"],
.woocommerce-account form.lost_reset_password button[type="submit"] {
    width: 100% !important;
    height: 48px !important;
    background-color: #3BB77E !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    border: none !important;
    margin-top: 10px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.woocommerce-account #customer_login button[type="submit"]:hover,
.woocommerce-account form.lost_reset_password button[type="submit"]:hover {
    background-color: #29a56c !important;
    transform: translateY(-1px) !important;
}

.woocommerce-account .woocommerce-LostPassword {
    text-align: center !important;
    margin-top: 14px !important;
}

.woocommerce-account .woocommerce-LostPassword a {
    color: #7e7e7e !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

.woocommerce-account .woocommerce-LostPassword a:hover {
    color: #3BB77E !important;
}

/* ==========================================================================
   Lost Password Page (/my-account/lost-password/) Design
   ========================================================================== */

.woocommerce-account .woocommerce-ResetPassword,
.woocommerce-account form.lost_reset_password {
    max-width: 460px !important;
    margin: 40px auto !important;
    background: #ffffff !important;
    padding: 36px 32px !important;
    border-radius: 16px !important;
    border: 1px solid #eef2f5 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

.woocommerce-account form.lost_reset_password p:not(.form-row) {
    text-align: center !important;
    color: #7e7e7e !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 22px !important;
}

.woocommerce-account form.lost_reset_password h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #253D4E !important;
    text-align: center !important;
    margin-bottom: 8px !important;
}

.woocommerce-account form.lost_reset_password .form-row {
    width: 100% !important;
    float: none !important;
    display: block !important;
    margin-bottom: 16px !important;
}

.woocommerce-account form.lost_reset_password .form-row input.input-text {
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* Back to login link */
.woocommerce-account .return-to-login {
    display: block !important;
    text-align: center !important;
    margin-top: 16px !important;
    font-size: 13px !important;
    color: #7e7e7e !important;
    text-decoration: none !important;
}

.woocommerce-account .return-to-login:hover {
    color: #3BB77E !important;
}

.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info {
    max-width: 460px !important;
    margin: 20px auto 0 auto !important;
    border-radius: 10px !important;
}

















/* ==========================================================================
   Mobile Header Bar — Replace Green Bar with Clean White Design
   ========================================================================== */

@media (max-width: 991px) {
    /* Replace solid green bar with clean white */
    .header-bottom.header-bottom-bg-color {
        background: #ffffff !important;
        border-top: 1px solid #eef2f5 !important;
        border-bottom: 1px solid #eef2f5 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
        padding: 6px 0 !important;
    }

    /* Burger icon lines — dark instead of white */
    .header-bottom.header-bottom-bg-color .burger-icon > span,
    .header-bottom.header-bottom-bg-color .burger-icon-top,
    .header-bottom.header-bottom-bg-color .burger-icon-mid,
    .header-bottom.header-bottom-bg-color .burger-icon-bottom {
        background-color: #253D4E !important;
    }

    /* Any text/icons inside the bar */
    .header-bottom.header-bottom-bg-color * {
        color: #253D4E !important;
    }

    /* Category button */
    .header-bottom.header-bottom-bg-color .categories-button,
    .header-bottom.header-bottom-bg-color .categories-button-active {
        background: #f4f6f8 !important;
        color: #253D4E !important;
        border-radius: 8px !important;
        border: 1px solid #e2e8f0 !important;
    }

    /* Mobile search input */
    .mobile-search input {
        background: #f7f8f9 !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        color: #253D4E !important;
    }
}

/* ==========================================================================
   Mobile Sidebar — Drill-Down Category Menu Design
   ========================================================================== */

/* Sidebar panel background */
.mobile-header-active.mobile-header-wrapper-style {
    background: #fff !important;
}

/* Top-level category items */
.mobile-menu > li {
    border-bottom: 1px solid #f0f4f7 !important;
    position: relative !important;
}

.mobile-menu > li > a {
    display: flex !important;
    align-items: center !important;
    padding: 13px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #253D4E !important;
    text-decoration: none !important;
    letter-spacing: 0.01em !important;
}

.mobile-menu > li > a:hover {
    color: #3BB77E !important;
    background: #f7faf8 !important;
}

/* Expand arrow — sibling of <a>, positioned right */
.mobile-menu > li > .menu-expand {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 46px !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #7e7e7e !important;
    transition: transform 0.25s ease !important;
    z-index: 2 !important;
}

/* Rotate arrow when sub-menu is open */
.mobile-menu > li.active > .menu-expand {
    transform: rotate(180deg) !important;
    color: #3BB77E !important;
}

/* Sub-menu — drill-down panel */
.mobile-menu .sub-menu {
    background: #f7faf8 !important;
    border-top: 1px solid #e8f0ea !important;
    border-left: 3px solid #3BB77E !important;
    margin: 0 !important;
    padding: 4px 0 !important;
    list-style: none !important;
    display: none;
}

.mobile-menu .sub-menu li a {
    display: block !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #4a6580 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #eef2f5 !important;
    transition: color 0.2s, background 0.2s !important;
}

.mobile-menu .sub-menu li:last-child a {
    border-bottom: none !important;
}

.mobile-menu .sub-menu li a:hover {
    color: #3BB77E !important;
    background: #edf7f2 !important;
    padding-left: 26px !important;
}

/* "Ver tudo em" link — styled distinctly */
.mobile-menu .sub-menu li:first-child a {
    color: #3BB77E !important;
    font-style: italic !important;
    font-weight: 600 !important;
}

/* Tab pills (Menu / Categorias) */
#mobilemenu .nav-link.cat_m_link {
    border-radius: 20px !important;
    padding: 6px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #7e7e7e !important;
    background: transparent !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease !important;
}

#mobilemenu .nav-link.cat_m_link.active {
    background: #3BB77E !important;
    color: #fff !important;
    border-color: #3BB77E !important;
}

/* Copyright at bottom of sidebar */
.mobile-header-content-area .site-copyright {
    font-size: 12px !important;
    color: #aab8c2 !important;
    text-align: center !important;
    padding: 16px !important;
    border-top: 1px solid #f0f4f7 !important;
    margin-top: 8px !important;
}

/* ==========================================================================
   Mobile Sidebar — Hide desktop Categorias dropdown button
   ========================================================================== */

/* Hide the green "Categorias" dropdown button inside mobile sidebar */
.mobile-header-active .categories-button-active,
.mobile-header-active .categories-dropdown-wrap,
.mobile-header-wrapper-style .categories-button-active,
.mobile-header-wrapper-style .main-categori-wrap {
    display: none !important;
}

/* Keep the product search icon at the right edge of the input. */
.box-header-search .search-wrapper {
    position: relative !important;
    width: 100% !important;
}

.box-header-search .search-wrapper input.search {
    width: 100% !important;
    padding-right: 48px !important;
}

.box-header-search .search-wrapper .csearchbtn {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
}

/* Center the custom Produtos and Ofertas page content within the layout. */
.lapatilla-products-page,
.lapatilla-offers-page {
    width: min(100% - 32px, 1200px);
    margin: 0 auto;
    padding: 48px 0 64px;
    text-align: center;
}

.lapatilla-products-page h1,
.lapatilla-offers-page h1,
.lapatilla-products-page h2,
.lapatilla-offers-page h2 {
    margin-left: auto;
    margin-right: auto;
}

.lapatilla-products-page p,
.lapatilla-offers-page p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.lapatilla-offers-products {
    margin-top: 48px;
    text-align: left;
}

.lapatilla-offers-products > h2 {
    margin-bottom: 28px;
    text-align: center;
}

.lapatilla-offers-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    width: 100% !important;
    margin: 0 !important;
}

.lapatilla-offers-products ul.products::before,
.lapatilla-offers-products ul.products::after {
    display: none !important;
}

.lapatilla-offers-products ul.products li.product {
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    clear: none !important;
}

.lapatilla-offers-products ul.products li.product .product_wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lapatilla-offers-products ul.products li.product .product-content-wrap {
    flex: 1;
}

/* Keep every five-product row aligned even when the theme adds first/last classes. */
.lapatilla-offers-products ul.products li.product:nth-child(5n + 1) {
    grid-column: 1;
}

.lapatilla-offers-products ul.products li.product:nth-child(5n + 2) {
    grid-column: 2;
}

.lapatilla-offers-products ul.products li.product:nth-child(5n + 3) {
    grid-column: 3;
}

.lapatilla-offers-products ul.products li.product:nth-child(5n + 4) {
    grid-column: 4;
}

.lapatilla-offers-products ul.products li.product:nth-child(5n + 5) {
    grid-column: 5;
}

/* Only the first DOM item belongs in the first desktop column. */
.lapatilla-offers-products ul.products li.product:nth-child(1) {
    clear: none !important;
    grid-column: 1 !important;
}

@media (max-width: 991px) {
    .lapatilla-offers-products ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lapatilla-offers-products ul.products li.product {
        grid-column: auto !important;
    }

    .lapatilla-offers-products ul.products li.product:nth-child(1) {
        grid-column: auto !important;
    }
}

@media (max-width: 600px) {
    .lapatilla-offers-products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .lapatilla-offers-products ul.products li.product {
        grid-column: auto !important;
    }
}

@media (min-width: 601px) and (max-width: 767px) {
    .lapatilla-offers-products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .lapatilla-offers-products ul.products li.product {
        grid-column: auto !important;
    }
}

/* Let short pages push the footer to the bottom without fixing it. */
html,
body {
    min-height: 100%;
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#wrapper_full {
    flex: 1 0 auto;
}

.custom-lapatilla-footer {
    flex-shrink: 0;
}
