/* ============================================================
   COMBAT COVER — shared cart icon + slide-in drawer
   Included on index.html, product.html, about.html
   ============================================================ */

.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-right { display: flex; align-items: center; gap: 14px; }

.cart-toggle {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: none; border: none; cursor: pointer;
  color: var(--text);
}
.cart-toggle svg { width: 20px; height: 20px; }
.cart-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
  display: none;
}
.cart-badge.show { display: block; }

.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--bg); z-index: 301;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  box-shadow: -8px 0 32px rgba(0,0,0,0.16);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px; border-bottom: 1px solid var(--border);
}
.cart-drawer-head h3 {
  font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
}
.cart-drawer-close {
  background: none; border: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--mid);
}
.cart-drawer-close:hover { color: var(--text); }

.cart-notice {
  margin: 0 24px 16px; padding: 12px 14px;
  background: var(--warm); border: 1px solid var(--border); border-radius: 3px;
  font-size: 12.5px; line-height: 1.5; color: var(--text);
}

.cart-drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-empty { color: var(--mid); font-size: 14px; padding: 48px 0; text-align: center; }

.cart-line { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.cart-line-img { width: 72px; height: 72px; object-fit: cover; border-radius: 3px; flex-shrink: 0; background: var(--warm); }
.cart-line-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.cart-line-title { font-size: 14px; font-weight: 700; }
.cart-line-price { font-size: 13px; color: var(--mid); }
.cart-line-qty { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.cart-line-qty button {
  width: 26px; height: 26px; border: 1px solid var(--border); background: #fff;
  cursor: pointer; border-radius: 3px; font-size: 14px; line-height: 1; color: var(--text);
}
.cart-line-qty button:hover { border-color: var(--text); }
.cart-line-qty span { font-size: 13px; font-weight: 600; min-width: 16px; text-align: center; }
.cart-line-remove {
  font-size: 11px; letter-spacing: 0.04em; text-decoration: underline; text-underline-offset: 2px;
  color: var(--mid); cursor: pointer; background: none; border: none; align-self: flex-start; margin-top: 2px;
}
.cart-line-remove:hover { color: var(--text); }

.cart-drawer-foot { padding: 24px; border-top: 1px solid var(--border); }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.cart-checkout-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 52px; background: var(--text); color: var(--bg);
  border: none; border-radius: 3px; cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; transition: background 0.2s, transform 0.2s;
}
.cart-checkout-btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
