/* Fragrance Plug — HIS store, in HIS branding: The Fragrance Guy.
   Royal blue owns the field, bright yellow owns the action, white carries the shelf.
   Colors and energy sampled from his own flyers (assets/price-list.jpg, assets/logo.jpg).
   Deliberately NOT the Eagles brand system and NOT the first demo's invented look. */

:root {
  --blue-deep: #050f42;
  --blue: #071a6e;
  --blue-mid: #0b2bb3;
  --blue-sky: #1e7bf0;
  --panel: #0a247f;
  --line: rgba(255, 255, 255, 0.22);
  --white: #ffffff;
  --ink: #0a1030;
  --ink-dim: #3d4670;
  --paper-dim: #c7d4ff;
  --yellow: #ffd60a;
  --yellow-hi: #ffe14d;
  --yellow-deep: #f5b800;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1000px 520px at 85% -140px, rgba(30, 123, 240, 0.5), transparent 62%),
    radial-gradient(900px 460px at 8% 240px, rgba(255, 214, 10, 0.14), transparent 60%),
    linear-gradient(180deg, var(--blue-mid), var(--blue) 420px, var(--blue-deep));
  background-color: var(--blue-deep);
  color: var(--white);
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, .brand-name, .shelf-title, .page-title, .shelf-group {
  font-family: "Arial Black", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
}

button { font: inherit; touch-action: manipulation; }
button:active { transform: scale(0.97); }
img { max-width: 100%; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 15, 66, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--yellow);
  padding-top: env(safe-area-inset-top);
}
.topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  min-width: 0;
}
.brand-badge {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  object-fit: cover;
  background: var(--white);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: 17px; letter-spacing: 0.02em; white-space: nowrap; color: var(--yellow); }
.brand-sub { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper-dim); }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.link-btn {
  background: none; border: none; cursor: pointer;
  color: var(--paper-dim); font-size: 14px; padding: 8px 6px;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 160ms ease;
}
.cart-btn {
  background: var(--yellow);
  border: none;
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: background 160ms ease;
}
.cart-count {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px;
  margin-left: 6px; padding: 0 5px;
  border-radius: 999px;
  background: var(--blue-mid);
  color: var(--white);
  font-size: 12px; font-weight: 800;
}
@media (hover: hover) and (pointer: fine) {
  .link-btn:hover { color: var(--yellow-hi); }
  .cart-btn:hover { background: var(--yellow-hi); }
}

/* ---------- layout ---------- */
main { max-width: 1160px; margin: 0 auto; padding: 0 20px 90px; }
.view { animation: viewIn 240ms var(--ease-out); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 44px 16px 8px; }
.hero-logo {
  width: min(430px, 88vw);
  height: auto;
  border-radius: 26px;
  border: 4px solid var(--ink);
  box-shadow: 0 18px 44px rgba(0, 0, 10, 0.45);
  background: var(--white);
}
.hero-eyebrow {
  margin: 26px 0 10px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; color: var(--yellow);
}
.hero-title {
  margin: 0;
  font-size: clamp(40px, 7.5vw, 72px);
  line-height: 1.04;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(3, 8, 40, 0.55);
}
.hero-title .hl { color: var(--yellow); }
.hero-sub {
  max-width: 640px; margin: 20px auto 0;
  color: var(--paper-dim); font-size: 17px;
}
.hero-cta {
  display: inline-block;
  margin-top: 28px;
  background: linear-gradient(180deg, var(--yellow-hi), var(--yellow-deep));
  color: var(--ink);
  font-weight: 900; letter-spacing: 0.02em; text-transform: uppercase;
  text-decoration: none;
  padding: 15px 36px; border-radius: 999px;
  border: 3px solid var(--ink);
  box-shadow: 0 8px 0 rgba(3, 8, 40, 0.55);
  transition: transform 140ms var(--ease-out), filter 160ms ease;
}
.hero-cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .hero-cta:hover { filter: brightness(1.06); } }
.claim-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 26px auto 0; max-width: 720px;
}
.claim-chips span {
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  border: 2px solid var(--line); border-radius: 999px; padding: 6px 13px;
  color: var(--white); background: rgba(255, 255, 255, 0.07);
}
.demo-note {
  margin: 22px auto 0; max-width: 580px;
  font-size: 13px; color: var(--paper-dim); font-style: italic;
}

/* ---------- his price list ---------- */
.pricelist {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 26px;
  align-items: center;
  margin: 48px 0 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid var(--line);
  border-radius: 22px;
  padding: 28px;
}
.pricelist-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1; text-transform: uppercase;
}
.pricelist-copy h2::first-line { color: var(--yellow); }
.pricelist-copy p { margin: 0 0 18px; color: var(--paper-dim); max-width: 480px; }
.tiers { list-style: none; margin: 0; padding: 0; max-width: 420px; }
.tiers li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 2px;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.25);
  font-size: 16px;
}
.tiers li:last-child { border-bottom: none; }
.tiers strong { color: var(--yellow); font-size: 20px; }
.pricelist-fig { margin: 0; text-align: center; }
.pricelist-fig img {
  width: 100%; max-width: 300px; height: auto;
  border-radius: 16px;
  border: 3px solid var(--ink);
  box-shadow: 0 14px 32px rgba(0, 0, 10, 0.45);
  transform: rotate(1.6deg);
}
.pricelist-fig figcaption { margin-top: 12px; font-size: 13px; color: var(--paper-dim); font-style: italic; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 40px 0 8px;
}
.step {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white);
  color: var(--ink);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 10, 0.3);
}
.step-num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue-mid);
  color: var(--white);
  font-weight: 900; font-size: 16px;
}
.step h2 { margin: 2px 0 4px; font-size: 17px; font-weight: 800; }
.step p { margin: 0; color: var(--ink-dim); font-size: 14px; }

/* ---------- shelf ---------- */
.shelf-head { margin: 54px 0 6px; text-align: left; }
.shelf-title { font-size: clamp(30px, 4.5vw, 44px); margin: 0; text-transform: uppercase; }
.shelf-sub { color: var(--paper-dim); margin: 8px 0 0; max-width: 640px; }
.shelf-group {
  margin: 34px 0 16px;
  font-size: clamp(21px, 3vw, 27px);
  text-transform: uppercase;
  color: var(--yellow);
}
.shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--white);
  color: var(--ink);
  border-radius: 18px;
  padding: 20px 20px 18px;
  display: flex; flex-direction: column;
  box-shadow: 0 12px 26px rgba(0, 0, 10, 0.32);
  opacity: 0; transform: translateY(14px);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.card.in { opacity: 1; transform: none; }
.card-bottle {
  position: relative;
  display: grid; place-items: center;
  height: 196px;
  padding: 10px;
  background: radial-gradient(200px 110px at 50% 88%, rgba(30, 123, 240, 0.16), transparent 70%);
  border-radius: 12px;
  overflow: hidden;
}
.card-bottle svg { width: 92px; height: 132px; filter: drop-shadow(0 10px 12px rgba(10, 16, 48, 0.25)); }
.card-photo {
  position: absolute; inset: 10px;
  width: calc(100% - 20px); height: calc(100% - 20px);
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 8px 10px rgba(10, 16, 48, 0.18));
}
.card-tag {
  align-self: flex-start;
  margin-top: 12px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-mid); background: rgba(11, 43, 179, 0.09);
  padding: 4px 9px; border-radius: 999px;
}
.card-name {
  font-size: 20px; font-weight: 800; line-height: 1.2; margin: 10px 0 4px;
}
.card-note { color: var(--ink-dim); font-size: 14px; margin: 0 0 16px; }
.card-foot { margin-top: auto; }
.add-btn {
  width: 100%;
  background: var(--blue-mid);
  border: none;
  color: var(--white);
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 800; letter-spacing: 0.02em;
  transition: background 160ms ease, transform 120ms var(--ease-out);
}
.add-btn.added { background: #12805c; }
@media (hover: hover) and (pointer: fine) { .add-btn:hover { background: var(--blue-sky); } .add-btn.added:hover { background: #12805c; } }

/* ---------- his table ---------- */
.table-shot {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 26px;
  align-items: center;
  margin: 56px 0 8px;
}
.table-shot figure { margin: 0; }
.table-shot img {
  width: 100%; max-width: 380px; height: auto;
  border-radius: 18px;
  border: 3px solid var(--ink);
  box-shadow: 0 14px 32px rgba(0, 0, 10, 0.45);
  transform: rotate(-1.4deg);
}
.table-shot figcaption { margin-top: 12px; font-size: 13px; color: var(--paper-dim); font-style: italic; max-width: 380px; }
.table-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(25px, 3.8vw, 38px);
  line-height: 1.12; text-transform: uppercase;
}
.table-copy p { margin: 0; color: var(--paper-dim); max-width: 520px; font-size: 16px; }

/* ---------- cart bar ---------- */
.cartbar {
  position: sticky;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 15;
  margin-top: 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  box-shadow: 0 16px 36px rgba(0, 0, 10, 0.5);
}
.cartbar-text { font-size: 15px; font-weight: 700; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.cartbar-btn {
  flex-shrink: 0;
  background: var(--blue-mid);
  border: none; color: var(--white); font-weight: 800;
  border-radius: 999px; padding: 12px 22px; cursor: pointer;
  transition: transform 120ms var(--ease-out);
}

/* ---------- pages ---------- */
.back-btn {
  background: none; border: none; cursor: pointer;
  color: var(--paper-dim); font-size: 15px; padding: 26px 0 4px;
  transition: color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .back-btn:hover { color: var(--yellow-hi); } }
.page-title { font-size: clamp(32px, 5vw, 46px); margin: 8px 0 4px; text-transform: uppercase; }
.page-sub { color: var(--paper-dim); margin: 0 0 26px; max-width: 560px; }

.checkout-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.checkout-form fieldset {
  border: 2px solid var(--line); border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  padding: 20px; margin: 0 0 18px;
}
.checkout-form legend {
  padding: 0 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--yellow);
}
.field { display: block; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field span { display: block; font-size: 14px; color: var(--paper-dim); margin-bottom: 6px; }
.field input {
  width: 100%;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  font-size: 16px;
  padding: 12px 14px;
}
.field input:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.fulfill {
  display: flex; gap: 12px; align-items: flex-start;
  border: 2px solid var(--line); border-radius: 12px;
  padding: 14px; margin-bottom: 10px; cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 160ms ease;
}
.fulfill:last-child { margin-bottom: 0; }
.fulfill:has(input:checked) { border-color: var(--yellow); background: rgba(255, 214, 10, 0.08); }
.fulfill input { margin-top: 4px; accent-color: var(--yellow); flex-shrink: 0; }
.fulfill-body { display: flex; flex-direction: column; min-width: 0; }
.fulfill-name { font-weight: 800; }
.fulfill-desc { color: var(--paper-dim); font-size: 14px; }
.form-error { color: #ffb3b3; font-size: 14px; margin: 0 0 12px; font-weight: 700; }

.primary-btn {
  background: linear-gradient(180deg, var(--yellow-hi), var(--yellow-deep));
  border: 3px solid var(--ink); color: var(--ink); font-weight: 900;
  border-radius: 999px; padding: 13px 28px; cursor: pointer;
  letter-spacing: 0.02em; text-transform: uppercase;
  transition: transform 120ms var(--ease-out), filter 160ms ease;
}
.primary-btn.big { width: 100%; padding: 16px 28px; font-size: 17px; }
@media (hover: hover) and (pointer: fine) { .primary-btn:hover { filter: brightness(1.06); } }

.summary {
  background: var(--white); color: var(--ink);
  border-radius: 16px; padding: 20px;
  box-shadow: 0 12px 26px rgba(0, 0, 10, 0.32);
}
.summary h2 { margin: 0 0 14px; font-size: 20px; font-weight: 900; text-transform: uppercase; }
.summary-list { list-style: none; margin: 0; padding: 0; }
.summary-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed rgba(10, 16, 48, 0.25); font-size: 15px;
}
.summary-list .qty { color: var(--ink-dim); white-space: nowrap; }
.summary-list .remove {
  background: none; border: none; color: var(--blue-mid); cursor: pointer;
  font-size: 13px; font-weight: 700; text-decoration: underline; padding: 0;
}
.summary-row.total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-top: 14px; font-weight: 900; font-size: 19px;
}
.summary-row.total span:last-child { color: var(--blue-mid); }
.summary-note { color: var(--ink-dim); font-size: 13px; margin: 10px 0 0; }

.empty-box {
  text-align: center; padding: 60px 20px;
  border: 2px dashed var(--line); border-radius: 16px; color: var(--paper-dim);
}
.empty-box .primary-btn { margin-top: 14px; }

/* ---------- confirmation ---------- */
.done-box { max-width: 620px; margin: 40px auto 0; text-align: center; }
.done-check {
  width: 72px; height: 72px; margin: 0 auto;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--yellow);
  color: var(--ink); font-size: 34px; font-weight: 900;
}
.done-order { color: var(--yellow); letter-spacing: 0.1em; font-size: 15px; font-weight: 700; margin: 10px 0; overflow-wrap: anywhere; }
.done-text { color: var(--paper-dim); margin: 0 auto; max-width: 480px; overflow-wrap: anywhere; }
.done-next {
  text-align: left;
  background: var(--white); color: var(--ink);
  border-radius: 16px; padding: 20px 22px; margin: 26px 0;
  box-shadow: 0 12px 26px rgba(0, 0, 10, 0.32);
}
.done-next h2 { margin: 0 0 10px; font-size: 19px; font-weight: 900; }
.done-next ol { margin: 0; padding-left: 20px; color: var(--ink-dim); }
.done-next li { margin-bottom: 6px; }
.done-box .link-btn { display: block; margin: 12px auto 0; }

/* ---------- seller ---------- */
.orders { display: flex; flex-direction: column; gap: 12px; }
.order {
  background: var(--white); color: var(--ink);
  border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 10px 22px rgba(0, 0, 10, 0.3);
  display: grid; grid-template-columns: 110px 1fr auto; gap: 6px 18px; align-items: baseline;
}
.order-no { color: var(--blue-mid); font-weight: 900; letter-spacing: 0.04em; white-space: nowrap; }
.order-who { font-weight: 800; overflow-wrap: anywhere; }
.order-meta { color: var(--ink-dim); font-size: 14px; grid-column: 2; overflow-wrap: anywhere; }
.order-status {
  grid-row: 1; grid-column: 3;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--yellow); color: var(--ink);
  border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.order-status.seed { background: rgba(11, 43, 179, 0.1); color: var(--ink-dim); }
.link-btn.danger { color: #ffb3b3; margin-top: 18px; padding-left: 0; }

/* ---------- footer ---------- */
footer {
  border-top: 3px solid var(--yellow);
  text-align: center;
  padding: 34px 20px calc(30px + env(safe-area-inset-bottom));
  color: var(--paper-dim); font-size: 14px;
}
.foot-badge {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--yellow); object-fit: cover; background: var(--white);
}
.foot-brand {
  font-weight: 900;
  letter-spacing: 0.2em; color: var(--yellow); margin: 10px 0 6px; font-size: 15px;
}
footer p { margin: 2px 0; }
.foot-demo { font-style: italic; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .checkout-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricelist { grid-template-columns: 1fr; }
  .pricelist-fig img { max-width: 260px; }
  .table-shot { grid-template-columns: 1fr; }
  .table-shot img { max-width: 320px; }
}
@media (max-width: 520px) {
  .shelf { grid-template-columns: 1fr; }
  .topbar-inner { padding: 8px 14px; gap: 8px; }
  .brand { gap: 8px; }
  .brand-badge { width: 36px; height: 36px; }
  .brand-name { font-size: 12.5px; }
  .brand-sub { font-size: 8.5px; letter-spacing: 0.1em; white-space: nowrap; }
  .topbar-actions { gap: 2px; }
  .link-btn { font-size: 13px; padding: 8px 4px; }
  .cart-btn { padding: 8px 12px; font-size: 13px; }
  .hero { padding-top: 30px; }
  .pricelist { padding: 20px; }
  .order { grid-template-columns: 1fr auto; }
  .order-meta { grid-column: 1; }
  .order-status { grid-column: 2; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .view { animation: none; }
  .card { transition: opacity 120ms ease; transform: none; }
  .card.in { transform: none; }
  * { transition-duration: 0.01ms !important; }
}
