/* =========================================================
   MudNPot Premium Customer Navbar
========================================================= */

.navbar-wrapper {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: .25s ease;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    flex-shrink: 0;
    padding: 5px 10px 5px 4px;
    border-radius: 12px;
    transition: background .25s ease, transform .25s ease;
}

.logo:hover {
    background: rgba(139,94,60,.06);
    transform: translateY(-1px);
}

.logo-mark {
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.brand-name {
    display: block;
    font-size: 25px;
    line-height: 1;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--primary);
}

.logo small {
    display: block;
    margin-top: 4px;
    color: #8a817b;
    font-size: .64rem;
    font-weight: 500;
    letter-spacing: .025em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-dropdown { position: relative; }
.nav-shop-control {
    display: flex;
    align-items: center;
}
.nav-shop-control .nav-shop-link {
    padding-right: 4px;
}
.nav-dropdown-toggle {
    width: 26px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #403832;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.nav-dropdown-toggle i {
    font-size: .68rem;
    transition: transform .2s ease;
}
.mega-menu {
    position: absolute;
    top: calc(100% + 9px);
    left: -16px;
    z-index: 1001;
    width: 360px;
    max-height: min(70vh, 620px);
    padding: 10px 16px 14px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(9px);
    background: #fff;
    border: 1px solid rgba(63, 46, 34, .12);
    border-radius: 4px;
    box-shadow: 0 16px 35px rgba(44, 31, 22, .14);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .mega-menu,
.nav-dropdown.is-open .mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.nav-dropdown:hover .nav-dropdown-toggle i,
.nav-dropdown:focus-within .nav-dropdown-toggle i,
.nav-dropdown.is-open .nav-dropdown-toggle i {
    transform: rotate(180deg);
}
.mega-menu::before { position: absolute; top: -11px; right: 0; left: 0; height: 12px; content: ''; }
.mega-menu-heading {
    margin: 12px 0 2px;
    color: #9a806d;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.mega-menu-heading:first-of-type {
    margin-top: 14px;
}
.nav-menu .mega-menu a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 14px;
    gap: 9px;
    min-height: 44px;
    padding: 0;
    color: #403832;
    font-size: .88rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(63, 46, 34, .10);
    transition: color .2s ease, padding .2s ease;
}
.mega-menu a:last-child { border-bottom: 0; }
.nav-menu .mega-menu a::after { display: none; }
.nav-menu .mega-menu a:hover,
.nav-menu .mega-menu a:focus-visible,
.nav-menu .mega-menu a.is-current {
    padding-left: 7px;
    color: var(--primary);
    transform: none;
}
.mega-menu-icon {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #8b5e3c;
    background: #f7efe7;
}
.mega-menu-icon i {
    font-size: .8rem;
}
.mega-menu .mega-menu-arrow {
    color: #9b6a44;
    font-size: .72rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .2s ease, transform .2s ease;
}
.nav-menu .mega-menu a:hover .mega-menu-arrow,
.nav-menu .mega-menu a:focus-visible .mega-menu-arrow,
.nav-menu .mega-menu a.is-current .mega-menu-arrow {
    opacity: 1;
    transform: translateX(0);
}
.nav-menu .mega-menu .mega-menu-all {
    color: var(--primary);
    font-weight: 700;
}

.nav-menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 2px;
    color: #403832;
    text-decoration: none;
    font-weight: 600;
    font-size: .94rem;
    letter-spacing: .01em;
    transition:
        color .25s ease,
        transform .25s ease;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}

.nav-menu a:hover {
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.icon-btn,
.cart-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4b433d;
    text-decoration: none;
    border-radius: 50%;
    transition: .25s ease;
}

.icon-btn {
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.icon-btn:hover,
.icon-btn.active-icon,
.cart-btn:hover,
.cart-btn.active-icon {
    color: var(--primary);
    background: rgba(139,94,60,.08);
}

.icon-btn i,
.cart-btn i {
    font-size: 20px;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #4b433d;
    font-size: 23px;
    cursor: pointer;
}

.header-search-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 18px max(20px, calc((100vw - 1180px) / 2));
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid #eee7e0;
    border-bottom: 1px solid #e5ddd5;
    box-shadow: 0 14px 28px rgba(44, 31, 22, .12);
}

.header-search-panel[hidden] {
    display: none;
}

.header-search-form {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    max-width: 860px;
    margin: 0 auto;
    padding: 8px 10px 8px 18px;
    background: #fff;
    border: 1px solid #d9cec4;
    border-radius: 999px;
}

.header-search-form > i {
    color: #8b5e3c;
    font-size: 1.05rem;
}

.header-search-form input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0;
    color: #342c27;
    font: inherit;
    border: 0;
    outline: 0;
}

.header-search-submit {
    min-height: 40px;
    padding: 0 22px;
    color: #fff;
    font-weight: 700;
    background: var(--primary);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.header-search-close {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #5f554e;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.header-search-close:hover {
    background: #f5eee8;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 992px) {

    .navbar {
        min-height: 72px;
    }

    .logo-mark {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .brand-name {
        font-size: 23px;
    }

    .logo small {
        font-size: .64rem;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 10px;
        max-height: calc(100vh - 96px);
        overflow-y: auto;
        background: rgba(255,255,255,.98);
        border: 1px solid #ece4dd;
        border-radius: 16px;
        box-shadow: 0 14px 35px rgba(59,41,29,.12);
    }

    .nav-menu.mobile-open {
        display: flex;
    }

    .nav-menu a {
        min-height: 48px;
        padding: 0 14px;
        border-radius: 10px;
    }

    .nav-shop-control {
        width: 100%;
    }

    .nav-shop-control .nav-shop-link {
        flex: 1;
    }

    .nav-dropdown-toggle {
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }

    .mega-menu,
    .nav-dropdown:hover .mega-menu,
    .nav-dropdown:focus-within .mega-menu {
        position: static;
        display: none;
        width: auto;
        max-height: none;
        margin: 0 7px 8px;
        padding: 4px 12px 10px;
        visibility: visible;
        opacity: 1;
        overflow: visible;
        transform: none;
        background: #faf7f3;
        border: 0;
        border-radius: 10px;
        box-shadow: none;
    }

    .nav-dropdown.is-open .mega-menu {
        display: block;
    }

    .mega-menu::before {
        display: none;
    }

    .mega-menu-heading {
        margin-top: 13px;
    }

    .nav-menu .mega-menu a {
        min-height: 43px;
        padding: 0 6px;
        border-radius: 0;
    }

    .nav-menu .mega-menu a:hover,
    .nav-menu .mega-menu a:focus-visible,
    .nav-menu .mega-menu a.is-current {
        padding-left: 11px;
        background: rgba(139,94,60,.07);
    }

    .mega-menu .mega-menu-arrow {
        opacity: 1;
        transform: none;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(139,94,60,.08);
    }

    .header-search-panel {
        padding: 13px 16px;
    }

}

@media (max-width: 600px) {

    .nav-actions {
        gap: 7px;
    }

    .icon-btn,
    .cart-btn,
    .menu-toggle {
        width: 38px;
        height: 38px;
    }

    .logo {
        gap: 8px;
    }

    .logo-mark {
        width: 37px;
        height: 37px;
        flex-basis: 37px;
    }

    .logo small {
        display: none;
    }

    .header-search-form {
        grid-template-columns: 20px minmax(0, 1fr) auto;
        gap: 8px;
        padding-left: 14px;
        border-radius: 14px;
    }

    .header-search-submit {
        padding: 0 15px;
    }

    .header-search-close {
        position: absolute;
        top: -48px;
        right: 14px;
        color: var(--primary);
        background: #f7efe7;
    }

}


/* =========================================================
   CUSTOMER INFORMATION PAGES
========================================================= */

.info-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 70px 24px 90px;
}

.info-hero {
    text-align: center;
    margin-bottom: 38px;
}

.info-hero .eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #8b5e3c;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.info-hero h1 {
    margin: 0;
    color: #2e2926;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.info-hero p {
    max-width: 650px;
    margin: 14px auto 0;
    color: #766b63;
    font-size: 1rem;
    line-height: 1.7;
}

.info-card {
    background: #fff;
    border: 1px solid #ece4dd;
    border-radius: 20px;
    padding: 34px;
    box-shadow: 0 8px 24px rgba(59,41,29,.06);
}

.info-card h2 {
    margin: 0 0 14px;
    color: #2e2926;
    font-family: 'Playfair Display', serif;
}

.info-card p {
    color: #625850;
    line-height: 1.75;
}

.primary-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: #8b5e3c;
    font-weight: 700;
    text-decoration: none;
}

.primary-link:hover {
    text-decoration: underline;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 24px;
}

.info-icon {
    display: block;
    margin-bottom: 14px;
    color: #8b5e3c;
    font-size: 28px;
}

@media (max-width: 700px) {

    .info-page {
        padding: 45px 18px 70px;
    }

    .info-card {
        padding: 25px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

}
