/* ==========================================================================
   Al Nomani Coupon Theme — Modern header (Wirecutter-style)
   ========================================================================== */

.anct-header-top {
    background: #ffffff;
    border-bottom: 1px solid #eef1f0;
    padding: 16px 0;
}

.anct-header-top-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.anct-logo-area {
    flex-shrink: 0;
}
.anct-logo-area img {
    display: block;
    max-height: 42px;
    width: auto;
}
.anct-logo-area .site-title {
    margin: 0;
}
.anct-logo-area .site-title a {
    font-weight: 800;
    font-size: 20px;
    text-decoration: none;
    color: #1c1f26;
}

/* --- Search bar --- */
.anct-header-search {
    flex: 1;
    max-width: 620px;
    margin: 0 auto;
}
.anct-search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d7ddda;
    border-radius: 999px;
    padding: 4px 4px 4px 18px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.anct-search-form:focus-within {
    border-color: #14BA88;
    box-shadow: 0 0 0 3px rgba(20, 186, 136, 0.12);
}
.anct-search-icon {
    color: #14BA88;
    margin-right: 10px;
    font-size: 18px;
}
.anct-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    padding: 10px 0;
    color: #1c1f26;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none;
    border-radius: 0;
}
.anct-search-input::-webkit-search-decoration,
.anct-search-input::-webkit-search-cancel-button,
.anct-search-input::-webkit-search-results-button,
.anct-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    display: none;
}
.anct-search-input::placeholder {
    color: #9aa1a8;
}

/* --- Auth buttons --- */
.anct-header-auth {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}
.anct-auth-link {
    font-size: 14px;
    font-weight: 600;
    color: #3a3f47;
    text-decoration: none;
    white-space: nowrap;
}
.anct-auth-link:hover {
    color: #14BA88;
}
.anct-auth-btn {
    background: #1c1f26;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background .15s ease;
}
.anct-auth-btn:hover {
    background: #14BA88;
}

/* --- Second row: nav menu --- */
.anct-header-nav {
    background: #ffffff;
    border-bottom: 2px solid #f0f2f1;
}
.anct-header-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.anct-header-nav .primary-navigation {
    display: flex;
    align-items: center;
}
.anct-header-nav .st-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    flex-wrap: wrap;
}
.anct-header-nav .st-menu > li > a {
    display: block;
    padding: 14px 0;
    font-size: 14px;
    font-weight: 700;
    color: #282d37;
    text-decoration: none;
}
.anct-header-nav .st-menu > li > a:hover {
    color: #14BA88;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .anct-header-top-inner {
        flex-wrap: wrap;
    }
    .anct-header-search {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }
    .anct-header-auth {
        margin-left: auto;
    }
}
@media (max-width: 600px) {
    .anct-auth-link {
        display: none;
    }
}
