/* Cart wrapper */
.cart-wrapper {
}

/* Cart button */
.cart-button {
  background: none;
  border: none;
  cursor: pointer;

  position: relative;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.cart-button:hover {
  color: #0066cc;
}

/* Cart badge */
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff0000;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}

/* Cart dropdown */
.cart-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: auto;
  max-width: 90vw;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  margin-top: 5px;
  max-height: 80vh;
  overflow-y: auto;
}

.cart-dropdown--visible {
  display: block;
}

.cart-dropdown__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
  background-color: #f8f9fa;
}

.cart-dropdown__close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* Cart table */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th,
.cart-table td {
  padding: 10px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.cart-table th {
  font-weight: 600;
  background-color: #f8f9fa;
}

.cart-item__title {
  color: #333;
  text-decoration: none;
  display: block;
  margin-bottom: 3px;
}

.cart-item__sku {
  color: #666;
  font-size: 0.9em;
}

.cart-item__price,
.cart-item__total {
  white-space: nowrap;
  text-align: right;
}

.cart-item__quantity {
  text-align: center;
}

/* Cart totals */
.cart-totals {
  font-weight: bold;
}

.cart-totals__label {
  text-align: right;
  padding-right: 10px;
}

.cart-totals__value {
  text-align: right;
}

/* Cart actions */
.cart-actions {
  padding: 15px;
  text-align: right;
}

.cart-actions .button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0066cc;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.cart-actions .button:hover {
  background-color: #0052a3;
}

/* Empty cart */
.cart-empty {
  padding: 30px 15px;
  text-align: center;
  color: #666;
}

/* Responsive */
@media (max-width: 480px) {
  .cart-dropdown {
    width: 300px;
    right: -50px;
  }
  
  .cart-table th,
  .cart-table td {
    padding: 8px 10px;
    font-size: 14px;
  }
}
