html.cart-aberto { overflow: hidden; }

.header__cart { position: relative; margin-left: 4px; }
.header__count { position: absolute; top: 3px; right: 1px; display: grid; place-items: center; min-width: 19px; height: 19px; padding-inline: 4px; border-radius: 99px; background: var(--rosa); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }
.header__count[hidden] { display: none; }

/* Gaveta */
.cart { width: min(100vw, 440px); max-width: none; height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0; overflow: hidden; border: 0; background: #fff; color: var(--texto); }
.cart[open] { display: flex; flex-direction: column; animation: cartIn .25s ease; }
@keyframes cartIn { from { transform: translateX(32px); opacity: .6; } to { transform: none; opacity: 1; } }
.cart::backdrop { background: rgb(28 8 18 / .6); }
.cart [hidden] { display: none !important; }
.cart__head { display: flex; flex: none; align-items: center; justify-content: space-between; padding: 10px 14px 10px 22px; }
.cart__head h2 { display: flex; align-items: center; gap: 8px; font-size: 24px; }
.cart__count { display: grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 6px; border-radius: 99px; background: var(--rosa); color: #fff; font-family: var(--sans); font-size: 12px; font-weight: 800; }

.cart__progress { flex: none; padding: 12px 22px 22px; border-block: 1px solid var(--linha); }
.cart__progress p { min-height: 21px; margin: 0 0 14px; color: var(--tinta); font-size: 13px; line-height: 1.45; text-align: center; }
.cart__progress strong { color: var(--rosa-escuro); }
.cart__bar { position: relative; height: 26px; }
.cart__track { position: absolute; top: 10px; left: 0; right: 0; height: 6px; overflow: hidden; border-radius: 6px; background: #f3e4ea; }
.cart__track i { display: block; width: 0; height: 100%; border-radius: 6px; background: var(--rosa); transition: width .3s ease; }
.cart__marco { position: absolute; top: 0; display: grid; place-items: center; width: 26px; height: 26px; margin-left: -13px; border: 1px solid #cdb9c3; border-radius: 50%; background: #fff; color: #6f5f67; }
.cart__marco:last-child { margin-left: 0; }
.cart__marco.is-on { border-color: var(--rosa); background: var(--rosa); color: #fff; }
.cart__marco svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.cart__body { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.cart__empty { padding: 48px 28px; text-align: center; }
.cart__empty h3 { margin: 0 0 8px; color: var(--tinta); font-size: 18px; }
.cart__empty p { margin: 0 0 20px; font-size: 14px; }
.cart__empty .btn { width: 100%; }
.cart__lista { padding: 16px 22px 4px; }

/* Brindes */
.gift { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 8px; border: 1px dashed #cdb9c3; border-radius: 12px; background: #faf6f8; }
.gift img { width: 56px; height: 56px; flex: none; object-fit: cover; border-radius: 8px; background: #fff; filter: grayscale(.75); opacity: .7; }
.gift.is-unlocked { border: 1px solid var(--rosa); background: var(--rosa-claro); }
.gift.is-unlocked img { filter: none; opacity: 1; }
.gift__info { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.gift__selo { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 2px 8px; border-radius: 99px; background: #5d4f56; color: #fff; font-size: 10.500px; font-weight: 800; letter-spacing: .03em; }
.gift.is-unlocked .gift__selo { background: var(--rosa-escuro); }
.gift__selo svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gift__nome { color: var(--tinta); font-size: 13px; font-weight: 600; line-height: 1.3; }

/* Itens */
.cart-item { display: flex; gap: 14px; padding-block: 16px; border-bottom: 1px dashed #dcc9d2; }
.cart-item > img { width: 76px; height: 76px; flex: none; object-fit: cover; border-radius: 8px; background: var(--rosa-claro); }
.cart-item__info { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 8px; }
.cart-item__top { display: flex; align-items: flex-start; gap: 4px; }
.cart-item__nome { flex: 1; min-width: 0; margin: 0; color: var(--tinta); font-size: 13px; font-weight: 600; line-height: 1.35; }
.cart-item__remove { display: grid; flex: none; place-items: center; width: 44px; height: 44px; margin: -10px -12px 0 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #6f5f67; }
.cart-item__remove:hover { background: var(--rosa-claro); color: var(--rosa-escuro); }
.cart-item__remove svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-item__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cart-qty { display: inline-flex; align-items: center; height: 44px; overflow: hidden; border: 1px solid #cdb9c3; border-radius: 8px; background: #fff; }
.cart-qty button { width: 40px; height: 100%; padding: 0; border: 0; background: transparent; color: var(--tinta); font-size: 18px; }
.cart-qty button:hover { background: var(--rosa-claro); }
.cart-qty input { width: 34px; height: 100%; padding: 0; border: 0; background: transparent; color: var(--tinta); font-size: 14px; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.cart-qty input::-webkit-outer-spin-button, .cart-qty input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.cart-item__precos { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.cart-item__precos strong { color: var(--rosa); font-size: 16px; font-weight: 800; white-space: nowrap; }
.cart-item__precos s { color: #6f5f67; font-size: 12px; white-space: nowrap; }

/* Complete sua Rotina */
.cross { padding: 16px 0 18px 22px; background: #fff7fa; border-top: 1px solid var(--linha); }
.cross__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 14px; margin-bottom: 8px; }
.cross__head h3 { margin: 0; color: var(--tinta); font-size: 15px; }
.cross__navs { display: flex; }
.cross__navs button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--tinta); font-size: 18px; }
.cross__navs button:hover { background: var(--rosa-claro); color: var(--rosa-escuro); }
.cross__track { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 10px; padding: 2px 22px 4px 2px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.cross__track::-webkit-scrollbar { display: none; }
.cross-card { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--linha); border-radius: 12px; background: #fff; scroll-snap-align: start; }
.cross-card__foto { position: relative; flex: none; }
.cross-card__foto img { width: 62px; height: 62px; object-fit: cover; border-radius: 8px; background: var(--rosa-claro); }
.cross-card__off { position: absolute; z-index: 1; top: 3px; left: 3px; padding: 1px 5px; border-radius: 99px; background: var(--rosa-escuro); color: #fff; font-size: 10px; font-weight: 800; }
.cross-card__corpo { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.cross-card__nome { display: -webkit-box; overflow: hidden; color: var(--tinta); font-size: 12.500px; font-weight: 600; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cross-card__precos { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.cross-card__precos strong { color: var(--rosa); font-size: 14px; }
.cross-card__precos s { color: #6f5f67; font-size: 11.500px; }
.cross-card__add { display: grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--rosa); border-radius: 50%; background: #fff; color: var(--rosa-escuro); }
.cross-card__add:hover { background: var(--rosa); color: #fff; }
.cross-card__add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.cart__foot { flex: none; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linha); background: #fff; box-shadow: 0 -6px 18px rgb(28 8 18 / .06); }
.cart__total { display: flex; align-items: center; justify-content: space-between; color: var(--tinta); font-weight: 700; }
.cart__total strong { color: var(--rosa); font-size: 22px; font-weight: 800; }
.cart__nota { margin: 0 0 10px; font-size: 12.500px; }
.cart__foot .btn { width: 100%; }
