/* ============================================================
   OROLOGIOCASA — Order Page Styles
   ============================================================ */

.order-section { padding: 10rem 2rem 6rem; }

.order-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* GALLERY */
.order-gallery { position: sticky; top: 120px; }
.order-main-img-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 1rem;
}
.order-main-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: opacity 0.3s ease;
  display: block;
}
.order-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: #080808;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
}
.order-thumbs {
  display: flex;
  gap: 0.6rem;
}
.order-thumb {
  flex: 1;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition), opacity var(--transition);
  background: none;
  padding: 0;
}
.order-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.order-thumb--active { border-color: var(--primary); }
.order-thumb:hover { border-color: var(--primary-dark); opacity: 0.85; }

/* DETAILS */
.order-brand {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.7rem;
}
.order-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.order-title span { display: block; font-style: italic; color: var(--primary); }

.order-rating {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.order-stars { color: var(--primary); font-size: 1.1rem; }
.order-rating-text { font-size: 0.78rem; color: var(--text-muted); }

.order-price-block {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.order-price-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.order-price {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
}
.order-partner-note { font-size: 0.78rem; color: var(--text-muted); }
.order-partner-note strong { color: var(--text-light); }

.order-avail {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.order-avail__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6dbf80;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(109,191,128,0.5);
}

.order-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2rem;
  padding: 0;
  list-style: none;
}
.order-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.order-highlights li svg { stroke: var(--primary); flex-shrink: 0; margin-top: 1px; }

.order-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 18px;
  font-size: 0.95rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.order-trust {
  display: flex;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.2rem;
}
.order-trust__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0.5rem;
  border-right: 1px solid rgba(255,255,255,0.05);
  background: var(--bg-card);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  transition: background var(--transition);
}
.order-trust__item:last-child { border-right: none; }
.order-trust__item svg { stroke: var(--primary); }
.order-trust__item:hover { background: #1a1a1a; }

.order-affiliate-note {
  font-size: 0.68rem;
  color: rgba(160, 160, 160, 0.4);
  line-height: 1.6;
}

/* REDIRECT OVERLAY */
.redirect-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(18, 18, 18, 0.96);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.redirect-content { max-width: 500px; padding: 2rem; }
.redirect-spinner { width: 60px; height: 60px; border: 3px solid rgba(197, 160, 89, 0.1); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 2rem; }

@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 900px) {
  .order-section { padding: 8rem 2rem 4rem; }
  .order-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .order-gallery { position: static; }
}
@media (max-width: 768px) {
  .order-section { padding: 6rem 1rem 3rem; }
}
@media (max-width: 480px) {
  .order-thumbs { gap: 0.4rem; }
  .order-trust { flex-direction: column; }
  .order-trust__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .order-trust__item:last-child { border-bottom: none; }
}
