:root {
  --drawer-ink: #111111;
  --drawer-muted: #6f6a63;
  --drawer-line: #ece8df;
  --drawer-bg: #ffffff;
  --drawer-soft: #f7f5f1;
  --drawer-gold: #a7792d;
}

.side-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 8, 7, 0.56);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  z-index: 9000;
}

.side-cart-overlay.side-cart-open {
  opacity: 1;
  visibility: visible;
}

.side-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--drawer-bg);
  color: var(--drawer-ink);
  box-shadow: -14px 0 34px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.65, 0.2, 1);
  z-index: 9010;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow: hidden;
}

.side-cart-drawer.side-cart-open {
  transform: translateX(0);
}

.side-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 26px 18px;
  background: #fff;
  border-bottom: 1px solid var(--drawer-line);
  overflow: hidden;
}

.side-cart-title {
  display: grid;
  gap: 6px;
}

.side-cart-title-main {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  min-width: 0;
}

.side-cart-bag-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e6ded2;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.side-cart-bag-icon img {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  display: block;
  object-fit: contain;
}

#sideCartDrawer img {
  max-width: 100%;
}

.side-cart-title-sub {
  color: var(--drawer-muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}

.cart-count-badge,
.side-cart-count-pill {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #b8524f;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  transform: scale(1);
  transition: transform 0.15s ease;
}

.cart-count-badge.bump {
  transform: scale(1.12);
}

.side-cart-close {
  width: 34px;
  height: 34px;
  border: 0;
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

.side-cart-close:hover {
  background: #f3f1eb;
}

.side-cart-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 26px;
}

.side-cart-items {
  display: grid;
  gap: 0;
}

.side-cart-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 58px 18px;
  text-align: center;
  color: var(--drawer-muted);
}

.side-cart-empty-emoji {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #d7bd82;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--drawer-gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 800;
}

.side-cart-empty-title {
  color: #111;
  font-size: 24px;
  font-weight: 900;
}

.side-cart-empty-sub {
  max-width: 260px;
  font-size: 14px;
  line-height: 1.45;
}

#sideCartDrawer .side-cart-item {
  display: grid;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid var(--drawer-line);
}

.side-cart-item-main {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: start;
}

.side-cart-image {
  width: 74px;
  height: 74px;
  border: 1px solid #efeae1;
  background: #fff;
  display: grid;
  place-items: center;
}

.side-cart-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.side-cart-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.side-cart-name {
  color: #111;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
}

.side-cart-options {
  color: #827d75;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.side-cart-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: #111;
}

.side-cart-price-line strong {
  font-size: 15px;
  font-weight: 900;
}

.side-cart-old-price {
  color: #8b8780;
  font-size: 12px;
  font-weight: 800;
  text-decoration: line-through;
}

.side-cart-price-line em {
  padding: 2px 6px;
  background: #fff3cc;
  color: #111;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.side-cart-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.side-cart-qty {
  display: inline-grid;
  grid-template-columns: 28px 34px 28px;
  height: 30px;
  border: 1px solid #dedbd5;
  background: #fff;
}

.side-cart-qty-btn {
  border: 0;
  background: transparent;
  color: #111;
  font-size: 15px;
  cursor: pointer;
}

.side-cart-qty-btn:hover {
  background: #f3f1eb;
}

.side-cart-qty-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #eeeae2;
  border-right: 1px solid #eeeae2;
  font-size: 12px;
  font-weight: 900;
}

.side-cart-remove {
  border: 0;
  background: transparent;
  color: #111;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  padding: 0;
  font-weight: 800;
}

#sideCartDrawer .side-cart-footer {
  border-top: 1px solid var(--drawer-line);
  background: #fff;
  padding: 18px 26px 22px;
}

.side-cart-note {
  border: 1px solid #e8e4dc;
  background: #fafafa;
  padding: 10px 12px;
  color: #111;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
}

.side-cart-summary {
  display: grid;
  gap: 0;
  background: #fafafa;
  margin-bottom: 16px;
}

.side-cart-summary div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #e7e3dc;
}

.side-cart-summary div:last-child {
  border-bottom: 0;
}

.side-cart-summary span {
  color: #111;
  font-size: 13px;
  font-weight: 800;
}

.side-cart-summary strong {
  color: #111;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.side-cart-summary-total strong {
  padding: 2px 6px;
  background: #fff3cc;
}

.cart-drawer-actions {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
}

.cart-drawer-actions .btn.primary,
.cart-drawer-actions .btn.secondary {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #111;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.cart-drawer-actions .btn.primary {
  color: #fff;
  background: #000;
}

.cart-drawer-actions .btn.secondary {
  color: #111;
  min-height: auto;
  padding: 5px 0 0;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  box-shadow: none;
}

.side-cart-payment-title {
  color: #827d75;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.side-cart-payments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pay-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfd8c8;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 640px) {
  .side-cart-drawer {
    width: 100%;
  }

  .side-cart-header,
  .side-cart-body,
  #sideCartDrawer .side-cart-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .side-cart-title-main {
    font-size: 18px;
  }

  .side-cart-item-main {
    grid-template-columns: 78px 1fr;
  }

  .side-cart-image {
    width: 78px;
    height: 78px;
  }
}
