body.cart-drawer-open { overflow: hidden; }
.cart-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100%); height: 100%; height: 100dvh; max-width: 100%; max-height: 100%; padding: 0; border: 0; border-left: 1px solid #e5e0d7; background: #f7f4ec; color: #192333; box-shadow: -16px 0 70px #19233326; }
.cart-drawer[open] { display: flex; flex-direction: column; animation: cart-enter .22s ease-out; }
.cart-drawer::backdrop { background: #19233366; }
.drawer-heading { padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #e5e0d7; flex-shrink: 0; }
.drawer-heading h2 { margin: 8px 0 0; font-size: 29px; line-height: 1.2; letter-spacing: -1px; }
.drawer-close { width: 44px; height: 44px; border: 1px solid #dedbd3; background: transparent; border-radius: 50%; font-size: 28px; color: inherit; cursor: pointer; }
.drawer-items { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 26px; min-height: 0; }
.drawer-item { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-bottom: 1px solid #e5e0d7; }
.drawer-item .photo-frame, .drawer-unavailable { width: 88px; height: 104px; background: #fff; border-radius: 10px; overflow: hidden; }
.drawer-item .photo-frame img, .drawer-item .photo-frame svg { width: 100%; height: 100%; object-fit: contain; }
.drawer-item-info h3 { margin: 0 0 7px; font: inherit; font-weight: 600; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.drawer-item-info p { font-size: 11px; color: #6b716d; margin: 0 0 10px; }
.drawer-item-info strong { font-size: 14px; }
.drawer-controls { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 14px; }
.drawer-controls label { display: grid; gap: 5px; font-size: 10px; }
.drawer-controls input { width: 72px; min-height: 44px; border: 1px solid #d5d4cc; border-radius: 6px; padding: 8px; font: inherit; font-size: 16px; background: #fff; color: inherit; }
.drawer-controls button, .drawer-continue { min-height: 44px; border: 0; background: transparent; color: #805038; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.drawer-footer { padding: 22px 26px max(22px, env(safe-area-inset-bottom)); border-top: 1px solid #e5e0d7; flex-shrink: 0; background: #f7f4ec; }
.drawer-footer[hidden] { display: none; }
.drawer-total { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.drawer-total strong { font-size: 20px; }
.drawer-footer p { font-size: 11px; color: #6b716d; line-height: 1.6; margin: 12px 0 18px; }
.drawer-footer .btn { width: 100%; justify-content: space-between; }
.drawer-continue { display: block; margin: 6px auto 0; }
.drawer-message, .drawer-empty { padding: 44px 0; text-align: center; }
.drawer-empty > .icon { width: 44px; height: 44px; color: #a96140; }
.drawer-empty h3 { font-size: 25px; line-height: 1.25; margin: 24px 0 12px; }
.drawer-empty p, .drawer-message p { font-size: 14px; line-height: 1.7; color: #6b716d; margin-bottom: 24px; }
.cart-drawer :focus-visible { outline: 2px solid #a96140; outline-offset: 3px; }
.cart-drawer button:disabled { opacity: .5; cursor: not-allowed; }
@keyframes cart-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .cart-drawer[open] { animation: none; } }
@media (max-width: 360px) { .drawer-heading, .drawer-footer { padding: 18px; } .drawer-items { padding-inline: 18px; } .drawer-item { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; } .drawer-item .photo-frame { width: 72px; height: 90px; } }
