/* === Loader animat === */
.cart-loader {
  text-align: center;
  padding: 40px 0;
}

.cart-loader:not(.active) {
  display: none;
}

.dots-loader {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: #E6C27A;
}

.dots-loader .dots span {
  animation: dots-bounce 1.2s infinite ease-in-out;
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  margin-left: 2px;
}
.dots-loader .dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.dots-loader .dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dots-bounce {
  0%, 80%, 100% {
    transform: scale(0.5);
    opacity: 0.3;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}
#header-cart { position: relative; } 
#cart-indicator {
  display: none;
  background: red;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: absolute;
  top: -2px;  
  right: -2px;
}
#header-cart {
  position: relative;
}
.product-cart-empty {
  font-size: 18px;
  font-weight: 500;
  padding: 20px;
  color: #EDB86E;
}

.cart-item.removing {
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

/* === Conținut coș === */
.cart-items-wrapper {
  color: #EDB86E;
  font-family: 'Playfair Display', serif;
}

.cart-item {
display: flex;
    padding: 10px;
    align-items: center;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(270deg, #050607, #BA9056 50%, #151517);
    border-image-slice: 1;
  transform: translateY(20px);
  transition: all 0.4s ease-out;
}

.cart-item.appear {
  opacity: 1;
  transform: translateY(0);
}

.cart-img img {
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.cart-content {
  flex: 1;
}

.cart-name {
     flex: 1;
    color: #EDB86E;
    text-align: left;
    font-size: 13px;
}

.cart-meta {
  font-size: 14px;
    color: #aaa;
    display: flex;
    margin-top: 4px;
}

.cart-remove button {
  background: transparent;
  border: none;
  color: #EDB86E;
  font-size: 22px;
  cursor: pointer;
  transition: color 0.3s ease;
}
.cart-remove button:hover {
  color: #f0c578;
  background: none;
}

.cart-totals {
 margin: 39px 20px 15px 20px;
    font-size: 14px;
    color: #EDB86E;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.cart-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cart-actions .btn {
  flex: 1 1 48%;
    color: #BA9056;
    border: 1px solid transparent;
    padding: 10px 60px;
    margin-top: 20px;
    cursor: pointer;
    font-weight: bold;
    max-width: 600px;
    transition: background 0.3s ease;
    border-image: linear-gradient(270deg, #050607, #BA9056 50%, #151517);
    border-image-slice: 1;
    background: linear-gradient(181deg, rgba(4, 4, 5, 0.1), rgba(191, 193, 197, 0.1) 44.63%, rgba(18, 19, 20, 0.1));
    border-radius: 6px;
}
.cart-actions .btn:hover {
  background: linear-gradient(337deg, rgba(4, 4, 5, 0.1), rgba(191, 193, 197, 0.1), rgba(18, 19, 20, 0.1));
    color: #BA9056;
}

/* Responsive */
@media (max-width: 480px) {
  .cart-name { font-size: 14px; }
  .cart-meta { font-size: 13px; }
  .cart-img img { width: 60px; }
  .cart-actions .btn { flex: 1 1 100%; }
}
