html { scrollbar-gutter: stable; }
html.cart-is-open { overflow: hidden; }
#cart-drawer {
  position: fixed;
  inset: 12px auto 12px 12px;
  margin: 0;
  padding: 0;
  width: 460px;
  max-width: calc(100vw - 24px);
  height: calc(100dvh - 24px);
  max-height: none;
  border: 1px solid #ffffff80;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: 12px 0 80px #10291930;
  overflow: hidden;
  transform: translateX(calc(-100% - 24px));
  opacity: 0;
  transition: transform 300ms cubic-bezier(.22, 1, .36, 1), opacity 220ms ease;
}
#cart-drawer.is-visible { transform: translateX(0); opacity: 1; }
#cart-drawer::backdrop { background: #12281d70; backdrop-filter: blur(5px); animation: cart-backdrop-in 300ms ease both; }
#cart-drawer:not(.is-visible)::backdrop { animation: cart-backdrop-out 300ms ease both; }
.drawer-shell { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; gap: 13px; padding: 24px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.drawer-title-icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--primary); background: var(--soft); border-radius: 16px; }
.drawer-title-icon .icon { width: 25px; height: 25px; }
.drawer-eyebrow { color: var(--olive); font-size: 10px; }
#cart-drawer h2 { display: flex; align-items: center; gap: 10px; font-size: 23px; color: var(--primary); line-height: 1.7; }
.drawer-count { display: grid; place-items: center; min-width: 25px; height: 25px; padding-inline: 6px; font-size: 12px; border-radius: 8px; background: var(--soft); font-weight: 600; }
.drawer-close { margin-inline-start: auto; width: 36px; height: 36px; color: var(--muted); background: #f5f6f2; border: 1px solid var(--line); border-radius: 50%; }
.drawer-close .icon { width: 17px; height: 17px; }
.drawer-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 24px; scrollbar-width: thin; scrollbar-color: #c8d3c0 transparent; }
.drawer-items { display: grid; gap: 20px; }
.drawer-item { display: flex; align-items: flex-start; gap: 14px; position: relative; padding-bottom: 21px; border-bottom: 1px solid #edf0e8; }
.drawer-item-image { background: #f6f7f2; border: 1px solid #edf0e8; border-radius: 16px; width: 90px; height: 106px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; }
.drawer-item-image img { width: 100%; height: 100%; object-fit: contain; }
.drawer-item-info { flex: 1; min-width: 0; padding-top: 2px; }
.drawer-brand { color: #6f7969; font-size: 11px; display: block; padding-inline-end: 22px; }
.drawer-brand > span { margin-inline: 5px; color: #b7bfae; }
.drawer-item h3 { font-size: 15px; font-weight: 600; line-height: 1.9; margin-block: 6px 10px; padding-inline-end: 15px; }
.drawer-availability { display: inline-flex; align-items: center; gap: 4px; color: var(--olive); font-size: 9px; }
.drawer-availability .icon { width: 12px; height: 12px; }
.drawer-availability.is-unavailable { color: var(--error); }
.drawer-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.drawer-qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.drawer-qty button { background: transparent; border: 0; border-radius: 5px; color: var(--primary); display: grid; place-items: center; width: 28px; height: 28px; padding: 0; }
.drawer-qty button:hover { background: var(--soft); }
.drawer-qty .icon { width: 14px; height: 14px; }
.drawer-qty span { width: 23px; text-align: center; font-size: 12px; font-weight: 600; }
.drawer-line-price { text-align: end; }
.drawer-line-price del { display: block; color: #9da597; font-size: 10px; line-height: 1.4; }
.drawer-line-price strong { display: block; color: var(--primary); font-size: 16px; white-space: nowrap; }
.drawer-line-price small, .drawer-total small, .drawer-summary-row small { font-size: 9px; font-weight: 400; }
.drawer-remove { position: absolute; top: 0; inset-inline-end: -3px; display: grid; place-items: center; width: 25px; height: 25px; border: 0; border-radius: 7px; background: transparent; color: #919d8a; padding: 0; }
.drawer-remove .icon { width: 13px; height: 13px; }
.drawer-remove:hover { color: var(--error); background: #b540360c; }
.drawer-coupon { margin-top: 22px; font-size: 11px; }
.drawer-coupon summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.drawer-coupon summary::-webkit-details-marker { display: none; }
.drawer-coupon summary .icon { width: 17px; height: 17px; color: var(--olive); }
.drawer-coupon summary > span { margin-inline-start: auto; color: var(--olive); font-size: 10px; border-bottom: 1px dashed #b4c4a8; }
.drawer-coupon form { display: flex; gap: 8px; padding-top: 12px; }
#cart-drawer .drawer-coupon input { flex: 1; width: 100%; font-size: 12px; }
.drawer-coupon-applied { display: flex; align-items: center; gap: 6px; color: var(--success); padding-top: 10px; }
.drawer-coupon-applied .icon { width: 14px; }
.drawer-coupon-applied button { margin-inline-start: auto; border: 0; background: none; color: var(--muted); font-size: 10px; }
.drawer-footer { padding: 18px 24px 16px; border-top: 1px solid var(--line); background: #fcfdf9; flex-shrink: 0; box-shadow: 0 -6px 22px #173d2005; }
.drawer-summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #66735e; margin-bottom: 12px; }
.drawer-summary-row > span:last-child { color: var(--ink); }
.drawer-discount, .drawer-summary-row > .drawer-discount { color: var(--success); }
.drawer-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; margin-top: 11px; border-top: 1px dashed #dce3d4; font-size: 12px; }
.drawer-total strong { color: var(--primary); font-size: 23px; letter-spacing: -.4px; }
.drawer-checkout { width: 100%; min-height: 50px; border-radius: 12px; font-size: 14px; justify-content: space-between; padding-inline: 18px; }
.drawer-checkout:hover { transform: none; box-shadow: 0 5px 15px #173d2020; }
.drawer-continue { display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; color: var(--olive); width: 100%; padding: 10px; font-size: 11px; }
.drawer-continue .icon { width: 13px; height: 13px; }
.drawer-status:empty { display: none; }
.drawer-status { padding: 8px 24px; font-size: 11px; color: var(--primary); background: #edf3e6; flex-shrink: 0; }
.drawer-stock-warning { color: var(--error); font-size: 11px; margin-bottom: 8px; }
.drawer-empty { text-align: center; padding-top: 25px; }
.drawer-empty-art { display: grid; place-items: center; position: relative; width: 118px; height: 118px; border-radius: 40px; background: #f0f5e9; color: #527a45; margin: 0 auto 30px; transform: rotate(-7deg); }
.drawer-empty-art > .icon { width: 55px; height: 55px; stroke-width: 1.2; }
.drawer-empty-art > span { display: grid; place-items: center; position: absolute; width: 40px; height: 40px; bottom: -9px; inset-inline-start: -9px; background: #fff; color: #60864d; border-radius: 50%; box-shadow: 0 4px 15px #173d2010; }
.drawer-empty h3 { color: var(--primary); font-size: 23px; margin-top: 8px; }
.drawer-empty p { font-size: 12px; line-height: 2.1; color: var(--muted); margin: 12px 0 23px; }
.drawer-empty > .btn { border-radius: 11px; min-width: 200px; }
.drawer-empty-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--line); }
.drawer-empty-cats a { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; color: var(--olive); }
.drawer-empty-cats img { width: 75px; height: 75px; object-fit: cover; border-radius: 20px; }
.drawer-empty-footer { padding: 18px; text-align: center; color: var(--muted); font-size: 10px; border-top: 1px solid var(--line); }
.drawer-empty-footer .icon { width: 15px; height: 15px; margin-inline-end: 5px; color: var(--olive); }
@keyframes cart-backdrop-in { from { background-color: transparent; backdrop-filter: blur(0); } to { background-color: #12281d70; backdrop-filter: blur(5px); } }
@keyframes cart-backdrop-out { from { background-color: #12281d70; backdrop-filter: blur(5px); } to { background-color: transparent; backdrop-filter: blur(0); } }
@media (max-width: 520px) {
  #cart-drawer { inset: 0 auto 0 0; width: 100vw; max-width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .drawer-head { padding: 18px 20px; }
  .drawer-scroll { padding: 18px 20px; }
  .drawer-footer { padding: 14px 20px max(14px, env(safe-area-inset-bottom)); }
  .drawer-item-image { width: 75px; height: 95px; }
  .drawer-item { gap: 11px; }
  .drawer-item h3 { font-size: 14px; }
  .drawer-line-price strong { font-size: 15px; }
  .drawer-empty { padding-top: 20px; }
}
@media (max-height: 700px) {
  .drawer-head { padding-block: 12px; }
  .drawer-footer { padding-top: 12px; padding-bottom: 10px; }
  .drawer-total { padding-block: 8px; margin-top: 6px; }
  .drawer-continue { padding: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  #cart-drawer { transition: none; }
  #cart-drawer::backdrop { animation: none; }
}
@media print { #cart-drawer { display: none !important; } }
