/* NÜMO cart — icon + slide-in drawer. Mobile-first. */

body.numo-cart-open { overflow: hidden; }

/* -------------------- Nav icon ------------------------------- */
.cart-icon {
    position: relative;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .08);
    color: #f4ece4;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
    margin-left: auto;
    padding: 0;
}
.cart-icon:hover {
    border-color: #c5704d;
    background: rgba(197, 112, 77, .08);
}
.cart-icon svg { width: 20px; height: 20px; }
.cart-icon__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #c5704d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    font-family: "Manrope", system-ui, sans-serif;
    letter-spacing: 0;
}

/* On both layouts we need a flex parent with space-between so the brand
   stays left and the cart icon floats to the right. Desktop wraps its
   content in `.nav__inner`; mobile uses the nav element directly. */
header.nav.nav--has-cart,
.nav__inner.nav--has-cart {
    justify-content: space-between;
    align-items: center;
}
.nav__inner.nav--has-cart {
    display: flex;
    width: 100%;
}

/* -------------------- Drawer --------------------------------- */
.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
    font-family: "Manrope", system-ui, sans-serif;
    color: #f4ece4;
}
.cart-drawer[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}
.cart-drawer__scrim {
    position: absolute;
    inset: 0;
    background: rgba(7, 6, 10, .65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.cart-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(420px, 100%);
    background: #0f0d12;
    border-left: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .25s ease;
    box-shadow: -20px 0 60px -10px rgba(0, 0, 0, .6);
}
.cart-drawer[aria-hidden="false"] .cart-drawer__panel {
    transform: translateX(0);
}

.cart-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.cart-drawer__eyebrow {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c5704d;
    font-weight: 700;
}
.cart-drawer__close {
    background: transparent;
    border: none;
    color: #c8bdb1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.cart-drawer__close:hover { background: rgba(255, 255, 255, .04); color: #f4ece4; }
.cart-drawer__close svg { width: 18px; height: 18px; }

.cart-drawer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Line item */
.cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 14px;
    background: #181318;
    border-radius: 10px;
    padding: 12px 14px;
    align-items: start;
}
.cart-item__img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: rgba(255, 255, 255, .02);
    border-radius: 6px;
}
.cart-item__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-item__title { font-weight: 700; font-size: 14px; color: #f4ece4; line-height: 1.3; }
.cart-item__sub { font-size: 12px; color: #8e827a; }
.cart-item__controls {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 6px;
    overflow: hidden;
}
.qty button {
    background: transparent;
    border: none;
    color: #f4ece4;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}
.qty button:hover { background: rgba(197, 112, 77, .12); color: #c5704d; }
.qty__n {
    min-width: 28px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}
.cart-item__remove {
    background: transparent;
    border: none;
    color: #8e827a;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}
.cart-item__remove:hover { color: #e26f57; }
.cart-item__price {
    font-weight: 700;
    color: #c5704d;
    font-size: 14px;
    white-space: nowrap;
}

/* Empty state */
.cart-drawer__empty {
    margin: auto;
    text-align: center;
    color: #8e827a;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.cart-drawer__empty svg { width: 48px; height: 48px; color: #574e47; margin-bottom: 6px; }
.cart-drawer__empty p { margin: 0; font-size: 14px; color: #f4ece4; }
.cart-drawer__empty-sub { font-size: 13px; color: #8e827a !important; }
.cart-drawer__back {
    margin-top: 14px;
    background: transparent;
    border: 1px solid #c5704d;
    color: #c5704d;
    padding: 10px 22px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
}

/* Footer */
.cart-drawer__foot {
    padding: 18px 22px calc(20px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, .06);
    background: #0c0a0e;
}
.cart-drawer__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}
.cart-drawer__row span:first-child { color: #c8bdb1; font-size: 13px; }
.cart-drawer__row span:last-child { font-size: 20px; font-weight: 800; color: #f4ece4; letter-spacing: -0.005em; }
.cart-drawer__note {
    margin: 0 0 14px;
    font-size: 11px;
    color: #8e827a;
    letter-spacing: 0.04em;
}
.cart-drawer__cta {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(180deg, #d88a63, #c5704d);
    border: none;
    color: #fff;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    transition: transform .12s ease;
}
.cart-drawer__cta:hover { transform: translateY(-1px); }
.cart-drawer__cta:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Tablet+ */
@media (min-width: 600px) {
    .cart-drawer__head { padding: 24px 26px 18px; }
    .cart-drawer__body { padding: 18px 22px; }
    .cart-drawer__foot { padding: 20px 26px 26px; }
}
