/* ===== Order Subdomain Styles ===== */

/* Service Catalog Grid */
.service-catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.service-catalog-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}

.service-catalog-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 rgba(17,17,17,.16);
}

.service-catalog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 3px solid var(--ink);
}

.service-catalog-card .card-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--blue), #2c3e50);
  display: grid;
  place-items: center;
  border-bottom: 3px solid var(--ink);
  color: var(--yellow);
  font-size: 48px;
  font-weight: 900;
}

.service-catalog-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-catalog-body .category-tag {
  color: var(--red);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px;
}

.service-catalog-body h3 {
  font-size: 22px;
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.service-catalog-body p {
  color: var(--muted);
  font-size: 15px;
  flex: 1;
  margin: 0 0 18px;
}

.price-badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 16px;
  border: 2px solid var(--ink);
  margin-bottom: 16px;
}

/* Category Group Heading */
.category-group-heading {
  margin: 48px 0 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--ink);
}

.category-group-heading:first-child {
  margin-top: 0;
}

/* Checkout Form */
.checkout-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow);
  max-width: 700px;
}

.checkout-card label {
  display: block;
  font-weight: 700;
  margin-bottom: 20px;
}

.checkout-card input[type="text"],
.checkout-card input[type="number"],
.checkout-card input[type="email"],
.checkout-card textarea,
.checkout-card select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  margin-top: 6px;
  transition: border-color .2s;
}

.checkout-card input:focus,
.checkout-card textarea:focus,
.checkout-card select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29,53,87,.12);
}

/* Payment Page */
.payment-summary {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 550px;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.payment-row:last-child {
  border-bottom: none;
}

.payment-row.balance {
  font-weight: 900;
  font-size: 20px;
  color: var(--red);
}

.payment-row.balance.paid {
  color: var(--green);
}

.amount-input-group {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 24px 0;
}

.amount-input-group input {
  flex: 1;
  padding: 14px 18px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
}

.amount-input-group input:focus {
  outline: none;
  border-color: var(--blue);
}

#paypal-button-container {
  margin-top: 20px;
  min-height: 50px;
}

/* Order Detail & Timeline */
.order-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.order-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.order-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
}

.order-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.order-meta-row:last-child {
  border-bottom: none;
}

/* Timeline */
.progress-timeline {
  position: relative;
  padding-left: 28px;
}

.progress-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--line);
  border-radius: 4px;
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--line);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 24px;
  width: 16px;
  height: 16px;
  background: var(--blue);
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.timeline-item h4 {
  margin: 0 0 6px;
  font-size: 17px;
}

.timeline-item .timeline-date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.timeline-item p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.timeline-item img {
  max-width: 100%;
  border-radius: 12px;
  margin-top: 12px;
  border: 2px solid var(--line);
}

/* Orders List */
.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th,
.orders-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 2px solid var(--line);
}

.orders-table th {
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}

.orders-table tr:hover {
  background: rgba(255,209,102,.08);
}

/* Empty State */
.order-empty {
  text-align: center;
  padding: 60px 30px;
  background: var(--paper);
  border: 3px dashed var(--muted);
  border-radius: 24px;
}

.order-empty h3 {
  color: var(--muted);
  margin-bottom: 12px;
}

.order-empty p {
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .service-catalog {
    grid-template-columns: repeat(2, 1fr);
  }
  .order-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .service-catalog {
    grid-template-columns: 1fr;
  }
}
