/* Order flow pages — products, checkout, thank-you */

.order-page {
  background:
    radial-gradient(ellipse 80% 50% at 20% -5%, rgb(var(--astra-aurora-rgb) / 0.05), transparent 55%),
    radial-gradient(ellipse 70% 45% at 80% 0%, rgb(var(--astra-rose-rgb) / 0.04), transparent 50%),
    #fafafa;
  min-height: 100vh;
}

.order-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(var(--astra-aurora-rgb) / 0.1);
}

.order-card {
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.order-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -25px rgb(var(--astra-aurora-rgb) / 0.28);
}

.order-field {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0 1.1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.order-field:focus-within {
  border-color: var(--astra-aurora);
  box-shadow: 0 0 0 4px rgb(var(--astra-aurora-rgb) / 0.15);
}
.order-field i {
  color: var(--astra-aurora);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.order-field input,
.order-field select,
.order-field textarea {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 1rem 0;
  font-size: 1rem;
  color: var(--astra-950);
  font-weight: 500;
  font-family: inherit;
}
.order-field textarea { resize: vertical; min-height: 80px; }
.order-field select { cursor: pointer; padding-right: 1rem; }
.order-field input::placeholder,
.order-field textarea::placeholder { color: #94a3b8; }

.order-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--astra-900);
  margin-bottom: 0.5rem;
  display: block;
}
.order-lbl .opt {
  font-weight: 500;
  color: #94a3b8;
  font-size: 0.72rem;
  margin-left: 0.25rem;
}

.order-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.42rem 0.82rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}
.order-chip--secure {
  color: #047857;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: rgba(16, 185, 129, 0.25);
}
.order-chip--delivery {
  color: var(--astra-aurora);
  background: linear-gradient(180deg, rgb(var(--astra-aurora-light-rgb) / 0.35) 0%, rgb(var(--astra-aurora-light-rgb) / 0.15) 100%);
  border-color: rgb(var(--astra-aurora-rgb) / 0.22);
}

.order-summary-dark {
  background: linear-gradient(165deg, var(--astra-900) 0%, var(--astra-950) 100%);
}

@media (min-width: 1024px) {
  .order-sticky-summary { position: sticky; top: 6rem; }
}

/* Thank-you */
.ty-glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ty-glow::before,
.ty-glow::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
}
.ty-glow::before {
  width: 360px; height: 360px;
  background: rgb(var(--astra-aurora-rgb) / 0.18);
  top: -160px; left: 50%;
  transform: translateX(-50%);
}
.ty-glow::after {
  width: 420px; height: 420px;
  background: rgb(var(--astra-aurora-rgb) / 0.12);
  top: -120px; right: -160px;
}

@keyframes tyPopIn {
  0% { opacity: 0; transform: scale(0.5); }
  60% { transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes tyRingPulse {
  0% { box-shadow: 0 0 0 0 rgb(var(--astra-aurora-rgb) / 0.45); }
  70% { box-shadow: 0 0 0 20px rgb(var(--astra-aurora-rgb) / 0); }
  100% { box-shadow: 0 0 0 0 rgb(var(--astra-aurora-rgb) / 0); }
}
@keyframes tyDrawCheck {
  from { stroke-dashoffset: 48; }
  to { stroke-dashoffset: 0; }
}
.ty-success-circle {
  animation: tyPopIn 0.55s cubic-bezier(0.22, 1, 0.36, 1), tyRingPulse 1.8s ease-out 0.6s 2;
}
.ty-success-check path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: tyDrawCheck 0.55s 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ty-tl-item { position: relative; padding-left: 3rem; padding-bottom: 1.4rem; }
.ty-tl-item:last-child { padding-bottom: 0; }
.ty-tl-dot {
  position: absolute; left: 0; top: 0;
  width: 2.25rem; height: 2.25rem;
  border-radius: 9999px;
  display: grid; place-items: center;
  font-size: 0.85rem;
}
.ty-tl-item::before {
  content: "";
  position: absolute;
  left: 1.125rem; top: 2.25rem; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgb(var(--astra-aurora-rgb) / 0.25), transparent);
}
.ty-tl-item:last-child::before { display: none; }

.btn-copy-ref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.48rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--astra-aurora);
  background: linear-gradient(180deg, rgb(var(--astra-aurora-light-rgb) / 0.35) 0%, rgb(var(--astra-aurora-rgb) / 0.1) 100%);
  border: 1.5px solid rgb(var(--astra-aurora-rgb) / 0.28);
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-copy-ref:hover {
  background: linear-gradient(180deg, rgb(var(--astra-aurora-light-rgb) / 0.5) 0%, rgb(var(--astra-aurora-rgb) / 0.18) 100%);
  border-color: rgb(var(--astra-aurora-rgb) / 0.42);
  transform: translateY(-1px);
}
.btn-copy-ref.copied {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  color: #fff;
  border-color: #059669;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -2px 0 #047857;
}

details.order-faq summary::-webkit-details-marker { display: none; }
details.order-faq summary { list-style: none; cursor: pointer; }
details.order-faq[open] .order-chev { transform: rotate(180deg); }
.order-chev { transition: transform 0.3s ease; }

/* Order Cards visual polish */
.order-card {
  position: relative;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s;
}
.order-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--astra-gold), var(--astra-aurora), var(--astra-rose));
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  z-index: 2;
  border-radius: 3px 3px 0 0;
}
.order-card:hover::before { opacity: 1; }

.product-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.42rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-pink) 55%, var(--accent-coral));
  box-shadow: 0 8px 20px -8px rgb(var(--astra-aurora-rgb) / 0.35);
}
.product-ribbon i { font-size: 0.55rem; }
.order-card:hover {
  border-color: rgb(var(--astra-aurora-rgb) / 0.3) !important;
  box-shadow: 
    0 35px 70px -20px rgb(var(--astra-aurora-rgb) / 0.32),
    0 0 20px rgb(var(--astra-aurora-rgb) / 0.12) !important;
}
/* Highlight ring for the popular kit */
#product2:hover {
  border-color: rgb(var(--astra-aurora-rgb) / 0.45) !important;
  box-shadow: 
    0 35px 70px -20px rgb(var(--astra-aurora-rgb) / 0.25),
    0 0 20px rgb(var(--astra-aurora-rgb) / 0.15) !important;
}