:root {
  --rose-900: #5f1f36;
  --rose-700: #a43d68;
  --rose-500: #e56b9f;
  --rose-300: #f6a8c9;
  --rose-100: #ffe8f2;
  --pearl: #fff9fc;
  --cream: #fffdf8;
  --ink: #341929;
  --mist: rgba(255, 255, 255, 0.74);
  --line: rgba(124, 49, 82, 0.18);
  --shadow: 0 24px 70px rgba(95, 31, 54, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 221, 239, 0.32) 38%, rgba(210, 93, 145, 0.34) 100%),
    url("assets/real-ombre-glitter.jpg") center / cover fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.78), transparent 30%),
    radial-gradient(circle at 84% 10%, rgba(255, 189, 220, 0.34), transparent 34%),
    linear-gradient(115deg, rgba(255, 250, 253, 0.5), rgba(255, 218, 238, 0.12) 42%, rgba(134, 57, 99, 0.24));
  pointer-events: none;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(255, 249, 252, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: "Pinyon Script", cursive;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  font-weight: 400;
  text-decoration: none;
  color: var(--rose-900);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 26px);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--rose-900);
}

.nav-links a {
  text-decoration: none;
}

.owner-only[hidden] {
  display: none !important;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  padding: clamp(52px, 9vw, 110px) clamp(18px, 7vw, 96px);
}

.owner-hero {
  min-height: 76vh;
}

.section-glitter {
  background:
    linear-gradient(120deg, rgba(255, 250, 253, 0.84) 0%, rgba(255, 226, 241, 0.34) 44%, rgba(172, 58, 112, 0.22) 100%),
    url("assets/real-ombre-glitter.jpg") center / cover;
}

.hero-copy {
  max-width: 1040px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--rose-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--rose-900);
  font-family: "Pinyon Script", cursive;
  font-weight: 400;
}

h1 {
  max-width: 100%;
  font-size: min(clamp(2.35rem, 8.7vw, 7rem), calc((100vw - 44px) / 9.9));
  line-height: 0.96;
  white-space: nowrap;
}

h2 {
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.98;
}

h3 {
  font-size: clamp(2.4rem, 4vw, 3.3rem);
  line-height: 1;
}

.hero-text,
.section-heading p,
.about-panel p,
.checkout-note {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  line-height: 1.45;
}

.hero-text {
  max-width: 560px;
  margin: 20px 0 0;
}

.hero-actions,
.gallery-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--rose-700), var(--rose-500));
  box-shadow: 0 14px 28px rgba(164, 61, 104, 0.24);
}

.button.ghost,
.button.soft {
  color: var(--rose-900);
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
}

.art-shop,
.checkout {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 6vw, 82px);
  background: rgba(255, 249, 252, 0.9);
}

.owner-note-section {
  display: grid;
  gap: 18px;
  padding: 26px clamp(18px, 6vw, 82px);
  background: rgba(255, 249, 252, 0.92);
}

.owner-note,
.sync-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--rose-900);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.owner-note p,
.sync-panel p {
  max-width: 860px;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.45;
}

.owner-note .kicker,
.sync-panel .kicker {
  margin-bottom: 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.78rem;
}

.sync-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.8fr);
  gap: 14px;
  align-items: end;
}

.sync-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sync-status {
  grid-column: 1 / -1;
  color: var(--rose-700);
  font-size: 1rem;
  font-weight: 700;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading p {
  margin: 12px 0 0;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.art-card,
.cart-panel,
.payment-panel,
.about-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.art-card {
  overflow: hidden;
}

.art-card.is-finished {
  background: rgba(255, 252, 254, 0.86);
}

.empty-gallery {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--rose-700);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  text-align: center;
}

.reveal-panel {
  opacity: 0;
  transform: translateY(34px) scale(0.98);
  filter: blur(8px);
  transition:
    opacity 780ms ease,
    transform 780ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 780ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal-panel.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.art-upload {
  position: relative;
  display: grid;
  min-height: 330px;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  background:
    linear-gradient(145deg, rgba(255, 236, 246, 0.58), rgba(255, 255, 255, 0.3), rgba(194, 74, 128, 0.24)),
    url("assets/real-ombre-glitter.jpg") center / cover;
}

.art-upload input,
.scanner-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.art-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-display-image {
  display: grid;
  min-height: 330px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 236, 246, 0.58), rgba(255, 255, 255, 0.3), rgba(194, 74, 128, 0.24)),
    url("assets/real-ombre-glitter.jpg") center / cover;
}

.art-display-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-display-image span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--rose-900);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.upload-copy {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--rose-900);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.art-content {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.art-display-content {
  gap: 14px;
}

.display-kicker {
  margin: 0;
  color: var(--rose-700);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.art-display-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.art-display-description {
  margin: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.42;
  white-space: pre-line;
}

.art-display-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.art-display-price span {
  color: var(--rose-700);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.art-display-price strong {
  color: var(--rose-900);
  font-size: 1.2rem;
}

.stock-badge {
  justify-self: start;
  margin: 0;
  border: 1px solid rgba(69, 138, 92, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  color: #2f7549;
  background: rgba(227, 255, 236, 0.78);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stock-badge.out {
  border-color: rgba(164, 61, 104, 0.26);
  color: var(--rose-700);
  background: rgba(255, 232, 242, 0.82);
}

.field {
  display: grid;
  gap: 7px;
  color: var(--rose-900);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  outline: none;
  text-transform: none;
}

.field select {
  cursor: pointer;
}

.field textarea {
  resize: vertical;
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.address-state {
  grid-column: 1 / -1;
}

.manual-note {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--rose-700);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.request-summary {
  display: grid;
  gap: 10px;
}

.request-summary[hidden] {
  display: none;
}

.request-summary textarea {
  min-height: 180px;
}

.owner-preview-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.owner-hidden-checkout {
  display: none;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.edit-actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.finished-actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.customer-actions {
  grid-template-columns: 1fr;
}

.remove-card {
  min-width: 46px;
  padding: 0;
}

.about {
  padding: clamp(70px, 11vw, 128px) clamp(18px, 7vw, 96px);
}

.about-panel {
  max-width: 760px;
  padding: clamp(26px, 5vw, 48px);
  background: rgba(255, 252, 254, 0.82);
}

.about-panel p {
  margin: 14px 0 0;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.cart-panel,
.payment-panel {
  padding: 22px;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.cart-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.cart-row img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--rose-100);
}

.cart-row strong,
.cart-row span {
  display: block;
}

.cart-row strong {
  color: var(--rose-900);
}

.cart-row span {
  margin-top: 4px;
  color: var(--rose-700);
  font-size: 0.9rem;
}

.cart-row .cart-stock-note {
  color: #2f7549;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-row-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.quantity-control {
  display: grid;
  grid-template-columns: 34px 34px 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.quantity-control button {
  width: 34px;
  height: 34px;
  border: 0;
  color: var(--rose-900);
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 800;
}

.quantity-control button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.quantity-control strong {
  min-width: 34px;
  text-align: center;
  color: var(--rose-900);
}

.cart-line-total {
  margin-top: 0;
  font-weight: 800;
}

.cart-empty {
  margin-top: 18px;
  color: var(--rose-700);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
}

.payment-panel {
  display: grid;
  gap: 16px;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.payment-options legend {
  margin-bottom: 8px;
  color: var(--rose-900);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-options label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  font-weight: 800;
}

.payment-options input {
  accent-color: var(--rose-700);
}

.payment-options span {
  margin-left: 7px;
}

.transaction-process {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.transaction-process h4 {
  margin: 0;
  color: var(--rose-900);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
}

.transaction-process ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.4;
}

.transaction-process p {
  margin: 0;
  color: var(--rose-700);
  font-size: 0.92rem;
  font-weight: 700;
}

.scanner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.scanner-upload {
  position: relative;
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  gap: 8px;
  overflow: hidden;
  border: 1px dashed rgba(164, 61, 104, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  text-align: center;
}

.scanner-upload.customer-locked {
  cursor: default;
}

.scanner-upload.customer-locked .scanner-text {
  color: var(--rose-700);
}

.scanner-upload.owner-editable {
  border-style: dashed;
}

.scanner-upload.is-active {
  border-color: rgba(164, 61, 104, 0.86);
  box-shadow: 0 14px 30px rgba(164, 61, 104, 0.14);
}

.scanner-upload img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 34px 10px 10px;
}

.scanner-upload.has-image .scanner-text {
  display: none;
}

.scanner-upload.has-image img {
  display: block;
}

.scanner-text {
  color: var(--rose-900);
  font-weight: 800;
}

.scanner-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 252, 254, 0.88);
  color: var(--rose-900);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-button {
  width: 100%;
}

.checkout-note {
  min-height: 34px;
  margin: 0;
  color: var(--rose-700);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px clamp(18px, 5vw, 64px);
  color: var(--rose-900);
  background: rgba(255, 249, 252, 0.86);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.download-page {
  min-height: 100vh;
}

.download-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.download-panel {
  width: min(760px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 7vw, 58px);
  background: rgba(255, 249, 252, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

@media (max-width: 980px) {
  .art-grid,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .art-upload {
    min-height: 380px;
  }

  .art-display-image {
    min-height: 380px;
  }

  .scanner-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 78vh;
  }

  .payment-options {
    grid-template-columns: 1fr;
  }

  .address-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .owner-preview-fields {
    grid-template-columns: 1fr;
  }

  .sync-panel {
    grid-template-columns: 1fr;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .finished-actions,
  .edit-actions {
    grid-template-columns: 1fr;
  }

  .remove-card {
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  .reveal-panel {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
