/* ========================================== */
/* CRAZY STORE CUSTOM HEADER CSS */
/* ========================================== */

/* Prevent horizontal overflow globally */
html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ==================== DESKTOP HEADER ==================== */

/* Main header with dark background */
.crazy-custom-header {
    position: relative;
    overflow-y: hidden !important;
}

.crazy-desktop-header {
    display: block;
}

.crazy-main-header-row {
    background-color: #2b2b2b;
    padding: 10px 0;
    overflow-x: hidden;
}

.crazy-main-header-row .container {
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* SINGLE ROW HEADER - All elements in one line */
.crazy-header-container-single-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    max-width: 100%;
    overflow: hidden;
}

/* Logo Section - Larger size */
.crazy-header-logo {
    flex: 0 0 auto;
    margin-left: 0;
    margin-right: 0;
}

.crazy-header-logo .custom-logo {
    max-height: 80px;
    /* Increased from 55px */
    width: auto;
}

.crazy-header-logo .site-title a {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

/* Search Bar Section - Flexible width to prevent overflow */
.crazy-header-search {
    flex: 1 1 auto;
    max-width: 600px;
    min-width: 280px;
}

/* ... existing search styles ... */

/* Search Bar Section - Optimal width for UX */
.crazy-header-search #search-box {
    width: 100%;
}

.crazy-header-search #search-form {
    background-color: #ffffff;
    /* White background */
    border-radius: 8px;
    border: 1px solid #ffffff;
    display: flex !important;
    overflow: hidden;
    align-items: stretch;
    height: 46px;
    /* Reduced from 54px */
}

/* ... search input styles ... */
.crazy-header-search #search-text {
    background-color: transparent;
    color: #333333;
    /* Dark text for white bg */
    border: none;
    padding: 0 15px;
    flex: 1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 15px;
    min-width: 180px;
}

.crazy-header-search #search-text::placeholder {
    color: #888888;
}

.crazy-header-search .vert-brd {
    width: 1px;
    background-color: #e0e0e0;
    /* Lighter divider */
}

.crazy-header-search select {
    background-color: transparent;
    color: #333333;
    /* Dark text */
    border: none;
    padding: 0 15px;
    display: block !important;
    visibility: visible !important;
    max-width: 180px;
    font-size: 14px;
    cursor: pointer;
    height: 100%;
}

.crazy-header-search select option {
    background-color: #ffffff;
    color: #333333;
    font-size: 13px;
}

.crazy-header-search #search-button {
    background-color: #ff0d0c;
    /* User requested Red */
    border: none;
    color: white;
    padding: 0;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    font-size: 0;
    width: 55px;
    height: 100% !important;
    /* Force match container height */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.crazy-header-search #search-button:hover {
    background-color: #ff3030;
    /* Lighter red on hover */
}

/* Show only the icon */
/* Show only the icon - SVG White Icon */
.crazy-header-search #search-button::before {
    content: "";
    width: 20px;
    height: 20px;
    display: inline-block;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="white" stroke-width="3"><path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" /></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Navigation Menu - Inline with header */
.crazy-header-nav-inline {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin-left: 0;
}

.crazy-header-nav-inline .big-store-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.crazy-header-nav-inline .big-store-menu li {
    margin: 0;
}

.crazy-header-nav-inline .big-store-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s;
    white-space: nowrap;
    position: relative;
    padding-bottom: 5px;
}

/* Animated underline that grows from left to right */
.crazy-header-nav-inline .big-store-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff0d0c;
    transition: width 0.3s ease-in-out;
}

.crazy-header-nav-inline .big-store-menu a:hover::after,
.crazy-header-nav-inline .big-store-menu .current-menu-item a::after {
    width: 100%;
}

.crazy-header-nav-inline .big-store-menu a:hover,
.crazy-header-nav-inline .big-store-menu .current-menu-item a {
    color: #ff0d0c;
    /* Updated Red */
}

/* Hide menu toggle button in inline nav */
.crazy-header-nav-inline .menu-toggle {
    display: none !important;
}

/* Hide MI CUENTA from nav if it appears */
.crazy-header-nav-inline .menu-item-352 {
    display: none !important;
}

/* Flash Sale Countdown Button - Compact */
.crazy-header-countdown {
    flex: 0 0 auto;
    margin-left: 0;
    margin-right: 0;
}

.crazy-header-countdown .container-banner-ofertas {
    margin: 0;
}

/* Banner styles are in oferta-relampago.css */

/* Icons Group - Closer together */
.crazy-header-icons {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    /* Increased gap */
    margin-right: 0;
    margin-left: 0;
}

/* Reorder icons: Cart first, then Login/Account */
.crazy-header-icons .woofc-menu-item {
    order: 1;
}

.crazy-header-icons .header-icon {
    order: 2;
}

/* Common Button Style for Login, Account, Wishlist, Cart */
.crazy-header-icons .header-icon a,
.crazy-header-icons .woofc-menu-item a {
    color: #ffffff !important;
    font-size: 18px !important;
    /* Slightly smaller icon to fit button */
    text-decoration: none;
    transition: all 0.3s ease;

    /* Button Look */
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #4a4a4a !important;
    border-radius: 50% !important;
    /* Perfect circle */
    background-color: #333333;
}

.crazy-header-icons .header-icon a:hover,
.crazy-header-icons .woofc-menu-item a:hover {
    color: #ffffff !important;
    background-color: #ff0d0c !important;
    /* Match Search Button Red */
    border-color: #ff0d0c !important;
}

/* Specific adjustment for plugin cart item to reset margins */
.crazy-header-icons .woofc-menu-item {
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide text/price, show only bubble */
.crazy-header-icons .woofc-menu-item .woofc-menu-item-inner-subtotal,
.crazy-header-icons .woofc-menu-item .woocommerce-Price-amount {
    display: none !important;
}

/* Adjust bubble count position and center the icon */
.crazy-header-icons .woofc-menu-item-inner {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Ensure icons inside are centered */
.crazy-header-icons i,
.crazy-header-icons .th-icon,
.crazy-header-icons .woofc-icon-cart4 {
    line-height: 1 !important;
    font-size: 18px !important;
    margin: 0 !important;
}

/* Cart count badge */
.crazy-header-icons .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff0000;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 4px;
}

/* Hide cart count if zero */
.crazy-header-icons .cart-count[data-count="0"] {
    display: none;
}

.crazy-header-icons .tooltiptext {
    display: none;
}

/* Hide wishlist icon, keep only login and cart */
.crazy-header-icons .header-icon .whishlist {
    display: none !important;
}

/* [REMOVED] Old .cart-icon styles. We now specific styles for .woofc-menu-item above. */

/* OLD Navigation Menu Row - NOT USED ANYMORE (using inline nav instead) */
.crazy-navigation-row {
    display: none !important;
}

/* ==================== MOBILE HEADER ==================== */

.crazy-mobile-header {
    display: none;
    background-color: #2b2b2b;
    /* Match desktop header */
}

.crazy-mobile-header .container {
    padding: 0 15px;
}

.crazy-mobile-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #3a3a3a;
}

/* Mobile Logo - Left aligned */
.crazy-mobile-logo {
    flex: 0 0 auto;
    order: 1;
}

.crazy-mobile-logo .custom-logo {
    max-height: 45px;
    width: auto;
}

.crazy-mobile-logo .site-title a {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
}

/* Mobile Search - Center, grows to fill space */
.crazy-mobile-search {
    flex: 1 1 auto;
    order: 2;
    padding: 0;
    /* Remove padding, it's inline now */
}

.crazy-mobile-search #search-form {
    display: flex;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    height: 38px;
}

.crazy-mobile-search select {
    background-color: transparent;
    color: #333333;
    border: none;
    padding: 0 8px;
    font-size: 12px;
    max-width: 120px;
    flex-shrink: 0;
}

.crazy-mobile-search #search-text {
    flex: 1;
    min-width: 100px;
    padding: 8px 12px;
    border: none;
    font-size: 14px;
}

.crazy-mobile-search #search-button {
    background-color: #ff0d0c;
    color: white;
    border: none;
    padding: 0;
    width: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.crazy-mobile-search #search-button::before {
    content: "";
    width: 18px;
    height: 18px;
    display: inline-block;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="white" stroke-width="3"><path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" /></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Hamburger Menu Button - Right aligned */
.crazy-mobile-menu-toggle {
    flex: 0 0 auto;
    order: 3;
}

/* Hamburger Menu Button - refined */
/* Hamburger Menu Button - refined */
.crazy-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.crazy-menu-btn .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    /* White on dark background */
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Force visibility of container if hidden by theme */
.responsive-main-header .menu-toggle,
.main-header-col3 .menu-toggle {
    display: block !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
}

/* Mobile Countdown - Full width, second row */
.crazy-mobile-countdown {
    width: 100%;
    padding: 10px 0;
    display: flex;
    justify-content: center;
}

/* =========================================
   Crazy Custom Sidebar Styles (Refined)
   ========================================= */

/* Overlay - The dark background */
.crazy-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Slightly darker for focus */
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.crazy-sidebar-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Panel - Auto Height Update */
.crazy-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 270px;
    max-width: 80vw;
    height: auto;
    /* Allow it to shrink */
    max-height: 90vh;
    /* Don't cover entire screen height */
    background: #ffffff;
    z-index: 99999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.15);
    /* Adjusted shadow */
    display: flex;
    flex-direction: column;
    border-bottom-right-radius: 12px;
    /* Smooth corner */
    overscroll-behavior: contain;
    /* Prevent scroll chaining */
}

.crazy-sidebar.is-active {
    transform: translateX(0);
}

/* Sidebar Header */
.crazy-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #D32F2F;
    /* Red header */
    border-bottom: 1px solid #c62828;
}

.crazy-sidebar-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    /* White text */
    letter-spacing: 1px;
}

.crazy-close-btn {
    background: #ffffff;
    border: none;
    color: #D32F2F;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* White circle */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.crazy-close-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Sidebar Content & Menu */
.crazy-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.crazy-mobile-nav {
    padding-top: 0;
    padding-bottom: 20px;
}

.crazy-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.crazy-menu-list li {
    border-bottom: 1px solid #f0f0f0;
    /* Subtle dividers */
}

.crazy-menu-list li:last-child {
    border-bottom: none;
}

.crazy-menu-list li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    /* Prepare for hover border */
}

/* Icons in menu (if any exist via plugins) */
.crazy-menu-list li a i {
    margin-right: 10px;
    color: #999;
    width: 20px;
    text-align: center;
}

/* Hover State */
.crazy-menu-list li a:hover {
    background: #fff5f5;
    /* Very light red bg */
    color: #D32F2F;
    border-left-color: #D32F2F;
    padding-left: 24px;
    /* Displacement effect */
    font-weight: 600;
}

/* Active State */
.crazy-menu-list li.current-menu-item>a,
.crazy-menu-list li.current_page_item>a {
    color: #D32F2F;
    font-weight: 700;
    border-left-color: #D32F2F;
    background: #fff5f5;
}

/* Cart Specific Item (Hide from list as it is in footer) */
.crazy-menu-list li.menu-item-cart,
.crazy-menu-list li.woofc-menu-item {
    display: none !important;
}

/* Sidebar Footer (Cart) */
.crazy-sidebar-footer {
    padding: 15px;
    background: #f9f9f9;
    border-top: 2px solid #D32F2F;
    /* Red top border */
    margin-top: auto;
    /* Push to bottom */
}

.crazy-cart-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    padding: 5px;
}

.crazy-cart-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.crazy-cart-icon {
    font-size: 20px;
    color: #999;
}

.crazy-cart-text {
    font-size: 15px;
    color: #333;
    font-weight: 700;
}

.crazy-cart-badge {
    background: #D32F2F;
    color: white;
    font-size: 12px;
    font-weight: bold;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-bar .sider-inner {
    padding: 20px;
}

.mobile-nav-bar .mobile-nav-tabs ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.mobile-nav-bar .mobile-nav-tabs li {
    flex: 1;
}

.mobile-nav-bar .mobile-nav-tabs a {
    display: block;
    padding: 10px;
    text-align: center;
    color: #333;
    text-decoration: none;
    border-bottom: 3px solid transparent;
}

.mobile-nav-bar .mobile-nav-tabs li.active a {
    color: #ff0d0c;
    border-bottom-color: #ff0d0c;
}

.mobile-nav-bar .big-store-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-bar .big-store-menu li {
    border-bottom: 1px solid #e0e0e0;
}

.mobile-nav-bar .big-store-menu a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
}

.mobile-nav-bar .big-store-menu a:hover {
    background-color: #f5f5f5;
    color: #ff0d0c;
}

/* Mobile menu panels */
.mobile-nav-bar .panel {
    display: block;
}

.mobile-nav-bar #mobile-nav-tab-category {
    display: none;
}

/* Product categories in mobile menu */
.mobile-nav-bar .product-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-bar .product-categories li {
    border-bottom: 1px solid #e0e0e0;
}

.mobile-nav-bar .product-categories a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
}

.mobile-nav-bar .product-categories a:hover {
    background-color: #f5f5f5;
    color: #ff0d0c;
}

.woofc-menu-item .woofc-menu-item-inner:after {
    left: 18px !important;
    top: -6px !important;
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */

/* Desktop "Danger Zone" - Scale down elements to prevent overflow */
@media screen and (min-width: 1321px) and (max-width: 1408px) {

    /* Reduce Logo Size */
    .crazy-header-logo {
        margin-right: 15px;
    }

    .crazy-header-logo .custom-logo {
        max-height: 65px;
        /* Reduced from 80px */
    }

    .crazy-header-logo .site-title a {
        font-size: 18px;
    }

    /* Reduce Search Bar Width slightly if needed, or let it flex */
    .crazy-header-search {
        min-width: 250px;
    }

    /* Compact Menu */
    .crazy-header-nav-inline {
        margin-left: 10px;
    }

    .crazy-header-nav-inline .big-store-menu {
        gap: 15px;
        /* Reduced from 25px */
    }

    .crazy-header-nav-inline .big-store-menu a {
        font-size: 13px;
        /* Reduced from 14px */
    }

    /* Compact Icons */
    .crazy-header-icons {
        gap: 10px;
        /* Reduced from 15px */
    }

    .crazy-header-icons .header-icon a,
    .crazy-header-icons .woofc-menu-item a {
        width: 35px;
        /* Reduced from 40px */
        height: 35px;
        font-size: 16px !important;
    }

    /* Ensure no wrapping happens here */
    .crazy-header-container-single-row {
        flex-wrap: nowrap;
    }
}

/* Hide mobile on desktop */
@media screen and (min-width: 1025px) {
    .crazy-mobile-header {
        display: none !important;
    }
}

/* Medium-large screens: 2-Row Layout 
   Row 1: Logo | Search | Icons
   Row 2: Menu | Countdown 
*/
@media screen and (min-width: 1025px) and (max-width: 1320px) {

    /* Enable wrapping */
    .crazy-header-container-single-row {
        flex-wrap: wrap;
        justify-content: space-between;
        /* Spread out top row */
    }

    /* --- ROW 1 --- */

    .crazy-header-logo {
        order: 1;
        margin-right: 15px;
        flex: 0 0 auto;
    }

    .crazy-header-search {
        order: 2;
        flex: 1 1 auto;
        /* Take available space */
        min-width: 300px;
        margin-right: 15px;
    }

    .crazy-header-icons {
        order: 3;
        flex: 0 0 auto;
        margin-left: 0;
    }

    /* FORCE LINE BREAK using pseudo-element */
    .crazy-header-container-single-row::after {
        content: "";
        display: block;
        width: 100%;
        order: 4;
        height: 0;
        /* Small spacer between rows */
    }

    /* --- ROW 2 --- */

    /* Center the bottom row elements */

    .crazy-header-nav-inline {
        order: 5;
        margin: 0 15px 0 auto;
        /* Push to center-right */
        flex: 0 1 auto;
    }

    .crazy-header-countdown {
        order: 6;
        width: auto;
        /* Reset full width */
        flex-basis: auto;
        margin: 0 auto 0 0;
        /* Push to center-left */
        flex: 0 1 auto;
    }
}

/* Show mobile, hide desktop */
@media screen and (max-width: 1024px) {
    .crazy-desktop-header {
        display: none !important;
    }

    .crazy-mobile-header {
        display: block !important;
    }
}

/* ========================================== */
/* END CRAZY CUSTOM HEADER CSS */
/* ========================================== */

/* ==================== STICKY HEADER STYLES ==================== */

/* Base sticky header - hidden by default */
.sticky-header {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background-color: #2b2b2b;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: top 0.3s ease-in-out;
}

/* Show sticky header when scrolled */
.sticky-header.is-visible {
    top: 0;
}

.sticky-header .container {
    max-width: 100%;
    padding: 10px 20px;
}

.sticky-header .container .sticky-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.sticky-header .container .sticky-header-bar .sticky-header-col1 {
    flex: 0 0 auto;
}

/* Logo in sticky header */
.sticky-header .container .sticky-header-bar .sticky-header-col1 img {
    max-height: 50px;
    width: auto;
}

.sticky-header .container .sticky-header-bar .sticky-header-col2 {
    flex: 1 1 auto;
    max-width: 600px;
}

.sticky-header .container .sticky-header-bar .sticky-header-col3 {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.machi-navbar .menu-item-480,
.machi-navbar .menu-item-350 {
    display: none;
}

.machi-sticky_searchbox #search-box #search-form {
    display: flex;
}

/************** TOP-BAR USDT in HEADER **************/
@media (max-width: 768px) {
    .usdt-text-desktop {
        display: none !important;
    }

    .usdt-text-mobile {
        display: inline !important;
    }

    .usdt-topbar {
        padding: 6px 0 !important;
    }
}

/* ************************************************ */

@media screen and (max-width: 1024px) {
    .machi_sticky-header-bar {
        display: none;
    }
}

.machi_responsive-main-header {
    display: none;
}

@media screen and (max-width: 1024px) {
    .machi_responsive-main-header {
        display: block;
    }
}

/******************* Sticky Header Styles in MOBILE *******************/
@media screen and (max-width: 767px) {
    .machi_responsive-main-header .main-header-col1 {
        padding: 0 !important;
    }
}

@media screen and (max-width: 1024px) {
    .machi_responsive-main-header .main-header-col1 {
        flex: 1;
    }
}

@media screen and (max-width: 1024px) {
    .machi_responsive-main-header .main-header-col1 {
        order: inherit;
    }
}

@media screen and (max-width: 767px) {
    .machi_responsive-main-header .main-header-col2 {
        padding-top: 0;
        padding-bottom: 15px;
        width: 100%;
        order: 3 !important;
        flex: auto;
    }
}

@media screen and (max-width: 1024px) {
    .machi_responsive-main-header .main-header-col3 {
        width: auto;
        order: inherit;
        flex: 2;
        text-align: right;
    }
}

@media screen and (max-width: 1024px) {

    .machi_responsive-main-header #search-form {
        display: flex;
    }

}

@media screen and (max-width: 767px) {
    .machi_responsive-main-header .main-header-col1 .custom-logo {
        max-width: 75px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .machi_responsive-main-header .main-header-col3 {
        order: 3;
        flex: 3;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .machi_responsive-main-header .main-header-col3 {
        width: auto;
        order: 3 !important;
        flex: 1;
    }
}

/* ==================== MOBILE LAYOUT UPDATES ==================== */
@media screen and (max-width: 1024px) {
    .responsive-main-header .main-header-bar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 10px;
    }

    /* Row 1, Item 1: Logo */
    .responsive-main-header .main-header-col1 {
        order: 1;
        flex: 0 0 auto;
        padding-right: 10px;
    }

    /* Row 1, Item 2: Search */
    .responsive-main-header .main-header-col2 {
        order: 2;
        flex: 1 1 auto;
        display: block !important;
        /* Force visible */
        max-width: none;
    }

    /* Scale search bar down for mobile */
    .responsive-main-header #search-form {
        height: 35px;
        /* Compact height */
        margin-bottom: 0;
    }

    .responsive-main-header #search-text {
        height: 100%;
        padding: 0 10px;
        font-size: 13px;
    }

    .responsive-main-header #search-button {
        height: 35px !important;
        width: 40px;
        padding: 0;
    }

    /* Row 1, Item 3: Menu/Icons */
    .responsive-main-header .main-header-col3 {
        order: 3;
        flex: 0 0 auto;
        padding-left: 10px;
    }

    /* Row 2: Countdown */
    .responsive-main-header .container-banner-ofertas {
        order: 4;
        width: 100%;
        flex: 0 0 100%;
        margin-top: 10px;
        display: flex;
        justify-content: center;
    }
}