/* ==========================================================================
   Global Reset & Utility Tweaks
   ========================================================================== */
*:focus {
    outline: none !important;
}

#primary, #secondary {
    margin: 2em 0;
}

#super {
    vertical-align: super;
    font-size: 14px;
}

/* Modernized Minimalist Checkboxes */
input[type='checkbox'] {
    width: 14px !important;
    height: 14px !important;
    margin: 5px;
    -webkit-appearance: none;
    appearance: none;
    outline: 2px solid var(--ast-global-color-1);
    outline-offset: -2px;
    border-radius: 3px;
    box-shadow: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background-color: var(--ast-global-color-1);
    transform: scale(0.95);
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

/* Search Form Modernization */
.ast-header-search .ast-search-menu-icon.ast-dropdown-active .search-field {
    font-size: 1.1em;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
}

/* Sidebar Layout handling */
.ast-right-sidebar #primary { border-right: 1px solid var(--ast-global-color-7); padding-right: 20px; }
.ast-right-sidebar #secondary { border-left: 1px solid var(--ast-global-color-7); padding-left: 20px; }
.ast-left-sidebar #primary { border-left: 1px solid var(--ast-global-color-7); padding-left: 20px; }
.ast-left-sidebar #secondary { border-right: 1px solid var(--ast-global-color-7); padding: 0 20px; }

div.ast-blog-featured-section.post-thumb.ast-width-md-6 { flex: 1; }
div.post-content.ast-width-md-6 { flex: 2; }

/* Lists and Menus */
ul#m-range { margin: 0 1em; }
ul#m-range li { text-align: left; }

/* Plugins & Overrides (Cookie Banners, Drawer) */
div#cmplz-document.cmplz-document.cookie-statement.cmplz-document-eu { max-width: unset; }
#cmplz-document p { font-size: 16px; }
p.madewith { display: none !important; }

div.astra-cart-drawer-title,
svg.ast-mobile-svg.ast-close-svg {
    color: var(--ast-global-color-1) !important;
}

/* ==========================================================================
   Mobile-Responsive Rules Engine
   ========================================================================== */
@media only screen and (max-width: 767px) {
    div#primary.content-area.primary,
    div#secondary.widget-area.secondary {
        border: 0px !important;
        padding: 0 !important;
    }
    
    div#secondary.widget-area.secondary {
        position: unset !important;
    }
    
    .ast-left-sidebar #content > .ast-container {
        flex-direction: column;
    }
}
