/* ========================================
   Order Page Styles
   ======================================== */

/* Product Selection Grid */
.order-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .order-products-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* Product Card */
.order-product-card {
  background: #141414;
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.order-product-card:hover {
  border-color: rgba(220, 20, 60, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.order-product-card.selected {
  border-color: #DC143C;
  box-shadow: 0 0 30px rgba(220, 20, 60, 0.2);
}

.order-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #1a1a1a;
}

.order-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-card-body {
  padding: 1.25rem;
}

.order-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.order-card-tagline {
  color: #DC143C;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.order-card-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
}

.order-card-desc {
  font-size: 0.85rem;
  color: #999;
  line-height: 1.5;
}

/* Checkmark */
.order-card-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #DC143C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

.order-product-card.selected .order-card-check {
  opacity: 1;
  transform: scale(1);
}

/* ========================================
   Order Form Styles
   ======================================== */

.order-form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.order-form-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #DC143C;
}

.order-form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .order-form-row {
    flex-direction: column;
  }
  .order-form-row .order-form-field {
    max-width: 100% !important;
  }
}

.order-form-field {
  flex: 1;
}

.order-form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ccc;
}

.order-form-field input,
.order-form-field select,
.order-form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.order-form-field input:focus,
.order-form-field select:focus,
.order-form-field textarea:focus {
  outline: none;
  border-color: #DC143C;
}

.order-form-field input::placeholder,
.order-form-field textarea::placeholder {
  color: #555;
}

.order-form-field .field-hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #666;
}

/* Measurement group */
.measurement-group {
  background: rgba(220, 20, 60, 0.04);
  border: 1px solid rgba(220, 20, 60, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.measurement-group h4 {
  font-size: 0.95rem;
  color: #DC143C;
  margin-bottom: 1rem;
  font-weight: 600;
}

.measurement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .measurement-grid {
    grid-template-columns: 1fr;
  }
}

/* Color Picker */
.color-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .color-picker-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 380px) {
  .color-picker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #141414;
  transition: all 0.2s ease;
}

.color-swatch:hover {
  border-color: rgba(255,255,255,0.15);
}

.color-swatch input[type="radio"] {
  display: none;
}

.color-swatch input[type="radio"]:checked + .swatch {
  box-shadow: 0 0 0 3px #DC143C, 0 0 12px rgba(220,20,60,0.4);
  transform: scale(1.1);
}

.color-swatch:has(input:checked) {
  border-color: #DC143C;
  background: rgba(220,20,60,0.06);
}

.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  transition: all 0.2s ease;
}

.swatch-label {
  font-size: 0.75rem;
  color: #999;
  font-weight: 500;
}

/* Pre-order badge */
.preorder-badge {
  display: inline-block;
  background: rgba(220, 20, 60, 0.12);
  color: #DC143C;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* FAQ */
.order-faq-item {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.order-faq-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: white;
}

.order-faq-item p {
  color: #999;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}
