:root {
  --ink: #181313;
  --ink-soft: #42383b;
  --muted: #6e6265;
  --line: #e7dcde;
  --paper: #fffdfb;
  --paper-soft: #f8f2f2;
  --mist: #eef7f7;
  --sea: #0f5962;
  --sea-deep: #123d43;
  --rose: #d33645;
  --rose-deep: #8f202c;
  --rose-soft: #fae6e8;
  --sand: #f3e9df;
  --fresh: #3e8f7b;
  --warning: #b26524;
  --shadow: 0 18px 50px rgba(24, 19, 19, 0.14);
  --shadow-soft: 0 10px 28px rgba(24, 19, 19, 0.1);
  --header-h: 78px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  overflow-x: hidden;
}

body.isLocked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

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

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(211, 54, 69, 0.24);
  outline-offset: 3px;
}

svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-h);
  padding: 12px clamp(16px, 4vw, 56px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid rgba(231, 220, 222, 0.86);
  background: rgba(255, 253, 251, 0.94);
  backdrop-filter: blur(16px);
}

.brandLink {
  width: 152px;
  min-width: 132px;
}

.brandLink img {
  width: 100%;
  height: auto;
}

.mainNav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.mainNav a {
  white-space: nowrap;
  transition: color 0.16s ease;
}

.mainNav a:hover {
  color: var(--rose);
}

.cartButton,
.primaryAction,
.secondaryAction,
.ghostAction,
.formButton {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 900;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.cartButton:hover,
.primaryAction:hover,
.secondaryAction:hover,
.ghostAction:hover,
.formButton:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.cartButton {
  background: var(--ink);
  color: #fff;
}

.cartButton strong {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--rose);
  color: #fff;
  font-size: 12px;
}

.iconButton {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
}

.navToggle {
  display: none;
}

.hero {
  position: relative;
  min-height: clamp(520px, calc(100svh - 156px), 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.heroMedia,
.heroMedia img,
.heroShade {
  position: absolute;
  inset: 0;
}

.heroMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.heroShade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 253, 251, 0.94) 0%, rgba(255, 253, 251, 0.82) 30%, rgba(255, 253, 251, 0.36) 52%, rgba(255, 253, 251, 0.02) 76%),
    linear-gradient(0deg, rgba(24, 19, 19, 0.14), rgba(24, 19, 19, 0.02));
}

.heroInner {
  position: relative;
  z-index: 2;
  width: min(710px, calc(100% - 32px));
  margin-left: clamp(16px, 6vw, 84px);
  padding: 58px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.16;
}

.heroText {
  max-width: 600px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.45;
  font-weight: 620;
}

.heroActions,
.sectionHead,
.trustRow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primaryAction {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}

.primaryAction:hover {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
}

.secondaryAction {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.ghostAction {
  border-color: rgba(24, 19, 19, 0.18);
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
}

.trustRow {
  margin-top: 34px;
}

.trustRow span {
  min-height: 36px;
  border: 1px solid rgba(24, 19, 19, 0.14);
  border-radius: 999px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  color: var(--sea-deep);
  font-size: 13px;
  font-weight: 900;
}

.quickBar {
  width: min(1200px, calc(100% - 32px));
  margin: 22px auto 0;
  padding: 18px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quickBar div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.quickBar strong {
  color: var(--ink);
  font-size: 15px;
}

.quickBar span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.sectionBand {
  padding: clamp(54px, 8vw, 92px) clamp(16px, 4vw, 56px);
  background: var(--paper);
}

.sectionBand > * {
  width: min(1200px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.sectionHead {
  justify-content: space-between;
  margin-bottom: 26px;
}

.sectionHead > div {
  min-width: min(100%, 420px);
}

.sectionIntro {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 650;
}

.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.filterButton {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink-soft);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 900;
}

.filterButton.isActive {
  border-color: var(--sea-deep);
  background: var(--sea-deep);
  color: #fff;
}

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

.productCard {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 26px rgba(24, 19, 19, 0.07);
}

.productImage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mist);
}

.productImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, center);
  transform: scale(1.02);
}

.availability {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--sea-deep);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.productContent {
  padding: 16px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.productTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.productTop h3 {
  min-width: 0;
  margin: 0;
}

.price {
  color: var(--rose-deep);
  font-weight: 950;
  white-space: nowrap;
}

.traceMeta {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  color: var(--sea-deep);
  font-size: 13px;
  font-weight: 850;
}

.traceMeta span {
  display: inline-flex;
  gap: 6px;
  line-height: 1.25;
}

.productDescription {
  flex: 1;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.cardActions {
  display: grid;
  grid-template-columns: minmax(98px, auto) 1fr;
  gap: 9px;
  align-items: center;
}

.quantityControl {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  background: #fff;
  overflow: hidden;
}

.quantityControl button {
  height: 100%;
  border: 0;
  background: var(--paper-soft);
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.quantityControl input {
  width: 100%;
  height: 100%;
  border: 0;
  text-align: center;
  color: var(--ink);
  font-weight: 900;
  -moz-appearance: textfield;
}

.quantityControl input::-webkit-outer-spin-button,
.quantityControl input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.addButton,
.detailButton {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 950;
}

.addButton {
  background: var(--ink);
  color: #fff;
}

.detailButton {
  width: 100%;
  margin-top: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.seaBand {
  background:
    linear-gradient(180deg, rgba(238, 247, 247, 0.84), rgba(255, 253, 251, 0.96)),
    var(--mist);
}

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

.orderBand {
  background: #171313;
  color: #fff;
}

.orderBand .eyebrow,
.orderBand p {
  color: rgba(255, 255, 255, 0.74);
}

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

.steps article {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 20px;
}

.steps span {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--rose);
  color: #fff;
  font-weight: 950;
}

.steps h3 {
  color: #fff;
}

.checkoutBand {
  background: var(--paper-soft);
}

.checkoutLayout,
.contactLayout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.checkoutForm,
.contactForm,
.adminLogin {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  background: #fff;
}

.checkoutForm label,
.contactForm label,
.adminLogin label,
.cartNote {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.checkoutForm label span,
.contactForm label span,
.adminLogin label span,
.cartNote span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px 12px;
  outline: none;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

.wideField,
.choiceGroup,
.formButton {
  grid-column: 1 / -1;
}

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

.choiceGroup label {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  font-weight: 900;
}

.choiceGroup input {
  width: auto;
}

.orderSummary,
.contactInfo {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}

.orderSummary h3 {
  margin-bottom: 16px;
}

.checkoutItems,
.cartItems,
.adminProducts,
.adminOrders,
.adminMessages {
  display: grid;
  gap: 10px;
}

.emptyMessage {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.checkoutItem,
.cartItem,
.adminItem {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  display: grid;
  gap: 8px;
  background: #fff;
}

.checkoutItem strong,
.cartItem strong,
.adminItem strong {
  color: var(--ink);
}

.checkoutItem span,
.cartItem span,
.adminItem span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.summaryLine {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 900;
}

.summaryLine strong {
  color: var(--rose-deep);
  font-size: 22px;
}

.orderSummary p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.confirmation {
  margin-top: 20px;
  border: 1px solid rgba(62, 143, 123, 0.42);
  border-radius: 8px;
  padding: 18px;
  background: #effaf6;
  color: #174e3f;
  font-weight: 850;
}

.contactBand {
  background:
    linear-gradient(rgba(18, 61, 67, 0.9), rgba(18, 61, 67, 0.9)),
    url("assets/brand-contours.png") center / cover;
  color: #fff;
}

.contactBand .eyebrow,
.contactBand .sectionIntro {
  color: rgba(255, 255, 255, 0.74);
}

.contactBand .contactForm {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.contactInfo {
  min-height: 100%;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.contactInfo img {
  width: 190px;
  margin-bottom: 24px;
}

.contactInfo p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.contactInfo a {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-weight: 900;
}

.adminBand {
  background: #fff;
}

.adminLogin {
  max-width: 520px;
  margin-left: 0;
}

.adminLogin p {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 0;
  color: var(--rose-deep);
  font-weight: 850;
}

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

.adminGrid section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--paper-soft);
}

.adminGrid h3 {
  margin-bottom: 14px;
}

.adminEdit {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 8px;
  align-items: center;
}

.adminEdit label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 900;
}

.adminEdit input[type="checkbox"] {
  width: auto;
}

.adminEdit input[type="number"] {
  padding: 8px;
}

.legalText {
  max-width: 860px;
  margin-left: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.cartDrawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  justify-items: end;
  background: rgba(24, 19, 19, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.cartDrawer.isOpen {
  opacity: 1;
  visibility: visible;
}

.drawerPanel {
  width: min(460px, 100%);
  height: 100%;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateX(16px);
  transition: transform 0.18s ease;
}

.cartDrawer.isOpen .drawerPanel {
  transform: translateX(0);
}

.drawerPanel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawerPanel h2 {
  font-size: 30px;
}

.cartItems {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.cartItemTop {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cartItemControls {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 8px;
  align-items: center;
}

.removeButton {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--rose-deep);
  font-weight: 900;
}

.drawerPanel footer {
  margin-top: auto;
}

.drawerCheckout {
  width: 100%;
  margin-top: 14px;
}

.productDialog {
  width: min(880px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #fff;
  box-shadow: var(--shadow);
}

.productDialog::backdrop {
  background: rgba(24, 19, 19, 0.48);
}

.dialogClose {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.detailLayout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 520px;
}

.detailImage {
  background: var(--mist);
}

.detailImage img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: var(--focus, center);
}

.detailContent {
  padding: 34px;
}

.detailContent h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 46px);
}

.detailPrice {
  margin-bottom: 18px;
  color: var(--rose-deep);
  font-size: 24px;
  font-weight: 950;
}

.detailDescription,
.tips p {
  color: var(--muted);
  line-height: 1.5;
}

.tips {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.tips div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.tips strong {
  display: block;
  margin-bottom: 4px;
}

.detailActions {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  max-width: min(460px, calc(100% - 32px));
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 850;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.isVisible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1120px) {
  .siteHeader {
    grid-template-columns: auto minmax(42px, 1fr) auto;
    justify-content: stretch;
  }

  .navToggle {
    display: inline-grid;
    justify-self: center;
  }

  .cartButton {
    justify-self: end;
  }

  .mainNav {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    box-shadow: var(--shadow-soft);
  }

  .mainNav.isOpen {
    display: flex;
  }

  .mainNav a {
    padding: 10px 6px;
  }

  .productGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .checkoutLayout,
  .contactLayout,
  .adminGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .siteHeader {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
  }

  .navToggle {
    order: 3;
    margin-left: 0;
  }

  .mainNav {
    position: fixed;
    top: 76px;
  }

  .brandLink {
    width: 126px;
    min-width: 116px;
  }

  .cartButton {
    position: static;
    order: 2;
    width: 56px;
    min-width: 56px;
    padding: 0 11px;
    gap: 4px;
  }

  .cartButton span {
    display: none;
  }

  .hero {
    min-height: clamp(520px, calc(100svh - 120px), 650px);
  }

  .heroMedia img {
    object-position: 63% center;
  }

  .heroShade {
    background:
      linear-gradient(90deg, rgba(255, 253, 251, 0.96), rgba(255, 253, 251, 0.74) 58%, rgba(255, 253, 251, 0.08)),
      linear-gradient(0deg, rgba(24, 19, 19, 0.14), rgba(24, 19, 19, 0.02));
  }

  .heroInner {
    width: calc(100vw - 32px);
    max-width: 620px;
    margin-left: 16px;
  }

  .quickBar,
  .steps,
  .productGrid,
  .platterGrid {
    grid-template-columns: 1fr;
  }

  .checkoutForm,
  .contactForm,
  .adminLogin {
    grid-template-columns: 1fr;
  }

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

  .detailImage img {
    min-height: 280px;
    max-height: 360px;
  }
}

@media (max-width: 520px) {
  .sectionBand {
    padding-left: 14px;
    padding-right: 14px;
  }

  .heroInner {
    width: calc(100vw - 32px);
    max-width: 358px;
  }

  .heroActions {
    align-items: stretch;
    flex-direction: column;
    max-width: 320px;
  }

  .primaryAction,
  .secondaryAction,
  .ghostAction,
  .formButton {
    width: 100%;
  }

  .cardActions,
  .cartItemControls,
  .detailActions,
  .choiceGroup {
    grid-template-columns: 1fr;
  }

  .productContent,
  .checkoutForm,
  .contactForm,
  .adminLogin,
  .orderSummary,
  .contactInfo {
    padding: 16px;
  }
}
