/* =========================================================
   MARTISH THEME - HEADER STYLES
   ========================================================= */

/* ---------------------------------------------------------
   FONT FACE - GILROY
------- */
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/gilroy.eot');
    src: url('../fonts/gilroy.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Light.otf') format('OpenType');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-ExtraBold.otf') format('OpenType');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}


/* ---------------------------------------------------------
   ROOT VARIABLES
--------------------------------------------------------- */
:root {
    --martish-dark: #1c1c1c;
    --martish-green: #5cb85c;
    /*--martish-orange: #f8a51b;*/
    --martish-orange: #ff7100;
    --martish-white: #ffffff;
    --martish-text: #1c1c1c;
    --martish-muted: #8a8a8a;
    --martish-border: rgba(255, 255, 255, 0.08);
    --martish-font: 'Gilroy', 'Segoe UI', Arial, sans-serif;
    --header-height: 90px;

    /*--primary: #ffc222;*/
    /*--primary_hover: #eeac00;*/
    --primary: #ff7100;
    --primary_hover:#ff892a;
    --secondary: #00a149;
    --body: #808080;
    --heading: #1e1d23;
    --light: #999999;
    --dark: #282828;
    --border: #e5e5e5;
    --background: #ffffff;
    --shopback: #fbf7e8;
}

body {
    font-family: var(--martish-font);
    color: var(--martish-text);
}

a {
    text-decoration: none;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

/* ---------------------------------------------------------
   TOP BAR
--------------------------------------------------------- */
.topbar {
    background-color: var(--martish-dark);
    color: var(--martish-white);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.topbar .container {
    max-width: 1320px;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    flex-wrap: wrap;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.topbar-item a {
    color: var(--martish-white);
    font-weight: 600;
}

.topbar-item a:hover {
    color: var(--martish-orange);
}

.topbar-phone {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}

.topbar-icon {
    display: inline-flex;
    color: var(--martish-orange);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--martish-white);
    font-size: 14px;
}

.topbar-social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.topbar-social:hover {
    color: var(--martish-orange);
}


/* ---------------------------------------------------------
   MAIN HEADER
--------------------------------------------------------- */
.site-header {
    background-color: var(--martish-white);
    padding: 18px 0;
    position: relative;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.site-header .container {
    max-width: 1320px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 24px;
}

.site-logo img {
    max-height: 46px;
    width: auto;
}

.logo-text {
    font-family: var(--martish-font);
    font-weight: 800;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: baseline;
}

.logo-main {
    color: var(--martish-orange);
}

.logo-dot {
    color: var(--martish-orange);
    margin-left: 1px;
}


/* ---------------------------------------------------------
   PRIMARY NAVIGATION (desktop)
--------------------------------------------------------- */
.main-menu {
    display: flex;
    align-items: center;
    gap: 34px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--martish-text);
    font-weight: 700;
    font-size: 16px;
    padding: 10px 0;
    text-transform: capitalize;
}

.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a,
.main-menu > li.current_page_item > a {
    color: var(--martish-orange);
}

/* dropdown caret */
.main-menu li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 2px;
    margin-top: -4px;
    transition: transform 0.25s ease;
    opacity: 0.65;
}

.main-menu li.menu-item-has-children:hover > a::after {
    transform: rotate(225deg);
    margin-top: 4px;
}

/* dropdown panel (desktop) */
.main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: var(--martish-white);
    list-style: none;
    margin: 0;
    padding: 12px 0;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 100;
}

.main-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu .sub-menu li {
    position: relative;
}

.main-menu .sub-menu a {
    display: block;
    padding: 9px 22px;
    color: var(--martish-text);
    font-weight: 600;
    font-size: 14.5px;
    white-space: nowrap;
}

.main-menu .sub-menu a:hover {
    color: var(--martish-orange);
    background-color: rgba(92, 184, 92, 0.08);
}

/* nested sub-menu */
.main-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}


/* ---------------------------------------------------------
   HEADER RIGHT: ORDER INFO + ICONS
--------------------------------------------------------- */
.header-right {
    flex-shrink: 0;
    gap: 28px;
}

.header-order {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-order-icon {
    color: var(--martish-orange);
    display: inline-flex;
    flex-shrink: 0;
}

.header-order-icon svg {
    width: 40px;
    height: 40px;
}

.header-order-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.header-order-label {
    font-size: 12.5px;
    color: var(--martish-muted);
    font-weight: 600;
}

.header-order-number {
    font-size: 19px;
    font-weight: 800;
    color: var(--martish-orange);
    letter-spacing: 0.01em;
}

.header-order-number:hover {
    color: var(--martish-orange);
}

/* icon buttons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--martish-text);
    background-color: transparent;
    border: 1.5px solid #eaeaea;
    flex-shrink: 0;
}

.header-icon-btn:hover {
    background-color: var(--martish-orange);
    border-color: var(--martish-orange);
    color: var(--martish-white);
}

.header-icon-badge {
    overflow: visible;
}

.badge-count {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background-color: var(--martish-orange);
    color: var(--martish-dark);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--martish-white);
}


/* ---------------------------------------------------------
   MOBILE TOGGLER
--------------------------------------------------------- */
.navbar-toggler {
    border: 1.5px solid #eaeaea;
    border-radius: 8px;
    padding: 8px 10px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(92, 184, 92, 0.25);
}

.navbar-toggler-icon {
    width: 22px;
    height: 18px;
    background-image: none;
    position: relative;
    display: inline-block;
}

.navbar-toggler-icon,
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    background-color: var(--martish-text);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
}

.navbar-toggler-icon {
    height: 2px;
    top: 8px;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}


/* ---------------------------------------------------------
   MOBILE OFFCANVAS MENU
--------------------------------------------------------- */
.martish-mobile-menu {
    width: 300px;
}

.martish-mobile-menu .offcanvas-header {
    border-bottom: 1px solid #eee;
    padding: 18px 20px;
}

.martish-mobile-menu .offcanvas-body {
    padding: 20px;
}

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    color: var(--martish-text);
    font-weight: 700;
    font-size: 16px;
}

.mobile-menu > li > a:hover,
.mobile-menu > li.current-menu-item > a {
    color: var(--martish-orange);
}

.mobile-menu .sub-menu {
    list-style: none;
    margin: 0 0 8px 0;
    padding: 0 0 0 14px;
    display: none;
}

.mobile-menu li.menu-item-has-children.menu-open > .sub-menu {
    display: block;
}

.mobile-menu .sub-menu a {
    display: block;
    padding: 9px 0;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--martish-muted);
}

.mobile-menu .sub-menu a:hover {
    color: var(--martish-orange);
}

.mobile-menu li.menu-item-has-children > a::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    opacity: 0.6;
    flex-shrink: 0;
}

.mobile-menu li.menu-item-has-children.menu-open > a::after {
    transform: rotate(225deg);
}

.mobile-order {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-order .header-order-number {
    font-size: 20px;
}


/* ---------------------------------------------------------
   SEARCH MODAL
--------------------------------------------------------- */
.martish-search-modal .modal-content {
    border: none;
    border-radius: 10px;
    padding: 10px;
}

.martish-search-modal .btn-close {
    position: absolute;
    top: -42px;
    right: 0;
    filter: invert(1);
    opacity: 0.85;
}

.martish-search-form {
    display: flex;
    align-items: center;
    border: 2px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.martish-search-form .form-control {
    border: none;
    box-shadow: none;
    padding: 16px 20px;
    font-size: 16px;
}

.martish-search-form .form-control:focus {
    box-shadow: none;
}

.martish-search-form .search-submit {
    border: none;
    background-color: var(--martish-orange);
    color: var(--martish-white);
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .header-order {
        display: none !important;
    }

    .header-right {
        gap: 14px;
    }
}

@media (max-width: 991.98px) {
    .topbar-left {
        gap: 16px;
    }

    .topbar-item.topbar-location {
        display: none;
    }

    .header-right {
        display: none !important;
    }

    .main-nav {
        justify-content: space-between;
    }

    .logo-text {
        font-size: 28px;
    }
}

@media (max-width: 575.98px) {
    .topbar-phone {
        font-size: 11px;
    }

    .topbar-right {
        gap: 8px;
    }

    .site-header {
        padding: 14px 0;
    }
}
