:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --line: #dce5f1;
  --text: #172033;
  --muted: #66738a;
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --green: #16a34a;
  --amber: #d97706;
  --ink: #111827;
}

* {
  box-sizing: border-box;
}

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

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

label {
  display: block;
  margin: 12px 0 6px;
  color: #40506a;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cfd8e6;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 10px 11px;
  font: inherit;
  font-size: 14px;
}

textarea {
  resize: vertical;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 0 28px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.brand.has-logo {
  min-height: 40px;
}

.brand-logo {
  display: block;
  max-width: 180px;
  max-height: 42px;
  object-fit: contain;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-size: 14px;
}

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

.nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 7px;
  color: #40506a;
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  background: #eef2f7;
  color: var(--text);
}

.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px;
}

.banner-panel {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.banner-preview {
  min-height: 260px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef5ff, #ffffff 46%, #edf8f4);
  border-bottom: 1px solid var(--line);
}

.banner-preview.has-image {
  min-height: 360px;
  background-size: cover;
  background-position: center;
}

.admin-logo-preview {
  min-height: 92px;
  display: grid;
  place-items: center;
  border: 1px dashed #b8c4d6;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--muted);
}

.admin-logo-preview.has-image {
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.banner-empty {
  display: grid;
  gap: 4px;
  place-items: center;
  color: #42526a;
}

.banner-empty strong {
  font-size: 26px;
}

.banner-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.upload-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #111827;
  color: #fff;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.upload-button input {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, 1.08fr);
  gap: 18px;
  align-items: stretch;
}

.hero-copy,
.panel,
.product-card,
.summary-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-copy {
  padding: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eafaf0;
  color: #166534;
  font-size: 12px;
  font-weight: 850;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.button,
button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  padding: 0 15px;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.button:hover,
button:hover {
  background: var(--blue-dark);
}

.button.secondary,
button.secondary {
  background: #111827;
}

.button.ghost,
button.ghost {
  background: #eef2f7;
  color: #243044;
}

.button.ghost:hover,
button.ghost:hover {
  background: #e1e8f2;
}

.showcase {
  min-height: 430px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(135deg, #eef5ff, #ffffff 44%, #edf8f4);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-visual {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px solid #d6e0ee;
  border-radius: 8px;
  background: #f8fbff;
}

.product-image {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.product-visual.tall {
  grid-row: span 2;
}

.bottle {
  width: 92px;
  height: 178px;
  position: relative;
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(180deg, #fefefe, #dfeaf8);
  border: 1px solid #c7d3e4;
  box-shadow: 0 16px 34px rgba(27, 45, 78, .14);
}

.bottle::before {
  content: "";
  position: absolute;
  left: 28px;
  top: -32px;
  width: 36px;
  height: 36px;
  border-radius: 8px 8px 4px 4px;
  background: #1f2937;
}

.bottle::after {
  content: "PURE";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 68px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #c8d5e6;
  border-radius: 7px;
  color: #1f3b66;
  font-size: 12px;
  font-weight: 850;
}

.box {
  width: 150px;
  height: 132px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fafc, #dbeafe);
  border: 1px solid #c7d3e4;
  box-shadow: 0 14px 28px rgba(27, 45, 78, .12);
}

.section {
  margin-top: 24px;
}

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

.product-card {
  overflow: hidden;
}

.product-link {
  display: block;
}

.product-card .product-visual {
  min-height: 180px;
  border-width: 0 0 1px;
  border-radius: 0;
}

.product-body {
  padding: 16px;
}

.price {
  color: var(--blue);
  font-size: 22px;
  font-weight: 900;
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: 18px;
}

.panel {
  padding: 18px;
}

.product-main-visual {
  min-height: 520px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #edf8f4, #ffffff 48%, #eef5ff);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-main-visual .bottle {
  transform: scale(1.35);
}

.product-main-visual .product-image {
  min-height: 520px;
  border-radius: 8px;
}

.option-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 18px;
}

.option-button {
  min-height: 52px;
  background: #fff;
  color: var(--text);
  border: 1px solid #cfd8e6;
}

.option-button:hover,
.option-button.active {
  background: #eef6ff;
  color: #1d4ed8;
  border-color: #8bb8ff;
}

.summary-panel {
  padding: 16px;
  margin-top: 14px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
}

.summary-line:last-child {
  border-bottom: 0;
}

.detail-box {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.detail-box h2 {
  margin-bottom: 8px;
  font-size: 18px;
}

.detail-box ul {
  margin: 0;
  padding-left: 18px;
  color: #40506a;
}

.detail-box li + li {
  margin-top: 6px;
}

.cart-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border-radius: 999px;
  background: #eef2f7;
  color: #40506a;
  font-size: 14px;
  font-weight: 800;
}

.cart-pill strong {
  color: var(--blue);
}

.cart-message {
  min-height: 22px;
  margin-top: 12px;
  color: #166534;
  font-size: 13px;
  font-weight: 750;
}

.site-footer {
  margin-top: 46px;
  background: #101827;
  color: #d9e2f2;
  border-top: 1px solid #263245;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) repeat(3, minmax(150px, .75fr));
  gap: 28px;
  padding: 34px 24px 28px;
}

.site-footer .brand {
  color: #fff;
}

.footer-brand-copy {
  max-width: 380px;
  margin: 14px 0 0;
  color: #a9b6cc;
  font-size: 14px;
}

.footer-contact {
  margin-top: 14px;
  color: #cbd5e1;
  font-size: 13px;
}

.footer-column h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
}

.footer-column a {
  display: block;
  width: fit-content;
  margin-top: 9px;
  color: #a9b6cc;
  font-size: 13px;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 24px 22px;
  border-top: 1px solid #263245;
  color: #8fa0ba;
  font-size: 12px;
}

.policy-page {
  max-width: 900px;
}

.policy-hero,
.policy-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.policy-section {
  margin-top: 14px;
}

.policy-section h2 {
  font-size: 18px;
}

.policy-section ul {
  margin: 0;
  padding-left: 18px;
  color: #40506a;
}

.policy-section li + li {
  margin-top: 8px;
}

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

.domain-step {
  min-height: 118px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

code {
  padding: 1px 4px;
  border-radius: 5px;
  background: #eef2f7;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.admin-page {
  padding-bottom: 92px;
}

.admin-login {
  max-width: 520px;
  margin: 40px auto;
}

.admin-titlebar,
.product-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, .86fr) minmax(420px, 1.14fr);
  gap: 18px;
}

.admin-banner-preview,
.admin-product-image {
  min-height: 190px;
  display: grid;
  place-items: center;
  border: 1px dashed #b7c5d8;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--muted);
  background-position: center;
  background-size: cover;
}

.admin-banner-preview.has-image,
.admin-product-image.has-image {
  border-style: solid;
}

.admin-upload {
  width: fit-content;
  margin-top: 12px;
}

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

.payment-admin-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.checkline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

.checkline input {
  width: auto;
}

.notice-mini {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
}

.admin-products {
  display: grid;
  gap: 14px;
}

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

.product-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.shipping-rate-editor {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-editor-top {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
}

.admin-product-image {
  min-height: 240px;
}

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

.product-editor-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.save-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 20;
  width: min(1120px, calc(100vw - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #cdd9eb;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 42px rgba(20, 38, 70, .18);
  backdrop-filter: blur(12px);
}

.save-bar span {
  color: #40506a;
  font-size: 13px;
  font-weight: 750;
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .page {
    padding: 14px;
  }

  .banner-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .banner-preview,
  .banner-preview.has-image {
    min-height: 230px;
  }

  .hero,
  .split,
  .domain-strip,
  .product-grid,
  .admin-grid,
  .payment-admin-grid,
  .product-editor-top,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

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

  .product-main-visual {
    min-height: 360px;
  }

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

  .admin-titlebar,
  .product-admin-head,
  .save-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 28px 16px 22px;
  }

  .footer-bottom {
    padding: 14px 16px 22px;
  }
}
