/* Form Styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: #ff6b9d;
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.form-input::placeholder {
  color: #999;
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

/* Product Detail Page */
.product-detail-page {
  padding: 2rem 0;
}

.product-detail-container {
  display: flex;
  gap: 3rem;
  background: white;
  border-radius: 15px;
  padding: 3rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-detail-image {
  flex: 1;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-detail-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-detail-image:hover img {
  transform: scale(1.05);
}

.product-detail-info {
  flex: 1;
}

.product-detail-name {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.product-detail-price {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.product-detail-description {
  color: #666;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.product-options {
  margin-bottom: 2rem;
}

.option-section {
  margin-bottom: 1.5rem;
}

.option-section label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #333;
}

.size-options,
.color-options {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.size-btn,
.color-btn {
  padding: 0.6rem 1.2rem;
  border: 2px solid #ddd;
  background: white;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.size-btn:hover,
.color-btn:hover {
  border-color: #ff6b9d;
  color: #ff6b9d;
}

.size-btn.selected,
.color-btn.selected {
  background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
  color: white;
  border-color: #ff6b9d;
}

.product-actions {
  display: flex;
  gap: 1rem;
}

/* Cart Page */
.cart-page {
  padding: 2rem 0;
}

.cart-header {
  text-align: center;
  margin-bottom: 2rem;
}

.cart-header h1 {
  font-size: 2.5rem;
  color: #333;
}

.cart-items-container {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 2fr 1fr 1fr 50px;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.cart-item-variants {
  font-size: 0.9rem;
  color: #666;
  display: flex;
  gap: 1rem;
}

.cart-item-price {
  font-weight: 700;
  font-size: 1.2rem;
  color: #ff6b9d;
}

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

.quantity-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: white;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  border-color: #ff6b9d;
  color: #ff6b9d;
  transform: scale(1.1);
}

.quantity-value {
  font-weight: 600;
  font-size: 1.1rem;
  min-width: 30px;
  text-align: center;
}

.cart-item-total {
  font-weight: 700;
  font-size: 1.3rem;
  color: #333;
}

.cart-item-remove {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #ff6b9d;
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.cart-item-remove:hover {
  background: #c44569;
  transform: scale(1.1);
}

.cart-summary {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

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

.summary-row.total {
  border-top: 2px solid #eee;
  padding-top: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.summary-row.total span:last-child {
  color: #ff6b9d;
}

.cart-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.empty-cart-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.empty-cart h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.empty-cart p {
  color: #666;
  margin-bottom: 2rem;
}

/* Checkout Page */
.checkout-page {
  padding: 2rem 0;
}

.checkout-header {
  text-align: center;
  margin-bottom: 2rem;
}

.checkout-header h1 {
  font-size: 2.5rem;
  color: #333;
}

.checkout-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
}

.checkout-section {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #333;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.checkout-item {
  display: grid;
  grid-template-columns: 80px 2fr 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.checkout-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.checkout-item-name {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #333;
}

.checkout-item-variants {
  font-size: 0.85rem;
  color: #666;
}

.checkout-item-quantity {
  font-size: 0.9rem;
  color: #666;
}

.checkout-item-price {
  font-weight: 700;
  color: #ff6b9d;
  font-size: 1.1rem;
  text-align: right;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  border: 2px solid #eee;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-method:hover {
  border-color: #ff6b9d;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.payment-method.selected {
  border-color: #ff6b9d;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(196, 69, 105, 0.1) 100%);
}

.payment-method-radio {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.payment-method.selected .payment-method-radio {
  border-color: #ff6b9d;
  background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
}

.payment-method-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.payment-method.selected .payment-method-radio::after {
  opacity: 1;
}

.payment-method-info {
  flex: 1;
}

.payment-method-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
}

.payment-method-description {
  font-size: 0.9rem;
  color: #666;
}

.payment-method-icon {
  font-size: 2rem;
}

.order-summary {
  position: sticky;
  top: 100px;
}

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

.order-summary-row.total {
  border-top: 2px solid #eee;
  padding-top: 1rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
}

.order-summary-row.total span:last-child {
  color: #ff6b9d;
}

.free-shipping-notice {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #667eea;
  font-weight: 600;
}

.place-order-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
}

.order-success {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.5s ease;
}

.success-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: bounce 1s ease;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.order-success h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.order-success p {
  color: #666;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.order-success-details {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  margin: 2rem 0;
  text-align: left;
}

.order-success-details p {
  margin-bottom: 0.5rem;
}

.order-success-details strong {
  color: #ff6b9d;
}

.order-success-details h3 {
  color: #333;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  border-bottom: 2px solid #ff6b9d;
  padding-bottom: 0.5rem;
}

.order-success-details h3:first-child {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .product-detail-container {
    flex-direction: column;
    padding: 1.5rem;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
  }

  .cart-item-quantity,
  .cart-item-total {
    grid-column: 2;
  }

  .checkout-content {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
    margin-top: 2rem;
  }
}
