/* Cart button + drawer. Standalone: safe to load next to the landing page's
   inline CSS. Button variants are scoped to .drawer so they never leak. */
.cart-button { position: relative; display: inline-grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(21,18,33,.14); border-radius: 50%; background: transparent; color: #151221; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.cart-button:hover { border-color: #151221; background: #FFFFFF; }
.cart-button svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -4px; right: -4px; display: grid; min-width: 21px; height: 21px; place-items: center; padding: 0 5px; border-radius: 999px; color: #FFFFFF; background: #6A3FE0; font-size: .68rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.cart-count[hidden] { display: none; }

.drawer-scrim { position: fixed; inset: 0; z-index: 150; background: rgba(21,18,33,.5); opacity: 0; backdrop-filter: blur(3px); transition: opacity .3s cubic-bezier(.22,1,.36,1); }
.drawer-scrim[hidden] { display: none; }
.drawer-scrim.open { opacity: 1; }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 151; display: flex; width: min(430px, 100%); flex-direction: column; background: #F4F1EA; box-shadow: -24px 0 60px rgba(21,18,33,.22); transform: translateX(100%); transition: transform .34s cubic-bezier(.22,1,.36,1); font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; color: #151221; }
.drawer[hidden] { display: none; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid rgba(21,18,33,.14); }
.drawer-head h2 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.drawer-close { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(21,18,33,.14); border-radius: 50%; background: transparent; color: inherit; cursor: pointer; font-size: 1.1rem; }
.drawer-close:hover { border-color: #151221; background: #FFFFFF; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid rgba(21,18,33,.14); background: #FFFFFF; }
.cart-empty { padding: 48px 0; color: #514C5C; text-align: center; }
.cart-empty p { margin: 0 0 20px; }

.line-item { display: grid; padding: 18px 0; border-bottom: 1px solid rgba(21,18,33,.14); gap: 16px; grid-template-columns: 76px 1fr; }
.line-item:last-child { border-bottom: 0; }
.line-item img { width: 76px; height: 76px; border-radius: 10px; background: #FFFFFF; object-fit: cover; }
.line-item h3 { margin: 0; font-size: .95rem; font-weight: 600; }
.line-item .li-meta { margin: 2px 0 10px; color: #6E6858; font-size: .78rem; }
.li-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.li-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(21,18,33,.14); border-radius: 999px; background: #FFFFFF; }
.qty button { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; font-size: 1.05rem; line-height: 1; }
.qty button:hover:not([disabled]) { color: #5324C4; }
.qty button[disabled] { opacity: .3; cursor: not-allowed; }
.qty span { min-width: 30px; font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.li-remove { padding: 0; border: 0; background: none; color: #6E6858; cursor: pointer; font-size: .76rem; text-decoration: underline; text-underline-offset: 3px; }
.li-remove:hover { color: #151221; }

.totals { display: grid; gap: 8px; margin-bottom: 16px; }
.totals div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.totals .t-sub { color: #514C5C; font-size: .9rem; }
.totals .t-total { padding-top: 10px; border-top: 1px solid rgba(21,18,33,.14); font-size: 1.15rem; font-weight: 700; }
.totals .t-total b { font-variant-numeric: tabular-nums; }
.cod-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; color: #6E6858; font-size: .78rem; }
.cod-note::before { flex: 0 0 auto; width: 8px; height: 8px; margin-top: .4em; border-radius: 50%; background: #2F7D52; content: ""; box-shadow: 0 0 0 4px rgba(47,125,82,.14); }

/* scoped so the landing page's own .button rules stay untouched */
.drawer .button { display: inline-flex; min-height: 50px; width: auto; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border: 1px solid #151221; border-radius: 999px; color: #FFFFFF; background: #151221; font-size: .9rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .25s cubic-bezier(.22,1,.36,1), background .25s ease, border-color .25s ease; }
.drawer .button::after { content: none; }
.drawer .button.violet { border-color: #6A3FE0; background: #6A3FE0; }
.drawer .button.violet:hover { border-color: #151221; background: #151221; transform: translateY(-2px); }
.drawer .button.secondary { border-color: rgba(21,18,33,.14); color: #151221; background: transparent; }
.drawer .button.secondary:hover { border-color: #151221; background: #FFFFFF; }
.drawer .button.block { display: flex; width: 100%; }
.drawer .button:active { transform: translateY(0) scale(.985); transition-duration: .06s; }

@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer-scrim { transition-duration: .01ms !important; }
}
