.cart-button {
  cursor: pointer;
  background: #111;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 9998;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: #0f0f0f;
  color: #fff;
  transition: 0.3s;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.cart-panel.active {
  right: 0;
}

.cart-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 22px;

  border-bottom: 1px solid #222;
}

.cart-header h3 {
  font-size: 28px;

  font-weight: 700;
}

#closeCart {
  width: 36px;

  height: 36px;

  border: none;

  border-radius: 50%;

  background: #202020;

  color: white;

  cursor: pointer;
}

.cart-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-item {
  display: flex;
  gap: 14px;

  background: #181818;

  border: 1px solid #262626;

  border-radius: 14px;

  padding: 12px;

  margin-bottom: 14px;

  transition: 0.25s;
}

.cart-item:hover {
  border-color: #4e6c56;

  transform: translateY(-2px);
}

.cart-item img {
  width: 80px;

  height: 80px;

  border-radius: 12px;

  object-fit: cover;

  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info p {
  color: #ffffff;

  font-size: 22px;

  font-weight: 700;

  margin: 8px 0;
}

.cart-item-info strong {
  display: block;

  font-size: 17px;

  font-weight: 700;

  margin-bottom: 4px;
}

.qty-controls {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-top: 10px;
}

.qty-controls button {
  width: 30px;

  height: 30px;

  border: none;

  border-radius: 8px;

  background: #2d3f34;

  color: white;

  font-size: 18px;

  cursor: pointer;

  transition: 0.2s;
}

.qty-controls button:hover {
  background: #6c8a72;
}

.delete-item {
  display: inline-block;

  margin-top: 10px;

  color: #d57b7b;

  text-decoration: none;

  font-size: 13px;
}

.delete-item:hover {
  color: #ff9d9d;
}

.checkout-btn {
  width: 100%;

  padding: 16px;

  border: none;

  border-radius: 40px;

  background: #6c8a72;

  color: white;

  font-size: 16px;

  font-weight: 600;

  transition: 0.25s;
}

.checkout-btn:hover {
  background: #78967f;

  transform: translateY(-2px);
}

.cart-footer {
  background: #131313;

  border-top: 1px solid #222;

  padding: 22px;
}

.cart-footer p {
  display: flex;

  justify-content: space-between;

  margin: 8px 0;

  font-size: 17px;
}

.shipping-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.shipping-text {
  width: 80%;
  max-width: 280px;
  text-align: center;
  font-size: 14px;
  color: #cfcfcf;
  margin-bottom: 8px;
  line-height: 1.4;
}

.shipping-bar {
  width: 80%;
  max-width: 280px;
  height: 8px;
  background: #252525;
  border-radius: 50px;
  overflow: hidden;
}

.shipping-fill {
  height: 100%;
  width: 0;
  background: #6c8a72;
  border-radius: 50px;
  transition: width 0.35s ease;
}

.more-products {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: #aaa;
}

.hidden {
  display: none;
}
