:root {
  --white: #ffffff;
  --ink: #1b0039;
  --magenta: #ec008c;
  --magenta-dark: #b8006d;
  --soft: #f8f5fb;
  --line: #eadff1;
  --muted: #6d6077;
  --shadow: 0 18px 45px rgba(27, 0, 57, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  width: 52px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--magenta);
  font-size: 12px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.main-nav a {
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
}

.main-nav a:hover {
  background: var(--soft);
  color: var(--magenta);
}

.basket-count {
  align-items: center;
  background: var(--magenta);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  margin-left: 4px;
  min-width: 24px;
  padding: 2px 7px;
}

.hero {
  align-items: center;
  background-image: linear-gradient(90deg, rgba(27, 0, 57, 0.82), rgba(27, 0, 57, 0.35), rgba(255, 255, 255, 0.22)), url("assets/lorna-product-stack.jpeg");
  background-position: center;
  background-size: cover;
  display: flex;
  min-height: calc(100vh - 79px);
  padding: clamp(34px, 6vw, 90px) clamp(18px, 5vw, 70px) 42px;
}

.hero-copy {
  color: var(--white);
  max-width: 760px;
  padding: clamp(16px, 3vw, 28px) 0;
}

.eyebrow {
  color: var(--magenta);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(48px, 8vw, 104px);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 22px;
}

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

h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

.hero-lede {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
  max-width: 660px;
}

.hero .btn-secondary {
  background: var(--white);
  color: var(--ink);
}

.hero-actions,
.order-summary,
.admin-toolbar,
.panel-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
}

.btn-primary {
  background: var(--magenta);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--magenta-dark);
}

.btn-secondary {
  background: var(--ink);
  color: var(--white);
}

.btn.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.metric,
.performance-grid div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.metric strong,
.performance-grid strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
}

.metric span,
.performance-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}

.section {
  padding: clamp(46px, 7vw, 92px) clamp(18px, 5vw, 70px);
}

.intro-band {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(260px, 0.85fr) minmax(260px, 1fr);
}

.intro-band p:last-child {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  margin: 0;
}

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

.product-grid {
  display: grid;
  gap: 28px;
}

.product-group {
  display: grid;
  gap: 16px;
}

.product-group-heading {
  align-items: end;
  border-bottom: 2px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
  padding-bottom: 10px;
}

.product-group-heading span {
  background: var(--magenta);
  border-radius: 999px;
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  padding: 8px 14px;
}

.product-group-heading h3 {
  margin: 0;
}

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

.product-card,
.panel,
.admin-login,
.order-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-card {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82)), var(--pack-bg);
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.sold-out-card {
  filter: grayscale(0.35);
}

.sold-out-card::after {
  background: rgba(255, 255, 255, 0.5);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.sold-out-card > * {
  position: relative;
  z-index: 1;
}

.sold-out-badge {
  align-self: flex-start;
  background: #d00000;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
  padding: 7px 11px;
  text-transform: uppercase;
}

.product-image {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
  padding: 10px;
}

.product-image img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.add-basket-btn {
  margin-top: 18px;
  width: 100%;
}

.product-card .price {
  color: var(--magenta);
  font-size: 38px;
  font-weight: 900;
  margin: 8px 0;
}

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

.public-stock {
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  margin: 10px 0 14px;
  padding: 10px 12px;
}

.public-stock-in {
  background: rgba(8, 127, 91, 0.1);
  color: #087f5b;
}

.public-stock-out {
  background: rgba(236, 0, 140, 0.12);
  color: #d00000;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.about-section {
  background: var(--white);
}

.about-section .section-heading p {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

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

.about-grid article {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 26px);
}

.about-grid h3 {
  margin-top: 0;
}

.about-grid p {
  color: var(--muted);
  font-weight: 700;
}

.mission-card {
  background: var(--ink) !important;
  color: var(--white);
}

.mission-card p {
  color: rgba(255, 255, 255, 0.82);
}

.split-section {
  align-items: center;
  background: var(--soft);
  display: grid;
  gap: clamp(24px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
}

.check-list {
  color: var(--muted);
  font-weight: 700;
  padding-left: 20px;
}

.feature-image {
  border-radius: 8px;
  box-shadow: var(--shadow);
  width: 100%;
}

.contact-section {
  background: var(--white);
}

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

.contact-card {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 14px;
  min-width: 0;
  padding: 18px;
}

.contact-card strong,
.contact-card small {
  display: block;
}

.contact-card small {
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-icon {
  align-items: center;
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  flex: 0 0 50px;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.contact-icon svg {
  fill: currentColor;
  height: 25px;
  width: 25px;
}

.call-card .contact-icon {
  background: var(--ink);
}

.whatsapp-card .contact-icon {
  background: #25d366;
}

.email-card .contact-icon {
  background: var(--magenta);
}

.contact-card:hover {
  border-color: var(--magenta);
  transform: translateY(-2px);
}

.order-section {
  background: var(--white);
}

.basket-section {
  background: var(--soft);
}

.basket-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 30px);
}

.panel-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.basket-items {
  display: grid;
  gap: 12px;
}

.basket-line {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) 130px 110px 110px 110px;
  padding: 14px;
}

.basket-line span,
.basket-price span,
.checkout-review span,
.empty-basket {
  color: var(--muted);
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.basket-price strong {
  color: var(--ink);
  display: block;
  font-size: 18px;
}

.empty-basket {
  background: var(--soft);
  border: 1px dashed #d8c9e4;
  border-radius: 8px;
  padding: 18px;
}

.basket-summary {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 18px;
}

.basket-summary span {
  color: var(--muted);
  display: block;
  font-weight: 700;
}

.checkout-review {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 16px;
}

.delivery-fee-box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 14px;
}

.delivery-fee-box span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.order-form,
.admin-login,
.panel {
  padding: clamp(18px, 3vw, 30px);
}

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

label {
  color: var(--ink);
  display: grid;
  font-size: 14px;
  font-weight: 900;
  gap: 7px;
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  background: #fff;
  border: 1px solid #d8c9e4;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 11px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.order-items {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.order-line {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) 150px 110px;
  padding: 14px;
}

.order-line span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.order-summary {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  padding-top: 18px;
}

.form-message {
  color: var(--magenta);
  font-weight: 800;
  margin: 12px 0 0;
}

.form-message a {
  color: var(--ink);
  text-decoration: underline;
}

.sold-out-text {
  color: #d00000;
  display: block;
  font-weight: 900;
  margin-top: 4px;
}

.in-stock-text {
  color: #087f5b;
  display: block;
  font-weight: 900;
  margin-top: 4px;
}

.admin-section {
  background: var(--soft);
}

.admin-page h1 {
  font-size: clamp(38px, 5vw, 68px);
  max-width: 920px;
}

.admin-login {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 420px) auto;
  max-width: 660px;
}

.hidden {
  display: none;
}

.dashboard {
  display: grid;
  gap: 18px;
}

.dashboard.hidden {
  display: none;
}

.admin-toolbar {
  background: var(--ink);
  border-radius: 8px;
  color: var(--white);
  justify-content: space-between;
  padding: 18px;
}

.admin-toolbar span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
}

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

.admin-panels {
  display: grid;
  gap: 18px;
  grid-template-columns: 0.85fr 1.15fr;
}

.stack-form {
  display: grid;
  gap: 12px;
}

.mini-list,
.stock-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.mini-list article,
.stock-item {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.clickable-fund {
  cursor: pointer;
}

.clickable-fund:hover {
  border-color: var(--magenta);
}

.text-link {
  background: transparent;
  border: 0;
  color: var(--magenta);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  margin-top: 8px;
  padding: 0;
  text-align: left;
}

.fund-order-details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding: 10px;
}

.fund-order-details.hidden {
  display: none;
}

.fund-order-details span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.no-order-note {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-top: 8px;
}

.stock-item {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) 130px 150px 110px;
}

.stock-item input {
  min-height: 40px;
}

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

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

.chart-wrap {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}

.chart-wrap .panel-heading {
  justify-content: space-between;
  margin-bottom: 10px;
}

.chart-wrap .panel-heading span {
  color: var(--magenta);
  font-weight: 900;
}

.bar-chart {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(12, minmax(52px, 1fr));
  min-height: 260px;
  overflow-x: auto;
  padding-top: 16px;
}

.bar-column {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-rows: auto 180px auto;
  min-width: 52px;
}

.bar-value {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  min-height: 28px;
  text-align: center;
}

.bar-track {
  align-items: end;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  height: 180px;
  overflow: hidden;
  width: 100%;
}

.bar-fill {
  background: linear-gradient(180deg, var(--magenta), var(--ink));
  border-radius: 8px 8px 0 0;
  width: 100%;
}

.bar-column strong {
  color: var(--ink);
  font-size: 12px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--magenta);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

td strong {
  color: var(--ink);
}

.status-select {
  min-width: 140px;
}

.inline-date-label {
  color: var(--ink);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 4px;
  margin-top: 8px;
  max-width: 170px;
}

.inline-date-label input {
  min-height: 38px;
  padding: 8px 9px;
}

.receipt-actions {
  display: grid;
  gap: 8px;
  min-width: 120px;
}

.receipt-actions .btn {
  min-height: 38px;
  padding: 9px 12px;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  padding: 26px clamp(18px, 5vw, 70px);
}

.site-footer span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
}

.site-footer a {
  color: var(--magenta);
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 980px) {
  .intro-band,
  .split-section,
  .admin-panels {
    grid-template-columns: 1fr;
  }
  .product-card-grid,
  .metric-grid,
  .performance-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .product-card-grid,
  .form-grid,
  .metric-grid,
  .performance-grid,
  .about-grid,
  .contact-grid,
  .admin-login,
  .basket-line,
  .order-line,
  .stock-item {
    grid-template-columns: 1fr;
  }

  .bar-chart {
    grid-template-columns: repeat(12, 56px);
  }

  h1 {
    font-size: 46px;
  }
}
