/* Cart Page Styles - Modern Clean Layout */

/* Main Cart Page Container */
.cart-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  background-color: #fff;
  min-height: 70vh;
}

/* Cart Tabs */
.cart-tabs {
  display: flex;
  border-bottom: 1px solid #000;
}

.cart-tab {
  flex: 1;
  padding: 20px;
  background: none;
  border: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  color: #999;
  transition: color 0.2s ease;
}

.cart-tab.active {
  color: #000;
  font-weight: 500;
}

.cart-tab:hover {
  color: #000;
}

/* Cart Content */
.cart-content {
  padding: 40px 60px 60px;
}

/* Cart Items Header */
.cart-items-header {
  margin-bottom: 30px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #000;
}

/* Cart Items List */
.cart-items-list {
  margin-bottom: 40px;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid #e0e0e0;
}

.cart-item:first-child {
  padding-top: 0;
}

.cart-item-image {
  width: 100px;
  height: 140px;
  object-fit: cover;
  background-color: #f5f5f5;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #000;
  margin: 0 0 8px 0;
  text-transform: uppercase;
}

.cart-item-size {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #666;
  margin-bottom: 15px;
}

.cart-item-remove {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #000;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-top: 5px;
  display: inline-block;
}

.cart-item-remove:hover {
  color: #666;
}

/* Quantity Controls */
.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 15px;
}

.quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  color: #000;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-weight: 400;
}

.quantity-btn:hover:not(:disabled) {
  color: #666;
}

.quantity-btn:disabled {
  color: #ccc;
  cursor: not-allowed;
}

.quantity-input {
  width: 30px;
  border: none;
  text-align: center;
  font-size: 13px;
  color: #000;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  padding: 0;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input:focus {
  outline: none;
}

/* Cart Item Price */
.cart-item-price {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #000;
  white-space: nowrap;
  text-align: right;
  min-width: 80px;
}

/* Cart Summary */
.cart-summary {
  padding: 30px 0;
  border-top: 1px solid #000;
  margin-bottom: 30px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.summary-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #000;
}

.summary-value {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #000;
}

.summary-note {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #666;
  line-height: 1.6;
}

/* Checkout Button */
.checkout-button {
  width: 100%;
  padding: 15px;
  background-color: #000;
  color: #fff;
  border: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-bottom: 20px;
}

.checkout-button:hover {
  background-color: #333;
}

/* Back to Shop Link */
.back-to-shop {
  text-align: center;
}

.back-to-shop a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #000;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.back-to-shop a:hover {
  color: #666;
}

/* Empty Cart State */
.empty-cart {
  text-align: center;
  padding: 100px 20px;
  min-height: 400px;
}

.empty-cart p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.continue-shopping-btn {
  display: inline-block;
  padding: 14px 40px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 1px solid #000;
}

.continue-shopping-btn:hover {
  background-color: #fff;
  color: #000;
}

/* Message Notifications */
.cart-message {
  position: fixed;
  top: 100px;
  right: 30px;
  padding: 18px 30px;
  background-color: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
  z-index: 10000;
  max-width: 350px;
}

.cart-message.show {
  opacity: 1;
  transform: translateX(0);
}

.cart-message.error {
  background-color: #d32f2f;
}

.cart-message.success {
  background-color: #2e7d32;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cart-content {
    padding: 30px 20px 40px;
  }

  .cart-item {
    flex-direction: column;
    gap: 15px;
  }

  .cart-item-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
  }

  .cart-item-info {
    width: 100%;
    flex-direction: column;
    gap: 15px;
  }

  .cart-item-price {
    text-align: left;
  }

  .cart-tab {
    font-size: 10px;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .cart-content {
    padding: 20px 15px 30px;
  }

  .cart-item-name {
    font-size: 13px;
  }

  .cart-item-size {
    font-size: 12px;
  }

  .checkout-button {
    padding: 12px;
    font-size: 11px;
  }
}

/* Loading State */
.cart-loading {
  text-align: center;
  padding: 100px 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #666;
}
