/* ARMANIPLAST-PASS-039 — nav, date, mega hierarchy, footer, address, actions, mobile separators */

/* REQ-038-011 — date box uses the same max-width as nav.nav, not the viewport */
@media (min-width: 992px) {
    header.header > .nav-container.top.container,
    header.header.inner > .nav-container.top.container {
        width: 100%;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        box-sizing: border-box;
        max-width: 960px !important;
    }
    header.header > .nav-container.top .date,
    header.header.inner > .nav-container.top .date {
        justify-content: flex-start;
        max-width: 100%;
        margin-inline: 0;
    }
}
@media (min-width: 1200px) {
    header.header > .nav-container.top.container,
    header.header.inner > .nav-container.top.container {
        max-width: 1140px !important;
    }
}
@media (min-width: 1400px) {
    header.header > .nav-container.top.container,
    header.header.inner > .nav-container.top.container {
        max-width: 1320px !important;
    }
}

/* REQ-038-012 — arrow vertically centered with label; no hover nudge */
@media (min-width: 990px) {
    header.header #nav-products-submenu .dropdown-item.has-dropdown > a,
    header.header #nav-products-submenu .ap-nav-stack-group.has-dropdown > a,
    header.header #nav-products-submenu .ap-nav-stack-group > a.has-children {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between;
        gap: 0.35rem;
        line-height: 1.4 !important;
    }
    header.header #nav-products-submenu .dropdown-item.has-dropdown > a::after,
    header.header #nav-products-submenu .ap-nav-stack-group.has-dropdown > a::after,
    header.header #nav-products-submenu .ap-nav-stack-group > a.has-children::after {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        margin: 0;
        line-height: 1;
        align-self: center;
        flex: 0 0 auto;
    }
    header.header #nav-products-submenu .dropdown-item.has-dropdown:hover > a::after,
    header.header #nav-products-submenu .ap-nav-stack-group.has-dropdown:hover > a::after {
        transform: none !important;
        left: auto !important;
    }
}

/* REQ-038-013 — light column separation; keep flyouts white */
@media (min-width: 990px) {
    header.header .nav-item.has-dropdown > #nav-products-submenu {
        background: #f4f4f4 !important;
        border: 1px solid #e6e6e6;
    }
    header.header #nav-products-submenu > .dropdown-item {
        background: #fff;
        border-inline-start: 1px solid #ececec;
    }
    header.header #nav-products-submenu > .dropdown-item:first-child {
        border-inline-start: 0;
    }
    header.header #nav-products-submenu > .dropdown-item > a,
    header.header #nav-products-submenu > .dropdown-item > .dropdown-item-text,
    header.header #nav-products-submenu > .ap-nav-col-stack > .ap-nav-stack-group > a {
        background: #fafafa;
        border-bottom: 1px solid #efefef;
    }
    header.header #nav-products-submenu > .dropdown-item > .dropdown-menu > .dropdown-item:hover > a,
    header.header #nav-products-submenu > .ap-nav-col-stack .dropdown-item:hover > a {
        background: #f3f3f3 !important;
    }
}

/* REQ-038-019 — no unexplained band below the footer */
html,
body {
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0;
    background-color: #333333;
}
body > .container-fluid.p-0.m-0 {
    background-color: #fff;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
footer.footer {
    margin-bottom: 0 !important;
    padding-bottom: 0.85rem !important;
}
footer.footer::after {
    bottom: 0 !important;
    height: 100% !important;
}

/* REQ-038-020 — keep commas with the preceding address phrase */
footer.footer address {
    flex-wrap: wrap;
}
footer.footer address .ap-addr-part {
    display: inline;
    white-space: normal;
}
@media (max-width: 991.98px) {
    footer.footer address {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }
    footer.footer address .ap-addr-part {
        display: block;
        white-space: normal;
    }
}

/* REQ-038-021 — product actions readable without hover */
.product-detail a.theme-btn:not(.fill),
.product-detail button.theme-btn:not(.fill) {
    background: #2c2c2c !important;
    color: #fff !important;
    border: 1px solid #2c2c2c;
}
.product-detail a.theme-btn:not(.fill):hover,
.product-detail a.theme-btn:not(.fill):focus-visible,
.product-detail button.theme-btn:not(.fill):hover,
.product-detail button.theme-btn:not(.fill):focus-visible {
    background: #c45c26 !important;
    border-color: #c45c26;
    color: #fff !important;
}
.product-detail a.theme-btn.fill,
.product-detail button.theme-btn.fill {
    color: #fff !important;
}
.product-detail a.theme-btn:focus-visible,
.product-detail button.theme-btn:focus-visible,
.product-detail .js-armani-add-cart:focus-visible {
    outline: 2px solid #c45c26;
    outline-offset: 2px;
}

/* REQ-038-022 — root-level mobile drawer separators only */
@media (max-width: 991.98px) {
    header.header .nav-inner > ul > li.nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
    header.header .nav-inner > ul > li.nav-item:last-of-type {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
    header.header .nav-inner .dropdown-menu .dropdown-item,
    header.header .nav-inner .dropdown-menu li {
        border-bottom: 0;
    }
}
