
/* ==========================================================
   FariHost live fixes â€” colors, mobile nav, cart responsive
   ========================================================== */

/* Fix empty logged-in marketing text rule */
body.fh-logged-in:not(.fh-ca-shell) .main-content,
body.fh-logged-in:not(.fh-ca-shell) .main-content p,
body.fh-logged-in:not(.fh-ca-shell) .main-content li,
body.fh-logged-in:not(.fh-ca-shell) .main-content div,
body.fh-logged-in:not(.fh-ca-shell) .main-content span:not(.badge):not(.label):not(.status),
body.fh-logged-in:not(.fh-ca-shell) .main-content h1,
body.fh-logged-in:not(.fh-ca-shell) .main-content h2,
body.fh-logged-in:not(.fh-ca-shell) .main-content h3,
body.fh-logged-in:not(.fh-ca-shell) .main-content h4 {
    color: var(--fh-text) !important;
}

/* Mobile / tablet collapsed navbar */
@media (max-width: 991px) {
    .fh-site-header .navbar-collapse {
        margin: 0 -15px 12px !important;
        padding: 12px 10px 18px !important;
        border-top: 1px solid rgba(255, 255, 255, .12) !important;
        background: linear-gradient(180deg, rgba(5, 17, 61, .98), rgba(19, 0, 63, .98)) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06) !important;
    }

    .fh-primary-menu > li > a,
    .fh-action-menu > li > a {
        color: #f1f5ff !important;
        padding: 14px 16px !important;
        border-radius: 12px !important;
    }

    .fh-primary-menu > li > a:hover,
    .fh-action-menu > li > a:hover,
    .fh-primary-menu > li.open > a,
    .fh-action-menu > li.open > a {
        color: #fff !important;
        background: rgba(255, 255, 255, .10) !important;
    }

    .fh-primary-menu .dropdown-menu,
    .fh-primary-menu .fh-dropdown-menu,
    .fh-action-menu .dropdown-menu {
        position: static !important;
        float: none !important;
        display: none;
        width: 100% !important;
        margin: 4px 0 8px !important;
        padding: 8px !important;
        border: 1px solid rgba(255, 255, 255, .12) !important;
        border-radius: 14px !important;
        background: rgba(255, 255, 255, .96) !important;
        box-shadow: 0 12px 28px rgba(2, 6, 23, .18) !important;
    }

    .fh-primary-menu .dropdown.open > .dropdown-menu,
    .fh-primary-menu .dropdown.open > .fh-dropdown-menu,
    .fh-action-menu .dropdown.open > .dropdown-menu {
        display: block !important;
    }

    .fh-primary-menu .dropdown-menu > li > a,
    .fh-primary-menu .fh-dropdown-menu > li > a,
    .fh-action-menu .dropdown-menu > li > a {
        color: var(--fh-text) !important;
        padding: 11px 14px !important;
        border-radius: 10px !important;
        font-weight: 700 !important;
    }

    .fh-primary-menu .dropdown-menu > li > a:hover,
    .fh-primary-menu .fh-dropdown-menu > li > a:hover,
    .fh-action-menu .dropdown-menu > li > a:hover {
        color: var(--fh-blue) !important;
        background: rgba(37, 99, 235, .08) !important;
    }

    .fh-nav-cta {
        display: block !important;
        width: calc(100% - 32px) !important;
        margin: 10px 16px 6px !important;
        text-align: center !important;
    }

    .fh-toggle {
        border-color: rgba(255, 255, 255, .35) !important;
        background: rgba(255, 255, 255, .08) !important;
    }
}

/* Shopping cart â€” readable text on light panels */
body.fh-shopping-cart.fh-template {
    background: #f7f9ff !important;
    color: var(--fh-text) !important;
}

body.fh-shopping-cart #order-standard_cart,
body.fh-shopping-cart #order-standard_cart .panel,
body.fh-shopping-cart #order-standard_cart .panel-body,
body.fh-shopping-cart #order-standard_cart .list-group-item,
body.fh-shopping-cart #order-standard_cart .cart-sidebar .panel-heading,
body.fh-shopping-cart #order-standard_cart label,
body.fh-shopping-cart #order-standard_cart p,
body.fh-shopping-cart #order-standard_cart span:not(.badge):not(.label) {
    color: var(--fh-text) !important;
}

body.fh-shopping-cart #order-standard_cart .text-muted,
body.fh-shopping-cart #order-standard_cart small {
    color: var(--fh-muted) !important;
}

body.fh-shopping-cart #order-standard_cart .panel,
body.fh-shopping-cart #order-standard_cart .cart-sidebar .panel,
body.fh-shopping-cart #order-standard_cart .summary-container,
body.fh-shopping-cart #order-standard_cart .view-cart-items .item {
    background: #fff !important;
    border-color: var(--fh-border) !important;
}

body.fh-shopping-cart #order-standard_cart .sidebar-collapsed {
    background: #fff !important;
    color: var(--fh-text) !important;
}

body.fh-shopping-cart #order-standard_cart .sidebar-collapsed h3 {
    color: var(--fh-text) !important;
}

body.fh-shopping-cart #order-standard_cart .form-control {
    background: #fff !important;
    color: var(--fh-text) !important;
    border-color: var(--fh-border) !important;
}

body.fh-shopping-cart .fh-main-body .breadcrumb,
body.fh-shopping-cart .fh-main-body .breadcrumb a,
body.fh-shopping-cart .fh-main-body .breadcrumb > li + li:before {
    color: var(--fh-muted) !important;
}

@media (max-width: 767px) {
    body.fh-shopping-cart .fh-main-body > .container,
    body.fh-shopping-cart .fh-main-body > .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.fh-shopping-cart #order-standard_cart {
        padding-bottom: 24px !important;
    }
}
