/* Order print page + lightbox “Order print” — fine-art / atelier presentation */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&display=swap");

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

body.order-print-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(217, 180, 142, 0.12), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(90, 70, 50, 0.08), transparent 45%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(217, 180, 142, 0.06), transparent 50%),
    linear-gradient(180deg, #0c0c0f 0%, #070708 38%, #050506 100%);
  color: var(--text, #f7f3ef);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* —— Hero —— */
.order-print-hero {
  text-align: center;
  padding: clamp(28px, 5vw, 44px) clamp(20px, 4vw, 32px) clamp(20px, 3vw, 32px);
  position: relative;
}

.order-print-hero__accent {
  width: min(120px, 28vw);
  height: 1px;
  margin: 0 auto 20px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(217, 180, 142, 0.25) 20%,
    rgba(217, 180, 142, 0.85) 50%,
    rgba(217, 180, 142, 0.25) 80%,
    transparent
  );
  box-shadow: 0 0 24px rgba(217, 180, 142, 0.35);
}

.order-print-hero__eyebrow {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent, #d9b48e);
  opacity: 0.92;
}

.order-print-hero__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 5vw, 2.65rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--text, #f7f3ef);
}

.order-print-hero__lede {
  margin: 14px auto 0;
  max-width: 36ch;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--muted, #b3aaa1);
  font-weight: 400;
}

.order-print-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 36px) clamp(48px, 8vw, 72px);
}

.order-print-layout {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

@media (min-width: 900px) {
  .order-print-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: clamp(36px, 5vw, 56px);
  }
}

.order-print-visual {
  min-width: 0;
}

.order-print-flash {
  padding: 14px 18px;
  border-radius: var(--radius-sm, 14px);
  margin: 0 0 22px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.order-print-flash--ok {
  background: rgba(120, 180, 140, 0.12);
  border: 1px solid rgba(120, 180, 140, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.order-print-flash--err {
  background: rgba(200, 100, 100, 0.12);
  border: 1px solid rgba(200, 100, 100, 0.38);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.order-print-error {
  padding: 48px 24px;
  text-align: center;
  max-width: 40ch;
  margin: 0 auto;
}

/* —— Framed preview —— */
.order-print-frame {
  margin: 0 auto;
  max-width: 100%;
}

.order-print-frame__outer {
  padding: clamp(12px, 2.2vw, 18px);
  border-radius: 10px;
  background: linear-gradient(155deg, #3d3428 0%, #221c16 35%, #100d0a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 0 2px rgba(217, 180, 142, 0.18) inset,
    0 40px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.order-print-frame__matte {
  padding: clamp(16px, 3.2vw, 26px);
  background: linear-gradient(165deg, #faf8f4 0%, #ebe6dc 48%, #e2ddd3 100%);
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.07);
}

.order-print-frame__inner {
  box-shadow:
    0 0 0 1px rgba(217, 180, 142, 0.4),
    0 20px 56px rgba(0, 0, 0, 0.28);
  border-radius: 3px;
  overflow: hidden;
  line-height: 0;
  background: #0a0a0c;
}

.order-print-frame__img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.order-print-credit {
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 22px 0 0;
  color: var(--muted, #b3aaa1);
}

.order-print-credit strong {
  color: var(--text, #f7f3ef);
  font-weight: 600;
  letter-spacing: 0.14em;
}

/* —— Form —— */
.order-print-aside {
  min-width: 0;
}

.order-print-form-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md, 22px);
  padding: clamp(22px, 4vw, 32px);
  box-shadow:
    0 4px 0 rgba(217, 180, 142, 0.06) inset,
    0 32px 64px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px) saturate(120%);
}

.order-print-form-kicker {
  margin: 0 0 6px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent, #d9b48e);
  opacity: 0.9;
}

.order-print-form-title {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.order-print-form-lede {
  margin: 0 0 22px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted, #b3aaa1);
}

.order-print-form-card label {
  display: block;
  margin: 16px 0 7px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-strong, #d8c7b4);
}

.order-print-form-card label:first-of-type {
  margin-top: 0;
}

.order-print-form-card input,
.order-print-form-card textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm, 12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 9, 11, 0.75);
  color: var(--text, #f7f3ef);
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-print-form-card input::placeholder,
.order-print-form-card textarea::placeholder {
  color: rgba(179, 170, 161, 0.55);
}

.order-print-form-card input:hover,
.order-print-form-card textarea:hover {
  border-color: rgba(217, 180, 142, 0.25);
}

.order-print-form-card input:focus,
.order-print-form-card textarea:focus {
  outline: none;
  border-color: rgba(217, 180, 142, 0.45);
  box-shadow: 0 0 0 3px rgba(217, 180, 142, 0.12);
}

.order-print-form-card textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.5;
}

.order-print-actions {
  margin: 26px 0 0;
}

.order-print-submit {
  cursor: pointer;
  font: inherit;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid rgba(217, 180, 142, 0.5);
  background: linear-gradient(180deg, rgba(217, 180, 142, 0.28) 0%, rgba(217, 180, 142, 0.1) 100%);
  color: var(--text, #f7f3ef);
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  width: 100%;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-print-submit:hover {
  transform: translateY(-1px);
  border-color: rgba(230, 200, 160, 0.65);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.order-print-submit:active {
  transform: translateY(0);
}

.order-print-footer-note {
  text-align: center;
  margin-top: clamp(36px, 6vw, 52px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--muted, #b3aaa1);
}

.order-print-footer-note a {
  color: var(--accent, #d9b48e);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 180, 142, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.order-print-footer-note a:hover {
  color: var(--text, #f7f3ef);
  border-bottom-color: rgba(247, 243, 239, 0.45);
}

.req {
  color: var(--accent, #d9b48e);
}

/* —— Lightbox —— */
.lightbox {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 14px);
  max-width: min(92vw, 1500px);
  max-height: none;
  min-height: min-content;
  position: relative;
  z-index: 1;
  padding-bottom: 10px;
  box-sizing: border-box;
}

.lightbox .lightbox-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
}

.lightbox .lightbox-img-wrap img#lightbox-img {
  max-height: calc(100vh - var(--lightbox-nav-offset) - clamp(64px, 12vw, 96px));
}

.lightbox-order-actions {
  flex-shrink: 0;
  z-index: 2;
}

.lightbox-order-actions[hidden] {
  display: none !important;
}

.lightbox-order-print-btn {
  cursor: pointer;
  font: inherit;
  padding: 11px 26px;
  border-radius: 999px;
  border: 1px solid rgba(217, 180, 142, 0.55);
  background: linear-gradient(180deg, rgba(217, 180, 142, 0.22) 0%, rgba(18, 19, 22, 0.92) 100%);
  color: #faf6f0;
  letter-spacing: 0.18em;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.lightbox-order-print-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 200, 160, 0.75);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
