.cart-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.28);opacity:0;visibility:hidden;transition:.3s ease;z-index:9997}.cart-backdrop.is-open{opacity:1;visibility:visible}.cart-drawer{position:fixed;top:0;right:0;width:min(625px,calc(100vw - 24px));height:100vh;background:#fff;z-index:9998;transform:translateX(100%);transition:transform .38s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;box-shadow:none}.cart-drawer.is-open{transform:translateX(0);box-shadow:-18px 0 45px rgba(0,0,0,.12)}.cart-drawer__header{display:flex;align-items:center;justify-content:space-between;padding:38px 52px 24px;border-bottom:1px solid #e8e8e8}.cart-drawer__title{font-family:var(--font-display);font-size:2rem;font-weight:400}.cart-drawer__close{border:0;background:none;font:inherit;cursor:pointer}.cart-drawer__body{flex:1;overflow:auto;padding:28px 52px}.cart-empty{padding:60px 0;text-align:center;color:#777}.cart-item{display:grid;grid-template-columns:140px 1fr auto;gap:24px;padding:18px 0 26px;border-bottom:1px solid #ededed}.cart-item__image{width:140px;height:140px;object-fit:cover;background:#f4f4f4}.cart-item__name{font-family:var(--font-display);font-size:1.25rem;margin-bottom:6px}.cart-item__price{font-size:1.15rem;margin-bottom:12px}.cart-item__meta{font-size:.92rem;color:#777;line-height:1.7}.cart-item__controls{display:flex;align-items:center;gap:14px;margin-top:16px}.cart-mini-qty{display:flex;align-items:center;border:1px solid #d9d9d9;height:38px}.cart-mini-qty button{width:36px;height:100%;border:0;background:#fff;cursor:pointer}.cart-mini-qty span{min-width:28px;text-align:center}.cart-remove{border:0;background:none;color:#d33;cursor:pointer;font-size:1.1rem}.cart-drawer__footer{padding:28px 52px 36px;border-top:1px solid #eee;background:#fff}.cart-gst{text-align:right;text-decoration:underline;margin-bottom:24px}.cart-summary{display:flex;justify-content:space-between;font-family:var(--font-display);font-size:1.25rem;margin-bottom:8px}.cart-tax-note{font-size:.9rem;margin-bottom:28px}.cart-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cart-actions a{height:64px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;letter-spacing:.2em;font-size:.78rem}.cart-view{border:1px solid #333}.cart-checkout{background:#333;color:#fff}.cart-count-badge{position:absolute;top:-7px;right:-7px;min-width:17px;height:17px;border-radius:50%;background:#111;color:#fff;font-size:10px;display:none;align-items:center;justify-content:center}.nav-cart-btn{position:relative}@media(max-width:768px){.cart-drawer{width:100vw}.cart-drawer__header,.cart-drawer__body,.cart-drawer__footer{padding-left:20px;padding-right:20px}.cart-item{grid-template-columns:92px 1fr;gap:15px}.cart-item__image{width:92px;height:92px}.cart-item__side{grid-column:2}.cart-actions{grid-template-columns:1fr}.cart-drawer__title{font-size:1.6rem}}

.cart-gst button {
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.gst-sheet {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 10001;
    width: min(525px, calc(100vw - 24px));
    padding: 34px 50px 46px;
    background: #fff;
    border-top: 1px solid #ececec;
    transform: translateY(110%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -16px 36px rgba(0, 0, 0, 0.08);
}

.gst-sheet.is-open {
    transform: translateY(0);
}

.gst-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.gst-sheet__header h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.gst-sheet__header button {
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.gst-sheet__form {
    display: grid;
    gap: 10px;
}

.gst-sheet__form label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.gst-sheet__form input {
    height: 58px;
    border: 1px solid #222;
    padding: 0 16px;
    font: inherit;
    text-transform: uppercase;
}

.gst-sheet__error {
    min-height: 20px;
    color: #b42318;
    font-size: 0.82rem;
}

.gst-sheet__save {
    height: 66px;
    border: 0;
    background: #343233;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    cursor: pointer;
}

@media (max-width: 768px) {
    .gst-sheet {
        width: 100vw;
        padding: 28px 20px 34px;
    }
}

/* GST bottom sheet is constrained to the cart drawer and remains mobile-safe. */
.gst-sheet {
    box-sizing: border-box;
    right: 0;
    width: min(625px, calc(100vw - 24px));
    max-height: min(78vh, 520px);
    overflow-y: auto;
}

.gst-sheet__form input {
    min-width: 0;
}

@media (max-width: 768px) {
    .gst-sheet {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        padding: 24px 18px 26px;
        border: 1px solid #e5e5e5;
    }

    .gst-sheet__header {
        gap: 18px;
        margin-bottom: 20px;
    }

    .gst-sheet__header h3 {
        font-size: 1.05rem;
        line-height: 1.35;
    }

    .gst-sheet__form input {
        height: 54px;
        font-size: 0.92rem;
    }

    .gst-sheet__save {
        height: 58px;
    }
}
