:root {
  --oyp-ink: #17243a;
  --oyp-blue: #295d9d;
  --oyp-sky: #dcecf7;
  --oyp-cream: #fffdf8;
  --oyp-coral: #f07f63;
}

@font-face {
  font-family: "OYP Text Regular";
  src: url("../fonts/Vera.ttf") format("truetype");
}

@font-face {
  font-family: "OYP Text Bold";
  src: url("../fonts/VeraBd.ttf") format("truetype");
}

@font-face {
  font-family: "OYP Text Italic";
  src: url("../fonts/VeraIt.ttf") format("truetype");
}

body {
  background: var(--oyp-cream);
  color: var(--oyp-ink);
}

.navbar-brand,
h1,
.h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.hero {
  background: linear-gradient(
    155deg,
    var(--oyp-sky) 0 55%,
    var(--oyp-cream) 55%
  );
}

.py-lg-7 {
  padding-bottom: 7rem;
  padding-top: 7rem;
}

.eyebrow {
  color: var(--oyp-blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.display-2 {
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.coming-soon-card {
  background: var(--oyp-cream);
  border: 1px solid rgb(23 36 58 / 14%);
  border-radius: 1.25rem;
  box-shadow: 8px 9px 0 var(--oyp-coral);
}

.btn-primary {
  --bs-btn-bg: var(--oyp-blue);
  --bs-btn-border-color: var(--oyp-blue);
  --bs-btn-hover-bg: #1f4b80;
  --bs-btn-hover-border-color: #1f4b80;
}

.upload-card,
.preview-stage,
.order-card,
.order-proof,
.project-card,
.empty-projects,
.account-card {
  background: #fff;
  border: 1px solid rgb(23 36 58 / 14%);
  border-radius: 1.25rem;
  box-shadow: 8px 9px 0 var(--oyp-coral);
}

.account-card {
  max-width: 36rem;
}

.account-card ul {
  padding-left: 1.25rem;
}

.account-card input[type="email"],
.account-card input[type="password"],
.account-card input[type="text"] {
  display: block;
  width: 100%;
}

.project-thumbnail {
  align-items: center;
  background: var(--oyp-sky);
  display: flex;
  height: 14rem;
  justify-content: center;
  overflow: hidden;
}

.project-thumbnail img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.order-proof img {
  display: block;
  margin-inline: auto;
}

.confirmation-card {
  max-width: 46rem;
}

.order-reference {
  overflow-wrap: anywhere;
}

.calibration-note {
  background: var(--oyp-sky);
  border-left: 4px solid var(--oyp-blue);
  border-radius: 0.4rem;
}

.preview-stage {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 22rem;
}

.preview-image {
  max-height: 65vh;
  object-fit: contain;
}

.layout-choice {
  border: 1px solid rgb(23 36 58 / 18%);
  border-radius: 0.6rem;
}

.side-editor {
  background: #fff;
  border: 1px solid rgb(23 36 58 / 14%);
  border-radius: 1rem;
}

.side-editor .badge {
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-preview-grid {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(10rem, 0.8fr);
}

.editor-frame {
  aspect-ratio: var(--editor-aspect);
  background: #fff;
  border: 2px solid var(--oyp-ink);
  cursor: grab;
  overflow: hidden;
  position: relative;
  touch-action: none;
  user-select: none;
}

.editor-frame.is-dragging {
  cursor: grabbing;
}

.artwork-layer {
  clip-path: inset(
    0 var(--print-clip-right) 0 var(--print-clip-left)
  );
  inset: 0;
  position: absolute;
}

.editor-frame::before,
.editor-frame::after {
  background: repeating-linear-gradient(
    135deg,
    rgb(23 36 58 / 10%) 0 5px,
    rgb(255 255 255 / 72%) 5px 10px
  );
  bottom: 0;
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0;
  z-index: 2;
}

.editor-frame::before {
  left: 0;
  width: var(--print-clip-left);
}

.editor-frame::after {
  right: 0;
  width: var(--print-clip-right);
}

.print-boundary {
  border: 2px dashed var(--oyp-blue);
  bottom: 0;
  left: var(--print-clip-left);
  pointer-events: none;
  position: absolute;
  right: var(--print-clip-right);
  top: 0;
  z-index: 3;
}

.editor-frame img {
  left: 50%;
  max-width: none;
  pointer-events: none;
  position: absolute;
  top: 50%;
}

.artwork-text {
  left: 50%;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.scale-entry {
  width: 6.25rem;
}

.size-input {
  text-align: right;
}

.move-photo {
  min-height: 2.75rem;
  min-width: 2.75rem;
}

.scale-up,
.scale-down,
.fill-side {
  min-height: 2.5rem;
}

.quality-good {
  color: #16713d;
}

.quality-warning {
  color: #a53b22;
}

.mug-preview-stage {
  background:
    radial-gradient(circle at 50% 38%, #fff 0 18%, transparent 56%),
    linear-gradient(145deg, #f4f7f8, #dce4e9);
  border-radius: 1rem;
  overflow: hidden;
  padding: 1rem 0.5rem 0.75rem;
}

.mug-preview-shell {
  aspect-ratio: 1 / 1.08;
  margin-inline: auto;
  position: relative;
  width: min(100%, 13rem);
}

.mug-preview-label {
  color: var(--oyp-ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.mug-body {
  background: linear-gradient(
    90deg,
    #dbe1e5 0%,
    #f7f9fa 11%,
    #fff 27% 70%,
    #eef2f4 88%,
    #d0d7dc 100%
  );
  border: 2px solid #c8d0d6;
  border-radius: 7% 7% 13% 13% / 5% 5% 9% 9%;
  box-shadow: inset 7px 0 12px rgb(23 36 58 / 9%),
              inset -9px 0 14px rgb(23 36 58 / 12%),
              0 10px 14px rgb(23 36 58 / 14%);
  height: 84%;
  left: 50%;
  position: absolute;
  top: 7%;
  transform: translateX(-50%);
  width: 66%;
  z-index: 2;
}

.mug-rim {
  background: radial-gradient(
    ellipse at center,
    #dce3e7 0 47%,
    #f9fbfc 49% 64%,
    #c7cfd5 66% 72%,
    #fff 74%
  );
  border: 1px solid #bdc7ce;
  border-radius: 50%;
  box-shadow: 0 2px 3px rgb(23 36 58 / 18%);
  height: 10%;
  left: -1.5%;
  position: absolute;
  top: -2.5%;
  width: 103%;
  z-index: 4;
}

.mug-print-window {
  border-radius: 8% / 48%;
  height: 82%;
  left: 2%;
  overflow: hidden;
  position: absolute;
  top: 9%;
  width: 96%;
}

.mug-face {
  aspect-ratio: var(--editor-aspect);
  height: 100%;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}

.mug-photo {
  left: 50%;
  max-width: none;
  pointer-events: none;
  position: absolute;
  top: 50%;
}

.mug-shine {
  background: linear-gradient(
    90deg,
    rgb(255 255 255 / 68%) 0%,
    rgb(255 255 255 / 25%) 12%,
    transparent 31% 66%,
    rgb(23 36 58 / 6%) 85%,
    rgb(23 36 58 / 17%) 100%
  );
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.mug-curve-shade {
  background: radial-gradient(
    ellipse at center,
    transparent 0 49%,
    rgb(23 36 58 / 4%) 68%,
    rgb(23 36 58 / 14%) 100%
  );
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.mug-handle {
  background: linear-gradient(135deg, #fff, #dce2e6);
  border: 2px solid #c7cfd5;
  border-radius: 48%;
  box-shadow: 0 7px 11px rgb(23 36 58 / 13%);
  height: 48%;
  position: absolute;
  top: 25%;
  width: 31%;
  z-index: 1;
}

.mug-handle::after {
  background: #e3e9ec;
  border: 1px solid #c5cdd3;
  border-radius: 48%;
  content: "";
  inset: 18% 19%;
  position: absolute;
}

.mug-handle-front {
  left: 1%;
}

.mug-handle-back {
  right: 1%;
}

.mug-ground-shadow {
  background: radial-gradient(
    ellipse at center,
    rgb(23 36 58 / 23%),
    transparent 70%
  );
  bottom: 0;
  height: 10%;
  left: 18%;
  position: absolute;
  width: 64%;
  z-index: 0;
}


@media (max-width: 991.98px) {
  .py-lg-7 {
    padding-bottom: 4rem;
    padding-top: 4rem;
  }
}

@media (max-width: 575.98px) {
  .side-preview-grid {
    grid-template-columns: 1fr;
  }

  .mug-preview-group {
    margin-inline: auto;
    max-width: 15rem;
    width: 72%;
  }

  .mug-preview-note {
    line-height: 1.25;
  }
}
