.unique-cart-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.unique-cart-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px 20px;
  text-align: center;
  margin-bottom: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.unique-cart-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.unique-cart-header p {
  opacity: 0.9;
  font-size: 1rem;
}

/* Desktop Table Styles */
.unique-desktop-table {
  display: block;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
  box-shadow: 0px 0px 20px 3px rgba(0, 0, 0, 0.08);
}

.unique-table {
  width: 100%;
  border-collapse: collapse;
}

.unique-table thead {
  background: #f8fafc;
}

.unique-table th {
  padding: 20px 16px;
  text-align: left;
  font-weight: 600;
  color: #4a5568;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e2e8f0;
}

.unique-table td {
  padding: 24px 16px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.unique-table tbody tr:hover {
  background: #f8fafc;
  transition: background 0.2s ease;
}

.unique-table tbody tr:last-child td {
  border-bottom: none;
}

/* Mobile Card Styles */
.unique-mobile-cards {
  display: none;
}

.unique-cart-item-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  position: relative;
}

.unique-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.unique-product-image-mobile {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}

.unique-product-info-mobile {
  flex: 1;
}

.unique-product-name-mobile {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

.unique-product-name-mobile:hover {
  color: #667eea;
}

.unique-product-variation-mobile {
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 8px;
}

.unique-product-price-mobile {
  font-size: 1.25rem;
  font-weight: 700;
  color: #38a169;
}

.unique-remove-btn-mobile {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fed7d7;
  color: #e53e3e;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.unique-remove-btn-mobile:hover {
  background: #feb2b2;
  transform: scale(1.1);
}

.unique-card-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.unique-quantity-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 8px;
}

/* Shared Styles */
.unique-product-thumbnail img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}

.unique-product-name a {
  color: #2d3748;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.unique-product-name a:hover {
  color: #667eea;
}

.unique-variation {
  list-style: none;
  margin-top: 4px;
}

.unique-variation li {
  font-size: 0.875rem;
  color: #718096;
}

.unique-variation span {
  font-weight: 500;
  color: #4a5568;
}

.unique-product-price {
  font-weight: 700;
  color: #38a169;
  font-size: 1.125rem;
}

.unique-quantity-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.unique-quantity-box {
  display: flex;
  align-items: center;
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.unique-quantity-btn {
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #4a5568;
  transition: all 0.2s ease;
}

.unique-quantity-btn:hover {
  background: #edf2f7;
  color: #2d3748;
}

.unique-quantity-btn:active {
  transform: scale(0.95);
}

.unique-quantity-input {
  border: none;
  background: transparent;
  width: 50px;
  height: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  outline: none;
  color: #2d3748;
}

.unique-product-total {
  font-weight: 700;
  color: #2d3748;
  font-size: 1.125rem;
}

.unique-remove-btn-desktop {
  background: #fed7d7;
  color: #e53e3e;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer !important;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-family: none !important;
  line-height: 0 !important;
}

.unique-remove-btn-desktop:hover {
  background: #feb2b2;
  transform: scale(1.1);
}

.unique-total-mobile {
  text-align: right;
}

.unique-total-mobile .unique-quantity-label {
  margin-bottom: 4px;
}

.unique-total-mobile .unique-product-total {
  font-size: 1.25rem;
}

/* Cart Summary */
.unique-cart-summary {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.unique-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.unique-summary-row:last-child {
  border-bottom: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
  padding-top: 16px;
}

.unique-summary-label {
  color: #4a5568;
  font-weight: 500;
}

.unique-summary-value {
  font-weight: 600;
  color: #2d3748;
}

/* Action Buttons */
.unique-cart-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.unique-coupon-section {
  flex: 1;
  min-width: 300px;
}

.unique-coupon-form {
  display: flex;
  gap: 12px;
}

.unique-coupon-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.unique-coupon-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.unique-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.unique-btn:active {
  transform: translateY(1px);
}

.unique-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.unique-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.unique-btn-secondary {
  background: #edf2f7;
  color: #4a5568;
  border: 2px solid #e2e8f0;
}

.unique-btn-secondary:hover {
  background: #e2e8f0;
  border-color: #cbd5e0;
}

.unique-empty-cart {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.unique-empty-cart-icon {
  font-size: 4rem;
  color: #cbd5e0;
  margin-bottom: 16px;
}

.unique-empty-cart h3 {
  font-size: 1.5rem;
  color: #4a5568;
  margin-bottom: 8px;
}

.unique-empty-cart p {
  color: #718096;
  margin-bottom: 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .unique-cart-container {
    padding: 16px;
  }

  .unique-table th,
  .unique-table td {
    padding: 16px 12px;
  }
}

@media (max-width: 768px) {
  .unique-desktop-table {
    display: none;
  }

  .unique-mobile-cards {
    display: block;
  }

  .unique-cart-header {
    padding: 24px 16px;
    margin-bottom: 20px;
  }

  .unique-cart-header h1 {
    font-size: 1.75rem;
  }

  .unique-coupon-section {
    min-width: 100%;
  }

  .unique-coupon-form {
    flex-direction: column;
  }

  .unique-cart-actions {
    flex-direction: column;
  }

  .unique-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .unique-cart-container {
    padding: 12px;
  }

  .unique-cart-header {
    padding: 20px 12px;
    border-radius: 12px;
  }

  .unique-cart-header h1 {
    font-size: 1.5rem;
  }

  .unique-cart-item-card {
    padding: 16px;
  }

  .unique-card-header {
    gap: 12px;
  }

  .unique-product-image-mobile {
    width: 70px;
    height: 70px;
  }

  .unique-cart-summary {
    padding: 20px;
  }
}

/* Animation for item removal */
.unique-cart-item-removing {
  animation: uniqueSlideOut 0.3s ease-out forwards;
}

@keyframes uniqueSlideOut {
  0% {
    opacity: 1;
    transform: translateX(0);
    max-height: 200px;
  }

  100% {
    opacity: 0;
    transform: translateX(-100%);
    max-height: 0;
    padding: 0;
    margin: 0;
  }
}

.unique-loading {
  opacity: 0.6;
  pointer-events: none;
}

@keyframes uniqueSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.unique-cart-item,
.unique-cart-item-card {
  transition: transform 0.1s ease;
}
