/* ================================================================
   EverythingKuwait — Professional Header & Footer
   v2 — fixes dropdown z-index & newsletter layout
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Tokens ── */
:root {
    --hf-black:   #0A0A0A;
    --hf-dark:    #181818;
    --hf-mid:     #5A5A5A;
    --hf-muted:   #9A9A9A;
    --hf-light:   #EBEBEB;
    --hf-bg:      #F5F5F3;
    --hf-white:   #FFFFFF;
    --hf-accent:  #D93025;
    --hf-primary: #09b1ba;
    --hf-primary-dark: #078a92;
    --hf-ease:    cubic-bezier(.4,0,.2,1);
    --hf-spring:  cubic-bezier(.175,.885,.32,1.275);
    --hf-dur:     .2s;
}

/* ================================================================
   ① TOP ANNOUNCEMENT BAR
   ================================================================ */
.top-bar {
    background: var(--hf-accent) !important;
    min-height: 38px;
    display: flex;
    align-items: center;
    border-bottom: none !important;
    /* NO position:relative here — keep natural stacking */
}
.top-bar .container {
    display: flex;
    align-items: center;
    width: 100%;
}
.top-bar .row {
    width: 100%;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
}

/* Left nav */
.top-bar .col-left .navbar-nav {
    flex-direction: row;
    gap: 0;
    padding: 0; margin: 0;
    list-style: none;
}
.top-bar .col-left .nav-item { list-style: none; }
.top-bar .col-left .nav-link {
    font-family: 'Inter', sans-serif;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .05em;
    color: #fff !important;
    padding: 5px 11px !important;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--hf-dur), background var(--hf-dur);
}
.top-bar .col-left .nav-link:hover {
    color: #fff !important;
    background: rgba(0,0,0,.18);
}

/* Right nav */
.top-bar .col-right { display: flex; justify-content: flex-end; }
.top-bar .col-right .navbar-nav {
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0; margin: 0;
    list-style: none;
}
.top-bar .col-right .nav-item { list-style: none; position: relative; }
.top-bar .col-right .nav-link {
    font-family: 'Inter', sans-serif;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .04em;
    color: #fff !important;
    padding: 5px 11px !important;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color var(--hf-dur), background var(--hf-dur);
    display: flex;
    align-items: center;
    gap: 5px;
}
.top-bar .col-right .nav-link:hover {
    color: #fff !important;
    background: rgba(0,0,0,.18);
}
/* Arrow icon — override style-1.7.css which sets .nav-link i { color:#888 } */
.top-bar .navbar-nav .nav-item .nav-link i.icon-arrow-down,
.top-bar .icon-arrow-down {
    font-size: .75rem !important;
    opacity: 1 !important;
    margin-left: 5px !important;
    margin-right: 0 !important;
    transition: transform var(--hf-dur);
    display: inline-block;
    color: #ffffff !important;
}
.top-bar .dropdown.show .icon-arrow-down { transform: rotate(180deg); }

/* Top-bar dropdowns — CRITICAL z-index fix */
.top-bar .dropdown { position: relative; }
/* Kill any Bootstrap transform/animation that shifts the menu */
.top-bar .dropdown-menu.show {
    transform: none !important;
    animation: none !important;
    transition: none !important;
}
.top-bar .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: auto !important;
    right: 0 !important;
    z-index: 99999 !important;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06);
    padding: 6px;
    min-width: 110px;
    display: none;
    margin: 0 !important;
}
.top-bar .dropdown.show .dropdown-menu { display: block; }

/* Dropdown items */
.top-bar .dropdown-menu a,
.top-bar .dropdown-menu .dropdown-item {
    font-family: 'Inter', sans-serif;
    font-size: .7rem;
    font-weight: 400;
    color: var(--hf-dark) !important;
    border-radius: 6px;
    padding: 5px 10px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background var(--hf-dur), color var(--hf-dur);
    cursor: pointer;
    white-space: nowrap;
}
.top-bar .dropdown-menu a:hover,
.top-bar .dropdown-menu .dropdown-item:hover {
    background: var(--hf-bg);
    color: var(--hf-black) !important;
}
.top-bar .dropdown-menu a.selected {
    color: var(--hf-primary) !important;
    font-weight: 600;
}

/* Currency form buttons */
.currency-dropdown ul {
    list-style: none;
    padding: 0; margin: 0;
}
.currency-dropdown ul li button {
    font-family: 'Inter', sans-serif !important;
    font-size: .73rem !important;
    color: var(--hf-dark) !important;
    border-radius: 7px !important;
    padding: 7px 13px !important;
    width: 100%;
    text-align: left;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background var(--hf-dur), color var(--hf-dur);
    line-height: 1.4;
    margin: 0;
}
.currency-dropdown ul li button:hover {
    background: var(--hf-bg) !important;
    color: var(--hf-black) !important;
}

/* Profile avatar */
.top-bar .a-profile {
    display: flex !important;
    align-items: center;
    gap: 6px;
}
.top-bar .a-profile img {
    width: 22px; height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255,255,255,.25);
    flex-shrink: 0;
}
/* Unread badge */
.top-bar .notification {
    background: var(--hf-accent);
    color: #fff;
    font-size: .5rem;
    font-weight: 700;
    border-radius: 50%;
    width: 15px; height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    position: absolute;
    top: 1px; right: 3px;
    pointer-events: none;
    box-shadow: 0 0 0 2px var(--hf-accent);
}
.top-bar .profile-dropdown .dropdown-menu a i {
    font-size: .78rem;
    color: var(--hf-muted);
    width: 16px;
    flex-shrink: 0;
}

/* Language flag */
.top-bar .flag {
    width: 16px; height: 11px;
    object-fit: cover;
    border-radius: 2px;
}


/* ================================================================
   ② MAIN MENU WRAPPER  — key: NO overflow:hidden, correct z-index
   ================================================================ */
#header {
    position: relative;
    z-index: 1000;
}
#header .main-menu {
    background: var(--hf-white) !important;
    border-bottom: none !important;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    /* NEVER set overflow:hidden here — it would clip dropdowns */
}
.container-fluid { overflow: visible !important; }

/* ── NAV TOP ROW (logo + search + actions) ── */
#header .nav-top {
    width: 100%;
    position: relative;
    z-index: 1001;   /* above .nav-main (z-index:999) so dropdowns clear it */
}
#header .nav-top > .container {
    padding-top: 0;
    padding-bottom: 0;
}
#header .nav-top > .container > .row {
    align-items: center;
    min-height: 66px;
    flex-wrap: nowrap;
}

/* ── LEFT COLUMN ── */
#header .nav-top-left { display: flex; align-items: center; }
#header .row-align-items-center {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px;
}

/* ── Logo ── */
#header .logo { flex-shrink: 0; }
#header .logo a {
    display: block;
    transition: opacity var(--hf-dur), transform var(--hf-dur) var(--hf-spring);
}
#header .logo a:hover { opacity: .82; transform: scale(1.04); }
#header .logo img { max-height: 56px; width: auto; display: block; }

/* ── Search bar ── */
#header .top-search-bar {
    flex: 1;
    min-width: 0;
    display: flex !important;
    align-items: center;
    height: 44px;
    background: var(--hf-white);
    border-radius: 10px;
    border: none !important;
    outline: none !important;
    overflow: visible !important;
    position: relative;
    transform-origin: center;
    transition:
        box-shadow var(--hf-dur),
        transform .28s cubic-bezier(.175,.885,.32,1.275);
}
#header .top-search-bar:hover {
    background: var(--hf-white);
}
#header .top-search-bar:focus-within {
    background: var(--hf-white);
}
/* form fills bar */
#header .top-search-bar .form_search_main {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
    margin: 0;
}

/* Category select pill — coloured pill to separate it visually from the input */
#header .top-search-bar .left {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 0;
    background: var(--hf-primary);
    border-radius: 10px 0 0 10px;
    border-right: 1.5px solid var(--hf-primary-dark);
}
#header .top-search-bar .search-select { position: relative; height: 100%; display: flex; align-items: center; }
#header .top-search-bar .search-select > .btn,
#header .top-search-bar .search-select .dropdown-toggle {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-family: 'Inter', sans-serif;
    font-size: .73rem;
    font-weight: 600;
    color: #ffffff !important;
    padding: 0 6px 0 8px !important;
    height: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    cursor: pointer;
    transition: color var(--hf-dur);
    letter-spacing: .02em;
    line-height: 1;
}
/* Show a custom chevron caret after the label */
#header .top-search-bar .search-select > .btn::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4.5px solid #ffffff;
    margin-left: 2px;
    flex-shrink: 0;
    transition: transform var(--hf-dur), border-top-color var(--hf-dur);
}
#header .top-search-bar .search-select.show > .btn::after {
    transform: rotate(180deg);
    border-top-color: #ffffff;
}
#header .top-search-bar .search-select > .btn:hover { color: #ffffff !important; }
#header .top-search-bar .search-select > .btn:hover::after { border-top-color: #ffffff; }

/* search-select dropdown — no gap, matches top-bar dropdown style */
#header .top-search-bar .search-select .dropdown-menu.show {
    transform: none !important;
    animation: none !important;
    transition: none !important;
}
#header .top-search-bar .search-select .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 99998 !important;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06);
    padding: 6px;
    min-width: 110px;
    margin: 0 !important;
}
#header .top-search-bar .search-select .dropdown-menu .dropdown-item {
    font-family: 'Inter', sans-serif;
    font-size: .74rem;
    font-weight: 500;
    color: var(--hf-dark) !important;
    border-radius: 7px;
    padding: 7px 13px !important;
    display: block;
    cursor: pointer;
    transition: background var(--hf-dur), color var(--hf-dur);
    white-space: nowrap;
}
#header .top-search-bar .search-select .dropdown-menu .dropdown-item:hover {
    background: var(--hf-bg);
    color: var(--hf-black) !important;
}

/* Divider between select and input — removed */
#header .top-search-bar .left::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
}

/* Text input */
#header .top-search-bar .right {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
    min-width: 0;
    position: relative;
}
#header .top-search-bar .input-search,
#header .top-search-bar input[type="text"] {
    flex: 1;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    font-family: 'Inter', sans-serif;
    font-size: .82rem;
    color: var(--hf-dark);
    padding: 0 12px;
    height: 100%;
    min-width: 0;
    line-height: 1;
}
#header .top-search-bar .input-search::placeholder { color: var(--hf-muted); }

/* Search button */
/* Remove the border on the search input — base CSS adds border: 1px solid #f0f0f0 !important */
#header .top-search-bar .input-search,
#header .top-search-bar input[type="text"],
#header .top-search-bar input[type="search"] {
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Search button — fills right end of bar flush (no gaps) */
#header .top-search-bar .btn-search {
    flex-shrink: 0;
    background: var(--hf-accent) !important;
    background-color: var(--hf-accent) !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
    width: 46px;
    height: calc(100% + 0px);
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    border-radius: 0 10px 10px 0 !important;
    cursor: pointer;
    transition: background var(--hf-dur);
    padding: 0 !important;
    margin: 0;
    line-height: 1;
    position: relative !important;
    top: auto !important;
    right: auto !important;
}
/* Base CSS sets .btn-search i { color: #444 !important } — must be overridden on the i element directly */
#header .top-search-bar .btn-search i,
#header .top-search-bar .btn-search i::before {
    color: #fff !important;
}
#header .top-search-bar .btn-search:hover {
    background: #b8271f !important;
    background-color: #b8271f !important;
}
#header .top-search-bar .btn-search:active { transform: scale(.95); }

/* Search results autocomplete dropdown */
#header .search-results-ajax {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    z-index: 99997;
    background: var(--hf-white);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 12px 40px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.06);
}
/* Empty state — hide completely when no results */
#header .search-results-ajax:empty {
    display: none !important;
}

/* ── RIGHT COLUMN — cart, wishlist, sell now ── */
#header .nav-top-right {
    display: flex;
    justify-content: flex-end;
}
#header .nav-top-right > ul {
    display: flex !important;
    align-items: center;
    gap: 2px;
    padding: 0; margin: 0;
    list-style: none;
    flex-wrap: nowrap;
}
#header .nav-top-right .nav-item {
    list-style: none;
    position: relative;
}
/* All icon/text links */
#header .nav-top-right .li-main-nav-right > a:not(.btn) {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 11px;
    border-radius: 9px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: .75rem;
    font-weight: 500;
    color: var(--hf-mid) !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--hf-dur), color var(--hf-dur), transform var(--hf-dur) var(--hf-spring);
}
#header .nav-top-right .li-main-nav-right > a:not(.btn) i {
    font-size: 1.05rem;
    line-height: 1;
    flex-shrink: 0;
}
#header .nav-top-right .li-main-nav-right > a:not(.btn):hover {
    background: var(--hf-bg);
    color: var(--hf-dark) !important;
    transform: translateY(-1px);
}
/* Cart badge */
#header .nav-top-right .notification {
    position: absolute;
    top: 3px; right: 3px;
    background: var(--hf-accent);
    color: #fff;
    font-size: .5rem;
    font-weight: 700;
    border-radius: 50%;
    width: 15px; height: 15px;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 0 0 2px var(--hf-white);
}

/* Sell Now CTA */
#header .btn-sell-now,
#header .btn-custom {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    background: var(--hf-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 9px 20px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: .72rem !important;
    font-weight: 700 !important;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(9,177,186,.30);
    transition: background var(--hf-dur), transform var(--hf-dur) var(--hf-spring), box-shadow var(--hf-dur) !important;
}
#header .btn-sell-now:hover,
#header .btn-custom:hover {
    background: var(--hf-primary-dark) !important;
    transform: translateY(-2px) scale(1.04) !important;
    box-shadow: 0 6px 22px rgba(9,177,186,.38) !important;
    color: #fff !important;
}
#header .btn-sell-now:active,
#header .btn-custom:active { transform: scale(.97) !important; }

/* ── CATEGORY NAV BAR ── */
#header .nav-main {
    border-top: none !important;
    border-bottom: none !important;
    background: transparent !important;
    background-color: transparent !important;
    position: relative;        /* stacking context for nav dropdowns */
    z-index: 999;
    overflow: visible !important;
}
#header .nav-main.nav-main--fixed {
    background: var(--hf-white, #fff) !important;
    background-color: var(--hf-white, #fff) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.12) !important;
    z-index: 1000 !important;
}
#header .nav-main .container { overflow: visible !important; }
#header .nav-main .navbar {
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    min-height: 42px;
    overflow: visible !important;
}
#header .nav-main .mega-menu {
    display: flex !important;
    align-items: center;
    padding: 0; margin: 0;
    list-style: none;
    flex-wrap: nowrap;
    overflow: visible !important;
}
#header .nav-main .nav-item {
    position: relative;
    list-style: none;
}
/* Nav links */
#header .nav-main .nav-link,
#header .nav-main .nav-main-category {
    font-family: 'Inter', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    color: var(--hf-dark) !important;
    text-decoration: none;
    padding: 10px 12px !important;
    white-space: nowrap;
    cursor: pointer;
    display: inline-block;
    position: relative;
    letter-spacing: .01em;
    line-height: 1;
    transition:
        color var(--hf-dur),
        transform .28s cubic-bezier(.175,.885,.32,1.275);
}
/* Animated underline */
#header .nav-main .nav-link::after,
#header .nav-main .nav-main-category::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 12px; right: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--hf-dark);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .24s var(--hf-ease);
}
#header .nav-main .nav-link:hover,
#header .nav-main .nav-main-category:hover {
    color: var(--hf-black) !important;
    transform: scale(1.1) translateY(-1px);
}
#header .nav-main .nav-link:hover::after,
#header .nav-main .nav-main-category:hover::after { transform: scaleX(1); }

/* Mega-menu dropdowns — CRITICAL z-index */
#header .nav-main .dropdown-menu,
#header .nav-main .dropdown-menu-large,
#header .nav-main .dropdown-menu-more-items {
    position: absolute !important;
    top: calc(100% + 0px) !important;
    left: 0 !important;
    z-index: 99999 !important;    /* ← always above everything */
    background: var(--hf-white);
    border: 1px solid var(--hf-light);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.05);
    padding: 10px;
    min-width: 200px;
    display: none;
}
#header .nav-main .nav-item.show .dropdown-menu,
#header .nav-main .nav-item:hover .dropdown-menu { display: block; }

/* Subcategory heading */
#header .nav-main .dropdown-menu .second-category {
    font-family: 'Inter', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    color: var(--hf-dark) !important;
    text-decoration: none;
    display: block;
    padding: 4px 8px 8px;
    border-bottom: 1px solid var(--hf-light);
    margin-bottom: 5px;
    cursor: pointer;
    transition: color var(--hf-dur);
}
#header .nav-main .dropdown-menu .second-category:hover { color: var(--hf-black) !important; }

/* Third / fourth level */
#header .nav-main .dropdown-menu ul {
    list-style: none; padding: 0; margin: 0 0 6px;
}
#header .nav-main .dropdown-menu ul li a,
#header .nav-main .dropdown-menu .dropdown-item {
    font-family: 'Inter', sans-serif;
    font-size: .73rem;
    font-weight: 400;
    color: var(--hf-mid) !important;
    text-decoration: none;
    display: block;
    padding: 6px 8px;
    border-radius: 7px;
    cursor: pointer;
    transition: background var(--hf-dur), color var(--hf-dur), transform var(--hf-dur);
}
#header .nav-main .dropdown-menu ul li a:hover,
#header .nav-main .dropdown-menu .dropdown-item:hover {
    background: var(--hf-bg);
    color: var(--hf-dark) !important;
    transform: translateX(3px);
}
#header .nav-main .dropdown-menu .link-view-all {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--hf-muted) !important;
    display: inline-block;
    margin-top: 4px;
    padding: 4px 8px;
    transition: color var(--hf-dur);
}
#header .nav-main .dropdown-menu .link-view-all:hover { color: var(--hf-dark) !important; }

/* Large-style dropdown */
#header .nav-main .dropdown-menu-large { min-width: 520px; padding: 14px; }
#header .nav-main .large-menu-item a {
    font-size: .74rem;
    font-weight: 600;
    color: var(--hf-mid) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background var(--hf-dur), color var(--hf-dur);
}
#header .nav-main .large-menu-item a:hover,
#header .nav-main .large-menu-item.active a {
    background: var(--hf-bg);
    color: var(--hf-dark) !important;
}

/* More dropdown — scrollable list of overflow categories */
#header .nav-main .dropdown-menu-more-items {
    min-width: 220px !important;
    max-width: 280px !important;
    width: max-content !important;
    padding: 6px !important;
    max-height: 320px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border-radius: 0 0 12px 12px !important;
    /* custom thin scrollbar */
    scrollbar-width: thin !important;
    scrollbar-color: #d0d0d0 transparent !important;
}
#header .nav-main .dropdown-menu-more-items::-webkit-scrollbar {
    width: 4px !important;
}
#header .nav-main .dropdown-menu-more-items::-webkit-scrollbar-track {
    background: transparent !important;
}
#header .nav-main .dropdown-menu-more-items::-webkit-scrollbar-thumb {
    background: #d0d0d0 !important;
    border-radius: 4px !important;
}
#header .nav-main .dropdown-menu-more-items::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0 !important;
}
#header .nav-main .dropdown-menu-more-items .dropdown-item {
    font-family: 'Inter', sans-serif !important;
    font-size: .73rem !important;
    font-weight: 400 !important;
    color: var(--hf-dark) !important;
    padding: 7px 13px !important;
    border-radius: 7px !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-decoration: none !important;
    transition: background var(--hf-dur), color var(--hf-dur) !important;
    transform: none !important;
}
#header .nav-main .dropdown-menu-more-items .dropdown-item:hover {
    background: var(--hf-bg) !important;
    color: var(--hf-black) !important;
    transform: none !important;
}

/* ── MOBILE NAV ── */
#header .mobile-nav-container {
    display: none !important;
    background: var(--hf-white);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ── Top bar row: [hamburger] [logo  flex:1] [search] [cart] ── */
#header .nav-mobile-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 10px;
    height: 56px;
    position: relative;
}

/* Logo absolutely centred between hamburger and right icons */
#header .mobile-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}
#header .mobile-logo img { max-height: 48px; width: auto; display: block; }

/* Right icon group: search + cart side-by-side */
#header .mobile-nav-right {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

/* Icon buttons */
#header .menu-icon a,
#header .mobile-search a,
#header .mobile-cart a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    font-size: 1.1rem;
    color: var(--hf-dark) !important;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: background var(--hf-dur), transform var(--hf-dur) var(--hf-spring);
}
#header .menu-icon a:hover,
#header .mobile-search a:hover,
#header .mobile-cart a:hover { background: var(--hf-bg); transform: scale(1.08); }

/* Cart notification badge */
#header .mobile-cart .notification {
    position: absolute;
    top: 4px; right: 4px;
    min-width: 16px; height: 16px;
    border-radius: 999px;
    background: var(--hf-accent);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    padding: 0 3px;
    pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════
   MOBILE SEARCH FORM — complete modern rebuild
   Overrides all base main-1.7.min.css conflicts explicitly
   ════════════════════════════════════════════════════════════════ */

/* Scope the desktop flex rule away from the mobile form */
#header .top-search-bar:not(.mobile-search-form) {
    display: flex !important;
}

/* ── Outer wrapper ── */
#header .mobile-search-form {
    /* hidden by default; JS adds .display-block */
    display: none !important;
    /* when shown — switched to flex below */
    flex-direction: row !important;
    align-items: stretch !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    border-radius: 12px !important;
    margin: 0 12px 10px !important;
    padding: 0 !important;
    overflow: visible !important;       /* so dropdown can escape */
    background: var(--hf-white) !important;
    border: 1.5px solid var(--hf-light) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.07) !important;
    /* cancel base top-search-bar transform/transition */
    transform: none !important;
    transition: border-color .2s, box-shadow .2s !important;
    /* cancel base top-search-bar flex:1 / position */
    flex: none !important;
    position: relative !important;
    width: calc(100% - 24px) !important;
}
#header .mobile-search-form.display-block {
    display: flex !important;
}
#header .mobile-search-form:focus-within {
    border-color: var(--hf-primary) !important;
    box-shadow: 0 0 0 3px rgba(9,177,186,.13), 0 2px 10px rgba(0,0,0,.07) !important;
}

/* ── Inner <form> stretches to fill wrapper ── */
#header .mobile-search-form form {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    position: relative !important;
}

/* ── Category dropdown pill (multi-vendor only) ── */
#header .mobile-search-form .left {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    background: var(--hf-primary) !important;
    border-radius: 10px 0 0 10px !important;
    overflow: visible !important;
    position: relative !important;
    padding: 0 !important;
}

/* Override base .search-select { min-width:105px } */
#header .mobile-search-form .search-select {
    min-width: 0 !important;
    position: relative !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}

/* Override base .search-select button { min-width:105px; background:#f6f6f6; border; height:39px } */
#header .mobile-search-form .search-select > .btn,
#header .mobile-search-form .search-select .dropdown-toggle {
    min-width: 0 !important;
    width: auto !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: .72rem !important;
    font-weight: 600 !important;
    padding: 0 10px !important;
    height: 100% !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    letter-spacing: .02em !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    /* cancel base ::after bootstrap caret */
}

/* Custom chevron caret */
#header .mobile-search-form .search-select > .btn::after {
    content: '' !important;
    display: inline-block !important;
    width: 0 !important; height: 0 !important;
    border-top: 4px solid rgba(255,255,255,.85) !important;
    border-left: 3px solid transparent !important;
    border-right: 3px solid transparent !important;
    border-bottom: none !important;
    margin-left: 3px !important;
    flex-shrink: 0 !important;
    position: static !important;
    float: none !important;
    transition: transform .2s !important;
}
#header .mobile-search-form .search-select.show > .btn::after {
    transform: rotate(180deg) !important;
}

/* Dropdown menu panel */
#header .mobile-search-form .search-select .dropdown-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: auto !important;
    z-index: 99999 !important;
    min-width: 140px !important;
    background: var(--hf-white) !important;
    border: 1.5px solid var(--hf-light) !important;
    border-top: 0 !important;       /* cancel base border-top:0 by setting same */
    border-radius: 12px !important;
    box-shadow: 0 10px 32px rgba(0,0,0,.13) !important;
    padding: 6px !important;
    margin: 0 !important;
    overflow: visible !important;
    /* cancel base left:10px */
}
#header .mobile-search-form .search-select .dropdown-menu .dropdown-item {
    font-size: .77rem !important;
    font-weight: 500 !important;
    color: var(--hf-dark) !important;
    border-radius: 8px !important;
    padding: 9px 12px !important;
    cursor: pointer !important;
    background: transparent !important;
    transition: background .15s !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}
#header .mobile-search-form .search-select .dropdown-menu .dropdown-item:hover,
#header .mobile-search-form .search-select .dropdown-menu .dropdown-item:focus {
    background: var(--hf-bg) !important;
    color: var(--hf-black) !important;
}

/* ── Right section: input + search button ── */
#header .mobile-search-form .right {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    min-width: 0 !important;
    position: relative !important;
    overflow: visible !important;
}

/* ── Text input — override all base grey/border styles ── */
#header .mobile-search-form .input-search,
#header .mobile-search-form input[type="text"],
#header .mobile-search-form .form-control.input-search {
    flex: 1 !important;
    /* cancel base: background-color:#f6f6f6; border:1px solid #f0f0f0 !important */
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    outline: none !important;
    /* cancel base border-radius: 0 25px 25px 0 */
    border-radius: 0 !important;
    /* cancel base min-height: 39px and padding-right: 40px */
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 10px !important;
    font-size: .82rem !important;
    font-weight: 400 !important;
    color: var(--hf-dark) !important;
    line-height: 1 !important;
    min-width: 0 !important;
}
#header .mobile-search-form .input-search::placeholder,
#header .mobile-search-form input[type="text"]::placeholder {
    color: var(--hf-muted) !important;
    font-weight: 400 !important;
}

/* Single-vendor layout: input is a direct child of form (no .left / .right wrappers) */
#header .mobile-search-form > form > input[type="text"],
#header .mobile-search-form > form > .input-search {
    flex: 1 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 12px !important;
    font-size: .82rem !important;
    color: var(--hf-dark) !important;
    line-height: 1 !important;
    min-width: 0 !important;
}

/* ── Search button — override base position:absolute, height:48px, top:-5px ── */
#header .mobile-search-form .btn-search,
#header .mobile-search-form button.btn-search,
#header .mobile-search-form .btn-search-single-vendor-mobile {
    /* cancel base: position:absolute; top:0; right:0 */
    position: static !important;
    top: auto !important;
    right: auto !important;
    /* cancel mobile-search-form .btn-search: width:48px; height:48px; top:-5px */
    width: 46px !important;
    height: 100% !important;
    min-height: 0 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--hf-accent) !important;
    background-color: var(--hf-accent) !important;
    border: none !important;
    border-radius: 0 10px 10px 0 !important;
    box-shadow: none !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    transition: background .2s !important;
}
#header .mobile-search-form .btn-search:hover,
#header .mobile-search-form button.btn-search:hover {
    background: #b8271f !important;
    background-color: #b8271f !important;
}
/* Icon colour — cancel base .top-search-bar .btn-search i { color:#444 !important } */
#header .mobile-search-form .btn-search i,
#header .mobile-search-form .btn-search i::before,
#header .mobile-search-form button.btn-search i,
#header .mobile-search-form button.btn-search i::before {
    color: #fff !important;
    margin: 0 !important;
    font-size: .95rem !important;
}

/* ── Search result item layout fix ── */
.search-results-with-images { list-style: none; padding: 0; margin: 0; }
.search-result-item a.d-flex { padding: 8px 12px; }
.search-result-content {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.search-result-title {
    font-size: .82rem;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}
.search-result-description {
    font-size: .72rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.search-result-price {
    font-size: .78rem;
    line-height: 1.2;
    white-space: nowrap;
}
.search-result-image { flex-shrink: 0; }

/* ── Search results autocomplete panel ── */
#header .mobile-search-form .search-results-ajax {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    background: var(--hf-white) !important;
    border: 1.5px solid var(--hf-light) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 32px rgba(0,0,0,.13) !important;
    overflow: hidden !important;
    max-height: 320px !important;
    overflow-y: auto !important;
}

@media (max-width: 991px) {
    #header .main-menu { display: none !important; }
    #header .mobile-nav-container { display: block !important; }
}

/* ================================================================
   ③ FOOTER — Professional dark design
   ================================================================ */
#footer {
    background: #fafafc !important;
    color: #888;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Top hairline gradient */
#footer > .container::before {
    display: none;
}
#footer {
    border-top: 1px solid rgba(0,0,0,.07);
}

/* Remove decorative dark circle */
#footer::after {
    display: none;
}
#footer .container,
#footer .container-fluid {
    position: relative;
    z-index: 1;
}

/* Footer top padding */
#footer .footer-top { padding: 68px 0 40px; }

/* ── Logo ── */
#footer .footer-logo { margin-bottom: 18px; }
#footer .footer-logo a {
    display: inline-block;
    transition: transform var(--hf-dur) var(--hf-spring), opacity var(--hf-dur);
}
#footer .footer-logo a:hover { transform: scale(1.05); opacity: .82; }
#footer .footer-logo img {
    max-height: 70px;
    width: auto;
    filter: none;
    opacity: 1;
}

/* About blurb */
#footer .footer-about {
    font-size: .77rem;
    line-height: 1.8;
    color: #888;
    max-width: 250px;
}

/* Footer widget */
#footer .footer-widget { padding-bottom: 36px; }

/* ── Section title ── */
#footer .footer-title {
    font-family: 'Inter', sans-serif;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #222;
    margin: 0 0 20px;
    padding-bottom: 12px;
    position: relative;
}
#footer .footer-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 20px; height: 2px;
    border-radius: 2px;
    background: #09b1ba;
    transition: width .32s var(--hf-ease), background .32s;
}
#footer .footer-widget:hover .footer-title::after {
    width: 36px;
    background: #09b1ba;
}

/* ── Nav links ── */
#footer .nav-footer ul {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
#footer .nav-footer ul li a {
    font-size: .78rem;
    font-weight: 400;
    color: #888;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    transition: color var(--hf-dur), transform var(--hf-dur) var(--hf-spring);
}
#footer .nav-footer ul li a::before {
    content: '';
    display: block;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: rgba(0,0,0,.2);
    flex-shrink: 0;
    transition: background var(--hf-dur), transform var(--hf-dur) var(--hf-spring);
}
#footer .nav-footer ul li a:hover {
    color: #09b1ba;
    transform: translateX(5px);
}
#footer .nav-footer ul li a:hover::before {
    background: #09b1ba;
    transform: scale(1.6);
}

/* ── Social icons ── */
#footer .footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 26px;
}
#footer .footer-social-links a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.1);
    background: #fff;
    color: #888 !important;
    font-size: .9rem;
    text-decoration: none !important;
    cursor: pointer;
    transition:
        background var(--hf-dur),
        border-color var(--hf-dur),
        color var(--hf-dur),
        transform var(--hf-dur) var(--hf-spring),
        box-shadow var(--hf-dur);
}
#footer .footer-social-links a:hover {
    background: #09b1ba;
    border-color: #09b1ba;
    color: #fff !important;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 20px rgba(9,177,186,.3);
}

/* ── Newsletter — FIX: override d-table-cell ── */
#footer .newsletter { margin-top: 0; }
#footer .newsletter .row { margin: 0; }
#footer .newsletter .col-12 { padding: 0; }

/* The form wrapper */
#footer #form_validate_newsletter { margin: 0; }

/* Override Bootstrap's d-table-cell and make newsletter a proper flex row */
#footer .newsletter-inner {
    display: flex !important;
    align-items: stretch;
    width: 100%;
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.12) !important;
    border-radius: 10px !important;
    overflow: hidden;
    transition: border-color var(--hf-dur), box-shadow var(--hf-dur);
    height: 48px;
}
#footer .newsletter-inner:focus-within {
    border-color: #09b1ba !important;
    box-shadow: 0 0 0 3px rgba(9,177,186,.1);
}

/* Both d-table-cell children become flex items */
#footer .newsletter-inner .d-table-cell {
    display: flex !important;
    align-items: center;
}
#footer .newsletter-inner .d-table-cell:first-child {
    flex: 1;
    min-width: 0;
}
#footer .newsletter-inner .d-table-cell:last-child {
    flex-shrink: 0;
}

/* Email input */
#footer .newsletter-inner .form-control {
    flex: 1;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: #333 !important;
    font-family: 'Inter', sans-serif;
    font-size: .78rem;
    font-weight: 400;
    padding: 0 16px !important;
    height: 100%;
    line-height: 1;
    display: block;
}
#footer .newsletter-inner .form-control::placeholder {
    color: #aaa;
}

/* Subscribe button */
#footer .newsletter-inner .btn,
#footer .newsletter-inner .btn-default {
    background: #09b1ba !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: .65rem !important;
    font-weight: 700 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    padding: 0 18px !important;
    height: 100%;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none !important;
    transition: background var(--hf-dur), color var(--hf-dur), transform var(--hf-dur) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
#footer .newsletter-inner .btn:hover,
#footer .newsletter-inner .btn-default:hover {
    background: #08a5ad !important;
    color: #fff !important;
    transform: none !important;
}

/* Flash messages below newsletter */
#footer #newsletter { margin-top: 10px; }
#footer #newsletter span { font-size: .72rem; }

/* ── Footer bottom bar ── */
#footer .footer-bottom {
    border-top: 1px solid rgba(0,0,0,.07) !important;
    background: #fff !important;
    padding: 22px 0 !important;
    margin: 0 !important;
    width: 100% !important;
}
#footer .footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

/* Copyright */
#footer .copyright {
    font-size: .7rem;
    color: #888;
    letter-spacing: .03em;
    line-height: 1.5;
}

/* Payment icons */
#footer .footer-payment-icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
#footer .footer-payment-icons img {
    height: 22px;
    width: auto;
    border-radius: 4px;
    opacity: .35;
    filter: grayscale(1) brightness(3);
    transition: opacity var(--hf-dur), filter var(--hf-dur), transform var(--hf-dur) var(--hf-spring);
    cursor: default;
}
#footer .footer-payment-icons img:hover {
    opacity: .85;
    filter: grayscale(0) brightness(1);
    transform: scale(1.1) translateY(-2px);
}

/* ── Scroll-up button ── */
a.scrollup {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--hf-dark);
    color: #fff !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,.24);
    cursor: pointer;
    z-index: 999;
    transition: background var(--hf-dur), transform var(--hf-dur) var(--hf-spring), box-shadow var(--hf-dur);
}
a.scrollup:hover {
    background: var(--hf-black);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 32px rgba(0,0,0,.3);
}

/* ── Cookies bar ── */
.cookies-warning {
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.cookies-warning .icon-cl {
    cursor: pointer;
    transition: transform var(--hf-dur) var(--hf-spring);
}
.cookies-warning .icon-cl:hover { transform: scale(1.2) rotate(90deg); }

/* ================================================================
   MOBILE DRAWER — full redesign
   ================================================================ */

/* ── Drawer accent color (red) ── */
:root { --drawer-accent: #e53935; --drawer-accent-light: #ffeaea; }

/* ── Drawer panel ── */
.nav-mobile {
    width: 0 !important;
    max-width: 290px !important;
    background: #ffffff !important;
    box-shadow: 4px 0 32px rgba(0,0,0,.16) !important;
    top: 0 !important;
    border-radius: 0 20px 20px 0 !important;
    transition: width 280ms cubic-bezier(.4,0,.2,1) !important;
    overflow: hidden !important;
}
.nav-mobile.nav-mobile-open { width: 290px !important; }

/* ── Scrollable inner ── */
.nav-mobile .nav-mobile-inner {
    padding: 0 !important;
    bottom: 70px !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;
}
.nav-mobile .nav-mobile-inner::-webkit-scrollbar { display: none; }

/* ── Drawer top bar — logo centered + close button ── */
.nav-mobile-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--drawer-accent);
    padding: 14px 16px;
    border-radius: 0 20px 0 0;
    margin-bottom: 6px;
    min-height: 64px;
}
.nav-mobile-logo {
    max-height: 38px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    object-fit: contain;
}
.nav-mobile-close-btn {
    position: absolute !important;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px; height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,.18);
    color: #fff !important;
    font-size: .8rem;
    text-decoration: none;
    transition: background .18s;
}
.nav-mobile-close-btn:hover { background: rgba(255,255,255,.32) !important; }

/* ── navbar-nav reset ── */
.nav-mobile .navbar-nav {
    width: 100% !important;
    padding: 0 10px 10px !important;
    float: none !important;
}

/* ── Individual nav item ── */
.nav-mobile .navbar-nav .nav-item {
    width: 100% !important;
    border-bottom: none !important;
    margin: 0 0 2px !important;
    border-radius: 10px;
    overflow: visible;
}
.nav-mobile .navbar-nav .nav-item:last-child { border-bottom: none !important; }

/* ── Nav link rows ── */
.nav-mobile .navbar-nav .nav-item .nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 12px !important;
    font-size: .75rem !important;
    font-weight: 500 !important;
    color: #2c2c2c !important;
    border-radius: 10px !important;
    border-left: 3px solid transparent !important;
    transition: background .2s, color .2s, border-color .2s, padding-left .2s !important;
    text-transform: none !important;
    line-height: 1.3 !important;
    background: transparent !important;
    white-space: nowrap;
    position: relative;
}
.nav-mobile .navbar-nav .nav-item .nav-link:hover,
.nav-mobile .navbar-nav .nav-item .nav-link:focus {
    background: var(--drawer-accent-light) !important;
    color: var(--drawer-accent) !important;
    border-left-color: var(--drawer-accent) !important;
    padding-left: 16px !important;
}

/* ── Icon bubble on each link ── */
.nav-mobile .navbar-nav .nav-item .nav-link i {
    width: 28px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: #f5f5f5 !important;
    color: #888 !important;
    font-size: .72rem !important;
    flex-shrink: 0 !important;
    transition: background .2s, color .2s !important;
}
.nav-mobile .navbar-nav .nav-item .nav-link:hover i,
.nav-mobile .navbar-nav .nav-item .nav-link:focus i {
    background: var(--drawer-accent) !important;
    color: #fff !important;
}

/* ── Arrow icons ── */
.nav-mobile .navbar-nav .nav-item .nav-link .icon-arrow-right,
.nav-mobile .navbar-nav .nav-item .nav-link .icon-arrow-down {
    width: auto !important; height: auto !important;
    background: none !important;
    color: #ccc !important;
    font-size: .65rem !important;
    margin-left: auto !important;
    border-radius: 0 !important;
    flex-shrink: 0 !important;
}

/* ── Section dividers ── */
#navbar_mobile_links2,
#navbar_mobile_categories,
#navbar_mobile_links {
    padding: 6px 10px !important;
    margin: 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}
#navbar_mobile_links { border-bottom: none !important; padding-bottom: 0 !important; }

/* ── "Sell Now" — same style as other items, no special color ── */
.nav-mobile .navbar-nav .nav-item .nav-link[href*="add_product"],
.nav-mobile .navbar-nav .nav-item .nav-link[href*="store-registration"] {
    color: #2c2c2c !important;
    font-weight: 500 !important;
}

/* ── Profile block ── */
.nav-mobile .profile-dropdown .image-profile-drop {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    background: #f7f7f7 !important;
    color: #1c1c1c !important;
    font-size: .75rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    transition: background .2s !important;
}
.nav-mobile .profile-dropdown .image-profile-drop:hover { background: var(--drawer-accent-light) !important; }
.nav-mobile .profile-dropdown .image-profile-drop img {
    width: 32px !important; height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid var(--drawer-accent) !important;
    flex-shrink: 0 !important;
}
.nav-mobile .profile-dropdown .image-profile-drop .icon-arrow-down {
    margin-left: auto !important;
    top: auto !important; position: relative !important;
    font-size: .65rem !important; color: #bbb !important;
}

/* ── Profile dropdown ── */
.nav-mobile .profile-dropdown .dropdown-menu {
    position: static !important;
    display: none;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 4px 0 4px 10px !important;
    margin: 0 !important; border-radius: 0 !important;
    float: none !important; width: 100% !important;
}
.nav-mobile .profile-dropdown.open .dropdown-menu,
.nav-mobile .profile-dropdown.show .dropdown-menu { display: block; }
.nav-mobile .profile-dropdown .dropdown-menu > li > a {
    display: flex !important; align-items: center !important;
    gap: 10px !important; padding: 7px 10px !important;
    font-size: .72rem !important; color: #555 !important;
    border-radius: 8px !important; border-left: 2px solid transparent !important;
    transition: background .18s, color .18s, border-color .18s !important;
    text-decoration: none !important;
}
.nav-mobile .profile-dropdown .dropdown-menu > li > a:hover {
    background: var(--drawer-accent-light) !important;
    color: var(--drawer-accent) !important;
    border-left-color: var(--drawer-accent) !important;
}
.nav-mobile .profile-dropdown .dropdown-menu > li > a > i {
    width: 24px !important; height: 24px !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    background: #f0f0f0 !important; border-radius: 6px !important;
    font-size: .7rem !important; color: #777 !important; flex-shrink: 0 !important;
}

/* ── Drawer footer — social icons ── */
.nav-mobile .nav-mobile-footer {
    background: #fafafa !important;
    border-top: 1px solid #f0f0f0 !important;
    bottom: 0 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    padding: 10px 14px !important; min-height: 58px !important;
}
.nav-mobile .nav-mobile-footer ul {
    width: auto !important; display: flex !important; flex-wrap: wrap !important;
    gap: 6px !important; padding: 0 !important; margin: 0 !important; justify-content: center !important;
}
.nav-mobile .nav-mobile-footer ul li { width: auto !important; margin: 0 !important; display: inline-flex !important; }
.nav-mobile .nav-mobile-footer ul li a {
    width: 34px !important; height: 34px !important; border-radius: 10px !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    font-size: .82rem !important; line-height: 1 !important; border: none !important;
    transition: transform .18s, box-shadow .18s !important;
}
.nav-mobile .nav-mobile-footer ul li a:hover {
    transform: translateY(-2px) scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.18) !important;
}

/* ── Language switcher — pill grid ── */
.nav-mobile .mobile-lang-block {
    padding: 6px 10px 10px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}
.nav-mobile .mobile-lang-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 4px 8px !important;
    font-size: .68rem !important;
    font-weight: 600 !important;
    color: #999 !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
}
.nav-mobile .mobile-lang-label i {
    font-size: .75rem !important;
    color: var(--drawer-accent) !important;
}
.nav-mobile .mobile-language-options {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.nav-mobile .mobile-language-options li {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    border: none !important;
}
.nav-mobile .mobile-language-options li a {
    display: inline-flex !important;
    align-items: center !important;
    padding: 5px 13px !important;
    font-size: .72rem !important;
    font-weight: 500 !important;
    color: #555 !important;
    background: #f4f4f4 !important;
    border: 1.5px solid transparent !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    transition: background .18s, color .18s, border-color .18s !important;
    white-space: nowrap !important;
}
.nav-mobile .mobile-language-options li a:hover {
    background: var(--drawer-accent-light) !important;
    color: var(--drawer-accent) !important;
    border-color: var(--drawer-accent) !important;
}
.nav-mobile .mobile-language-options li a.selected {
    background: var(--drawer-accent) !important;
    color: #fff !important;
    border-color: var(--drawer-accent) !important;
    font-weight: 600 !important;
}

/* ── Overlay ── */
#menu-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.4); z-index: 9998;
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
    transition: opacity .25s;
}
.nav-mobile.nav-mobile-open ~ #menu-overlay,
.nav-mobile.nav-mobile-open + #menu-overlay { display: block; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991px) {
    #footer .footer-top { padding: 32px 0 16px; }
    #footer .footer-about { max-width: 100%; }
}
@media (max-width: 767px) {
    #footer .footer-top { padding: 16px 0 6px; }
    #footer .footer-widget { padding-bottom: 12px; }
    #footer .footer-logo { display: flex; justify-content: center; margin-bottom: 10px; }
    #footer .footer-logo a { display: flex; justify-content: center; }
    #footer .footer-widget:first-child .row-custom:first-child { float: none; display: flex; justify-content: center; }
    #footer .footer-logo img { max-width: 160px !important; width: auto; max-height: 60px; position: static !important; }
    #footer .footer-about { max-width: 100%; text-align: center; }
    #footer .footer-title { margin-bottom: 10px; padding-bottom: 8px; }
    #footer .nav-footer ul { gap: 7px; }
    #footer .footer-social-links { margin-bottom: 12px; }
    #footer .footer-bottom { padding: 14px 0 !important; }
    #footer .footer-bottom .container { flex-direction: column; align-items: flex-start; gap: 8px; }
    #footer .footer-payment-icons { gap: 6px; }
    #footer .footer-payment-icons img { height: 18px; }
    a.scrollup { bottom: 14px; right: 14px; }
    #footer .newsletter-inner { height: 44px; }
}

/* ================================================================
   BASE THEME OVERRIDES (style-1.7.css conflicts)
   These must be at the bottom so they win via cascade
   ================================================================ */

/* Fix: base theme sets mega-menu dropdown to 1240px wide,
   overflow:hidden, border-radius:0 — undo all of that.
   Also add max-height + scroll so tall category trees stay inside the card. */
#header .nav-main .mega-menu .dropdown .dropdown-menu,
#header .nav-main .mega-menu .dropdown-menu {
    width: auto !important;
    max-width: none !important;
    max-height: min(500px, 72vh) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border-radius: 16px !important;
    padding: 10px !important;
    z-index: 99999 !important;
    position: absolute !important;
    display: none;
    box-shadow: 0 20px 60px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.05) !important;
    border: 1px solid var(--hf-light) !important;
    background: var(--hf-white) !important;
    margin-top: 0 !important;
    left: 0 !important;
    top: 100% !important;
    /* thin custom scrollbar */
    scrollbar-width: thin !important;
    scrollbar-color: #d0d0d0 transparent !important;
}
#header .nav-main .mega-menu .dropdown .dropdown-menu::-webkit-scrollbar,
#header .nav-main .mega-menu .dropdown-menu::-webkit-scrollbar {
    width: 5px !important;
}
#header .nav-main .mega-menu .dropdown .dropdown-menu::-webkit-scrollbar-track,
#header .nav-main .mega-menu .dropdown-menu::-webkit-scrollbar-track {
    background: transparent !important;
    border-radius: 0 16px 16px 0 !important;
}
#header .nav-main .mega-menu .dropdown .dropdown-menu::-webkit-scrollbar-thumb,
#header .nav-main .mega-menu .dropdown-menu::-webkit-scrollbar-thumb {
    background: #d0d0d0 !important;
    border-radius: 5px !important;
}
#header .nav-main .mega-menu .dropdown .dropdown-menu::-webkit-scrollbar-thumb:hover,
#header .nav-main .mega-menu .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0 !important;
}
#header .nav-main .mega-menu .nav-item:hover > .dropdown-menu,
#header .nav-main .mega-menu .nav-item.show > .dropdown-menu {
    display: block !important;
}

/* Fix: base theme large dropdown */
#header .nav-main .dropdown-menu-large {
    min-width: 520px !important;
    padding: 14px !important;
}

/* Fix: base theme profile/language dropdown in top-bar */
.top-bar .profile-dropdown .dropdown-menu,
.top-bar .language-dropdown .dropdown-menu,
.top-bar .currency-dropdown .dropdown-menu {
    position: absolute !important;
    z-index: 99999 !important;
    top: calc(100% + 4px) !important;
    border-radius: 12px !important;
    overflow: visible !important;
}

/* Fix: search-select dropdown in header */
#header .top-search-bar .search-select .dropdown-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    z-index: 99998 !important;
    overflow: visible !important;
    border-radius: 12px !important;
    width: auto !important;
}

/* Fix: make sure nav-top has no overflow:hidden */
#header .nav-top,
#header .nav-top .container,
#header .nav-top .row,
#header .nav-top-left,
#header .nav-top-right,
#header .row-align-items-center {
    overflow: visible !important;
}

/* Fix: base theme sets .main-menu .container-fluid overflow */
#header .main-menu .container-fluid,
#header .main-menu .row {
    overflow: visible !important;
}

/* Fix: top-bar stacking — must sit below sticky header when closed */
.top-bar { z-index: 1001; }
#header .main-menu { z-index: 1000; }

/* Newsletter: force row/col to not interfere with flex layout */
#footer .newsletter .row {
    display: block !important;
    margin: 0;
}
#footer .newsletter .col-12 {
    padding: 0 !important;
    max-width: 100% !important;
    flex: none !important;
}

/* ================================================================
   SHIPPING / CHECKOUT PAGE — Modern design
   ================================================================ */

/* Page background */
.shopping-cart-shipping {
    padding: 0 !important;
}
.shopping-cart-shipping > .row {
    gap: 0;
    align-items: flex-start;
}

/* ── CHECKOUT STEP PROGRESS BAR ── */
.checkout-stepper {
    display: flex !important;
    align-items: center !important;
    margin: 0 0 28px !important;
    padding: 0 !important;
}
.ck-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 7px !important;
    flex-shrink: 0 !important;
}
.ck-dot {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Inter', sans-serif !important;
    font-size: .82rem !important;
    font-weight: 700 !important;
    transition: background .2s, border-color .2s !important;
    position: relative !important;
    z-index: 1 !important;
}
.ck-label {
    font-family: 'Inter', sans-serif !important;
    font-size: .7rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    white-space: nowrap !important;
    transition: color .2s !important;
    line-height: 1.2 !important;
}

/* Active step */
.ck-step--active .ck-dot {
    background: var(--hf-primary) !important;
    color: #fff !important;
    box-shadow: 0 0 0 4px rgba(9,177,186,.18) !important;
}
.ck-step--active .ck-label {
    color: var(--hf-primary) !important;
}

/* Done/completed step */
.ck-step--done .ck-dot {
    background: var(--hf-primary) !important;
    color: #fff !important;
}
.ck-step--done .ck-dot i {
    font-size: .75rem !important;
    color: #fff !important;
}
.ck-step--done .ck-label {
    color: var(--hf-primary) !important;
}

/* Upcoming step */
.ck-step--upcoming .ck-dot {
    background: #f0f0f0 !important;
    color: #bbb !important;
    border: 1.5px solid #e0e0e0 !important;
}
.ck-step--upcoming .ck-label {
    color: #bbb !important;
}

/* Connector line */
.ck-line {
    flex: 1 !important;
    height: 2px !important;
    background: #e0e0e0 !important;
    margin: 0 6px !important;
    margin-bottom: 20px !important;
    border-radius: 2px !important;
    transition: background .2s !important;
}
.ck-line--done {
    background: var(--hf-primary) !important;
}

@media (max-width: 480px) {
    .ck-dot { width: 30px !important; height: 30px !important; }
    .ck-label { font-size: .62rem !important; }
}

/* ── PAGE TITLE ── */
.shopping-cart-shipping .cart-section-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    color: #0a0a0a !important;
    letter-spacing: -.4px !important;
    margin-bottom: 24px !important;
}

/* ── UPCOMING STEPS (locked / not yet reached) ── */
.shopping-cart-shipping .tab-checkout-closed-bordered {
    background: #fafafa !important;
    border: 1.5px dashed #ddd !important;
    border-radius: 14px !important;
    padding: 14px 20px !important;
    margin-top: 10px !important;
    box-shadow: none !important;
    opacity: .6 !important;
    pointer-events: none !important;
}
.shopping-cart-shipping .tab-checkout-closed-bordered .title {
    font-family: 'Inter', sans-serif !important;
    font-size: .83rem !important;
    font-weight: 600 !important;
    color: #aaa !important;
    margin: 0 !important;
    letter-spacing: .01em !important;
}
.shopping-cart-shipping .tab-checkout-closed-bordered.border-top-0 {
    border-top: 1.5px dashed #ddd !important;
}

/* ── COMPLETED STEP (shipping info on payment_method page) ── */
.shopping-cart-shipping .tab-checkout-closed {
    background: rgba(9,177,186,.04) !important;
    border: 1.5px solid rgba(9,177,186,.25) !important;
    border-radius: 14px !important;
    padding: 14px 20px !important;
    margin-bottom: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: none !important;
}
.shopping-cart-shipping .tab-checkout-closed .title {
    font-family: 'Inter', sans-serif !important;
    font-size: .83rem !important;
    font-weight: 600 !important;
    color: var(--hf-primary) !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
}
.shopping-cart-shipping .tab-checkout-closed .title::before {
    content: '' !important;
    display: inline-flex !important;
    width: 22px !important;
    height: 22px !important;
    background: var(--hf-primary)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        center/12px no-repeat !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}
.shopping-cart-shipping .tab-checkout-closed a.title {
    text-decoration: none !important;
}
.shopping-cart-shipping .tab-checkout-closed .edit-link {
    font-family: 'Inter', sans-serif !important;
    font-size: .78rem !important;
    font-weight: 600 !important;
    color: var(--hf-primary) !important;
    text-decoration: none !important;
    padding: 5px 14px !important;
    border: 1.5px solid var(--hf-primary) !important;
    border-radius: 50px !important;
    transition: background .18s, color .18s !important;
}
.shopping-cart-shipping .tab-checkout-closed .edit-link:hover {
    background: var(--hf-primary) !important;
    color: #fff !important;
}

/* ── ACTIVE CHECKOUT CARD ── */
.shopping-cart-shipping .tab-checkout-open {
    background: #fff !important;
    border: 1.5px solid #ebebeb !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,.06) !important;
    padding: 28px 28px 20px !important;
    margin-bottom: 0 !important;
}
.shopping-cart-shipping .tab-checkout-open .title {
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin-bottom: 22px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

/* ── FORM INPUTS ── */
.shopping-cart-shipping .form-control,
.shopping-cart-shipping .form-input,
.shopping-cart-shipping select.form-control {
    height: 46px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: .82rem !important;
    color: #1a1a1a !important;
    background: #fafafa !important;
    border: 1.5px solid #e8e8e8 !important;
    border-radius: 10px !important;
    padding: 0 14px !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .2s, box-shadow .2s, background .2s !important;
    width: 100% !important;
}
.shopping-cart-shipping textarea.form-control,
.shopping-cart-shipping textarea.form-input {
    height: auto !important;
    padding: 12px 14px !important;
    min-height: 80px !important;
    resize: vertical !important;
}
.shopping-cart-shipping .form-control:focus,
.shopping-cart-shipping .form-input:focus,
.shopping-cart-shipping select.form-control:focus {
    border-color: var(--hf-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(9,177,186,.12) !important;
    outline: none !important;
}
.shopping-cart-shipping .form-control::placeholder,
.shopping-cart-shipping .form-input::placeholder {
    color: #c0c0c0 !important;
    font-size: .78rem !important;
}
.shopping-cart-shipping label {
    font-family: 'Inter', sans-serif !important;
    font-size: .72rem !important;
    font-weight: 600 !important;
    color: #555 !important;
    letter-spacing: .02em !important;
    text-transform: uppercase !important;
    margin-bottom: 6px !important;
    display: block !important;
}
.shopping-cart-shipping .form-group {
    margin-bottom: 16px !important;
}

/* Input group (phone/email prefix icon badge) */
.shopping-cart-shipping .input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
}
.shopping-cart-shipping .input-group-prepend {
    display: flex !important;
    margin-right: 0 !important;
}
.shopping-cart-shipping .input-group-text {
    background: var(--hf-primary) !important;
    border: 1.5px solid var(--hf-primary) !important;
    border-right: none !important;
    border-radius: 10px 0 0 10px !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: .9rem !important;
    font-weight: 600 !important;
    padding: 0 16px !important;
    height: 46px !important;
    min-width: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}
.shopping-cart-shipping .input-group > .form-control:not(:first-child),
.shopping-cart-shipping .input-group > .form-input:not(:first-child) {
    border-radius: 0 10px 10px 0 !important;
    border-left: none !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* ── SAVED ADDRESS CARDS ── */
.shopping-cart-shipping .shipping-address-box {
    border: 1.5px solid #e8e8e8 !important;
    border-radius: 12px !important;
    padding: 16px 18px !important;
    background: #fff !important;
    transition: border-color .2s, box-shadow .2s;
    cursor: pointer;
    margin-bottom: 10px;
}
.shopping-cart-shipping .shipping-address-box:hover {
    border-color: var(--hf-primary) !important;
    box-shadow: 0 0 0 3px rgba(9,177,186,.1) !important;
}
.shopping-cart-shipping .shipping-address-box-cart {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* ── DELIVERY OPTIONS (radio pills) ── */
.shopping-cart-shipping .delivery_option ~ label,
.shopping-cart-shipping .custom-control-label {
    font-family: 'Inter', sans-serif !important;
    font-size: .82rem !important;
    font-weight: 500 !important;
    color: #444 !important;
    cursor: pointer;
}
.shopping-cart-shipping .custom-control-input:checked ~ .custom-control-label {
    color: var(--hf-primary) !important;
    font-weight: 600 !important;
}

/* ── BOTTOM ACTION ROW ── */
.shopping-cart-shipping .form-group .link-return-cart {
    font-family: 'Inter', sans-serif !important;
    font-size: .8rem !important;
    font-weight: 500 !important;
    color: #888 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    line-height: 46px !important;
    transition: color .2s !important;
}
.shopping-cart-shipping .form-group .link-return-cart:hover {
    color: var(--hf-primary) !important;
    text-decoration: underline !important;
}
.shopping-cart-shipping .btn-custom.continue_payment_method,
.shopping-cart-shipping .btn.btn-lg.btn-custom {
    font-family: 'Inter', sans-serif !important;
    font-size: .85rem !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    height: 48px !important;
    padding: 0 32px !important;
    border-radius: 12px !important;
    background: var(--hf-primary) !important;
    background-color: var(--hf-primary) !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(9,177,186,.30) !important;
    transition: background .2s, transform .25s cubic-bezier(.175,.885,.32,1.275), box-shadow .2s !important;
}
.shopping-cart-shipping .btn-custom.continue_payment_method:hover,
.shopping-cart-shipping .btn.btn-lg.btn-custom:hover {
    background: var(--hf-primary-dark) !important;
    background-color: var(--hf-primary-dark) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 22px rgba(9,177,186,.40) !important;
    color: #fff !important;
}

/* ── ORDER SUMMARY COLUMN ── */
.order-summary-container {
    padding-left: 20px !important;
}
.order-summary-container .cart-section-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin-bottom: 16px !important;
    letter-spacing: -.2px !important;
}

/* Product / service item cards */
.order-summary-container .right.card {
    border: 1.5px solid #ebebeb !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.05) !important;
    background: #fff !important;
    overflow: hidden !important;
    padding: 20px !important;
    margin-bottom: 14px !important;
}
.order-summary-container .cart-order-details .cart-section-title {
    font-size: .78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
    color: #999 !important;
    margin-bottom: 16px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}
.order-summary-container .item {
    display: flex !important;
    gap: 14px !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #f7f7f7 !important;
    align-items: flex-start !important;
}
.order-summary-container .item:last-child { border-bottom: none !important; }
.order-summary-container .img-cart-product {
    width: 60px !important;
    height: 60px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: #f5f5f3 !important;
}
.order-summary-container .img-cart-product img {
    width: 100% !important; height: 100% !important;
    object-fit: cover !important;
}
.order-summary-container .item-right {
    flex: 1 !important;
    min-width: 0 !important;
}
.order-summary-container .item-right .list-item {
    font-family: 'Inter', sans-serif !important;
    font-size: .78rem !important;
    color: #555 !important;
    margin-bottom: 3px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
}
.order-summary-container .item-right .list-item:first-child a {
    font-size: .83rem !important;
    font-weight: 600 !important;
    color: #111 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}
.order-summary-container .item-right .list-item label {
    font-size: .72rem !important;
    color: #999 !important;
    text-transform: none !important;
    font-weight: 400 !important;
    margin: 0 !important;
    letter-spacing: 0 !important;
}
.order-summary-container .item-right .lbl-price {
    font-weight: 700 !important;
    color: #111 !important;
    font-size: .8rem !important;
}

/* Order totals card */
.order-summary-container .right.card.order_summary {
    background: linear-gradient(135deg, var(--hf-primary) 0%, var(--hf-primary-dark) 100%) !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 22px 22px 18px !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(9,177,186,.28) !important;
}
.order-summary-container .order_summary .cart-section-title {
    color: rgba(255,255,255,.7) !important;
    border-bottom-color: rgba(255,255,255,.15) !important;
}
.order-summary-container .order_summary p {
    font-family: 'Inter', sans-serif !important;
    font-size: .83rem !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,.85) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
}
.order-summary-container .order_summary p strong,
.order-summary-container .order_summary p b {
    color: #fff !important;
    font-weight: 600 !important;
}
/* When strong wraps both label + value, make it a flex row so value sits on the right */
.order-summary-container .order_summary p > strong {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}
/* Remove float – irrelevant inside flex */
.order-summary-container .order_summary .float-right {
    float: none !important;
}
/* Shipping cost row: ensure label and price are spaced */
.order-summary-container .order_summary p .float-right {
    float: none !important;
    margin-left: auto !important;
}
#shipping_total_price {
    font-weight: 700 !important;
    color: #fff !important;
}
.order-summary-container .order_summary p.line-seperator {
    height: 1px !important;
    background: rgba(255,255,255,.2) !important;
    margin: 14px 0 16px !important;
    display: block !important;
}
.order-summary-container .order_summary p.order_total {
    background: rgba(255,255,255,.18) !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    border: 1px solid rgba(255,255,255,.25) !important;
}
.order-summary-container .order_summary p.order_total strong {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    font-size: .95rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: -.2px !important;
}

/* Alert messages */
.shopping-cart-shipping .alert {
    border-radius: 12px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: .82rem !important;
    padding: 12px 18px !important;
    margin-bottom: 16px !important;
    border: none !important;
}
.shopping-cart-shipping .alert-danger {
    background: #fff1f0 !important;
    color: #c0392b !important;
    border-left: 4px solid #e74c3c !important;
}

/* Guest login row */
.shopping-cart-shipping .auth-row {
    background: #f8f9ff !important;
    border: 1.5px solid #e0e6ff !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    margin-bottom: 18px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: .82rem !important;
    color: #555 !important;
}
.shopping-cart-shipping .auth-row .link-underlined {
    color: var(--hf-primary) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
.shopping-cart-shipping .auth-row .link-underlined:hover {
    text-decoration: underline !important;
}

/* ── DELIVERY TIME SELECTION ── */
/* Hide native radio bullets */
.shopping-cart-shipping .delivery_option.square-purple {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}
/* Pill option labels */
.shopping-cart-shipping .option-label {
    display: inline-flex !important;
    align-items: center !important;
    padding: 9px 20px !important;
    background: #f5f5f3 !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 50px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: .82rem !important;
    font-weight: 500 !important;
    color: #444 !important;
    cursor: pointer !important;
    margin: 6px 8px 6px 0 !important;
    transition: background .18s, border-color .18s, color .18s !important;
    vertical-align: middle !important;
}
.shopping-cart-shipping .delivery_option.square-purple:checked + .option-label {
    background: rgba(9,177,186,.1) !important;
    border-color: var(--hf-primary) !important;
    color: var(--hf-primary) !important;
    font-weight: 700 !important;
}
.shopping-cart-shipping .option-label:hover {
    border-color: var(--hf-primary) !important;
    color: var(--hf-primary) !important;
}

/* Delivery date/time row (per-vendor split section) */
.shopping-cart-shipping .for_split .form-control,
.shopping-cart-shipping .for_split .form-input {
    border-radius: 10px !important;
}

/* Add new address link */
.shopping-cart-shipping .link-add-new-shipping-option {
    font-family: 'Inter', sans-serif !important;
    font-size: .8rem !important;
    font-weight: 600 !important;
    color: var(--hf-primary) !important;
    cursor: pointer !important;
    text-decoration: none !important;
}
.shopping-cart-shipping .link-add-new-shipping-option:hover {
    text-decoration: underline !important;
}

/* Responsive */
@media (max-width: 991px) {
    .order-summary-container { padding-left: 0 !important; margin-top: 24px !important; }
}

/* ================================================================
   PAYMENT METHOD PAGE — Modern pay-with panel
   ================================================================ */

/* Strip Bootstrap list-group connected-border look; use gap instead */
.shopping-cart-shipping .payment-options-list.list-group {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
}

/* ── Each payment option card ── */
.shopping-cart-shipping .payment-options-list .list-group-item,
.shopping-cart-shipping .payment-options-list > li {
    border: 1.5px solid #e8e8e8 !important;
    border-radius: 14px !important;
    padding: 15px 20px !important;
    background: #fff !important;
    margin: 0 !important;
    cursor: pointer !important;
    transition: border-color .18s, background .18s, box-shadow .18s !important;
    position: relative !important;
    list-style: none !important;
}
.shopping-cart-shipping .payment-options-list .list-group-item:hover,
.shopping-cart-shipping .payment-options-list > li:hover {
    border-color: var(--hf-primary) !important;
    box-shadow: 0 0 0 3px rgba(9,177,186,.08) !important;
}
/* Selected card highlight via :has() */
.shopping-cart-shipping .payment-options-list .list-group-item:has(.custom-control-input:checked),
.shopping-cart-shipping .payment-options-list > li:has(.custom-control-input:checked) {
    border-color: var(--hf-primary) !important;
    background: rgba(9,177,186,.05) !important;
    box-shadow: 0 0 0 3px rgba(9,177,186,.12) !important;
}

/* ── Option-payment row (flex: label ↔ logos/amount) ── */
.shopping-cart-shipping .option-payment {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    width: 100% !important;
}

/* ── Left side ── */
.shopping-cart-shipping .payment-options-list .list-left {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    min-width: 0 !important;
}

/* Custom radio colours */
.shopping-cart-shipping .payment-options-list .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--hf-primary) !important;
    border-color: var(--hf-primary) !important;
    box-shadow: 0 0 0 3px rgba(9,177,186,.15) !important;
}
.shopping-cart-shipping .payment-options-list .custom-control-label::before {
    border: 2px solid #d0d0d0 !important;
    transition: border-color .18s, background-color .18s !important;
}

/* Payment method name label */
.shopping-cart-shipping .payment-options-list .label-payment-option {
    font-family: 'Inter', sans-serif !important;
    font-size: .88rem !important;
    font-weight: 600 !important;
    color: #222 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}
.shopping-cart-shipping .payment-options-list .label-payment-option img {
    height: 26px !important;
    width: auto !important;
    max-width: 70px !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    border-radius: 4px !important;
}
.shopping-cart-shipping .payment-options-list .label-payment-option small {
    font-size: .72rem !important;
    color: #888 !important;
    font-weight: 400 !important;
    display: block !important;
    width: 100% !important;
    line-height: 1.4 !important;
}

/* ── Right side (logos column / pay-amount) ── */
.shopping-cart-shipping .payment-options-list .list-right {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
}
.shopping-cart-shipping .payment-options-list .list-right label {
    font-family: 'Inter', sans-serif !important;
    font-size: .82rem !important;
    font-weight: 700 !important;
    color: var(--hf-primary) !important;
    cursor: pointer !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
}
.shopping-cart-shipping .payment-options-list .list-right label img {
    height: 22px !important;
    width: auto !important;
    max-width: 54px !important;
    object-fit: contain !important;
    border-radius: 4px !important;
}

/* ── Terms checkbox row ── */
.shopping-cart-shipping .custom-checkbox .custom-control-label {
    font-family: 'Inter', sans-serif !important;
    font-size: .82rem !important;
    color: #555 !important;
    cursor: pointer !important;
    line-height: 1.5 !important;
}
.shopping-cart-shipping .custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--hf-primary) !important;
    border-color: var(--hf-primary) !important;
}
.shopping-cart-shipping .link-terms {
    color: var(--hf-primary) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}
.shopping-cart-shipping .link-terms:hover {
    text-decoration: underline !important;
}

/* ── Disclaimer alert ── */
.shopping-cart-shipping .alert-info.alert-large {
    background: #f0fdfe !important;
    border: 1.5px solid rgba(9,177,186,.3) !important;
    border-radius: 12px !important;
    color: #1a7e85 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: .82rem !important;
    padding: 14px 18px !important;
}

/* ── "Pay KD x.xx →" arrow icon ── */
.shopping-cart-shipping .list-right .fa-arrow-right {
    font-size: .75rem !important;
    opacity: .7 !important;
}

/* ── "Continue to payment" submit button ── */
.shopping-cart-shipping .btn-continue-payment {
    font-family: 'Inter', sans-serif !important;
    font-size: .88rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, var(--hf-primary) 0%, var(--hf-primary-dark) 100%) !important;
    background-color: var(--hf-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 32px !important;
    letter-spacing: .02em !important;
    box-shadow: 0 4px 16px rgba(9,177,186,.32) !important;
    transition: transform .2s, box-shadow .2s !important;
}
.shopping-cart-shipping .btn-continue-payment:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 24px rgba(9,177,186,.42) !important;
    color: #fff !important;
}

/* Responsive */
@media (max-width: 575px) {
    .shopping-cart-shipping .payment-options-list .list-group-item,
    .shopping-cart-shipping .payment-options-list > li {
        padding: 13px 14px !important;
    }
    .shopping-cart-shipping .option-payment {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    .shopping-cart-shipping .payment-options-list .list-right {
        width: 100% !important;
        justify-content: flex-start !important;
        padding-left: 1.6rem !important;
    }
}

/* ================================================================
   SWEETALERT — Modern popup redesign
   ================================================================ */

/* Overlay backdrop */
.swal-overlay {
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

/* Modal card */
.swal-modal {
    border-radius: 20px !important;
    padding: 32px 28px 24px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18) !important;
    border: none !important;
    font-family: 'Inter', sans-serif !important;
    max-width: 400px !important;
    width: calc(100% - 40px) !important;
    animation: swal-pop .25s cubic-bezier(.175,.885,.32,1.275) !important;
}
@keyframes swal-pop {
    from { opacity: 0; transform: scale(.88); }
    to   { opacity: 1; transform: scale(1); }
}

/* Icon */
.swal-icon {
    margin: 0 auto 18px !important;
    width: 64px !important;
    height: 64px !important;
}
.swal-icon--warning {
    border-color: #f5a623 !important;
}
.swal-icon--warning__body,
.swal-icon--warning__dot {
    background-color: #f5a623 !important;
}
.swal-icon--error {
    border-color: #e74c3c !important;
}
.swal-icon--error__line {
    background-color: #e74c3c !important;
}
.swal-icon--success {
    border-color: var(--hf-primary) !important;
}
.swal-icon--success__ring {
    border-color: rgba(9, 177, 186, 0.3) !important;
}
.swal-icon--success__line {
    background-color: var(--hf-primary) !important;
}

/* Title */
.swal-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

/* Body text */
.swal-text {
    font-family: 'Inter', sans-serif !important;
    font-size: .875rem !important;
    color: #555 !important;
    text-align: center !important;
    line-height: 1.6 !important;
    margin: 0 0 4px !important;
    padding: 0 4px !important;
}

/* Footer (button row) */
.swal-footer {
    padding: 20px 0 0 !important;
    margin: 0 !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
}

/* All buttons base */
.swal-button {
    font-family: 'Inter', sans-serif !important;
    font-size: .85rem !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    padding: 11px 28px !important;
    border: none !important;
    cursor: pointer !important;
    transition: background .18s, transform .15s, box-shadow .18s !important;
    letter-spacing: .01em !important;
}
.swal-button:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Confirm / OK button — teal */
.swal-button--confirm {
    background: var(--hf-primary) !important;
    background-color: var(--hf-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(9, 177, 186, 0.35) !important;
}
.swal-button--confirm:hover {
    background: var(--hf-primary-dark) !important;
    background-color: var(--hf-primary-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(9, 177, 186, 0.45) !important;
}

/* Cancel button — subtle grey */
.swal-button--cancel {
    background: #f0f0f0 !important;
    background-color: #f0f0f0 !important;
    color: #555 !important;
    box-shadow: none !important;
}
.swal-button--cancel:hover {
    background: #e4e4e4 !important;
    background-color: #e4e4e4 !important;
    color: #333 !important;
    transform: translateY(-1px) !important;
}

/* Danger confirm (dangerMode: true) — red */
.swal-button--danger {
    background: #e74c3c !important;
    background-color: #e74c3c !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.3) !important;
}
.swal-button--danger:hover {
    background: #c0392b !important;
    background-color: #c0392b !important;
    transform: translateY(-1px) !important;
}

/* ================================================================
   REGISTER PAGE — Modern split layout
   ================================================================ */

/* Full-viewport layout — hide the normal header on register */
body.auth-page .auth-register-wrapper {
    min-height: 100vh;
    background: #f4f5f7;
}

/* Split container */
.register-split-layout {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

/* ── LEFT BRAND PANEL ── */
.register-brand-panel {
    flex: 0 0 42%;
    background: linear-gradient(145deg, var(--hf-primary) 0%, var(--hf-primary-dark) 60%, #056a71 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 48px;
}
.register-brand-inner {
    position: relative;
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.register-brand-logo img {
    max-height: 56px;
    width: auto;
    filter: brightness(0) invert(1);
    display: block;
}
.register-brand-copy h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
    line-height: 1.2;
    margin: 0 0 12px;
}
.register-brand-copy p {
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    color: rgba(255,255,255,.75);
    line-height: 1.6;
    margin: 0;
}
.register-brand-features {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.register-brand-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: .85rem;
    font-weight: 500;
    color: rgba(255,255,255,.9);
}
.rbf-icon {
    width: 28px; height: 28px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: .65rem;
    color: #fff;
}

/* Decorative circles */
.register-brand-bg-circles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.rbc-1, .rbc-2, .rbc-3 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
}
.rbc-1 { width: 320px; height: 320px; top: -80px; right: -80px; }
.rbc-2 { width: 200px; height: 200px; bottom: 60px; left: -60px; }
.rbc-3 { width: 120px; height: 120px; bottom: 200px; right: 40px; background: rgba(255,255,255,.04); }

/* ── RIGHT FORM PANEL ── */
.register-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f5f7;
    padding: 48px 40px;
    overflow-y: auto;
}
.register-form-inner {
    width: 100%;
    max-width: 480px;
}

/* Back link */
.register-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: .75rem;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    margin-bottom: 28px;
    transition: color .2s;
}
.register-back-link:hover { color: var(--hf-primary); text-decoration: none; }
.register-back-link i { font-size: .7rem; }

/* Title & subtitle */
.register-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #0a0a0a;
    letter-spacing: -.5px;
    margin: 0 0 6px;
}
.register-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: .82rem;
    color: #888;
    margin: 0 0 24px;
}
.register-login-link {
    color: var(--hf-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}
.register-login-link:hover { color: var(--hf-primary-dark); text-decoration: underline; }

/* Social login inside register */
.register-form-inner .social-login-cnt .btn-social {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 11px 16px !important;
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: .78rem !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    transition: transform .2s, box-shadow .2s !important;
    text-decoration: none !important;
}
.register-form-inner .btn-social-facebook {
    background: #1877f2 !important; color: #fff !important; border: none !important;
}
.register-form-inner .btn-social-google {
    background: #fff !important; color: #3c4043 !important; border: 1.5px solid #e0e0e0 !important;
}
.register-form-inner .btn-social:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.1) !important;
}
.register-form-inner .p-social-media {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: .7rem !important;
    font-weight: 500 !important;
    color: #bbb !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
    margin: 14px 0 !important;
}
.register-form-inner .p-social-media::before,
.register-form-inner .p-social-media::after {
    content: ''; flex: 1; height: 1px; background: #e8e8e8;
}

/* Form layout */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.register-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.register-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.register-field-row .register-field { margin-bottom: 0; }
.register-field label {
    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    color: #555;
    letter-spacing: .02em;
    text-transform: uppercase;
}

/* Input wrapper with icon */
.register-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.register-input-wrap > i {
    position: absolute;
    left: 13px;
    font-size: .8rem;
    color: #b8b8b8;
    pointer-events: none;
    transition: color .2s;
    z-index: 1;
}
.register-input-wrap:focus-within > i { color: var(--hf-primary); }
/* body.auth-page prefix beats the generic auth-page input rule (specificity tie-break) */
body.auth-page .register-input-wrap .auth-form-input,
body.auth-page .register-input-wrap .form-control {
    width: 100%;
    height: 46px !important;
    padding: 0 14px 0 40px !important;   /* 40px left clears the icon */
    font-family: 'Inter', sans-serif !important;
    font-size: .82rem !important;
    color: #1a1a1a !important;
    background: #fff !important;
    border: 1.5px solid #e8e8e8 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .2s, box-shadow .2s !important;
}
body.auth-page .register-input-wrap .auth-form-input:focus,
body.auth-page .register-input-wrap .form-control:focus {
    border-color: var(--hf-primary) !important;
    box-shadow: 0 0 0 3px rgba(9,177,186,.12) !important;
    background: #fff !important;
    outline: none !important;
}
body.auth-page .register-input-wrap .auth-form-input::placeholder,
body.auth-page .register-input-wrap .form-control::placeholder {
    color: #c0c0c0 !important;
    font-size: .78rem !important;
}

/* Terms checkbox */
.register-terms {
    margin: 4px 0 20px;
}
.register-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.register-checkbox-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0; height: 0;
}
.register-checkbox-box {
    flex-shrink: 0;
    width: 20px; height: 20px;
    border: 2px solid #d8d8d8;
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    transition: border-color .2s, background .2s;
    margin-top: 1px;
}
.register-checkbox-box i {
    font-size: .55rem;
    color: #fff;
    opacity: 0;
    transition: opacity .15s;
}
.register-checkbox-input:checked ~ .register-checkbox-box {
    background: var(--hf-primary);
    border-color: var(--hf-primary);
}
.register-checkbox-input:checked ~ .register-checkbox-box i { opacity: 1; }
.register-checkbox-text {
    font-family: 'Inter', sans-serif;
    font-size: .78rem;
    color: #666;
    line-height: 1.5;
}
.register-terms-link {
    color: var(--hf-primary);
    text-decoration: none;
    font-weight: 600;
}
.register-terms-link:hover { text-decoration: underline; }

/* Recaptcha */
.register-recaptcha { margin-bottom: 18px; }

/* Submit button */
.register-submit-btn {
    width: 100% !important;
    height: 50px !important;
    background: var(--hf-primary) !important;
    background-color: var(--hf-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: .88rem !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    cursor: pointer !important;
    box-shadow: 0 4px 18px rgba(9,177,186,.32) !important;
    transition: background .2s, transform .25s cubic-bezier(.175,.885,.32,1.275), box-shadow .2s !important;
    margin-top: 4px;
}
.register-submit-btn:hover {
    background: var(--hf-primary-dark) !important;
    background-color: var(--hf-primary-dark) !important;
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow: 0 8px 24px rgba(9,177,186,.40) !important;
    color: #fff !important;
}

/* Error/success messages */
#result-register .alert {
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: .8rem !important;
    padding: 10px 14px !important;
    margin-bottom: 14px !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .register-brand-panel { display: none; }
    .register-split-layout { min-height: 100vh; }
    .register-form-panel { padding: 40px 20px; }
}
@media (max-width: 500px) {
    .register-field-row { grid-template-columns: 1fr; }
    .register-form-inner { max-width: 100%; }
}

/* ================================================================
   AUTH PAGE HEADER — Clean white bar, no dark top strip
   Applied when body.auth-page is set in auth view files
   ================================================================ */

/* ── Replace dark top bar with a clean white/light version ── */
body.auth-page .top-bar {
    background: #ffffff !important;
    border-bottom: 1px solid #ebebeb !important;
    min-height: 42px;
}

/* Left nav links — dark text on white */
body.auth-page .top-bar .col-left .nav-link {
    color: #9a9a9a !important;
}
body.auth-page .top-bar .col-left .nav-link:hover {
    color: #1a1a1a !important;
    background: #f5f5f3 !important;
}

/* Right nav links — dark text on white */
body.auth-page .top-bar .col-right .nav-link {
    color: #9a9a9a !important;
}
body.auth-page .top-bar .col-right .nav-link:hover {
    color: #1a1a1a !important;
    background: #f5f5f3 !important;
}

/* Auth separator slash */
body.auth-page .top-bar .auth-sep,
body.auth-page span.auth-sep {
    color: #d0d0d0 !important;
    line-height: 42px;
}

/* Arrow icons */
body.auth-page .top-bar .icon-arrow-down {
    color: #b0b0b0;
    opacity: 1;
}

/* Dropdown menus — white on white bg */
body.auth-page .top-bar .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #ebebeb !important;
    box-shadow: 0 12px 40px rgba(0,0,0,.10) !important;
}
body.auth-page .top-bar .dropdown-menu a,
body.auth-page .top-bar .dropdown-menu .dropdown-item {
    color: #5a5a5a !important;
}
body.auth-page .top-bar .dropdown-menu a:hover,
body.auth-page .top-bar .dropdown-menu .dropdown-item:hover {
    background: #f5f5f3 !important;
    color: #111 !important;
}
body.auth-page .top-bar .dropdown-menu a.selected {
    color: #111 !important;
    font-weight: 600;
}

/* Profile avatar ring */
body.auth-page .top-bar .a-profile img {
    border-color: #e0e0e0 !important;
}

/* Currency/language dropdown buttons */
body.auth-page .top-bar .currency-dropdown ul li button {
    color: #5a5a5a !important;
}
body.auth-page .top-bar .currency-dropdown ul li button:hover {
    background: #f5f5f3 !important;
    color: #111 !important;
}

/* Unread badge — keep accent color */
body.auth-page .top-bar .notification {
    box-shadow: 0 0 0 2px #ffffff !important;
}

/* ── Auth page body background ── */
body.auth-page {
    background: #f7f6f4 !important;
}

/* ── Auth box styling upgrade ── */
body.auth-page #wrapper {
    background: transparent;
}
body.auth-page .auth-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 48px;
    padding-bottom: 64px;
    min-height: calc(100vh - 130px);
}
body.auth-page .auth-box {
    background: #ffffff !important;
    border: 1px solid #ebebeb !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 32px rgba(0,0,0,.07) !important;
    padding: 40px 36px !important;
    width: 440px;
    max-width: 100%;
    margin: 0 auto;
}
body.auth-page .auth-box .title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 28px;
    letter-spacing: -.3px;
}
body.auth-page .auth-form-input,
body.auth-page .auth-box .form-control {
    border-radius: 10px !important;
    border: 1.5px solid #e8e8e8 !important;
    background: #fafafa !important;
    font-size: .85rem !important;
    padding: 10px 14px !important;
    transition: border-color .2s, box-shadow .2s, background .2s !important;
}
body.auth-page .auth-form-input:focus,
body.auth-page .auth-box .form-control:focus {
    border-color: #aaa !important;
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.07) !important;
    outline: none !important;
}
body.auth-page .auth-box .btn-custom,
body.auth-page .auth-box .btn-block {
    border-radius: 10px !important;
    padding: 12px !important;
    font-weight: 700 !important;
    font-size: .82rem !important;
    letter-spacing: .05em !important;
    transition: transform .25s cubic-bezier(.175,.885,.32,1.275), box-shadow .25s !important;
}
body.auth-page .auth-box .btn-custom:hover,
body.auth-page .auth-box .btn-block:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,.18) !important;
}

/* ================================================================
   LOGIN MODAL — Modern redesign
   ================================================================ */

/* Backdrop blur */
#loginModal.modal {
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    background: rgba(10,10,10,.45) !important;
}

/* Dialog sizing */
#loginModal .modal-dialog {
    max-width: 420px !important;
    width: 100% !important;
    margin: auto !important;
}

/* Card shell — no default Bootstrap chrome */
#loginModal .modal-content {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 32px 80px rgba(0,0,0,.22), 0 8px 24px rgba(0,0,0,.1) !important;
    overflow: hidden !important;
    background: transparent !important;
}

/* Inner content area */
#loginModal .auth-box {
    background: #ffffff !important;
    padding: 40px 36px 32px !important;
    border-radius: 20px !important;
    position: relative !important;
}

/* Accent bar at top of card */
#loginModal .auth-box::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--hf-primary) 0%, var(--hf-primary-dark) 100%);
    position: absolute;
    top: 0; left: 0; right: 0;
    border-radius: 20px 20px 0 0;
}

/* Close button */
#loginModal .close {
    position: absolute !important;
    top: 16px !important;
    right: 18px !important;
    width: 32px !important;
    height: 32px !important;
    background: #f5f5f5 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    font-size: .75rem !important;
    color: #555 !important;
    border: none !important;
    cursor: pointer !important;
    transition: background .2s, color .2s, transform .2s !important;
    z-index: 10 !important;
    padding: 0 !important;
    line-height: 1 !important;
}
#loginModal .close:hover {
    background: #ebebeb !important;
    color: #111 !important;
    transform: rotate(90deg) !important;
}

/* Heading */
#loginModal .auth-box .title {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #0a0a0a !important;
    margin: 0 0 6px !important;
    letter-spacing: -.4px !important;
}

/* Subtitle line below heading */
#loginModal .auth-box .title::after {
    content: 'Welcome back — sign in to continue';
    display: block;
    font-size: .75rem;
    font-weight: 400;
    color: #9a9a9a;
    letter-spacing: 0;
    margin-top: 4px;
    margin-bottom: 22px;
}

/* Social login buttons */
#loginModal .btn-social {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: .78rem !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    transition: transform .2s, box-shadow .2s !important;
    text-decoration: none !important;
}
#loginModal .btn-social:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.12) !important;
}
#loginModal .btn-social-facebook {
    background: #1877f2 !important;
    color: #fff !important;
    border: none !important;
}
#loginModal .btn-social-google {
    background: #fff !important;
    color: #3c4043 !important;
    border: 1.5px solid #e0e0e0 !important;
}
#loginModal .btn-social-google:hover {
    background: #f8f8f8 !important;
}

/* OR divider */
#loginModal .p-social-media:not(:last-child),
#loginModal .social-login-cnt .p-social-media {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: .7rem !important;
    font-weight: 500 !important;
    color: #b0b0b0 !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
    margin: 14px 0 !important;
}
#loginModal .p-social-media:not(:last-child)::before,
#loginModal .p-social-media:not(:last-child)::after,
#loginModal .social-login-cnt .p-social-media::before,
#loginModal .social-login-cnt .p-social-media::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ebebeb;
}

/* Form groups */
#loginModal .form-group {
    margin-bottom: 14px !important;
}

/* Inputs */
#loginModal .auth-form-input,
#loginModal .form-control {
    font-family: 'Inter', sans-serif !important;
    font-size: .82rem !important;
    height: 46px !important;
    border-radius: 10px !important;
    border: 1.5px solid #e8e8e8 !important;
    background: #fafafa !important;
    color: #1a1a1a !important;
    padding: 0 14px !important;
    width: 100% !important;
    transition: border-color .2s, box-shadow .2s, background .2s !important;
    box-shadow: none !important;
    outline: none !important;
}
#loginModal .auth-form-input:focus,
#loginModal .form-control:focus {
    border-color: var(--hf-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(9,177,186,.12) !important;
    outline: none !important;
}
#loginModal .auth-form-input::placeholder,
#loginModal .form-control::placeholder {
    color: #b8b8b8 !important;
    font-size: .78rem !important;
}

/* Forgot password */
#loginModal .link-forgot-password {
    font-family: 'Inter', sans-serif !important;
    font-size: .74rem !important;
    font-weight: 500 !important;
    color: var(--hf-primary) !important;
    text-decoration: none !important;
    transition: color .2s !important;
}
#loginModal .link-forgot-password:hover {
    color: var(--hf-primary-dark) !important;
    text-decoration: underline !important;
}

/* Submit button */
#loginModal .btn-custom,
#loginModal .btn-block {
    font-family: 'Inter', sans-serif !important;
    font-size: .82rem !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    height: 46px !important;
    border-radius: 10px !important;
    background: var(--hf-primary) !important;
    background-color: var(--hf-primary) !important;
    color: #fff !important;
    border: none !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: background .2s, transform .25s cubic-bezier(.175,.885,.32,1.275), box-shadow .2s !important;
    box-shadow: 0 4px 14px rgba(9,177,186,.30) !important;
    margin-top: 4px !important;
}
#loginModal .btn-custom:hover,
#loginModal .btn-block:hover {
    background: var(--hf-primary-dark) !important;
    background-color: var(--hf-primary-dark) !important;
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow: 0 8px 22px rgba(9,177,186,.38) !important;
    color: #fff !important;
}

/* Register link at bottom */
#loginModal .p-social-media:last-child {
    font-family: 'Inter', sans-serif !important;
    font-size: .78rem !important;
    color: #888 !important;
    text-align: center !important;
    margin: 18px 0 0 !important;
}
#loginModal .p-social-media:last-child .link {
    color: var(--hf-primary) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color .2s !important;
}
#loginModal .p-social-media:last-child .link:hover {
    color: var(--hf-primary-dark) !important;
    text-decoration: underline !important;
}

/* Error/result message */
#loginModal #result-login {
    font-family: 'Inter', sans-serif !important;
    font-size: .78rem !important;
    border-radius: 8px !important;
    padding: 0 !important;
    margin-bottom: 10px !important;
}

/* Mobile */
@media (max-width: 480px) {
    #loginModal .modal-dialog { max-width: 96vw !important; }
    #loginModal .auth-box { padding: 32px 22px 24px !important; }
}

/* ============================================================
   STORE REGISTRATION PAGE  (.sreg-*)
   ============================================================ */

.shop-reg-wrapper {
    background: var(--hf-bg);
    min-height: 100vh;
    padding-top: 0 !important;
    padding-bottom: 60px;
    font-family: 'Inter', sans-serif;
}

/* ── Hero banner ── */
.sreg-hero {
    position: relative;
    background: linear-gradient(135deg, var(--hf-primary) 0%, var(--hf-primary-dark) 100%);
    padding: 60px 0 56px;
    overflow: hidden;
    color: #fff;
}
.sreg-hero-inner {
    position: relative;
    z-index: 2;
}
.sreg-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.8);
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color .2s;
}
.sreg-back-link:hover { color: #fff; text-decoration: none; }
.sreg-hero-title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}
.sreg-hero-sub {
    font-size: .97rem;
    color: rgba(255,255,255,.82);
    margin: 0 0 22px;
}
.sreg-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
}
.sreg-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    font-weight: 500;
    color: rgba(255,255,255,.92);
}
.sreg-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(255,255,255,.22);
    border-radius: 50%;
    font-size: .7rem;
}
/* Decorative circles */
.sreg-hero-c1,
.sreg-hero-c2,
.sreg-hero-c3 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    pointer-events: none;
}
.sreg-hero-c1 { width: 320px; height: 320px; top: -80px; right: -60px; }
.sreg-hero-c2 { width: 200px; height: 200px; bottom: -60px; right: 120px; }
.sreg-hero-c3 { width: 120px; height: 120px; top: 20px; right: 200px; }

/* ── Form container ── */
.sreg-form-container {
    margin-top: -28px;
    position: relative;
    z-index: 3;
}

/* ── Section cards ── */
.sreg-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    margin-bottom: 20px;
    overflow: hidden;
}
.sreg-section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 28px 18px;
    border-bottom: 1px solid #f0f0f0;
}
.sreg-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: var(--hf-primary);
    color: #fff;
    border-radius: 50%;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 2px;
}
.sreg-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 3px;
    line-height: 1.3;
}
.sreg-section-sub {
    font-size: .82rem;
    color: #888;
    margin: 0;
}
.sreg-section-body {
    padding: 24px 28px 28px;
}

/* ── Field / row layout ── */
.sreg-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}
.sreg-field:last-child { margin-bottom: 0; }
.sreg-field label {
    font-size: .82rem;
    font-weight: 600;
    color: #444;
    margin: 0;
}
.sreg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.sreg-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}
.sreg-input {
    height: 46px;
    border-radius: 10px !important;
    border: 1.5px solid #e5e5e5 !important;
    font-size: .9rem !important;
    color: #1a1a1a !important;
    background: #fafafa !important;
    box-shadow: none !important;
    transition: border-color .2s, box-shadow .2s !important;
    padding: 0 14px !important;
}
.sreg-input:focus {
    border-color: var(--hf-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(9,177,186,.13) !important;
    outline: none !important;
}
textarea.sreg-input {
    height: auto !important;
    padding: 12px 14px !important;
    resize: vertical;
}
select.sreg-input {
    appearance: auto;
}
.sreg-textarea {
    min-height: 90px;
}

/* ── Password feedback ── */
.sreg-pw-msg {
    font-size: .78rem;
    font-weight: 500;
    margin-top: 2px;
    min-height: 16px;
    display: block;
}

/* ── Custom file upload ── */
.sreg-file-wrap {
    position: relative;
}
.sreg-file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.sreg-file-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    background: #f5f5f3;
    border: 1.5px dashed #ccc;
    border-radius: 10px;
    cursor: pointer;
    font-size: .88rem;
    color: #555;
    font-weight: 500;
    transition: border-color .2s, background .2s;
    width: 100%;
}
.sreg-file-label:hover {
    border-color: var(--hf-primary);
    background: rgba(9,177,186,.05);
    color: var(--hf-primary);
}
.sreg-file-label i {
    font-size: 1.1rem;
    color: var(--hf-primary);
}

/* ── Signature canvas ── */
.sreg-sig-wrap {
    border: 1.5px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    background: #fafafa;
}
.sreg-sig-wrap canvas {
    display: block;
    width: 100%;
    height: 180px;
    cursor: crosshair;
    background: #fff;
    touch-action: none;
}
.sreg-sig-actions {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}
.sreg-sig-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.sreg-sig-btn--clear {
    background: #f0f0f0;
    color: #555;
}
.sreg-sig-btn--clear:hover { background: #e0e0e0; }
.sreg-sig-btn--save {
    background: var(--hf-primary);
    color: #fff;
}
.sreg-sig-btn--save:hover { background: var(--hf-primary-dark); }

.sreg-sig-note {
    font-size: .8rem;
    color: #888;
}
.sreg-sig-feedback {
    display: block;
    font-size: .8rem;
    font-weight: 500;
    padding: 0 16px 10px;
    min-height: 20px;
}
.sreg-sig-feedback--ok { color: var(--hf-primary); }
.sreg-sig-feedback--err { color: #e74c3c; }

/* ── Form footer ── */
.sreg-form-footer {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Custom checkbox ── */
.sreg-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: .88rem;
    color: #555;
    line-height: 1.5;
}
.sreg-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.sreg-checkbox-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1.5px solid #ccc;
    border-radius: 5px;
    background: #fafafa;
    margin-top: 2px;
    transition: border-color .2s, background .2s;
    font-size: .7rem;
    color: transparent;
}
.sreg-checkbox-input:checked ~ .sreg-checkbox-box,
.sreg-checkbox-label:has(.sreg-checkbox-input:checked) .sreg-checkbox-box {
    background: var(--hf-primary);
    border-color: var(--hf-primary);
    color: #fff;
}

/* ── reCAPTCHA ── */
.sreg-recaptcha { margin: 0; }

/* ── Submit button ── */
.sreg-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--hf-primary);
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    align-self: flex-end;
    transition: background .2s, box-shadow .2s, transform .15s;
    box-shadow: 0 4px 18px rgba(9,177,186,.35);
}
.sreg-submit-btn:hover {
    background: var(--hf-primary-dark);
    box-shadow: 0 6px 24px rgba(9,177,186,.45);
    transform: translateY(-1px);
    color: #fff !important;
}
.sreg-submit-btn:active { transform: translateY(0); }

/* ── Location partial overrides inside sreg ── */
.sreg-section-body .form-group label {
    font-size: .82rem;
    font-weight: 600;
    color: #444;
}
.sreg-section-body .form-group select.form-control,
.sreg-section-body .form-group input.form-control {
    height: 46px;
    border-radius: 10px !important;
    border: 1.5px solid #e5e5e5 !important;
    font-size: .9rem !important;
    background: #fafafa !important;
    box-shadow: none !important;
}
.sreg-section-body .form-group select.form-control:focus,
.sreg-section-body .form-group input.form-control:focus {
    border-color: var(--hf-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(9,177,186,.13) !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .sreg-hero { padding: 44px 0 48px; }
    .sreg-hero-title { font-size: 1.7rem; }
    .sreg-benefits { gap: 8px 18px; }
    .sreg-section-head { padding: 18px 18px 14px; }
    .sreg-section-body { padding: 18px 18px 20px; }
    .sreg-form-footer { padding: 20px 18px; }
    .sreg-row { grid-template-columns: 1fr; gap: 0; }
    .sreg-row-3 { grid-template-columns: 1fr; }
    .sreg-hero-c1 { width: 200px; height: 200px; }
    .sreg-hero-c2 { display: none; }
    .sreg-hero-c3 { display: none; }
}
@media (max-width: 480px) {
    .sreg-submit-btn { width: 100%; justify-content: center; align-self: stretch; }
}

/* ============================================================
   STATIC PAGES  (About Us, T&C, Delivery, Refund …)  .sp-*
   ============================================================ */

.static-page-wrapper {
    background: var(--hf-bg);
    min-height: 100vh;
    padding-top: 0 !important;
    padding-bottom: 60px;
}

/* ── Hero ── */
.sp-hero {
    position: relative;
    background: linear-gradient(135deg, var(--hf-primary) 0%, var(--hf-primary-dark) 100%);
    padding: 44px 0 52px;
    overflow: hidden;
    color: #fff;
}
.sp-breadcrumb-nav { margin-bottom: 14px; }
.sp-breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: .8rem;
}
.sp-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: color .2s;
}
.sp-breadcrumb .breadcrumb-item a:hover { color: #fff; }
.sp-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,.5);
}
.sp-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,.9); }
.sp-hero-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}
/* Decorative circles */
.sp-hero-c1,
.sp-hero-c2 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    pointer-events: none;
}
.sp-hero-c1 { width: 280px; height: 280px; top: -80px; right: -40px; }
.sp-hero-c2 { width: 160px; height: 160px; bottom: -50px; right: 140px; }

/* ── Content card ── */
.sp-content-container {
    margin-top: -28px;
    position: relative;
    z-index: 3;
}
.sp-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
    overflow: hidden;
}
.sp-body {
    padding: 36px 40px 40px;
}

/* ── Rich text typography inside page content ── */
.sp-body.page-text-content {
    font-size: .97rem;
    line-height: 1.85;
    color: #333;
}
.sp-body.page-text-content h1,
.sp-body.page-text-content h2,
.sp-body.page-text-content h3,
.sp-body.page-text-content h4,
.sp-body.page-text-content h5 {
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: .7rem;
    line-height: 1.3;
}
.sp-body.page-text-content h1 { font-size: 1.6rem; }
.sp-body.page-text-content h2 { font-size: 1.3rem; }
.sp-body.page-text-content h3 { font-size: 1.1rem; }
.sp-body.page-text-content h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.1em;
    background: var(--hf-primary);
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: middle;
    margin-top: -2px;
}
.sp-body.page-text-content p {
    margin-bottom: 1rem;
}
.sp-body.page-text-content a {
    color: var(--hf-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.sp-body.page-text-content a:hover {
    color: var(--hf-primary-dark);
}
.sp-body.page-text-content ul,
.sp-body.page-text-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.sp-body.page-text-content ul li,
.sp-body.page-text-content ol li {
    margin-bottom: .4rem;
}
.sp-body.page-text-content ul {
    list-style: none;
    padding-left: 0;
}
.sp-body.page-text-content ul li::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--hf-primary);
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
    margin-top: -1px;
}
.sp-body.page-text-content blockquote {
    border-left: 4px solid var(--hf-primary);
    background: rgba(9,177,186,.05);
    border-radius: 0 8px 8px 0;
    padding: 14px 20px;
    margin: 1.4rem 0;
    font-style: italic;
    color: #555;
}
.sp-body.page-text-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.2rem;
    font-size: .9rem;
}
.sp-body.page-text-content table th {
    background: var(--hf-primary);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}
.sp-body.page-text-content table td {
    padding: 9px 14px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}
.sp-body.page-text-content table tr:nth-child(even) td {
    background: #fafafa;
}
.sp-body.page-text-content hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 2rem 0;
}
.sp-body.page-text-content strong { color: #1a1a1a; }
.sp-body.page-text-content img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px;
    margin: 1.2rem 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .sp-hero { padding: 20px 0 24px; }
    .sp-breadcrumb-nav { margin-bottom: 10px; }
    .sp-hero-title {
        font-size: .95rem;
        font-weight: 700;
        line-height: 1.4;
        word-break: break-word;
        margin-top: 6px;
    }
    .sp-content-container { margin-top: 16px !important; }
    .sp-body { padding: 20px 16px 24px; }
    .sp-hero-c1 { display: none; }
    .sp-hero-c2 { display: none; }
    .sp-body.page-text-content { font-size: .875rem; line-height: 1.75; }
    .sp-body.page-text-content h1 { font-size: 1.15rem; }
    .sp-body.page-text-content h2 { font-size: 1rem; }
    .sp-body.page-text-content h3 { font-size: .9rem; }
    .sp-body.page-text-content h4,
    .sp-body.page-text-content h5 { font-size: .85rem; }
    .sp-breadcrumb { font-size: .72rem; }
}
@media (max-width: 480px) {
    .sp-hero { padding: 16px 0 20px; }
    .sp-hero-title { font-size: .88rem; }
    .sp-content-container { margin-top: 14px !important; }
}

/* ============================================================
   CONTACT PAGE  (.cp-*)
   ============================================================ */

.contact-page-wrapper {
    background: var(--hf-bg);
    min-height: 100vh;
    padding-top: 0 !important;
    padding-bottom: 60px;
}

/* ── Hero ── */
.cp-hero {
    position: relative;
    background: linear-gradient(135deg, var(--hf-primary) 0%, var(--hf-primary-dark) 100%);
    padding: 44px 0 52px;
    overflow: hidden;
    color: #fff;
}
.cp-breadcrumb-nav { margin-bottom: 14px; }
.cp-breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: .8rem;
}
.cp-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: color .2s;
}
.cp-breadcrumb .breadcrumb-item a:hover { color: #fff; }
.cp-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }
.cp-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,.9); }
.cp-hero-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}
.cp-hero-sub {
    font-size: .95rem;
    color: rgba(255,255,255,.8);
    margin: 0;
    position: relative;
    z-index: 2;
}
.cp-hero-c1,
.cp-hero-c2 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    pointer-events: none;
}
.cp-hero-c1 { width: 280px; height: 280px; top: -80px; right: -40px; }
.cp-hero-c2 { width: 160px; height: 160px; bottom: -50px; right: 160px; }

/* ── Content container ── */
.cp-content-container {
    margin-top: -28px;
    position: relative;
    z-index: 3;
}

/* ── Form card ── */
.cp-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
    padding: 32px 32px 36px;
    height: 100%;
}
.cp-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}
.cp-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(9,177,186,.12);
    border-radius: 50%;
    color: var(--hf-primary);
    font-size: 1.1rem;
}
.cp-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* ── Contact intro text ── */
.cp-contact-text {
    font-size: .9rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: rgba(9,177,186,.05);
    border-left: 3px solid var(--hf-primary);
    border-radius: 0 8px 8px 0;
}

/* ── Form fields ── */
.cp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}
.cp-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.cp-form-field:last-of-type { margin-bottom: 0; }
.cp-form-field label {
    font-size: .82rem;
    font-weight: 600;
    color: #444;
    margin: 0;
}
.cp-label-hint {
    font-weight: 400;
    color: #aaa;
    font-size: .78rem;
}
.cp-input {
    height: 46px !important;
    border-radius: 10px !important;
    border: 1.5px solid #e5e5e5 !important;
    font-size: .9rem !important;
    color: #1a1a1a !important;
    background: #fafafa !important;
    box-shadow: none !important;
    transition: border-color .2s, box-shadow .2s !important;
    padding: 0 14px !important;
}
.cp-input:focus {
    border-color: var(--hf-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(9,177,186,.13) !important;
    outline: none !important;
}
.cp-textarea {
    height: auto !important;
    min-height: 120px !important;
    padding: 12px 14px !important;
    resize: vertical;
}

/* ── File upload ── */
.cp-file-wrap { position: relative; }
.cp-file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.cp-file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f5f5f3;
    border: 1.5px dashed #ccc;
    border-radius: 10px;
    cursor: pointer;
    font-size: .86rem;
    color: #555;
    font-weight: 500;
    transition: border-color .2s, background .2s;
    width: 100%;
}
.cp-file-label:hover {
    border-color: var(--hf-primary);
    background: rgba(9,177,186,.05);
    color: var(--hf-primary);
}
.cp-file-label i { color: var(--hf-primary); font-size: 1rem; }

/* ── Checkbox ── */
.cp-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: .85rem;
    color: #555;
    line-height: 1.5;
}
.cp-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.cp-checkbox-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1.5px solid #ccc;
    border-radius: 5px;
    background: #fafafa;
    margin-top: 2px;
    transition: border-color .2s, background .2s;
    font-size: .7rem;
    color: transparent;
}
.cp-checkbox-label:has(.cp-checkbox-input:checked) .cp-checkbox-box {
    background: var(--hf-primary);
    border-color: var(--hf-primary);
    color: #fff;
}

/* ── Submit button ── */
.cp-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 34px;
    background: var(--hf-primary);
    color: #fff !important;
    font-size: .97rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    transition: background .2s, box-shadow .2s, transform .15s;
    box-shadow: 0 4px 16px rgba(9,177,186,.35);
}
.cp-submit-btn:hover {
    background: var(--hf-primary-dark);
    box-shadow: 0 6px 22px rgba(9,177,186,.45);
    transform: translateY(-1px);
    color: #fff !important;
}
.cp-submit-btn:active { transform: translateY(0); }

/* ── Right: info card ── */
.cp-info-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
    padding: 28px 28px 24px;
    margin-bottom: 18px;
}
.cp-info-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.cp-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}
.cp-info-item:last-of-type { border-bottom: none; }
.cp-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(9,177,186,.1);
    border-radius: 10px;
    color: var(--hf-primary);
    font-size: 1rem;
    margin-top: 2px;
}
.cp-info-detail {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.cp-info-label {
    font-size: .75rem;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.cp-info-value {
    font-size: .9rem;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

/* ── Social links inside contact ── */
.cp-social-wrap {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}
.cp-social-wrap ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
}
.cp-social-wrap ul li { margin: 0; }
.cp-social-wrap ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f5f5f3;
    color: #555;
    font-size: 1rem;
    text-decoration: none;
    transition: background .2s, color .2s, transform .15s;
}
.cp-social-wrap ul li a:hover {
    background: var(--hf-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Map card ── */
.cp-map-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
    height: 240px;
}
.cp-map-card iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .cp-card { margin-bottom: 18px; }
    .cp-map-card { height: 220px; }
}
@media (max-width: 576px) {
    .cp-hero { padding: 36px 0 44px; }
    .cp-hero-title { font-size: 1.5rem; }
    .cp-card { padding: 22px 18px 26px; }
    .cp-info-card { padding: 22px 18px 18px; }
    .cp-form-row { grid-template-columns: 1fr; gap: 0; }
    .cp-hero-c1 { width: 180px; height: 180px; }
    .cp-hero-c2 { display: none; }
    .cp-submit-btn { width: 100%; justify-content: center; }
}
