/* Elegant blush-pink storefront theme */
:root {
  color-scheme: light;
  --ink: #49343d;
  --muted: #846d77;
  --rose: #d9789b;
  --rose-dark: #b9577e;
  --paper: #fffafc;
  --line: #f0dce5;
  --shadow: 0 14px 38px rgba(117, 67, 87, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 12% 5%, rgba(255, 218, 232, 0.8), transparent 34rem),
    linear-gradient(145deg, #fffafd 0%, #fff4f8 48%, #fff9fb 100%);
  font-family: "Aptos", "Segoe UI", sans-serif;
  line-height: 1.6;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--rose-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

header,
nav,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

header {
  padding-block: 30px;
}

.site-header {
  width: 100%;
  margin: 0;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 252, 0.84);
}

.header-inner {
  display: flex;
  width: min(1120px, 100%);
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-inline: auto;
}

.brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  width: auto;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  margin: 0;
}

.site-nav a:not(.button) {
  color: var(--ink);
  text-decoration: none;
}

.nav-button {
  text-decoration: none;
}

.page-intro {
  padding-block: 58px 42px;
}

.page-intro h1 {
  max-width: 760px;
  margin: 6px 0 12px;
}

.page-intro > p:last-child {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.eyebrow {
  margin: 0;
  color: var(--rose-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog {
  padding-bottom: 30px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-size: 1.7rem;
}

.muted,
.product-category {
  color: var(--muted);
}

.empty-state {
  padding: 50px 20px 70px;
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 6px;
}

.empty-state p {
  margin-top: 0;
  color: var(--muted);
}

.product-card {
  gap: 4px;
}

.product-card h3 {
  font-size: 1.35rem;
}

.product-card p {
  margin-block: 4px;
}

.product-category {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-image-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  border-radius: 15px;
  color: var(--rose-dark);
  background: linear-gradient(145deg, #f8e6ed, #fff4f8);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.site-footer {
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-layout {
  max-width: 760px;
  padding-bottom: 64px;
}

.admin-layout .page-intro {
  padding-bottom: 30px;
}

.product-form {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-form label {
  display: grid;
  gap: 6px;
  font-weight: 650;
}

.product-form input,
.product-form textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #ddc5cf;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.product-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.text-link {
  color: var(--rose-dark);
  font-weight: 650;
}

.saved-products {
  margin-top: 42px;
}

.saved-products h2 {
  font-size: 1.55rem;
}

.saved-product-list {
  display: grid;
  gap: 10px;
}

.saved-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.saved-product-row p {
  margin: 2px 0 0;
  color: var(--muted);
}

button.secondary {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  color: var(--rose-dark);
  background: #fff;
  box-shadow: none;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--rose-dark);
}

h1,
h2,
h3 {
  color: #563542;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
}

h1 {
  font-size: 4.5rem;
  letter-spacing: 0;
}

/* Use .product-grid around product cards for a responsive shop layout. */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 22px;
  padding-block: 24px 56px;
}

.product-card,
.product-box,
.product {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(150deg, #fff 0%, #fff8fb 100%);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:nth-child(4n + 2),
.product-box:nth-child(4n + 2),
.product:nth-child(4n + 2) {
  background: linear-gradient(150deg, #fff3f7, #ffe6ef);
}

.product-card:nth-child(4n + 3),
.product-box:nth-child(4n + 3),
.product:nth-child(4n + 3) {
  background: linear-gradient(150deg, #fff8ef, #ffedf1);
}

.product-card:nth-child(4n + 4),
.product-box:nth-child(4n + 4),
.product:nth-child(4n + 4) {
  background: linear-gradient(150deg, #fdf4fa, #f4eaf7);
}

.product-card:hover,
.product-box:hover,
.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(117, 67, 87, 0.17);
}

.product-card img,
.product-box img,
.product img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 15px;
  background: #f8e6ed;
}

.product-card h2,
.product-box h2,
.product h2,
.product-card h3,
.product-box h3,
.product h3 {
  margin: 16px 0 6px;
}

.price {
  color: var(--rose-dark);
  font-size: 1.2rem;
  font-weight: 700;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #e58bac, #c86389);
  box-shadow: 0 7px 18px rgba(200, 99, 137, 0.23);
  font-weight: 650;
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease;
}

button:hover,
.button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #e9a4bd;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 600px) {
  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .site-nav {
    gap: 12px;
  }

  .page-intro {
    padding-block: 42px 32px;
  }

  .page-intro h1 {
    font-size: 2.5rem;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .product-form {
    padding: 18px;
  }

  .saved-product-row {
    align-items: flex-start;
  }
}

.basket-nav {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.basket-nav span {
  display: inline-grid;
  min-width: 26px;
  aspect-ratio: 1;
  margin-left: 5px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--rose-dark);
  font-size: 0.82rem;
}

.store-status {
  color: var(--rose-dark);
  font-weight: 650;
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
  align-items: start;
  gap: 32px;
  padding-bottom: 52px;
}

.catalog {
  min-width: 0;
}

.catalog .product-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 18px;
}

.product-card {
  align-items: stretch;
}

.product-card .price {
  margin-top: auto;
  padding-top: 8px;
}

.product-description {
  color: var(--muted);
}

.stock-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.product-card button {
  width: 100%;
  margin-top: 8px;
}

button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.55);
  opacity: 0.55;
  transform: none;
}

.basket {
  position: sticky;
  top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.basket h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.basket-items {
  display: grid;
  gap: 12px;
}

.basket-items > .muted {
  margin: 0;
}

.basket-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}

.basket-line > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.basket-line-price {
  font-weight: 650;
}

.quantity-controls {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
}

button.quantity-button {
  min-width: 34px;
  min-height: 34px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}

.basket-total {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
  font-size: 1.08rem;
}

.checkout-button {
  width: 100%;
}

.basket-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.login-layout {
  max-width: 560px;
  min-height: calc(100vh - 170px);
  padding-bottom: 48px;
}

.login-layout .page-intro {
  padding-bottom: 26px;
}

.login-form button {
  justify-self: start;
}

.admin-dashboard {
  padding-block: 44px 64px;
}

.admin-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.admin-heading h1 {
  margin: 5px 0 0;
  font-size: 2.7rem;
}

.admin-heading .form-status {
  text-align: right;
}

.nav-logout {
  min-height: 40px;
}

.sales-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 42px;
  border-block: 1px solid var(--line);
}

.summary-item {
  display: grid;
  gap: 5px;
  padding: 18px 20px;
}

.summary-item + .summary-item {
  border-left: 1px solid var(--line);
}

.summary-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.summary-item strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.admin-section {
  margin-top: 36px;
}

.admin-section-heading {
  align-items: end;
  padding-bottom: 14px;
}

.admin-section-heading .eyebrow {
  margin-bottom: 4px;
}

.admin-section-heading h2 {
  font-size: 1.7rem;
}

.admin-product-form {
  margin-block: 20px;
}

.admin-product-form h3 {
  margin: 0;
  font-size: 1.35rem;
}

.admin-product-list,
.admin-orders {
  display: grid;
}

.admin-product-row,
.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.admin-product-detail,
.order-detail {
  min-width: 0;
}

.admin-product-detail h3 {
  margin: 0;
  font-size: 1.2rem;
}

.admin-product-detail p,
.order-detail p {
  margin: 4px 0 0;
}

.stock-summary {
  font-size: 0.9rem;
}

.admin-product-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.admin-product-actions button {
  min-height: 38px;
  padding: 7px 12px;
}

.orders-section {
  margin-top: 52px;
}

.order-payment {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 5px;
}

.order-status {
  color: var(--muted);
  font-size: 0.83rem;
  text-transform: capitalize;
}

.status-paid,
.status-collected {
  color: #38704a;
}

.status-awaiting_collection {
  color: var(--rose-dark);
  font-weight: 700;
}

.status-paid_stock_issue,
.status-checkout_failed {
  color: #a8442f;
}

.order-reference {
  color: var(--rose-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.order-payment .admin-product-actions {
  margin-top: 4px;
}

.checkout-form {
  display: grid;
  gap: 10px;
  margin-bottom: 4px;
}

.checkout-form label {
  display: grid;
  gap: 4px;
  font-size: 0.92rem;
  font-weight: 650;
}

.checkout-form input {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #ddc5cf;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.checkout-form button {
  margin-top: 4px;
}

#checkout-status:not(:empty) {
  margin-top: 12px;
}

.orders-footnote {
  margin-top: 14px;
  font-size: 0.88rem;
}

[hidden] {
  display: none !important;
}

/* Coming soon page shown before launch. */
.is-coming-soon .page-intro,
.is-coming-soon .store-status,
.is-coming-soon .store-layout,
.is-coming-soon .site-nav {
  display: none;
}

.coming-soon {
  display: grid;
  max-width: 760px;
  margin-inline: auto;
  padding-block: 72px 88px;
  justify-items: center;
  text-align: center;
}

.coming-soon h1 {
  margin: 8px 0 14px;
  font-size: clamp(2.3rem, 7vw, 4.2rem);
}

.coming-soon-text {
  max-width: 560px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 1.12rem;
}

.countdown {
  display: grid;
  width: 100%;
  max-width: 560px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.countdown div {
  display: grid;
  padding: 18px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.countdown strong {
  color: var(--rose-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 6vw, 2.8rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.countdown span {
  color: var(--muted);
  font-size: 0.85rem;
}

.launch-date {
  margin: 24px 0 0;
  color: var(--ink);
  font-weight: 650;
}

.launch-settings {
  margin-top: 18px;
}

.launch-select {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #ddc5cf;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.launch-settings textarea {
  min-height: 90px;
}

.launch-summary {
  margin: 14px 0 0;
}

.payment-warning {
  margin: 10px 0 0;
  color: var(--rose-dark);
  font-weight: 650;
}

.product-form .payment-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.payment-toggle small {
  display: block;
  font-weight: 400;
}

.product-form .payment-toggle input {
  appearance: none;
  flex: none;
  position: relative;
  width: 46px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d9c6ce;
  cursor: pointer;
  transition: background 160ms ease;
}

.product-form .payment-toggle input::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
}

.product-form .payment-toggle input:checked {
  background: var(--rose-dark);
}

.product-form .payment-toggle input:checked::before {
  transform: translateX(20px);
}

.product-form .payment-toggle input:disabled {
  opacity: 0.6;
}

.payment-choice {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.payment-choice[hidden] {
  display: none;
}

.payment-choice legend {
  padding: 0;
  margin-bottom: 4px;
  font-size: 0.92rem;
  font-weight: 650;
}

.checkout-form .payment-choice label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.checkout-form .payment-choice input {
  width: auto;
  padding: 0;
}

/* Phone and small-tablet layout. Kept last so it overrides the desktop rules above. */
@media (max-width: 760px) {
  .store-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .basket {
    position: static;
    padding: 18px;
  }
}

@media (max-width: 600px) {
  header,
  nav,
  main,
  footer {
    width: calc(100% - 32px);
  }

  .site-header {
    padding-inline: 16px;
  }

  .page-intro {
    padding-block: 32px 20px;
  }

  .page-intro h1 {
    font-size: 2.2rem;
  }

  .page-intro > p:last-child {
    font-size: 1rem;
  }

  .section-heading h2 {
    font-size: 1.45rem;
  }

  .catalog .product-grid {
    padding-block: 18px 24px;
  }

  .product-card:hover {
    transform: none;
  }

  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .admin-heading h1 {
    font-size: 2.1rem;
  }

  .admin-heading .form-status {
    text-align: left;
  }

  .sales-summary {
    margin-bottom: 30px;
  }

  .summary-item {
    padding-inline: 10px;
  }

  .summary-item strong {
    font-size: 1.3rem;
  }

  .order-payment .admin-product-actions {
    margin-top: 0;
  }

  .admin-product-row,
  .order-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .order-payment {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}
@media (max-width: 600px) {
  .coming-soon {
    padding-block: 44px 56px;
  }

  .countdown {
    gap: 8px;
  }

  .countdown div {
    padding: 12px 4px;
    border-radius: 12px;
  }
}
