/* Store header — Evara theme colors + clean layout */

.store-header, .header-area {
    position: relative;
    z-index: 997;
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Kill the old fixed-height placeholders that cause the white gap */
.header-height-1,
.header-height-2,
.header-height-3,
.header-height-4 {
    min-height: 0 !important;
    height: auto !important;
}

/* Kill padding from theme header row classes */
.header-top-ptb-1,
.header-middle-ptb-1,
.header-bottom-ptb-1,
.header-style-1 .header-top-ptb-1,
.header-style-1 .header-middle-ptb-1 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Remove top spacing from the main content area */
main.main,
.main,
body > main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Home slider — zero gap from header */
section.home-slider,
section.home-slider-hero,
.home-slider,
.home-slider-hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Matches .header-style-1 .header-top-ptb-1 from main.css */
.cd-announcement {
    padding: 13px 1rem;
    border-bottom: 3px solid #39b4ac;
    background-color: #d8f4e2;
    background-image: none;
    color: #253d4e;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.cd-header-main {
    background: #fff;
    border-bottom: 1px solid #e8ecef;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    margin-bottom: 0 !important;
}

.cd-header-main.sticky-bar.stick {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Desktop: logo | nav (2 lines) | search | icons */
.cd-desktop-grid {
    display: none;
}

@media (min-width: 992px) {
    .cd-desktop-grid {
        display: grid;
        grid-template-columns: minmax(140px, auto) 1fr auto;
        grid-template-rows: auto;
        align-items: center;
        column-gap: 1.25rem;
        row-gap: 0.5rem;
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }
}

.cd-logo-cell {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
}

.cd-main-nav-cell {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    min-width: 0;
}

.cd-actions-cell {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
}

.cd-logo img {
    max-height: 42px;
    width: auto;
}

.cd-main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.cd-nav-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cd-nav-line > li > a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cd-nav-line > li > a:hover,
.cd-nav-line > li > a.cd-nav-active {
    background-color: #088178;
    color: #ffffff !important;
}

.cd-has-sub {
    position: relative;
}

.cd-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid #eef0f2;
    z-index: 1000;
}

.cd-has-sub:hover > .cd-submenu,
.cd-has-sub:focus-within > .cd-submenu {
    display: block;
}

.cd-submenu li a {
    display: block;
    padding: 0.5rem 1.15rem;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

.cd-submenu li a:hover {
    background: #f4fbf7;
    color: #088178;
}

.cd-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.cd-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #1a1a1a;
    min-width: 52px;
    position: relative;
}

.cd-count-above {
    font-size: 0.7rem;
    font-weight: 700;
    color: #088178;
    line-height: 1;
    margin-bottom: 2px;
}

.cd-count-spacer {
    visibility: hidden;
}

.cd-action-item span.cd-action-label {
    font-size: 0.65rem;
    margin-top: 0.2rem;
    font-weight: 600;
    color: #444;
    text-transform: capitalize;
}

.cd-action-item img {
    width: 22px;
    height: 22px;
}

/* hide theme badge when using count-above */
.cd-action-item .pro-count {
    display: none;
}

.cd-mobile-bar {
    border-bottom: 1px solid #f0f0f0;
}

.cd-mobile-bar .cd-logo img {
    max-height: 36px;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .cd-desktop-grid {
        grid-template-columns: minmax(120px, auto) 1fr auto;
        column-gap: 0.85rem;
    }

    .cd-nav-line {
        gap: 0.25rem 0.85rem;
    }
}


/* Zero gap: main content touches header directly */
main, .main, .main-content, body > main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* New Evara slider wrap — guaranteed no gap, full width */
.ev-slider-wrap {
    display: block !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}
