/* ==========================================================================
   AURAANIX — Premium full-width Mega Menu
   Light surface to match the white nav bar, gold accents, Oswald/Montserrat.
   Uses only the existing design tokens (--ax-*). Desktop ≥992px; below that
   the mobile drawer takes over (this panel is hidden with the desktop nav).
   ========================================================================== */

/* Full-width anchoring: the panel resolves against .ax-nav, not the <li>. */
.ax-nav { position: relative; }
.ax-nav__item.has-children { position: static; }

/* Make every nav item fill the full bar height so there is no dead gap
   between the link and the panel — otherwise the menu closes while the
   cursor travels down toward the mega panel. */
.ax-nav__list { align-items: stretch; }
.ax-nav__item { display: flex; align-items: center; }

/* ---- Panel ---------------------------------------------------------------- */
.ax-mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 90;
    background: #ffffff;
    border-top: 1px solid var(--ax-border, #ececec);
    box-shadow: 0 30px 60px -18px rgba(10, 10, 10, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    pointer-events: none;
}
/* Gold hairline accent that sweeps the top of the panel */
.ax-mega::before {
    content: "";
    position: absolute;
    top: -1px; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--ax-gold, #c9974d) 30%, var(--ax-gold, #c9974d) 70%, transparent);
}
/* Invisible hover bridge so moving the cursor down into the panel doesn't
   pass through a dead zone that closes the menu. */
.ax-mega::after {
    content: "";
    position: absolute;
    top: -18px; left: 0; right: 0; height: 18px;
}
.ax-nav__item.has-children:hover > .ax-mega,
.ax-nav__item.has-children:focus-within > .ax-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.ax-mega__inner {
    max-width: var(--ax-max, 1440px);
    margin: 0 auto;
    padding: 30px 40px 22px;
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    grid-template-areas:
        "cats promo"
        "foot foot";
    gap: 26px 36px;
}

/* ---- Shared bits ---------------------------------------------------------- */
.ax-mega__title,
.ax-mega__eyebrow {
    font-family: inherit;            /* match the navbar font (Montserrat) */
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--ax-ink, #141414);
}
.ax-mega__title { font-size: 13px; font-weight: 600; margin: 0 0 16px; }

/* ---- Categories column ---------------------------------------------------- */
.ax-mega__cats { grid-area: cats; border-right: 1px solid var(--ax-border, #ececec); padding-right: 34px; }
.ax-mega__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.ax-mega__eyebrow { font-size: 14px; font-weight: 700; }
.ax-mega__all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--ax-gold, #c9974d);
}
.ax-mega__all svg { transition: transform 0.18s ease; }
.ax-mega__all:hover svg { transform: translateX(3px); }

/* Category image cards — image on top, name below (premium tile) */
.ax-mega__catgrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.ax-mega__catcard {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ax-border, #ececec);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.ax-mega__catthumb {
    width: 100%;
    height: 158px;
    overflow: hidden;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ax-mega__catthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.ax-mega__catcard:hover .ax-mega__catthumb img { transform: scale(1.06); }
.ax-mega__catfallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', 'Montserrat', sans-serif;
    font-size: 46px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(150deg, #d8a657 0%, #c9974d 60%, #b9833c 100%);
}
.ax-mega__catbody {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
}
.ax-mega__catname {
    flex: 1 1 auto;
    min-width: 0;
    /* Same font / size / spacing as the navbar links (Inter, inherited) */
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--ax-ink, #141414);
    line-height: 1.25;
}
.ax-mega__chev {
    flex: 0 0 auto;
    color: var(--ax-gray, #b6b6b6);
    transform: translateX(-3px);
    opacity: 0.55;
    transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.ax-mega__catcard:hover {
    border-color: rgba(201, 151, 77, 0.6);
    box-shadow: 0 20px 38px -18px rgba(10, 10, 10, 0.4);
    transform: translateY(-4px);
}
.ax-mega__catcard:hover .ax-mega__chev { opacity: 1; transform: translateX(0); color: var(--ax-gold, #c9974d); }

/* ---- Featured products ---------------------------------------------------- */
.ax-mega__featured { grid-area: featured; }
.ax-mega__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.ax-mcard {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ax-border, #ececec);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ax-mcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px -14px rgba(10, 10, 10, 0.28);
    border-color: rgba(201, 151, 77, 0.5);
}
.ax-mcard__media { position: relative; aspect-ratio: 1 / 1; background: #f3f3f3; overflow: hidden; }
.ax-mcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.ax-mcard:hover .ax-mcard__media img { transform: scale(1.06); }
.ax-mcard__badge {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 1;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
}
.ax-mcard__badge.is-new   { background: #1f8a5f; }
.ax-mcard__badge.is-best  { background: var(--ax-gold, #c9974d); color: #1a1206; }
.ax-mcard__badge.is-trend { background: var(--ax-ink, #141414); }
.ax-mcard__off {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 1;
    padding: 4px 8px;
    border-radius: 999px;
    background: #b8312a;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
}
.ax-mcard__body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.ax-mcard__name {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ax-ink, #141414);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ax-mcard__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ax-gray, #8a8a8a);
}
.ax-mcard__rating svg { color: var(--ax-gold, #c9974d); }
.ax-mcard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.ax-mcard__price { font-size: 14px; font-weight: 800; color: var(--ax-ink, #141414); }
.ax-mcard__price s { font-size: 11px; font-weight: 500; color: var(--ax-gray, #b0b0b0); margin-left: 4px; }
.ax-mcard__cta {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #1a1206;
    background: linear-gradient(180deg, #d8a657 0%, #c9974d 100%);
    padding: 6px 12px;
    border-radius: 999px;
    transition: filter 0.16s ease;
}
.ax-mcard:hover .ax-mcard__cta { filter: brightness(1.06); }
.ax-mega__empty { color: var(--ax-gray, #8a8a8a); font-size: 13px; margin: 0; }

/* ---- Promo banner --------------------------------------------------------- */
.ax-mega__promo { grid-area: promo; }
.ax-mega__promocard {
    position: relative;
    height: 100%;
    min-height: 220px;
    border-radius: 16px;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 85% 10%, rgba(201, 151, 77, 0.28) 0%, transparent 55%),
        linear-gradient(160deg, #262f3d 0%, #14181f 55%, #0a0a0a 100%);
    color: #fff;
}
.ax-mega__promocard::after {
    content: "";
    position: absolute;
    right: -50px; bottom: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 151, 77, 0.3) 0%, transparent 70%);
}
.ax-mega__promotag {
    position: relative;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--ax-gold, #c9974d);
    border: 1px solid rgba(201, 151, 77, 0.5);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: auto;
}
.ax-mega__promotitle {
    position: relative;
    font-family: 'Oswald', 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin: 16px 0 8px;
}
.ax-mega__promotext { position: relative; font-size: 12.5px; line-height: 1.55; color: #c9cfd8; margin: 0 0 16px; }
.ax-mega__promobtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 11px 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #d8a657 0%, #c9974d 100%);
    color: #1a1206;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    box-shadow: 0 12px 26px -10px rgba(201, 151, 77, 0.6);
}
.ax-mega__promobtn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(201, 151, 77, 0.7); }

/* ---- Utility footer: hint + quick links ----------------------------------- */
.ax-mega__foot {
    grid-area: foot;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--ax-border, #ececec);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.ax-mega__foothint {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ax-gray, #8a8a8a);
    letter-spacing: 0.2px;
}
.ax-mega__search {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1 1 320px;
    max-width: 440px;
    padding: 0 14px;
    height: 42px;
    background: #f6f6f6;
    border: 1px solid var(--ax-border, #ececec);
    border-radius: 999px;
    color: var(--ax-gray, #8a8a8a);
    transition: border-color 0.16s ease, background 0.16s ease;
}
.ax-mega__search:focus-within { border-color: var(--ax-gold, #c9974d); background: #fff; }
.ax-mega__search input {
    border: 0;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 13.5px;
    color: var(--ax-ink, #141414);
    font-family: inherit;
}
.ax-mega__search button {
    flex: 0 0 auto;
    border: 0;
    cursor: pointer;
    padding: 6px 16px;
    margin-right: -6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #1a1206;
    background: linear-gradient(180deg, #d8a657 0%, #c9974d 100%);
    transition: filter 0.16s ease;
}
.ax-mega__search button:hover { filter: brightness(1.06); }
.ax-mega__quick { display: flex; align-items: center; gap: 6px; }
.ax-mega__quick a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--ax-ink, #141414);
    transition: background 0.16s ease, color 0.16s ease;
}
.ax-mega__quick a:hover { background: #faf7f1; color: var(--ax-gold, #c9974d); }
.ax-mega__qdiv { width: 1px; height: 20px; background: var(--ax-border, #ececec); }

/* ---- Responsive (within desktop nav range) -------------------------------- */
@media (max-width: 1200px) {
    /* Drop the promo column on smaller laptops; categories span full width. */
    .ax-mega__inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "cats"
            "foot";
        gap: 20px 0;
    }
    .ax-mega__promo { display: none; }
    .ax-mega__cats { border-right: 0; padding-right: 0; }
}
@media (max-width: 1040px) {
    .ax-mega__inner { padding: 24px 24px 18px; }
    .ax-mega__cards { gap: 12px; }
}
