/* ==========================================================================
   My Party Box — master.css
   NORMALISED SITE-WIDE STANDARD
   ========================================================================== */

:root {
    --brand: #ff9418;
    --brand-light: #ffc774;
    --brand-dark: #e97800;
    --pink: #ff7899;
    --light-pink: #fff5f7;
    --success: #2ed573;
    --success-dark: #26af5f;
    --dark: #2d3436;
}

* { box-sizing: border-box; }

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--dark);
    padding-top: 98px;
}

/* ==========================================================================
   My Party Box — site-wide navigation
   Desktop: grouped dropdowns + utility icons
   Mobile: logo + Party Box + hamburger
   ========================================================================== */
.nav-wrapper {
    min-height: 98px;
    background: #fff;
    padding: 10px clamp(18px, 4vw, 52px);
    display: grid;
    grid-template-columns: minmax(245px, 1fr) auto minmax(245px, 1fr);
    align-items: center;
    gap: 28px;
    border-bottom: 5px solid var(--brand-light);
    box-shadow: 0 3px 14px rgba(29, 43, 62, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    justify-self: start;
    min-width: 0;
    text-decoration: none;
}

.brand-mark {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex: 0 0 64px;
}

.brand-wordmark {
    width: 205px;
    height: 64px;
    object-fit: contain;
    object-position: left center;
    flex: 0 1 205px;
}


#menu-checkbox { display: none; }

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

.nav-menu > li {
    position: relative;
    list-style: none;
}

.nav-link,
.nav-drop-button {
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 9px;
    color: #172238;
    background: transparent;
    border: 0;
    border-radius: 0;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

.nav-link::after,
.nav-drop-button::after {
    content: '';
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 3px;
    height: 3px;
    border-radius: 3px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
}

.nav-link:hover::after,
.nav-drop-button:hover::after,
.nav-link.active-nav::after,
.nav-drop-button.active-nav::after { transform: scaleX(1); }

.nav-link:hover,
.nav-drop-button:hover,
.nav-link.active-nav,
.nav-drop-button.active-nav {
    color: #172238 !important;
    background: transparent !important;
}

.chevron {
    width: 7px;
    height: 7px;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
}

.has-dropdown:hover .chevron,
.has-dropdown:focus-within .chevron { transform: rotate(225deg) translate(-1px,-1px); }

.nav-dropdown {
    position: absolute;
    top: calc(100% - 2px);
    left: 50%;
    min-width: 210px;
    padding: 9px;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #f0e7dc;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(29,43,62,.13);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}

.has-dropdown:hover > .nav-dropdown,
.has-dropdown:focus-within > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.nav-dropdown a {
    display: block;
    padding: 11px 13px;
    border-radius: 10px;
    color: #172238;
    text-decoration: none;
    font-weight: 700;
    font-size: .91rem;
}

.nav-dropdown a:hover,
.nav-dropdown a.active-nav {
    color: var(--brand-dark) !important;
    background: #fff6eb !important;
}

.nav-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-icon-link,
.menu-toggle {
    width: 40px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.search-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #172238;
    stroke-width: 1.9;
    stroke-linecap: round;
}

.account-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

.party-box-link {
    width: 54px;
    height: 48px;
    display: inline-grid;
    place-items: center;
}

.party-box-icon {
    width: 48px;
    height: 42px;
    object-fit: contain;
    display: block;
    grid-area: 1 / 1;
    transform: translateY(1px);
}

.party-box-link .box-filled { display: none; }
.party-box-link.is-filled .box-empty { display: none; }
.party-box-link.is-filled .box-filled { display: block; }

.box-count {
    position: absolute;
    top: -1px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #f52f70;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .72rem;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 2px 7px rgba(245,47,112,.25);
}

.box-count[data-count='0'] { display: none; }

.menu-toggle {
    display: none;
    width: 42px;
    gap: 5px;
    align-content: center;
}

.menu-toggle span {
    width: 27px;
    height: 3px;
    background: var(--brand);
    border-radius: 10px;
    transition: transform .25s ease, opacity .2s ease;
}

/* Tablet squeeze before switching to mobile */
@media (max-width: 1120px) and (min-width: 901px) {
    .nav-wrapper {
        grid-template-columns: minmax(205px, .9fr) auto minmax(205px, .9fr);
        gap: 14px;
        padding-left: 24px;
        padding-right: 24px;
    }
    .brand-mark { width: 48px; height: 48px; flex-basis: 48px; }
    .brand-wordmark { width: 175px; height: 48px; flex-basis: 175px; }
    .nav-menu { gap: 3px; }
    .nav-link, .nav-drop-button { padding-left: 6px; padding-right: 6px; font-size: .88rem; }
    .nav-actions { gap: 8px; }
}





/* ==========================================================================
   One footer standard for every page
   ========================================================================== */
footer {
    background: #fff;
    border-top: 5px solid var(--brand-light);
    padding: 40px 20px;
    text-align: center;
    margin-top: 0;
}

.footer-strapline,
.footer-tagline {
    font-family: 'Pacifico', cursive;
    color: var(--pink);
    font-size: 1.4rem;
    margin-bottom: 25px;
}

.footer-icon {
    width: 40px;
    height: 40px;
    margin: 0 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.footer-icon:hover {
    transform: scale(1.2) rotate(5deg);
}

footer .social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 15px;
}

footer .social-links .footer-icon {
    display: block;
    margin: 0;
}

footer .social-links a:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 5px;
    border-radius: 5px;
}

.footer-copy,
.copyright-text {
    font-size: 0.85rem;
    color: #636e72;
    margin-top: 15px;
}




@media (max-width: 768px) {
    .brand-wordmark {
        height: 46px !important;
        width: auto !important;
        max-width: none !important;
    }
}

/* ==========================================================================
   Mobile navigation — single authoritative breakpoint
   ========================================================================== */
@media (max-width: 900px) {
    body {
        padding-top: 64px;
    }

    .nav-wrapper {
        height: 64px;
        min-height: 64px;
        display: flex;
        padding: 0 10px;
        gap: 8px;
    }

    .logo-container {
        height: 64px;
        margin-right: auto;
        gap: 8px;
        align-items: center;
        overflow: visible;
    }

    .brand-mark {
        width: 50px;
        height: 50px;
        flex: 0 0 50px;
        object-fit: contain;
    }

    .brand-wordmark {
        width: auto;
        height: 46px;
        max-width: none;
        flex: 0 1 auto;
        object-fit: contain;
        object-position: left center;
    }

    .nav-actions {
        height: 64px;
        display: flex;
        align-items: center;
        gap: 5px;
        margin-left: auto;
    }

    .desktop-only {
        display: none !important;
    }

    .party-box-link {
        width: 46px;
        height: 48px;
    }

    .party-box-icon {
        width: 42px;
        height: 37px;
    }

    .menu-toggle {
        display: inline-grid;
        width: 38px;
        height: 48px;
        flex: 0 0 38px;
        align-self: center;
    }

    .menu-toggle span {
        width: 25px;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        padding: 12px 14px 18px;
        display: block;
        background: #fff;
        border-top: 1px solid #f4eee8;
        border-bottom: 4px solid var(--brand);
        box-shadow: 0 16px 28px rgba(29,43,62,.12);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }

    #menu-checkbox:checked ~ .nav-menu {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    #menu-checkbox:checked ~ .menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #menu-checkbox:checked ~ .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    #menu-checkbox:checked ~ .menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu > li {
        border-bottom: 1px solid #f4eee8;
    }

    .nav-menu > li:last-child {
        border-bottom: 0;
    }

    .nav-link,
    .nav-drop-button {
        width: 100%;
        height: auto;
        min-height: 48px;
        justify-content: space-between;
        padding: 12px 7px;
        font-size: 1rem;
    }

    .nav-link::after,
    .nav-drop-button::after {
        display: none;
    }

    .nav-dropdown {
        position: static;
        min-width: 0;
        width: 100%;
        padding: 0 0 8px 10px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        display: block;
    }

    .nav-dropdown a {
        padding: 9px 12px;
        color: #526073;
        font-size: .94rem;
    }

    .chevron {
        display: none;
    }
}

/* ==========================================================================
   MPB canonical header typography
   ========================================================================== */
:root{
  --mpb-header-pink:#ff4f86;
  --mpb-header-copy:#56667b;
  --mpb-header-shadow:
    3px 3px 0 #fff,
    -2px -2px 0 #fff,
    2px -2px 0 #fff,
    -2px 2px 0 #fff,
    7px 7px 0 rgba(0,0,0,.065);
}

/* ==========================================================================
   MOBILE NAV — prevent invisible menu links remaining clickable
   ========================================================================== */
@media (max-width: 900px) {
    /* Closed burger: the whole menu tree is non-interactive and hidden. */
    #menu-checkbox:not(:checked) ~ .nav-menu,
    #menu-checkbox:not(:checked) ~ .nav-menu * {
        pointer-events: none !important;
    }

    #menu-checkbox:not(:checked) ~ .nav-menu .nav-dropdown {
        visibility: hidden !important;
    }

    /* Open burger: restore interaction/visibility to the menu tree. */
    #menu-checkbox:checked ~ .nav-menu,
    #menu-checkbox:checked ~ .nav-menu * {
        pointer-events: auto !important;
    }

    #menu-checkbox:checked ~ .nav-menu .nav-dropdown {
        visibility: visible !important;
    }
}


/* Site-wide product and page search */
.site-search-panel[hidden] { display: none !important; }
.site-search-panel { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: min(94vw, 680px); max-height: min(70vh, 600px); overflow-y: auto; padding: 22px; background: #fff; border: 3px solid var(--brand); border-radius: 0 0 22px 22px; box-shadow: 0 18px 35px #17223824; z-index: 10001; }
.site-search-panel label { display: block; font-weight: 800; margin-bottom: 10px; }
.site-search-field { display: flex; align-items: stretch; border: 2px solid #ffcf9b; border-radius: 12px; overflow: hidden; }
.site-search-field input { min-width: 0; flex: 1; border: 0; padding: 13px; font: 600 1rem Quicksand,sans-serif; outline-offset: -3px; }
.site-search-close { border: 0; background: #fff6eb; color: #77400a; cursor: pointer; font: 700 1.6rem Quicksand,sans-serif; padding: 0 15px; }
.site-search-results { display: grid; gap: 4px; margin-top: 14px; }
.site-search-results a { display: flex; flex-direction: column; gap: 3px; padding: 11px 12px; border-radius: 10px; color: #24344b; text-decoration: none; }
.site-search-results a:hover, .site-search-results a:focus-visible { background: #fff3e3; }
.site-search-results span, .site-search-results p { color: #56667b; font-size: .87rem; margin: 0; }
.site-search-mobile-item { display: none; }
@media (max-width: 900px) {
  .site-search-panel { width: 100%; max-height: calc(100vh - 64px); padding: 18px; border-left: 0; border-right: 0; border-radius: 0 0 18px 18px; }
  .site-search-mobile-item { display: list-item; }
  .site-search-mobile-trigger { width: 100%; text-align: left; padding: 12px 14px; background: #fff6eb; border: 1px solid #ffcf9b; border-radius: 10px; color: #24344b; font: 800 1rem Quicksand,sans-serif; cursor: pointer; }
}
