/*
Theme Name: Magniflex Modern
Author: Magniflex
Description: Lightweight modern WooCommerce theme.
Version: 1.0.0
Text Domain: magniflex-modern
*/

:root {
    --mf-text: #202020;
    --mf-muted: #777;
    --mf-border: #e7e7e7;
    --mf-background: #fff;
    --mf-soft: #f7f7f5;
    --mf-max-width: 1440px;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--mf-background);
    color: var(--mf-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

#main-content {
    min-height: 60vh;
}


/* =========================================================
   HEADER
   ========================================================= */

.mf-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--mf-border);
}

.mf-header-inner {
    max-width: var(--mf-max-width);
    min-height: 88px;
    margin: 0 auto;
    padding: 0 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.mf-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.mf-logo img {
    display: block;
    width: 166px;
    height: auto;
}


/* ---------------------------------------------------------
   NAVIGATION
   --------------------------------------------------------- */

.mf-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    flex: 1;
}

.mf-navigation a {
    position: relative;

    padding: 34px 0;

    color: #222;
    text-decoration: none;

    font-size: 13px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;

    transition: color .2s ease;
}

.mf-navigation a::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 25px;

    height: 1px;

    background: #222;

    transform: scaleX(0);
    transform-origin: center;

    transition: transform .2s ease;
}

.mf-navigation a:hover {
    color: #000;
}

.mf-navigation a:hover::after {
    transform: scaleX(1);
}


/* ---------------------------------------------------------
   HEADER ACTIONS
   --------------------------------------------------------- */

.mf-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 0 0 auto;
}

.mf-action,
.mf-search-toggle,
.mf-mobile-toggle {
    color: #222;
}

.mf-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 500;
}

.mf-cart-count {
    min-width: 18px;
    height: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #222;
    color: #fff;

    font-size: 10px;
    line-height: 1;
}


/* ---------------------------------------------------------
   SEARCH ICON
   --------------------------------------------------------- */

.mf-search-toggle {
    width: 24px;
    height: 24px;

    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.mf-search-icon {
    position: relative;

    display: block;

    width: 16px;
    height: 16px;

    border: 1.5px solid #222;
    border-radius: 50%;
}

.mf-search-icon::after {
    content: "";

    position: absolute;

    width: 7px;
    height: 1.5px;

    right: -5px;
    bottom: -3px;

    background: #222;

    transform: rotate(45deg);
    transform-origin: left center;
}


/* ---------------------------------------------------------
   CART ICON
   --------------------------------------------------------- */

.mf-cart-icon {
    position: relative;

    display: block;

    width: 18px;
    height: 15px;

    border: 1.5px solid #222;
    border-top: 0;
}

.mf-cart-icon::before {
    content: "";

    position: absolute;

    width: 8px;
    height: 5px;

    left: 3px;
    top: -5px;

    border: 1.5px solid #222;
    border-bottom: 0;
}

.mf-cart-icon::after {
    content: "••";

    position: absolute;

    left: 2px;
    bottom: -9px;

    font-size: 10px;
    letter-spacing: 7px;
}


/* ---------------------------------------------------------
   MOBILE MENU BUTTON
   --------------------------------------------------------- */

.mf-mobile-toggle {
    display: none;

    width: 28px;
    height: 22px;

    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.mf-mobile-toggle span {
    display: block;

    width: 100%;
    height: 1px;

    margin-bottom: 6px;

    background: #222;
}


/* =========================================================
   GENERAL CONTENT
   ========================================================= */

.mf-container {
    max-width: var(--mf-max-width);
    margin: 0 auto;
    padding: 60px 32px;
}

.mf-page h1,
.mf-container > article > h1 {
    margin: 0 0 35px;

    font-size: clamp(34px, 4vw, 54px);
    font-weight: 400;
    line-height: 1.1;
}


/* =========================================================
   FOOTER
   ========================================================= */

.mf-footer {
    margin-top: 80px;
    border-top: 1px solid var(--mf-border);
    background: var(--mf-soft);
}

.mf-footer-inner {
    max-width: var(--mf-max-width);
    margin: 0 auto;
    padding: 45px 32px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    color: var(--mf-muted);
    font-size: 13px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .mf-header-inner {
        padding: 0 25px;
        gap: 25px;
    }

    .mf-navigation {
        gap: 22px;
    }

    .mf-navigation a {
        font-size: 12px;
    }

    .mf-cart-label {
        display: none;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .mf-header-inner {
        min-height: 72px;
        padding: 0 18px;
    }

    .mf-logo img {
        width: 135px;
    }

    .mf-navigation {
        display: none;
    }

    .mf-actions {
        gap: 18px;
    }

    .mf-search-toggle {
        display: block;
    }

    .mf-mobile-toggle {
        display: block;
    }

    .mf-cart {
        gap: 0;
    }

    .mf-cart-count {
        position: relative;
        top: -8px;
        left: -4px;
    }

    .mf-container {
        padding: 40px 20px;
    }

    .mf-footer-inner {
        padding: 30px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


/* =========================================================
   INTERACTIVE NAVIGATION
   ========================================================= */

@media (max-width: 760px) {

    .mf-navigation.mf-navigation-open {
        display: flex;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        z-index: 999;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 10px 18px 20px;

        background: #fff;
        border-bottom: 1px solid var(--mf-border);
        box-shadow: 0 10px 25px rgba(0,0,0,.06);
    }

    .mf-navigation.mf-navigation-open a {
        display: block;
        padding: 15px 0;

        font-size: 13px;
    }

    .mf-navigation.mf-navigation-open a::after {
        display: none;
    }

    body.mf-mobile-menu-open {
        overflow: hidden;
    }
}


/* ---------------------------------------------------------
   SEARCH OVERLAY
   --------------------------------------------------------- */

.mf-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: none;

    background: rgba(255,255,255,.97);
}

.mf-search-overlay.mf-search-overlay-open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.mf-search-overlay-inner {
    width: 100%;
    max-width: 900px;
    padding: 140px 30px 40px;
}

.mf-search-overlay form {
    position: relative;

    display: flex;
    align-items: center;

    border-bottom: 1px solid #222;
}

.mf-search-overlay input[type="search"] {
    flex: 1;

    width: 100%;
    height: 60px;

    padding: 0 50px 0 0;

    border: 0;
    outline: 0;
    background: transparent;

    color: #222;

    font-size: 28px;
    font-weight: 400;
}

.mf-search-overlay input[type="search"]::placeholder {
    color: #999;
}

.mf-search-overlay button[type="submit"] {
    flex: 0 0 auto;

    height: 42px;
    padding: 0 20px;

    border: 0;
    background: #222;
    color: #fff;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;

    cursor: pointer;
}

.mf-search-close {
    position: absolute;
    top: -70px;
    right: 0;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;
    background: transparent;

    color: #222;

    font-size: 34px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
}

@media (max-width: 600px) {

    .mf-search-overlay-inner {
        padding: 100px 20px 30px;
    }

    .mf-search-overlay input[type="search"] {
        font-size: 22px;
        height: 52px;
    }

    .mf-search-overlay button[type="submit"] {
        padding: 0 14px;
    }
}
