:root {
  --bg: #f7f6f2;
  --ink: #181614;
  --muted: #69645d;
  --line: #ddd8ce;
  --panel: #ffffff;
  --accent: #e9572f;
  --accent-dark: #bd3219;
  --mint: #54b99f;
  --steel: #41515c;
  --blue: #2d7dd2;
  --shadow: 0 18px 48px rgba(24, 22, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(24, 22, 20, 0.08);
  background: rgba(247, 246, 242, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.main-nav,
.hero-actions,
.trust-strip,
.cart-button,
.header-actions,
.stock-row,
.swatch-row,
.summary-line {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 14px;
}

.main-nav {
  gap: 22px;
  color: var(--muted);
  font-weight: 650;
}

.main-nav a:hover {
  color: var(--ink);
}

.header-actions {
  gap: 10px;
  justify-content: flex-end;
}

.header-actions form {
  margin: 0;
}

.header-button {
  min-height: 42px;
  padding: 0 14px;
  white-space: nowrap;
}

.cart-button,
.icon-button,
.product-media,
.color-dot {
  border: 0;
  cursor: pointer;
}

.cart-button {
  gap: 8px;
  min-width: 68px;
  height: 42px;
  justify-content: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 800;
}

.cart-icon {
  font-size: 15px;
}

.announcement {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 10px 18px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  flex-wrap: wrap;
}

.announcement span {
  color: #f7c97d;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 112px);
  padding: 64px 6vw 48px;
}

.hero-copy h1,
.section-heading h2,
.split-section h2,
.material-guide h2,
.contact-panel h2,
.product-dialog h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero-copy h1 {
  max-width: 820px;
  font-size: clamp(42px, 6vw, 84px);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  font-size: 19px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 24px rgba(233, 87, 47, 0.2);
}

.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.button.dark {
  background: var(--ink);
  color: white;
}

.button.full {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 14px;
  max-width: 650px;
  margin: 36px 0 0;
}

.hero-stats div,
.workflow-grid article,
.guide-list div,
details,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-stats div {
  padding: 16px;
}

.hero-stats dt {
  font-weight: 900;
}

.hero-stats dd {
  margin: 2px 0 0;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.printer-scene {
  position: absolute;
  inset: 22px 0 34px;
  border: 1px solid rgba(24, 22, 20, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(242, 238, 229, 0.84)),
    repeating-linear-gradient(90deg, rgba(24, 22, 20, 0.05) 0 1px, transparent 1px 24px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.printer-frame {
  position: absolute;
  inset: 64px 58px 92px;
  border: 14px solid var(--steel);
  border-bottom-width: 18px;
  border-radius: 8px;
}

.printer-rail {
  position: absolute;
  left: 88px;
  right: 88px;
  top: 156px;
  height: 18px;
  border-radius: 8px;
  background: #2f3c44;
}

.printer-head {
  position: absolute;
  top: 126px;
  left: 50%;
  width: 86px;
  height: 84px;
  border-radius: 8px;
  background: var(--accent);
  box-shadow: 0 16px 30px rgba(189, 50, 25, 0.24);
  transform: translateX(-50%);
  animation: printhead 3.8s ease-in-out infinite;
}

.printer-head::after {
  content: "";
  position: absolute;
  left: 36px;
  bottom: -42px;
  width: 14px;
  height: 42px;
  background: #2f3c44;
  clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
}

.print-bed {
  position: absolute;
  left: 98px;
  right: 98px;
  bottom: 86px;
  height: 58px;
  border-radius: 8px;
  background: #252523;
  box-shadow: 0 16px 0 rgba(24, 22, 20, 0.12);
}

.printed-vase {
  position: absolute;
  left: 50%;
  bottom: 46px;
  width: 132px;
  height: 158px;
  transform: translateX(-50%);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.2) 0 2px, transparent 2px 9px),
    linear-gradient(90deg, #41a58f, #74d0ba, #338a77);
  clip-path: polygon(26% 100%, 16% 56%, 32% 16%, 42% 0, 58% 0, 70% 16%, 84% 56%, 74% 100%);
}

.floating-swatch {
  position: absolute;
  z-index: 2;
  padding: 10px 13px;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 850;
}

.swatch-one {
  top: 82px;
  right: -18px;
}

.swatch-two {
  left: -12px;
  bottom: 138px;
}

.swatch-three {
  right: 42px;
  bottom: 54px;
}

.trust-strip {
  justify-content: space-around;
  gap: 16px;
  margin: 0 6vw;
  padding: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  flex-wrap: wrap;
}

.section-heading,
.split-section,
.shop-layout,
.workflow-section,
.material-guide,
.faq-contact {
  padding: 70px 6vw 0;
}

.section-heading {
  max-width: 850px;
}

.section-heading.compact {
  padding: 0;
}

.section-heading h2,
.split-section h2,
.material-guide h2 {
  font-size: clamp(32px, 4vw, 56px);
}

.section-heading p:not(.eyebrow),
.split-section p:not(.eyebrow),
.material-guide span,
.workflow-grid p,
details p,
.product-dialog p {
  color: var(--muted);
  font-size: 18px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
  padding-top: 28px;
}

.filters,
.request-form,
.product-card,
.cart-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.filters {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.filters label,
.request-form label,
.checkout-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.filters select,
.filters input,
.request-form input,
.request-form textarea,
.checkout-form input,
.checkout-form textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  color: var(--ink);
}

.filters select,
.filters input {
  height: 42px;
  padding: 0 10px;
}

.filter-note {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.filter-note strong {
  color: var(--ink);
}

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

.product-card {
  display: grid;
  overflow: hidden;
}

.product-media {
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  background: #ece7dc;
}

.product-media:hover .product-object {
  transform: translateY(-3px) rotate(-1deg);
}

.product-object {
  width: 136px;
  height: 136px;
  filter: drop-shadow(0 18px 16px rgba(24, 22, 20, 0.18));
  transition: transform 180ms ease;
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.product-meta,
.product-buy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.product-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-card h3 {
  margin: 0;
  font-size: 21px;
}

.product-card p {
  margin: 0;
  color: var(--muted);
}

.stock-row {
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.swatch-row {
  gap: 8px;
  min-height: 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.color-dot {
  width: 24px;
  height: 24px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--dot-color);
  box-shadow: 0 0 0 1px rgba(24, 22, 20, 0.18);
}

.color-dot.is-active {
  box-shadow: 0 0 0 3px var(--ink);
}

.product-buy {
  align-items: center;
  margin-top: 6px;
}

.price {
  font-size: 21px;
  font-weight: 950;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
}

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

.workflow-grid article {
  padding: 22px;
}

.workflow-grid span {
  color: var(--accent-dark);
  font-weight: 950;
}

.workflow-grid h3 {
  margin: 12px 0 8px;
  font-size: 23px;
}

.workflow-grid p {
  margin: 0;
}

.material-guide {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.guide-list {
  display: grid;
  gap: 12px;
}

.guide-list div {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: 36px;
  align-items: start;
}

.request-form,
.checkout-form {
  display: grid;
  gap: 14px;
}

.request-form {
  padding: 20px;
}

.request-form input,
.request-form textarea,
.checkout-form input,
.checkout-form textarea {
  padding: 12px;
}

.check-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.check-row input {
  width: 18px;
  margin: 3px 0 0;
}

.form-message,
.cart-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.wholesale {
  padding-bottom: 72px;
}

.faq-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.45fr);
  gap: 24px;
  padding-bottom: 72px;
}

details {
  margin-top: 12px;
  padding: 18px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 10px 0 0;
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 20px;
  align-self: start;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  justify-content: flex-end;
  background: rgba(24, 22, 20, 0.42);
}

.cart-drawer.is-open {
  display: flex;
}

.cart-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(480px, 100%);
  height: 100%;
  border-radius: 0;
  box-shadow: var(--shadow);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin: 0;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #f1eee7;
  font-size: 26px;
}

.cart-items {
  overflow: auto;
  padding: 18px 22px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.cart-item span {
  color: var(--muted);
  font-size: 13px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-controls button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-weight: 900;
}

.cart-summary {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-top: 1px solid var(--line);
}

.summary-line {
  justify-content: space-between;
}

.summary-line.grand {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.product-dialog {
  width: min(900px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.product-dialog::backdrop {
  background: rgba(24, 22, 20, 0.42);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.dialog-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1fr;
}

.dialog-media {
  display: grid;
  min-height: 440px;
  place-items: center;
  background: #ece7dc;
}

.dialog-media .product-object {
  width: 220px;
  height: 220px;
}

.dialog-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 48px;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 6vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.flash {
  position: fixed;
  top: 86px;
  left: 50%;
  z-index: 60;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 850;
}

.flash.success {
  background: #e8f7ef;
  color: #176b45;
}

.flash.error {
  background: #ffe9e4;
  color: #9f260f;
}

.admin-body {
  background: #f3f0e8;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 6vw;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

.admin-main {
  padding: 42px 6vw 72px;
}

.admin-title h1,
.admin-card h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.user-admin-row {
  align-items: center;
}

.user-actions,
.user-actions form,
.admin-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-toggle {
  color: var(--muted);
  font-weight: 850;
}

.admin-toggle input {
  width: 18px;
  height: 18px;
}

.admin-metrics article,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(24, 22, 20, 0.06);
}

.admin-metrics article {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.admin-metrics span,
.admin-row span {
  color: var(--muted);
}

.admin-metrics strong {
  font-size: 32px;
}

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

.admin-card {
  padding: 22px;
}

.admin-card.narrow {
  max-width: 460px;
  margin: 64px auto;
}

.admin-card h2 {
  margin-top: 0;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.admin-row:last-child {
  border-bottom: 0;
}

.product-admin-row {
  align-items: center;
}

.product-admin-row div {
  display: grid;
  gap: 3px;
}

.order-card {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.order-card:last-child {
  border-bottom: 0;
}

.order-card ul {
  margin: 12px 0;
  color: var(--muted);
}

.status-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.status-form select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
}

.status-form input {
  min-height: 44px;
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
}

.auth-page {
  padding: 32px 18px 72px;
}

.tracking-steps {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.tracking-steps span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfaf7;
  font-weight: 850;
}

.tracking-steps span.is-active {
  border-color: rgba(233, 87, 47, 0.45);
  background: #ffe9e1;
  color: var(--accent-dark);
}

.account-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #f6efe2);
  box-shadow: 0 10px 28px rgba(24, 22, 20, 0.06);
}

.account-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
}

.account-hero p {
  max-width: 680px;
  color: var(--muted);
}

.account-badge {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 240px;
  padding: 18px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
}

.account-badge span {
  color: #f7c97d;
  font-size: 13px;
  font-weight: 850;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 20px;
}

.profile-form {
  align-content: start;
}

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

.orders-panel {
  align-self: start;
}

.paytr-frame {
  width: 100%;
  min-height: 720px;
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.payment-warning {
  padding: 14px 16px;
  border: 1px solid rgba(233, 87, 47, 0.35);
  border-radius: 8px;
  background: #fff1ec;
  color: var(--accent-dark);
  font-weight: 850;
}

@keyframes printhead {
  0%,
  100% {
    transform: translateX(-84%);
  }
  50% {
    transform: translateX(18%);
  }
}

@media (max-width: 1040px) {
  .hero,
  .shop-layout,
  .split-section,
  .material-guide,
  .faq-contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 420px;
  }

  .product-grid,
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: auto;
    padding: 14px 18px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    font-size: 14px;
  }

  .header-actions {
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .header-button {
    min-height: 40px;
    padding: 0 12px;
  }

  .hero,
  .section-heading,
  .split-section,
  .shop-layout,
  .workflow-section,
  .material-guide,
  .faq-contact {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-stats,
  .product-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 340px;
  }

  .printer-frame {
    inset: 54px 36px 78px;
  }

  .printer-rail {
    left: 56px;
    right: 56px;
  }

  .print-bed {
    left: 52px;
    right: 52px;
  }

  .floating-swatch {
    display: none;
  }

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

  .dialog-media {
    min-height: 280px;
  }

  .dialog-copy {
    padding: 28px 20px;
  }

  .site-footer {
    flex-direction: column;
  }

  .account-hero,
  .account-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .account-hero {
    display: grid;
  }
}
