html,
body {
    overflow-x: hidden;
}


.custom-navbar {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e9dfd5;
    box-shadow: 0 6px 18px rgba(67, 34, 18, 0.04);
}

.nav-container {
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 68px;
    gap: 0;
    padding: 0 20px 0 14px !important;
    justify-content: flex-start !important;
}

.nav-left,
.nav-right,
.nav-menu {
    min-width: 0;
}

.nav-left {
    flex: 1 1 auto;
    gap: 14px !important;
    min-width: 0;
}

.nav-brand {
    flex: 0 0 auto;
    margin-right: 6px;
}

.nav-logo {
    height: 47px !important;
    width: 102px !important;
    width: auto;
}

.nav-logo-mobile {
    display: none;
}

.nav-menu {
    list-style: none;
    padding-left: 20%;
    margin: 0;
    gap: 28px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
}

.nav-menu li {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    position: relative;
}

.nav-menu .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0 !important;
    color: #121212;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.18s ease;
}

.nav-menu .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 100%;
    height: 2px;
    background: #e5252a;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.18s ease;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active,
.nav-menu .nav-link:focus-visible {
    color: #121212;
}

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

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0 !important;
    font: inherit;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    vertical-align: middle;
}

.nav-dropdown-arrow {
    font-size: 10px;
    color: #e5252a;
    line-height: 1;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 0;
    min-width: 250px;
    padding: 16px 0;
    border-radius: 0 0 18px 18px;
    background: #ed1f24;
    box-shadow: 0 20px 35px rgba(74, 21, 18, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 10020;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 10px 18px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-dropdown-item:hover {
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
}

.nav-menu-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8%;
    width: 130px;
    min-width: 130px;
    font-family: 'Marcellus';
    height: 34px;
    padding: 0;
    border-radius: 9px;
    background: linear-gradient(180deg, #ff3a3f 0%, #e71f25 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.08em;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.38), 0 6px 14px rgba(231, 31, 37, 0.16);
}

.nav-menu-cta:hover,
.nav-menu-cta.active {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.nav-right {
    flex: 0 0 auto;
    margin-left: 0;
    gap: 8px;
}

.nav-cart-wrap {
    margin-left: 32px;
}

.nav-right .icon-round-link,
.nav-right .loyalty-pill-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ed1f24;
    color: #ffffff;
    text-decoration: none;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.28);
}


.nav-right .icon-round-link:hover,
.nav-right .loyalty-pill-link:hover {
    color: #ffffff;
    text-decoration: none;
}
.nav-dropdown {
    display: flex;
    align-items: center;
    height: auto;
}
.origami-nav-icon-img,
.cart-icon,
.origami-user-avatar,
.loyalty-pill-icon {
    width: 19px;
    height: 19px;
    object-fit: contain;
    display: block;
}

.loyalty-pill-count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ed1f24 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff;
    font-size: 9px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;

    min-width: 18px;
    height: 18px;
    padding: 0 5px;

    border-radius: 999px;

    background: #ed1f24 !important;
    color: #ffffff !important;

    border: 2px solid #ffffff !important; /* 🔥 FORCE BORDER */

    font-size: 10px;
    font-weight: 700;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    z-index: 5;
}

.loyalty-pill-count {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ed1f24 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff;
    font-size: 9px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
.loyalty-pill-wrapper {
    position: relative;
}
.nav-cart-total {
    color: #1a1a1a;
    margin-left: 2px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.nav-right .dropdown-menu {
    border: 1px solid #f0e4da;
    box-shadow: 0 18px 36px rgba(20, 18, 16, 0.12);
}

.nav-right .dropdown-menu .dropdown-item i {
    color: #ed1f24 !important;
}

.nav-right .dropdown-menu .dropdown-item:hover {
    background: #fff3f1;
    color: #ed1f24;
}

.origami-user-name {
    display: none !important;
}

.burger-btn {
    width: 24px;
    height: 16px;
    display: none !important;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 auto;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: #161616;
}

.nav-right li,
.user-dropdown {
    list-style: none !important;
}

@media (max-width: 1180px) {
    .nav-container {
        gap: 14px;
        min-height: 64px;
        padding: 0 16px 0 12px !important;
    }

    .nav-left {
        gap: 14px !important;
    }

    .nav-menu {
        gap: 20px;
    }

    .nav-menu .nav-link {
        font-size: 12px;
    }

    .nav-cart-total {
        font-size: 13px;
    }

    .nav-right .icon-round-link,
    .nav-right .loyalty-pill-link {
        width: 40px;
        height: 40px;
    }

    .nav-cart-wrap {
        margin-left: 14px;
    }
}

@media (min-width: 993px) {
    .burger-btn {
        display: none !important;
    }

    .nav-left {
        align-self: stretch;
    }

    .nav-menu {
        align-self: stretch;
        align-items: stretch !important;
    }

    .nav-menu > li,
    .nav-menu > li.nav-dropdown {
        height: 100%;
    }
}

@media (max-width: 992px) {
    body {
        padding-top: 74px;
    }

    .custom-navbar {
        background: #ed1f24;
        border-bottom-color: rgba(255, 255, 255, 0.2);
    }

    .nav-container {
        min-height: 74px;
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    .burger-btn {
        display: flex !important;
        order: 1;
    }

    .burger-btn span {
        background: #ffffff;
    }

    .nav-brand {
        order: 2;
    }

    .nav-logo {
        display: none;
    }

    .nav-logo-mobile {
        display: block;
    }

    .nav-left {
        flex: 1 1 auto;
        gap: 12px !important;
    }

    .nav-menu-cta {
        display: none;
    }

    .nav-menu {
        display: none !important;
        position: fixed;
        top: 74px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 18px;
        padding: 24px 20px 28px;
        background: #ffffff;
        border-top: 1px solid #f1ddd7;
        box-shadow: 0 18px 30px rgba(36, 14, 10, 0.12);
        z-index: 10000;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu .nav-link {
        display: block;
        font-size: 14px;
        color: #121212;
    }

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

    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        padding: 8px 0 0 14px;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .nav-dropdown-item {
        padding: 0;
        color: #121212;
        font-size: 13px;
    }

    .nav-right {
        gap: 8px;
        margin-left: auto;
    }

    .nav-right .icon-round-link,
    .nav-right .loyalty-pill-link {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.28);
        box-shadow: none;
    }

    .origami-nav-icon-img,
    .cart-icon,
    .origami-user-avatar,
    .loyalty-pill-icon {
        width: 20px;
        height: 20px;
    }

    .cart-badge {
        background: #ffffff !important;
        color: #ed1f24 !important;
        border-color: #ffffff;
        min-width: 18px;
        height: 18px;
        font-size: 10px;
        top: -5px !important;
        right: -5px !important;
    }

    .nav-cart-total {
        display: none;
    }

    .nav-right .dropdown-menu {
        margin-top: 10px;
    }
}

/* ===== Navbar dropdown hover bridge ===== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 18px;
}

.nav-dropdown-menu {
    top: 100% !important;
    margin-top: 0 !important;
}

@media (max-width: 992px) {
    .nav-dropdown::after {
        display: none;
    }
}

/* ===== Mobile navbar redesign to match mockup ===== */
@media (max-width: 992px) {
    body {
        padding-top: 100px;
    }

    .custom-navbar {
        background: #ffffff !important;
    }

    .nav-container {
        position: relative;
        min-height: 100px;
        padding: 0 22px !important;
        gap: 0;
    }

    .nav-left {
        flex: 0 0 auto;
        min-width: 0;
        gap: 0 !important;
    }

    .nav-brand {
        order: 1;
        padding-right: 16px;
    }

    .nav-logo {
        display: block;
    }

    .nav-logo-mobile {
        display: none !important;
    }

    .burger-btn {
        position: absolute;
        right: 22px;
        top: 50%;
        transform: translateY(-50%);
        display: flex !important;
        width: 46px;
        height: 30px;
        order: 0;
        justify-content: space-between;
    }

    .burger-btn span {
        height: 4px;
        background: #ed1f24;
    }

    .nav-right {
        margin-left: auto;
        margin-right: 84px;
        gap: 12px;
        align-items: center;
    }

    .nav-right .icon-round-link,
    .nav-right .loyalty-pill-link {
        width: 52px;
        height: 52px;
        background: #ed1f24;
        border: 0;
        box-shadow: none;
    }

    .origami-nav-icon-img,
    .cart-icon,
    .origami-user-avatar,
    .loyalty-pill-icon {
        width: 28px;
        height: 28px;
    }

    .loyalty-pill-count {
        min-width: 20px;
        height: 20px;
        top: -6px;
        right: -8px;
        border: 2px solid #ffffff;
        background: #ed1f24 !important;
        color: #ffffff !important;
    }
    .cart-badge {
        min-width: 20px;
        height: 20px;
        top: -6px;
        right: -8px;
        border: 2px solid #ffffff;
        background: #ed1f24 !important;
        color: #ffffff !important;
    }

    .nav-cart-wrap {
        margin-left: 8px;
    }

    .nav-menu {
        top: 100px;
    }
}

@media (max-width: 640px) {
    body {
        padding-top: 92px;
    }

    .nav-container {
        min-height: 92px;
        padding: 0 18px !important;
    }

    .burger-btn {
        right: 18px;
        width: 42px;
        height: 26px;
    }

    .nav-right {
        margin-right: 72px;
        gap: 10px;
    }

    .nav-right .icon-round-link,
    .nav-right .loyalty-pill-link {
        width: 44px;
        height: 44px;
    }

    .origami-nav-icon-img,
    .cart-icon,
    .origami-user-avatar,
    .loyalty-pill-icon {
        width: 22px;
        height: 22px;
    }

    .nav-menu {
        top: 92px;
    }
}
/* ===== Mobile burger panel redesign ===== */
@media (max-width: 992px) {
    .nav-right {
        margin-right: 84px;
        gap: 10px;
    }

    .nav-right .icon-round-link,
    .nav-right .loyalty-pill-link {
        width: 52px;
        height: 52px;
    }

    .origami-nav-icon-img,
    .cart-icon,
    .origami-user-avatar,
    .loyalty-pill-icon {
        width: 24px;
        height: 24px;
    }

    .loyalty-pill-count {
        min-width: 20px;
        height: 20px;
        font-size: 10px;
        top: -6px;
        right: -8px;
    }
    .cart-badge {
        min-width: 20px;
        height: 20px;
        font-size: 10px;
        top: -6px;
        right: -8px;
    }

    .nav-menu {
        top: 100px;
        padding: 30px 34px 38px !important;
        background: #ed1f24 !important;
        border-top: 0 !important;
        box-shadow: none !important;
        display: none !important;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        grid-template-rows: auto auto auto auto auto;
        column-gap: 34px;
        row-gap: 18px;
        align-items: start !important;
    }

    .nav-menu.active {
        display: grid !important;
    }

    .nav-menu > li {
        width: 100%;
        min-width: 0;
    }

    .nav-menu > li:nth-child(1) { grid-column: 1; grid-row: 1; }
    .nav-menu > li:nth-child(2) { grid-column: 1; grid-row: 2; }
    .nav-menu > li:nth-child(3) { grid-column: 1; grid-row: 3; }
    .nav-menu > li:nth-child(5) { grid-column: 1; grid-row: 4; }

    .nav-menu > li.nav-dropdown {
        grid-column: 2;
        grid-row: 1 / span 4;
        align-self: start;
        height: auto !important;
        padding-left: 16px;
        border-left: 3px solid rgba(255, 255, 255, 0.86);
    }

    .nav-menu > li.nav-menu-mobile-cta-item {
        grid-column: 1 / span 2;
        grid-row: 5;
        display: flex;
        justify-content: center;
        padding-top: 18px;
    }

    .nav-menu .nav-link,
    .nav-dropdown-item {
        color: #ffffff !important;
        font-size: 20px !important;
        font-weight: 700;
        line-height: 1.15;
        text-transform: uppercase;
    }

    .nav-menu > li:nth-child(3) .nav-link {
        text-transform: none;
    }

    .nav-menu .nav-link.active,
    .nav-menu .nav-link:hover,
    .nav-dropdown-item:hover {
        color: #ffffff !important;
        text-decoration: none;
        opacity: 0.92;
        background: transparent !important;
    }

    .nav-dropdown-toggle {
        justify-content: space-between;
        width: 100%;
        gap: 12px;
        align-items: center;
    }

    .nav-dropdown-arrow {
        color: #7d1718 !important;
        font-size: 18px;
    }

    .nav-dropdown-menu {
        padding: 10px 0 0 0 !important;
        gap: 14px !important;
    }

    .nav-dropdown-item {
        padding: 0 !important;
    }

    .nav-menu-mobile-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 260px;
        max-width: 100%;
        min-height: 58px;
        padding: 0 30px;
        border-radius: 22px;
        border: 4px solid rgba(255, 255, 255, 0.55);
        color: #ffffff;
        text-decoration: none;
        font-size: 28px;
        font-weight: 400;
        letter-spacing: 0.06em;
        line-height: 1;
    }

    .nav-menu-mobile-cta:hover,
    .nav-menu-mobile-cta.active {
        color: #ffffff;
        text-decoration: none;
    }
}

@media (max-width: 640px) {
    .nav-right {
        margin-right: 72px;
        gap: 8px;
    }

    .nav-right .icon-round-link,
    .nav-right .loyalty-pill-link {
        width: 44px;
        height: 44px;
    }

    .origami-nav-icon-img,
    .cart-icon,
    .origami-user-avatar,
    .loyalty-pill-icon {
        width: 22px;
        height: 22px;
    }

    .nav-menu .nav-link,
    .nav-dropdown-item {
        font-size: 15px !important;
    }

    .nav-dropdown-arrow {
        font-size: 16px;
    }

    .nav-menu > li.nav-dropdown {
        padding-left: 14px;
    }

    .nav-menu-mobile-cta {
        min-width: 220px;
        min-height: 52px;
        border-width: 4px;
        font-size: 22px;
    }
}
/* ===== Mobile burger panel MENU visibility fix ===== */
@media (max-width: 992px) {
    .nav-menu.active > li.nav-menu-mobile-cta-item {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        grid-column: 1 / span 2 !important;
        grid-row: 5 !important;
        justify-content: center !important;
        align-items: center !important;
        padding-top: 18px !important;
        list-style: none !important;
    }

    .nav-menu.active .nav-menu-mobile-cta {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 260px !important;
        max-width: 100% !important;
        min-height: 58px !important;
        padding: 0 30px !important;
        border: 4px solid rgba(255, 255, 255, 0.55) !important;
        border-radius: 22px !important;
        color: #ffffff !important;
        background: transparent !important;
        text-decoration: none !important;
        font-size: 28px !important;
        font-weight: 400 !important;
        letter-spacing: 0.06em !important;
        line-height: 1 !important;
        text-transform: uppercase !important;
    }
}

@media (max-width: 640px) {
    .nav-menu.active .nav-menu-mobile-cta {
        min-width: 220px !important;
        min-height: 52px !important;
        border-width: 4px !important;
        font-size: 22px !important;
    }
}
@media (max-width: 767px) {
    .nav-menu {
        top: 92px;
        padding: 24px 18px 30px !important;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        column-gap: 18px;
        row-gap: 14px;
    }

    .nav-menu .nav-link,
    .nav-dropdown-item {
        display: block;
        width: 100%;
        font-size: 15px !important;
        line-height: 1.2;
        white-space: normal;
    }

    .nav-menu > li.nav-dropdown {
        padding-left: 12px !important;
        border-left-width: 2px;
    }

    .nav-dropdown-toggle {
        gap: 8px;
    }

    .nav-dropdown-arrow {
        font-size: 14px;
    }

    .nav-dropdown-menu {
        padding-top: 10px !important;
        gap: 10px !important;
    }

    .nav-menu.active > li.nav-menu-mobile-cta-item {
        padding-top: 14px !important;
    }

    .nav-menu.active .nav-menu-mobile-cta {
        min-width: 210px !important;
        min-height: 48px !important;
        padding: 0 26px !important;
        border-width: 3px !important;
        font-size: 20px !important;
    }
}
/* ===== Mobile burger panel scroll fix ===== */
@media (max-width: 992px) {
    .nav-menu.active {
        max-height: calc(100vh - 100px);
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
}

@media (max-width: 640px) {
    .nav-menu.active {
        max-height: calc(100vh - 92px);
    }
}

/* ===== Final mobile navbar restore ===== */
@media (max-width: 767px) {
    body {
        padding-top: 92px;
    }

    .nav-container {
        min-height: 92px !important;
        padding: 0 16px !important;
    }

    .nav-brand {
        padding-right: 12px !important;
        margin-right: 0 !important;
    }

    .nav-right {
        margin-left: auto !important;
        margin-right: 66px !important;
        gap: 10px !important;
        align-items: center !important;
    }

    .nav-right .icon-round-link,
    .nav-right .loyalty-pill-link {
        width: 42px !important;
        height: 42px !important;
    }

    .origami-nav-icon-img,
    .cart-icon,
    .origami-user-avatar,
    .loyalty-pill-icon {
        width: 21px !important;
        height: 21px !important;
    }

    .nav-cart-wrap {
        margin-left: 0 !important;
    }

    .burger-btn {
        right: 16px !important;
        width: 40px !important;
        height: 24px !important;
    }

    .burger-btn span {
        height: 4px !important;
    }

    .nav-menu {
        top: 92px !important;
        padding: 22px 20px 28px !important;
        grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.98fr) !important;
        column-gap: 18px !important;
        row-gap: 16px !important;
    }

    .nav-menu > li {
        display: block !important;
        width: 100% !important;
    }

    .nav-menu > li.nav-dropdown {
        display: block !important;
        padding-left: 16px !important;
        border-left: 2px solid rgba(255, 255, 255, 0.88) !important;
    }

    .nav-menu .nav-link,
    .nav-dropdown-toggle,
    .nav-dropdown-item {
        display: block !important;
        width: 100% !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
    }

    .nav-menu > li:nth-child(2) .nav-link,
    .nav-menu > li:nth-child(3) .nav-link {
        white-space: normal !important;
    }

    .nav-menu > li.nav-dropdown .nav-dropdown-toggle {
        display: inline-flex !important;
        width: auto !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 6px !important;
        margin-bottom: 10px !important;
        white-space: nowrap !important;
    }

    .nav-menu > li.nav-dropdown .nav-dropdown-menu {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        gap: 10px !important;
    }

    .nav-menu.active > li.nav-menu-mobile-cta-item {
        padding-top: 12px !important;
    }

    .nav-menu.active .nav-menu-mobile-cta {
        min-width: 194px !important;
        min-height: 48px !important;
        padding: 0 24px !important;
        border-width: 3px !important;
        border-radius: 20px !important;
        font-size: 19px !important;
        font-weight: 400 !important;
    }
}
.nav-right .nav-cart-wrap {
    position: relative !important;
}

.nav-right .nav-cart-wrap .cart-badge {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    z-index: 5 !important;
}

.nav-right .loyalty-pill-wrapper .cart-badge {
    display: none !important;
}
