:root {
  --cart-bg: #faf8f1;
  --cart-text: #111;
  --cart-border: rgba(0,0,0,.08);
  --cart-muted: #555;
  --cart-action: #111;
  --cart-contrast: #c9a84c;
}

body.no-scroll { overflow: hidden !important; }

.nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  white-space: nowrap;
}

.nav__cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  color: inherit;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}

.nav__cart-btn:hover {
  background: rgba(255,255,255,.14);
  border-color: var(--cart-contrast, #c9a84c);
}

.nav__cart-label { font-size: 10px; line-height: 1; }

.cart-badge,
.floating-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--cart-contrast, #c9a84c);
  color: #111;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(0,0,0,.16);
}

.cart-badge { display: none; }
.cart-badge--visible { display: flex; }

.floating-cart-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  min-height: 52px;
  background: var(--cart-contrast, #c9a84c);
  color: #111;
  border: none;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0,0,0,.2);
  cursor: pointer;
  z-index: 500;
  transition: transform .2s ease, box-shadow .2s ease;
}

.floating-cart-button:hover { transform: translateY(-2px); }

.floating-cart-button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-cart-label { font-size: 12px; font-weight: 700; }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 490;
  display: flex;
  justify-content: flex-end;
}

.cart-overlay.cart-overlay--open {
  opacity: 1;
  pointer-events: auto;
}

.cart-sidebar {
  width: min(420px, 100%);
  max-width: 420px;
  height: 100%;
  background: var(--cart-bg, #faf8f1);
  color: var(--cart-text, #111);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -18px 0 60px rgba(0,0,0,.18);
  padding: 24px 20px;
}

.cart-overlay.cart-overlay--open .cart-sidebar {
  transform: translateX(0);
}

.cart__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.cart__title { font-size: 20px; margin: 0; }
.cart__count-label { margin: 4px 0 0; color: var(--cart-muted, #555); font-size: 13px; }
.cart__close {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 6px;
}

.cart__items { flex: 1; overflow: auto; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--cart-border, rgba(0,0,0,.08));
}

.cart-item:last-child { border-bottom: none; }
.cart-item__img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 10px;
  background: #e9e2d6;
  flex-shrink: 0;
}

.cart-item__info { flex: 1; }
.cart-item__name { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.cart-item__size,
.cart-item__price { margin: 0; font-size: 12px; color: var(--cart-muted, #555); line-height: 1.4; }

.cart-item__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item__remove {
  border: none;
  background: none;
  color: #a22;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  border-radius: 4px;
}

.cart-item__qty button {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--cart-text, #111);
  font-size: 18px;
}

.cart-item__qty span { min-width: 24px; text-align: center; font-weight: 700; }

.cart__footer { margin-top: 18px; }
.cart__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.cart__subtotal-label { color: var(--cart-muted, #555); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.cart__subtotal-amount { font-weight: 700; }
.cart__currency { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.currency-btn {
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: var(--cart-text, #111);
  padding: 10px 12px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
}
.currency-btn--active {
  border-color: var(--cart-contrast, #c9a84c);
  background: rgba(201,168,76,.12);
}
.cart__actions { display: flex; flex-direction: column; gap: 10px; }
.btn-whatsapp-order,
.btn-pay-online {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
}
.btn-whatsapp-order {
  background: #25d366;
  color: #fff;
}
.btn-pay-online {
  background: #111;
  color: #fff;
}
.btn-pay-note { margin: 0; font-size: 12px; color: var(--cart-muted, #555); }

.cart__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  text-align: center;
  gap: 14px;
  color: var(--cart-muted, #555);
}
.cart__empty svg { width: 54px; height: 54px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.cart__empty p { margin: 0; font-size: 13px; line-height: 1.5; }

@media (max-width: 900px) {
  .floating-cart-button { display: inline-flex; }
  .nav__cart-label { display: none; }
  .cart-sidebar { width: 100%; max-width: 100%; }
}

@media (max-width: 560px) {
  .nav__cart-btn { padding: 10px 12px; }
  .floating-cart-button { right: 14px; bottom: 14px; }
}
