html { scroll-behavior: smooth; }
body { min-width: 320px; }
:focus-visible { outline: 2px solid #e61042; outline-offset: 4px; }
.cart-open { overflow: hidden; }
button[aria-label="Cart"] { position: relative; }
.cart-count { position: absolute; top: -2px; right: -1px; display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 50%; background: #df1c3e; color: white; font-size: 10px; line-height: 1; }
.cart-count[hidden] { display: none; }
.cart-dialog { position: fixed; inset: 0 0 0 auto; width: min(100%, 460px); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-left: 1px solid #1e1919; color: #f8f8f8; background: #050404; }
.cart-dialog[open] { display: flex; flex-direction: column; animation: cart-enter .2s ease-out; }
.cart-dialog::backdrop { background: #000b; backdrop-filter: blur(4px); }
.cart-heading { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid #1e1919; }
.cart-heading h2 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.cart-close, .cart-remove { display: grid; place-items: center; width: 32px; height: 32px; color: #9e9696; border-radius: 6px; font-size: 24px; cursor: pointer; }
.cart-close:hover, .cart-remove:hover { background: #100c0c; color: #df1c3e; }
.cart-items { flex: 1; overflow-y: auto; padding: 24px; }
.cart-empty { display: flex; min-height: 300px; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.cart-empty svg { color: #df1c3e; margin-bottom: 8px; }
.cart-empty h3 { font-size: 20px; font-weight: 600; }
.cart-empty p, .cart-footer p { color: #9e9696; font-size: 14px; line-height: 1.6; }
.cart-item { position: relative; display: flex; gap: 14px; padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid #1e1919; }
.cart-item img { width: 72px; height: 84px; border-radius: 8px; object-fit: cover; }
.cart-item-details { flex: 1; min-width: 0; padding-right: 10px; }
.cart-item-details > a { font-size: 14px; font-weight: 600; }
.cart-item-details > p { font-size: 12px; margin: 5px 0 12px; color: #9e9696; }
.cart-remove { position: absolute; right: -14px; top: -10px; font-size: 20px; }
.cart-item-controls { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.cart-item-controls button { width: 25px; height: 25px; background: #100c0c; border: 1px solid #1e1919; border-radius: 4px; cursor: pointer; }
.cart-item-controls strong { margin-left: auto; color: #33cc7d; font-size: 14px; white-space: nowrap; }
.cart-footer { padding: 24px; border-top: 1px solid #1e1919; }
.cart-footer:empty { display: none; }
.cart-total { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 16px; }
.cart-total strong { color: #33cc7d; }
.cart-primary { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; margin-top: 20px; border-radius: 7px; background: #df1c3e; color: #fff; font-size: 14px; font-weight: 600; transition: background .2s, transform .2s; }
.cart-primary:hover { background: #ed2549; transform: translateY(-1px); }
button[aria-label="Previous image"]:focus-visible, button[aria-label="Next image"]:focus-visible { opacity: 1; }
@media (hover: none) { button[aria-label="Previous image"], button[aria-label="Next image"] { opacity: 1; } }
@keyframes cart-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
