:root {
  --accent: #e2a682;
  --dark: #023536;
  --midnight: #1a1a1a;
  --line: rgba(26, 26, 26, 0.1);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #02353670 rgba(2, 53, 54, 0.08);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(2, 53, 54, 0.08);
}

*::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
}

body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

p {
  line-height: 1.58;
}

a,
button {
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

button:hover,
.btn-primary:hover,
.btn-secondary:hover,
.icon-btn:hover,
.icon-btn-dark:hover {
  transform: translateY(-1px);
}

.nav-link {
  color: rgba(26, 26, 26, 0.72);
}

.nav-link:hover {
  color: var(--dark);
}

.btn-primary,
.btn-secondary,
.btn-danger {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.72rem 1rem;
}

.btn-primary {
  background: var(--dark);
  color: #fff;
}

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

.btn-secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--dark);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: #fff8f4;
}

.btn-danger {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}

.icon-btn,
.icon-btn-dark {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  height: 2.35rem;
  justify-content: center;
  width: 2.35rem;
}

.icon-btn {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--dark);
}

.icon-btn-dark {
  background: var(--dark);
  color: #fff;
}

.floating-action {
  align-items: center;
  background: var(--dark);
  border-radius: 999px;
  box-shadow: 0 16px 38px rgba(2, 53, 54, 0.2);
  color: #fff;
  display: inline-flex;
  font-size: 1.15rem;
  height: 3.25rem;
  justify-content: center;
  position: fixed;
  right: 1.25rem;
  width: 3.25rem;
  z-index: 45;
}

.floating-action:hover {
  background: var(--accent);
  color: var(--dark);
}

.section {
  margin-inline: auto;
  max-width: 80rem;
  padding: 4rem 1rem;
}

@media (min-width: 1024px) {
  .section {
    padding-inline: 2rem;
  }
}

.section-heading {
  margin-bottom: 2rem;
  text-align: center;
}

.section-heading p,
.eyebrow {
  color: var(--dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2 {
  color: var(--dark);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

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

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

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(2, 53, 54, 0.06);
  padding: 0.85rem;
}

.feature-tile {
  background: #fff;
  border: 1px solid rgba(2, 53, 54, 0.08);
  border-radius: 8px;
  padding: 1.2rem;
}

.feature-tile i {
  color: var(--dark);
  font-size: 1.25rem;
}

.feature-tile h3 {
  color: var(--dark);
  font-weight: 800;
  margin-top: 0.8rem;
}

.feature-tile p {
  color: rgba(26, 26, 26, 0.65);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.35rem;
}

.quote,
.empty-state {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: rgba(26, 26, 26, 0.7);
  line-height: 1.5;
  padding: 1.25rem;
}

.empty-state {
  text-align: center;
}

.badge {
  align-items: center;
  background: #eef6f5;
  border-radius: 999px;
  color: var(--dark);
  width: max-content;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 800;
  min-height: 1.8rem;
  padding: 0.3rem 0.65rem;
}

.badge-green {
  background: #ecfdf5;
  color: #047857;
}

.badge-amber {
  background: #fffbeb;
  color: #b45309;
}

.badge-red {
  background: #fef2f2;
  color: #b91c1c;
}

.field,
.qty-input {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.14);
  border-radius: 8px;
  color: var(--midnight);
  min-height: 2.65rem;
  outline: none;
  padding: 0.5rem;
  width: 100%;
}

.qty-input {
  min-height: 2.35rem;
  padding: 0.35rem 0.5rem;
  width: 4.5rem;
}

.field:focus,
.qty-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(226, 166, 130, 0.22);
}

.field-label {
  color: rgba(26, 26, 26, 0.7);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.form-section-title,
.admin-section-title {
  color: var(--dark);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.form-error-summary {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  color: #9f1239;
  display: grid;
  gap: 0.45rem;
  grid-column: 1 / -1;
  padding: 0.85rem 1rem;
}

.form-error-summary p {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.form-error-summary ul {
  display: grid;
  font-size: 0.84rem;
  gap: 0.2rem;
  line-height: 1.4;
  list-style: disc;
  margin: 0;
  padding-left: 1.1rem;
}

.status-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.status-card span {
  color: rgba(26, 26, 26, 0.55);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.status-card strong {
  color: var(--dark);
}

.timeline-item {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.page-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 2.5rem;
  padding: 0.55rem 0.8rem;
}

.pagination-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.prose-coco {
  color: rgba(26, 26, 26, 0.72);
  line-height: 1.8;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.admin-nav {
  align-items: center;
  border-radius: 8px;
  color: #334155;
  display: flex;
  font-weight: 700;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
}

.admin-nav:hover {
  background: #f1f5f9;
  color: var(--dark);
}

.admin-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  padding: 1rem;
}

.admin-card-head,
.admin-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  align-items: start;
  justify-content: space-between;
}

.admin-toolbar {
  flex-direction: column;
}

.admin-toolbar > .admin-filter-grid {
  width: 100%;
}

.admin-card-head h2 {
  color: var(--dark);
  font-weight: 800;
}

.admin-card-head a,
.table-action {
  color: var(--dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.metric-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
  display: grid;
  min-height: 8.25rem;
  padding: 1rem;
}

.metric-card i {
  color: var(--dark);
  font-size: 1.15rem;
}

.metric-card span {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
}

.metric-card strong {
  color: #0f172a;
  font-size: 1.45rem;
}

.table-wrap {
  max-width: 100%;
  overflow: auto;
}

.admin-table {
  border-collapse: collapse;
  min-width: 52rem;
  width: 100%;
}

.admin-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 0.85rem;
  vertical-align: top;
}

.admin-table td {
  color: #334155;
  font-size: 0.9rem;
}

.print-page {
  background: #fff;
  color: #111827;
  font-family: Arial, sans-serif;
  padding: 2rem;
}

.print-page h1 {
  color: #111827;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.print-page table {
  border-collapse: collapse;
  margin-top: 1.5rem;
  width: 100%;
}

.print-page th,
.print-page td {
  border: 1px solid #d1d5db;
  padding: 0.65rem;
  text-align: left;
}

@media (max-width: 1023px) {
  [data-mobile-menu].is-open {
    display: block;
  }
}

@media print {
  .print-page {
    padding: 0;
  }
}

.announcement-bar {
  align-items: center;
  background: var(--dark);
  color: #fff;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  position: relative;
  text-align: center;
}

.public-mobile-menu {
  background: #fff;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  display: none;
  text-align: left;
}

.mobile-nav-link {
  align-items: center;
  border-radius: 8px;
  color: #334155;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  min-height: 2.7rem;
  padding: 0.7rem 0.75rem;
  text-align: left;
}

.mobile-nav-link i {
  color: var(--dark);
  width: 1.25rem;
}

.mobile-nav-link:hover {
  background: #eef6f5;
  color: var(--dark);
}

.announcement-bar p {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.announcement-close {
  align-items: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  height: 1.9rem;
  justify-content: center;
  width: 1.9rem;
}

.announcement-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero-bg {
  background-position: center;
  background-size: cover;
  min-height: 82svh;
  overflow: hidden;
  position: relative;
}

.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(2, 53, 54, 0.82),
    rgba(2, 53, 54, 0.48) 70%,
    rgba(2, 53, 54, 0.16)
  );
  inset: 0;
  position: absolute;
}

.hero-bg h1,
.hero-bg p,
.hero-bg .hero-note,
.hero-bg .hero-note {
  margin-top: 1rem;
}

.hero-actions {
  gap: 0.55rem;
  margin-top: 1rem;
}

.hero-note {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  display: inline-flex;
  gap: 0.65rem;
  max-width: 34rem;
  padding: 0.8rem 0.9rem;
}

.hero-note span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.86rem;
  line-height: 1.45;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0.75rem;
}

.product-card-media {
  aspect-ratio: 4 / 4.35;
  background: #f7f2ef;
  border-radius: 8px;
  display: block;
  overflow: hidden;
}

.product-card-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  width: 100%;
}

.product-card-media:hover img {
  transform: scale(1.045);
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.9rem;
  justify-content: space-between;
  padding: 0.95rem 0.15rem 0.1rem;
}

.product-card-meta {
  color: rgba(26, 26, 26, 0.56);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.product-card-title {
  color: var(--dark);
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.product-card-copy {
  color: rgba(26, 26, 26, 0.64);
  display: -webkit-box;
  font-size: 0.9rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.45;
  margin: 0.45rem 0 0;
  overflow: hidden;
}

.product-card-footer {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

.product-card-footer > div {
  display: grid;
  gap: 0.45rem;
  min-width: 9.5rem;
}

.product-card-price {
  color: var(--dark);
  display: block;
  font-weight: 800;
  white-space: nowrap;
}

.product-card-action {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.product-card-enquire {
  color: var(--dark);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: underline;
}

.toast-stack {
  display: grid;
  gap: 0.75rem;
  max-width: min(92vw, 28rem);
  position: fixed;
  right: 1rem;
  top: 5.5rem;
  width: 100%;
  z-index: 70;
}

.toast {
  align-items: start;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--dark);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1.9rem 1fr 1.8rem;
  padding: 0.85rem;
}

.toast p {
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.toast-icon,
.toast-close {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  height: 1.8rem;
  justify-content: center;
  width: 1.8rem;
}

.toast-icon {
  background: #eef6f5;
  color: var(--dark);
}

.toast-close {
  color: #64748b;
}

.toast-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.toast-success {
  border-left-color: #059669;
}

.toast-success .toast-icon {
  background: #ecfdf5;
  color: #047857;
}

.toast-warning {
  border-left-color: #d97706;
}

.toast-warning .toast-icon {
  background: #fffbeb;
  color: #b45309;
}

.toast-danger,
.toast-error {
  border-left-color: #dc2626;
}

.toast-danger .toast-icon,
.toast-error .toast-icon {
  background: #fef2f2;
  color: #b91c1c;
}

.admin-shell {
  min-height: 100svh;
}

.admin-sidebar {
  background: #fff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  height: 100svh;
  left: 0;
  max-width: 17rem;
  overflow-y: auto;
  position: fixed;
  top: 0;
  transform: translateX(-100%);
  transition: transform 0.24s ease;
  width: min(82vw, 17rem);
  z-index: 60;
}

.admin-sidebar.is-open {
  transform: translateX(0);
}

.admin-sidebar-backdrop {
  background: rgba(15, 23, 42, 0.42);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.2s ease;
  z-index: 55;
}

.admin-sidebar-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.admin-sidebar-brand {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

.admin-sidebar-brand img {
  height: 2rem;
  width: auto;
}

.admin-sidebar-nav {
  display: grid;
  gap: 0.1rem;
  padding: 0.35rem 0.75rem 1rem;
}

.admin-sidebar-foot {
  border-top: 1px solid #e2e8f0;
  margin-top: auto;
  padding: 0.75rem;
}

.admin-nav {
  border-radius: 8px;
  color: #475569;
  font-size: 0.92rem;
  min-height: 2.65rem;
  padding: 0.6rem 0.7rem;
}

.admin-nav i {
  color: #64748b;
  width: 1.1rem;
}

.admin-nav:hover,
.admin-nav.is-active {
  background: #eef6f5;
  color: var(--dark);
}

.admin-nav:hover i,
.admin-nav.is-active i {
  color: var(--dark);
}

.admin-nav-group {
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.8rem 0.75rem 0.25rem;
  text-transform: uppercase;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  gap: 0.85rem;
  min-height: 4.25rem;
  padding: 0.65rem 1rem;
  position: sticky;
  top: 0;
  z-index: 35;
}

.admin-content {
  padding: 1rem;
}

.admin-filter-grid {
  display: grid;
  flex: 1;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  min-width: 0;
}

.shop-filter-panel {
  overflow: hidden;
}

.shop-filter-form {
  display: none;
}

.shop-filter-form.is-open {
  display: block;
}

.shop-filter-toggle {
  align-items: center;
  color: var(--dark);
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  text-align: left;
  width: 100%;
}

.admin-form-actions {
  align-items: center;
  display: flex;
  justify-content: flex-start;
}

.check-row {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #334155;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.55rem;
  min-height: 2.65rem;
  padding: 0.6rem 0.75rem;
}

.check-row input[type="checkbox"] {
  accent-color: var(--dark);
  height: 1rem;
  width: 1rem;
}

@media (min-width: 1024px) {
  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    bottom: 0;
    left: 0;
    max-width: none;
    position: fixed;
    top: 0;
    transform: none;
    width: 17rem;
  }

  .admin-sidebar-backdrop {
    display: none;
  }

  .admin-content {
    padding: 1.5rem;
  }

  .admin-main {
    margin-left: 17rem;
  }

  .shop-filter-panel {
    align-self: start;
    max-height: calc(100svh - 7.25rem);
    overflow: auto;
    position: sticky;
    top: 5.75rem;
  }

  .shop-filter-form {
    display: block;
  }
}

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

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

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

  .admin-table {
    min-width: 42rem;
  }
}

@media (max-width: 640px) {
  .announcement-bar {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.65rem 0.75rem;
    text-align: left;
  }

  .announcement-bar p {
    flex: 1;
    text-align: left;
  }

  .hero-bg {
    min-height: 78svh;
  }

  .hero-bg .relative {
    min-height: 78svh;
    padding-bottom: 3rem;
    padding-top: 3rem;
  }

  .hero-bg img {
    max-width: min(78vw, 18rem);
  }

  .hero-actions {
    gap: 0.45rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    justify-content: center;
    min-height: 2.65rem;
    width: 100%;
  }

  .section {
    padding-block: 2.75rem;
  }

  .product-grid,
  .shop-product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-card {
    padding: 0.65rem;
  }

  .product-card-media {
    aspect-ratio: 1 / 0.92;
  }

  .product-card-body {
    gap: 0.75rem;
    padding-top: 0.8rem;
  }

  .field,
  .qty-input {
    font-size: 16px;
  }

  .floating-action {
    height: 2.85rem;
    right: 0.9rem;
    width: 2.85rem;
  }

  .toast-stack {
    left: 1rem;
    right: 1rem;
    top: 0.75rem;
    width: auto;
  }

  .product-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .product-card-action {
    justify-content: space-between;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-toolbar .btn-secondary,
  .admin-toolbar .btn-primary {
    justify-content: center;
    width: 100%;
  }

  .admin-content {
    padding: 0.75rem;
  }

  .admin-card {
    padding: 0.85rem;
  }

  .admin-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-table {
    min-width: 38rem;
  }
}
