:root {
  --ink: #161616;
  --muted: #687076;
  --paper: #f5f3ee;
  --soft: #ebe6dc;
  --line: #ded7cb;
  --gold: #b88942;
  --green: #0f766e;
  --green-dark: #115e59;
  --red: #b42318;
  --charcoal: #202124;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.navbar {
  background: rgba(245, 243, 238, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.navbar-brand img {
  width: 74px;
  height: 58px;
  object-fit: contain;
}

.navbar-brand span,
.btn {
  font-weight: 800;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cart-button span {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 0.72rem;
}

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: white;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18)),
    url("/assets/hero-bathroom.webp") center / cover;
}

.hero-content {
  position: relative;
  padding: 82px 0 62px;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(2.35rem, 5.8vw, 5.5rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

.hero .lead {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-ticket {
  border: 1px solid rgba(255, 255, 255, 0.36);
  padding: 24px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);
}

.hero-ticket span,
.hero-ticket small,
.eyebrow {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-ticket strong {
  display: block;
  font-size: 3rem;
  line-height: 1;
}

.ecommerce-strip {
  margin-top: -36px;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(23, 23, 23, 0.08);
  overflow: hidden;
}

.ecommerce-strip div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.ecommerce-strip div:last-child {
  border-right: 0;
}

.ecommerce-strip i {
  grid-row: span 2;
  font-size: 1.35rem;
  color: var(--green);
}

.ecommerce-strip strong {
  font-size: 0.98rem;
}

.ecommerce-strip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section-heading,
.admin-header,
.map-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading h2,
.checkout-panel h3,
.map-toolbar h3,
.admin-header h1 {
  font-weight: 900;
  margin: 0;
}

.total-pill,
.admin-stat {
  min-width: 132px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 12px 16px;
  text-align: right;
  box-shadow: 0 18px 40px rgba(23, 23, 23, 0.06);
}

.total-pill span,
.admin-stat span,
.admin-stat small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.total-pill strong,
.admin-stat strong {
  font-size: 1.55rem;
  font-weight: 900;
}

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

.product-card,
.checkout-panel,
.map-panel,
.order-card,
.login-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(23, 23, 23, 0.07);
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-media {
  position: relative;
  background: var(--soft);
}

.product-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-media .badge-soft {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.product-body {
  padding: 18px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.product-meta strong {
  color: var(--ink);
  font-size: 1rem;
}

.badge-soft {
  background: rgba(184, 137, 66, 0.14);
  color: #7c531b;
  border: 1px solid rgba(184, 137, 66, 0.28);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 900;
}

.product-card h3 {
  min-height: 58px;
  margin: 14px 0 8px;
  font-size: 1.08rem;
  font-weight: 900;
}

.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card p {
  min-height: 48px;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.product-detail-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.product-actions .form-control {
  max-width: 64px;
  text-align: center;
}

.icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
}

.checkout-shell {
  background: #ece7dd;
  border-top: 1px solid var(--line);
}

.collection-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: var(--charcoal);
  color: white;
  border-radius: 8px;
  overflow: hidden;
}

.collection-banner h2 {
  font-weight: 900;
  margin: 0 0 8px;
}

.collection-banner p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.checkout-panel,
.map-panel,
.order-card {
  padding: 24px;
}

.btn-primary {
  --bs-btn-bg: var(--green);
  --bs-btn-border-color: var(--green);
  --bs-btn-hover-bg: var(--green-dark);
  --bs-btn-hover-border-color: var(--green-dark);
}

.form-control {
  border-color: var(--line);
  border-radius: 8px;
}

#map {
  width: 100%;
  height: 430px;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.map-status,
.form-message {
  color: var(--muted);
  font-size: 0.92rem;
}

.form-message.error {
  color: var(--red);
}

.form-message.success {
  color: var(--green);
  font-weight: 900;
}

.cart-drawer {
  width: min(440px, 100vw);
}

.cart-items {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
}

.cart-item span,
.empty-cart {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.cart-qty button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
}

.cart-qty .remove-link {
  width: auto;
  border: 0;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
}

.cart-summary {
  position: sticky;
  bottom: 0;
  background: white;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-body {
  background: #f4f6f5;
}

.orders-list {
  display: grid;
  gap: 16px;
}

.manual-order-card {
  margin-bottom: 20px;
}

.order-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.order-top h2 {
  font-size: 1.2rem;
  font-weight: 900;
  margin: 0;
}

.order-total {
  text-align: right;
  font-size: 1.6rem;
  font-weight: 900;
}

.order-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 16px;
}

.order-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.order-items {
  margin: 0;
  padding-left: 18px;
}

.admin-map {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.admin-map iframe {
  width: 100%;
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.admin-map small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.delivery-box {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.delivery-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(180, 35, 24, 0.1);
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
}

.delivery-status.is-delivered {
  background: rgba(15, 118, 110, 0.12);
  color: var(--green-dark);
}

.delivery-box small {
  color: var(--muted);
}

.login-body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18)),
    url("/assets/hero-bathroom.webp") center / cover;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(430px, 100%);
}

.login-card {
  padding: 32px;
}

.login-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 18px;
}

.login-card h1 {
  font-weight: 900;
}

.checkout-page {
  background: #f6f4ef;
}

.checkout-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.checkout-head h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
}

.checkout-head p:not(.eyebrow) {
  color: var(--muted);
  max-width: 620px;
  margin: 0;
}

.checkout-steps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.checkout-steps span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.checkout-steps b {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
}

.checkout-steps .active {
  color: var(--green);
  border-color: rgba(15, 118, 110, 0.25);
}

.checkout-steps .active b {
  background: var(--green);
  color: white;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 24px;
  align-items: start;
}

.checkout-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(23, 23, 23, 0.07);
}

.map-block {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.checkout-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.checkout-card-head h2 {
  font-size: 1.45rem;
  font-weight: 900;
  margin: 0;
}

.checkout-card-head > i {
  color: var(--green);
  font-size: 1.8rem;
}

.shipping-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.08);
  color: var(--green-dark);
  border-radius: 8px;
  font-weight: 900;
}

.shipping-note i {
  font-size: 1.2rem;
}

.bank-transfer-box {
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.06);
  border-radius: 8px;
  padding: 18px;
}

.bank-transfer-box h3 {
  font-size: 1.2rem;
  font-weight: 900;
}

.bank-help {
  color: var(--muted);
  margin: 6px 0 0;
}

.bank-transfer-box dl {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
}

.bank-transfer-box dl div {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 10px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
  padding-bottom: 8px;
}

.bank-transfer-box dt {
  color: var(--muted);
  font-weight: 800;
}

.bank-transfer-box dd {
  margin: 0;
  font-weight: 900;
}

.review-box {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(184, 137, 66, 0.24);
  background: rgba(184, 137, 66, 0.1);
  border-radius: 8px;
}

.review-box span {
  color: var(--muted);
}

.payment-next-box {
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.06);
  border-radius: 8px;
  padding: 18px;
}

.payment-next-box h3 {
  font-size: 1.2rem;
  font-weight: 900;
}

.payment-next-box p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 0;
}

.account-card {
  max-width: 520px;
}

.account-card h2 {
  font-weight: 900;
}

.order-summary {
  position: sticky;
  top: 92px;
}

.summary-card {
  padding: 22px;
}

.edit-cart-link {
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.summary-items {
  display: grid;
  gap: 14px;
}

.summary-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.summary-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
}

.summary-item span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.summary-lines {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.summary-lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.summary-lines strong {
  color: var(--ink);
}

.summary-total {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
  font-weight: 900;
}

.empty-checkout {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 42px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(23, 23, 23, 0.07);
}

.empty-checkout i {
  font-size: 3rem;
  color: var(--gold);
}

.empty-checkout h2 {
  font-weight: 900;
  margin-top: 14px;
}

.empty-checkout p {
  color: var(--muted);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 34px;
  align-items: start;
}

.product-detail-media,
.product-detail-info {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(23, 23, 23, 0.07);
}

.product-detail-media {
  padding: 24px;
}

.product-detail-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fbfaf7;
  border-radius: 8px;
}

.product-detail-info {
  padding: 28px;
}

.product-detail-info h1 {
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 900;
}

.detail-price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.detail-price-row strong {
  font-size: 2rem;
}

.detail-copy {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.detail-actions {
  display: grid;
  grid-template-columns: 92px 1fr 1fr;
  gap: 10px;
  margin: 24px 0;
}

.detail-actions input {
  text-align: center;
}

.detail-specs {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.detail-specs h2 {
  font-size: 1.2rem;
  font-weight: 900;
}

.detail-specs ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-grid,
  .ecommerce-strip,
  .checkout-layout,
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }

  .ecommerce-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ecommerce-strip div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 650px;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
    margin-top: 10px;
  }

  .section-heading,
  .admin-header,
  .map-toolbar,
  .order-top,
  .checkout-head,
  .collection-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .checkout-steps {
    justify-content: flex-start;
  }

  .total-pill,
  .admin-stat,
  .order-total {
    text-align: left;
  }

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

  .checkout-panel,
  .map-panel,
  .order-card,
  .login-card {
    padding: 18px;
  }

  .cart-item {
    grid-template-columns: 64px 1fr;
  }

  .cart-item > strong {
    grid-column: 2;
  }

  .summary-item {
    grid-template-columns: 58px 1fr;
  }

  .summary-item b {
    grid-column: 2;
  }

  .detail-actions {
    grid-template-columns: 1fr;
  }

  .bank-transfer-box dl div {
    grid-template-columns: 1fr;
  }
}
