/* Cart Styles */
.cart-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.cart-container h1 {
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 600;
}

/* Cart icon in navigation */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: normal;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #f44336;
  color: white;
  font-size: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Cart items */
.cart-items {
  margin-bottom: 30px;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cart-item:hover {
  background-color: #f9f9f9;
}

.cart-item-image img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
}

.cart-item-details h3 {
  margin: 0 0 5px 0;
  font-weight: 500;
  font-size: 1.1rem;
}

.cart-item-category {
  color: #666;
  margin: 0 0 5px 0;
  font-size: 0.9rem;
}

.cart-item-price {
  font-weight: 600;
  margin: 0;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border: 1px solid #ddd;
  cursor: pointer;
  font-weight: bold;
}

.quantity-btn:hover {
  background: #e0e0e0;
}

.cart-item-quantity input {
  width: 40px;
  height: 30px;
  text-align: center;
  border: 1px solid #ddd;
  border-left: none;
  border-right: none;
  margin: 0;
}

.cart-item-total {
  font-weight: 600;
  width: 80px;
  text-align: right;
}

.remove-item {
  background: none;
  border: none;
  color: #f44336;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px;
}

.remove-item:hover {
  color: #d32f2f;
}

/* Empty cart message */
.empty-cart-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-cart-icon {
  font-size: 4rem;
  color: #ccc;
  margin-bottom: 20px;
}

.empty-cart-message p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #666;
}

.button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #222;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.button:hover {
  background-color: #444;
}

/* Cart summary */
.cart-summary {
  background-color: white;
  padding: 30px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.total-row {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 10px;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.primary-button, .secondary-button {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.primary-button {
  background-color: #222;
  color: white;
}

.primary-button:hover {
  background-color: #444;
}

.secondary-button {
  background-color: transparent;
  color: #666;
  border: 1px solid #ccc;
}

.secondary-button:hover {
  background-color: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 768px) {
  .cart-item {
    grid-template-columns: 80px 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px;
    padding: 15px;
  }
  
  .cart-item-image {
    grid-row: span 2;
  }
  
  .cart-item-image img {
    width: 80px;
    height: 80px;
  }
  
  .cart-item-details {
    grid-column: 2;
  }
  
  .cart-item-quantity {
    grid-column: 2;
    grid-row: 2;
  }
  
  .cart-item-total {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
  }
  
  .remove-item {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }
}

@media (max-width: 480px) {
  .cart-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .secondary-button, .primary-button {
    width: 100%;
  }
}
