/* fix-nav.css — launch-prep override layer (loads after motion-wc, wins cascade) */

/* ── Task 1: Dept mega-menu (Men / Women / Culinary) — narrower tiles ──────── */
/* Tiles sit in .mega-grid (2 cols). Tighten the column track + cell padding so
   each tile is smaller in width and the whole panel is more compact. */
.hdr .mega.mega-dept { width: 372px !important; }
.hdr .mega-dept .mega-grid { grid-template-columns: 1fr 1fr !important; gap: 3px !important; }
.hdr .mega-dept .mega-cell { padding: 8px 10px !important; }
/* Dept tile label same size as brand name text (Cherokee / Mobb = 16px) */
.hdr .mega-dept .mega-name { font-size: 16px !important; }

/* ── Task 2: Brand mega-menu — narrower tiles, BIGGER logo + text ──────────── */
.hdr .mega.mega-brands { width: 300px !important; }
.hdr .mega-brands .mega-brandgrid { grid-template-columns: 1fr !important; }
.hdr .mega-brandcell {
    grid-template-columns: 64px minmax(0, 1fr) !important; /* wider logo column */
    min-height: 56px !important;
    padding: 7px 10px !important;
    gap: 12px !important;
}
.hdr .mega-brandcell img {
    max-height: 38px !important;   /* bigger logo (was 24px) */
    max-width: 60px !important;    /* bigger logo (was 48px) */
}
.hdr .mega-brandcell strong { font-size: 16px !important; }   /* bigger label (was 14px) */
.hdr .mega-brandcell small  { font-size: 12.5px !important; } /* bigger desc  (was 11.5px) */

/* ── Task 3: Announcement bar — shorter, centered text, no arrows ───────────── */
.announce {
    height: 36px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 14.5px !important;
    line-height: 1.2 !important;
}
/* The message wrapper was collapsing to 0 width inside the flex bar, hiding the
   text. Make it a full-width centered block instead of a nested flex item. */
.announce .announce-msgs {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    padding: 0 48px !important;
    overflow: hidden !important;
    text-align: center !important;
}
.announce .announcement-message.active {
    display: block !important;
    /* Legacy style.css pins .announcement-message absolute at top:0, which made
       the text hug the top of the bar on desktop; static restores flex centering. */
    position: static !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    line-height: 1.2 !important;
    text-align: center !important;
    transform: none !important;
}
@media (max-width: 520px) {
    .announce {
        height: 34px !important;
        font-size: 13.5px !important;
    }
    .announce .announce-msgs {
        padding: 0 16px !important;
    }
}
/* Hide prev/next arrow controls (also removed from header.php markup) */
.announce .announce-arrow,
.announce .announce-prev,
.announce .announce-next { display: none !important; }

/* ==========================================================================
   Mobile sheet: collapsible department groups
   The sheet previously offered only flat top-level links, so phone users had no
   way to reach a category and landed on an unfiltered shop page. Built on
   <details>/<summary> so it needs no JavaScript.
   ========================================================================== */
.msheet-group {
    border-bottom: 1px solid var(--line);
}
.msheet-group > summary.msheet-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 14px 4px;
    font-family: var(--fdisp);
    font-weight: 600;
    font-size: 17px;
    border-bottom: 0;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}
/* Remove the native disclosure triangle (we render our own chevron). */
.msheet-group > summary.msheet-toggle::-webkit-details-marker { display: none; }
.msheet-group > summary.msheet-toggle::marker { content: ''; }
.msheet-group > summary.msheet-toggle svg {
    flex: 0 0 auto;
    transition: transform .2s ease;
}
.msheet-group[open] > summary.msheet-toggle svg {
    transform: rotate(180deg);
}
.msheet-group[open] > summary.msheet-toggle {
    color: var(--teal-dark);
}
.msheet-sub {
    display: flex;
    flex-direction: column;
    padding: 2px 0 10px 10px;
}
.msheet-sub .msheet-sublink {
    display: block;
    padding: 10px 6px;
    font-family: var(--fbody);
    font-size: 15px;
    color: var(--ink);
    border-bottom: 1px solid var(--soft);
}
.msheet-sub .msheet-sublink:last-child { border-bottom: 0; }
.msheet-sub .msheet-sublink:active { color: var(--teal-dark); }
.msheet-sub .msheet-suball {
    font-family: var(--fdisp);
    font-weight: 600;
    color: var(--teal-dark);
}
