/* Dedicated order flows: printed film + prints on products */

.order-page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 5rem 0 4rem;
  min-height: 42vh;
  display: flex;
  align-items: center;
}

.order-page-hero--film {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(37, 99, 235, 0.78)),
    url('/assets/img/hero-img.png') center / cover no-repeat;
}

.order-page-hero--pod {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(236, 72, 153, 0.55)),
    url('/images/hero_png.png') center / cover no-repeat;
}

.order-page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.order-page-hero .lead {
  max-width: 40rem;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
}

.order-steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.order-step {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.order-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.order-step--pod .order-step-num {
  background: #db2777;
}

.order-builder-shell {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.order-builder-shell-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.order-builder-shell-body {
  padding: 1rem;
}

#printed-film-builder.xtradtf-embed-widget,
#printed-film-builder .xtradtf-embed-widget {
  min-height: 520px;
}

.pod-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .pod-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
  }
}

.pod-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.pod-panel h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pod-breadcrumb {
  margin-top: 0;
}

.pod-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pod-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pod-category-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 0.875rem;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pod-category-chip:hover,
.pod-category-chip.is-active {
  border-color: #db2777;
  background: #fdf2f8;
  color: #9d174d;
}

.pod-catalog-search {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: min(100%, 18rem);
  padding: 0.45rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
}

.pod-catalog-search input {
  border: 0;
  outline: none;
  width: 100%;
  font-size: 0.875rem;
}

.pod-catalog-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  margin-top: 1rem;
}

.pod-catalog-grid--links .pod-catalog-card--link {
  margin: 0;
}

.pod-catalog-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  padding: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pod-catalog-card-anchor {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.pod-catalog-card-anchor:hover {
  color: inherit;
}

.pod-catalog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #db2777;
}

.pod-catalog-card:hover,
.pod-catalog-card.is-selected {
  border-color: #db2777;
  box-shadow: 0 10px 24px rgba(219, 39, 119, 0.12);
  transform: translateY(-2px);
}

.pod-catalog-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f1f5f9;
}

.pod-catalog-card-image--placeholder {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.pod-catalog-card-body {
  padding: 0.875rem;
}

.pod-catalog-card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.pod-catalog-card-body p {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.pod-catalog-card-meta {
  margin-top: 0.35rem !important;
}

.pod-catalog-card-price {
  margin-top: 0.5rem !important;
  font-weight: 700;
  color: #0f172a !important;
}

.pod-workspace-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #64748b;
}

.pod-selected-preview {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.pod-selected-preview img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
}

.pod-upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  background: #f8fafc;
}

.pod-upload-zone input[type="file"] {
  margin-top: 0.75rem;
}

.pod-artwork-preview {
  display: block;
  max-width: 100%;
  max-height: 220px;
  margin: 1rem auto 0;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

.pod-placement-stage {
  margin-top: 1rem;
  min-height: 260px;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.95)),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 12px,
      rgba(148, 163, 184, 0.08) 12px,
      rgba(148, 163, 184, 0.08) 24px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  color: #64748b;
}

.pod-placement-canvas-wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

#pod-placement-canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  background: #fff;
  cursor: grab;
  touch-action: none;
}

#pod-placement-canvas:active {
  cursor: grabbing;
}

.pod-placement-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.pod-placement-fieldset:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.pod-size-chip:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pod-zone-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.pod-scale-mode {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.pod-placement-summary {
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.pod-coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #fdf2f8;
  color: #9d174d;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.pod-product-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 992px) {
  .pod-product-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
  }
}

.pod-product-hero-image,
.pod-product-color-preview {
  width: 100%;
  max-width: 640px;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.pod-product-color-preview {
  margin-top: 1rem;
}

.pod-product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.pod-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pod-color-swatch {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 2px solid #e2e8f0;
  overflow: hidden;
  padding: 0;
  background: #fff;
}

.pod-color-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pod-color-swatch.is-active {
  border-color: #db2777;
  box-shadow: 0 0 0 2px rgba(219, 39, 119, 0.15);
}

.pod-size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pod-size-chip {
  display: inline-flex;
  flex-direction: column;
  min-width: 4.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pod-size-chip.is-selected {
  border-color: #db2777;
  box-shadow: 0 0 0 2px rgba(219, 39, 119, 0.12);
}

.pod-size-chip.is-editing {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.pod-size-chip-label {
  font-weight: 600;
  font-size: 0.875rem;
}

.pod-size-chip-price {
  font-size: 0.75rem;
  color: #64748b;
}

.pod-design-panel {
  border-top: 1px solid #e2e8f0;
  padding-top: 1.25rem;
}