:root {
  color-scheme: light;
  --ink: #29251f;
  --muted: #71695d;
  --gold: #99702e;
  --gold-dark: #72511e;
  --cream: #faf8f3;
  --line: #e9e3d8;
  --surface: #fff;
  --shadow: 0 16px 42px rgb(52 39 18 / 7%);
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a { color: var(--gold-dark); }
a:hover { color: var(--gold); }

h1, h2, h3, .navbar-brand { font-family: Georgia, "Times New Roman", serif; }
h1, h2, h3 { letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.navbar {
  min-height: 76px;
  gap: .75rem;
  max-width: 1440px;
}
.navbar-expand-xl .navbar-collapse {
  min-width: 0;
  width: auto;
  max-width: 100%;
}
.navbar-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .15rem;
}
.offcanvas-xl {
  --bs-offcanvas-width: min(24rem, calc(100vw - 1.5rem));
  background-color: transparent !important;
  box-shadow: none;
}
@media (min-width: 1200px) {
  .offcanvas-xl {
    position: static;
    z-index: auto;
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: row;
    width: auto;
    max-width: 100%;
    transform: none !important;
    visibility: visible !important;
    border: 0;
    background-color: transparent !important;
    box-shadow: none;
  }
  .offcanvas-xl .offcanvas-header {
    display: none !important;
  }
  .offcanvas-xl .offcanvas-body {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
  }
}
.navbar-expand-xl .navbar-nav .nav-link:focus-visible,
.navbar-expand-xl .navbar-toggler:focus-visible,
.navbar-expand-xl .drawer-close:focus-visible {
  outline: 3px solid #6c4a12;
  outline-offset: 3px;
}
.order-whatsapp-dialog {
  width: min(34rem, calc(100vw - 2rem));
  max-width: none;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--ink);
  background: white;
  box-shadow: var(--shadow);
}
.order-whatsapp-dialog::backdrop { background: rgb(25 20 12 / 58%); }
.bill-delete-dialog {
  width: min(38rem, calc(100vw - 2rem));
  max-width: none;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--ink);
  background: white;
  box-shadow: var(--shadow);
}
.bill-delete-dialog::backdrop { background: rgb(25 20 12 / 58%); }
.report-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .75rem 1.5rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--cream);
}
.report-summary h4 { flex-basis: 100%; margin: 0; }
.report-table { min-width: 1050px; font-size: .82rem; }
.ledger-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.ledger-summary-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .25rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(52 39 18 / 5%);
}
.ledger-summary-card strong { color: var(--ink); font-size: clamp(1.25rem, 2vw, 1.7rem); font-variant-numeric: tabular-nums; }
.ledger-summary-label { color: var(--muted); font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ledger-summary-card small { color: var(--muted); }
.ledger-summary-net { border-color: rgb(153 112 46 / 35%); background: var(--cream); }
.ledger-summary-net strong { color: var(--gold-dark); }
.ledger-register { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow); }
.ledger-register-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.4rem; border-bottom: 1px solid var(--line); }
.ledger-register-heading h3 { color: var(--ink); }
.ledger-search { width: min(100%, 19rem); }
.ledger-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.25rem; border-bottom: 1px solid var(--line); background: #fffdfa; }
.ledger-result-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; }
.ledger-result-summary strong { color: var(--ink); font-size: .88rem; }
.ledger-result-summary span, .ledger-page-indicator { color: var(--muted); font-size: .82rem; }
.ledger-entries-select { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.ledger-entries-select select { width: auto; min-width: 7rem; border-color: var(--line); }
.ledger-table { min-width: 760px; margin: 0; font-size: .9rem; }
.ledger-table thead th { padding: .8rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); background: var(--cream); font-size: .75rem; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.ledger-table thead th span { color: #8d8578; font-size: .7rem; font-weight: 500; text-transform: none; }
.ledger-table tbody td { padding: .9rem 1rem; border-color: #f0ece4; }
.ledger-table tbody tr:last-child td { border-bottom: 0; }
.ledger-date { color: var(--muted); font-size: .84rem; white-space: nowrap; }
.ledger-particulars { min-width: 14rem; }
.ledger-particulars strong, .ledger-particulars small { display: block; }
.ledger-particulars strong { margin-top: .25rem; }
.ledger-particulars small { color: var(--muted); font-size: .78rem; }
.ledger-entry-type { display: inline-flex; padding: .15rem .5rem; border-radius: 999px; color: #286243; background: #e9f4ed; font-size: .7rem; font-weight: 700; }
.ledger-entry-type.is-debit { color: #865321; background: #f8efe2; }
.ledger-reference { color: var(--gold-dark); font-size: .84rem; font-weight: 600; white-space: nowrap; }
.ledger-money, .ledger-balance { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-money { color: var(--ink); }
.ledger-empty { color: #aaa295; }
.ledger-balance { color: var(--ink); font-weight: 700; }
.ledger-empty-state { padding: 3rem 1rem !important; color: var(--muted); text-align: center; }
.ledger-pagination-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.25rem; border-top: 1px solid var(--line); }
.ledger-pagination { display: flex; align-items: center; justify-content: flex-end; gap: .35rem; }
.ledger-page-numbers { display: flex; align-items: center; gap: .25rem; }
.ledger-page-button { display: inline-flex; min-width: 2.25rem; min-height: 2.25rem; align-items: center; justify-content: center; padding: .35rem .55rem; border: 1px solid var(--line); border-radius: .5rem; color: var(--ink); background: var(--surface); font-size: .82rem; font-weight: 600; }
.ledger-page-button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-dark); background: var(--cream); }
.ledger-page-button[aria-current="page"] { border-color: var(--gold-dark); color: #fff; background: var(--gold-dark); }
.ledger-page-button:disabled { cursor: not-allowed; opacity: .48; }
.ledger-page-step { padding-inline: .75rem; }
.ledger-page-ellipsis { padding-inline: .15rem; color: var(--muted); }
.ledger-note { padding: .85rem 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
@media (max-width: 767.98px) {
  .ledger-summary { grid-template-columns: 1fr; gap: .65rem; }
  .ledger-summary-card { padding: .9rem 1rem; }
  .ledger-register-heading { align-items: stretch; flex-direction: column; padding: 1rem; }
  .ledger-search { width: 100%; }
  .ledger-toolbar { align-items: flex-start; flex-direction: column-reverse; padding: .8rem 1rem; }
  .ledger-pagination-footer { align-items: flex-start; flex-direction: column; padding: .8rem 1rem; }
  .ledger-pagination { width: 100%; justify-content: space-between; }
}
@media print {
  .ledger-report-page .report-actions, .ledger-report-page .ledger-search, .ledger-report-page .ledger-toolbar, .ledger-report-page .ledger-pagination-footer { display: none !important; }
  .ledger-report-page .ledger-register { overflow: visible; box-shadow: none; }
  .ledger-report-page .table-responsive { overflow: visible; }
}
.navbar-brand { min-width: 0; }
.header-actions { flex: 0 0 auto; }
.navbar-collapse { min-width: 0; }
.navbar-toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 1px solid rgb(105 80 36 / 18%);
  border-radius: .75rem;
  background: rgb(255 255 255 / 30%);
}
.navbar-toggler:focus { box-shadow: none; }
.menu-icon {
  display: grid;
  width: 1.2rem;
  height: 1rem;
  gap: .24rem;
  align-content: center;
}
.menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #2d2418;
}
.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  max-width: 22rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
}
.navbar-brand:hover { color: var(--gold-dark); }
.brand-logo { flex: 0 0 auto; width: auto; height: 42px; max-width: 72px; object-fit: contain; }
.navbar-toggler { border-color: var(--line); }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgb(153 112 46 / 20%); }
.navbar-nav .nav-link { padding-inline: .65rem; color: var(--ink); font-size: .94rem; white-space: nowrap; }
.navbar-nav .nav-link:hover { color: var(--gold-dark); }
.admin-navbar-dropdown .dropdown-menu { min-width: 14rem; max-height: min(75vh, 34rem); overflow-y: auto; padding: .5rem; border-color: var(--line); box-shadow: var(--shadow); }
.admin-navbar-dropdown .dropdown-item { padding: .5rem .7rem; color: #59451f; font-size: .9rem; }
.admin-navbar-dropdown .dropdown-item:hover, .admin-navbar-dropdown .dropdown-item:focus { color: var(--gold-dark); background: #eee5d5; }
.profile-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.profile-heading h2 { margin: 0; }
.profile-edit-toggle { display: grid; width: 2.5rem; height: 2.5rem; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-dark); background: var(--cream); }
.profile-edit-toggle:hover { color: white; background: var(--gold-dark); }
.profile-edit-toggle svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.profile-edit-panel[hidden], [data-profile-summary][hidden] { display: none !important; }
.account-avatar-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: .25rem;
  border-radius: 50%;
  text-decoration: none;
}
.account-avatar {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid #b69a69;
  border-radius: 50%;
  color: var(--gold-dark);
  background: var(--cream);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.account-avatar-link:hover .account-avatar { color: white; background: var(--gold-dark); }

.navbar-nav .nav-link:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #c99742;
  outline-offset: 3px;
}

.btn-primary {
  --bs-btn-bg: var(--gold-dark);
  --bs-btn-border-color: var(--gold-dark);
  --bs-btn-hover-bg: #5e4218;
  --bs-btn-hover-border-color: #5e4218;
  --bs-btn-active-bg: #5e4218;
  --bs-btn-active-border-color: #5e4218;
  --bs-btn-disabled-bg: #9c8b6d;
  --bs-btn-disabled-border-color: #9c8b6d;
}
.btn-outline-primary {
  --bs-btn-color: var(--gold-dark);
  --bs-btn-border-color: #b69a69;
  --bs-btn-hover-bg: var(--gold-dark);
  --bs-btn-hover-border-color: var(--gold-dark);
  --bs-btn-active-bg: var(--gold-dark);
  --bs-btn-active-border-color: var(--gold-dark);
}
.form-control:focus, .form-select:focus {
  border-color: #b69a69;
  box-shadow: 0 0 0 .2rem rgb(153 112 46 / 15%);
}

.site-footer { color: var(--muted); background: var(--cream); border-top: 1px solid var(--line); }
.contact-page { max-width: 960px; margin-inline: auto; padding-block: 2rem 1rem; }
.contact-heading { margin-bottom: 2.5rem; text-align: center; }
.contact-heading h1 { margin-bottom: .75rem; }
.contact-heading .lead { max-width: 42rem; margin-inline: auto; color: var(--muted); }
.contact-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.contact-details { display: grid; gap: 1.25rem; margin: 0; }
.contact-detail { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.contact-detail:last-child { padding-bottom: 0; border-bottom: 0; }
.contact-detail dt { margin-bottom: .25rem; font-size: .88rem; font-weight: 650; }
.contact-detail dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.text-pre-line { white-space: pre-line; }
.contact-detail a { color: var(--gold-dark); }
.contact-response-note { margin: 2rem 0 0; color: var(--muted); font-size: .9rem; text-align: center; }
.about-page { max-width: 900px; margin-inline: auto; padding-block: 2rem 1rem; }
.about-heading { margin-bottom: 2rem; text-align: center; }
.about-heading h1 { margin-bottom: 0; }
.about-story { margin-bottom: 2.5rem; }
.about-story p { color: var(--muted); font-size: 1.08rem; line-height: 1.8; }
.about-story .about-intro { color: var(--ink); font-size: 1.2rem; }
.about-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.about-feature, .about-visit-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.about-feature h2 { margin-bottom: .85rem; font-size: 1.45rem; }
.about-feature p:last-child { margin-bottom: 0; color: var(--muted); }
.about-visit { margin-top: 2.5rem; }
.about-visit > h2 { margin-bottom: 1.25rem; text-align: center; }
.about-visit-card { max-width: 620px; margin-inline: auto; }
.about-signoff { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--line); text-align: center; }
.auth-card {
  width: min(100%, 760px);
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.scrap-item {
  width: 100%;
  min-width: 0;
}
.scrap-item .scrap-item-row {
  row-gap: .9rem;
}
.scrap-item .scrap-field {
  min-width: 0;
}
.scrap-item .scrap-product-name { flex: 0 0 250px; max-width: 250px; }
.scrap-item .scrap-metal-type { flex: 0 0 130px; max-width: 130px; }
.scrap-item .scrap-weight { flex: 0 0 130px; max-width: 130px; }
.scrap-item .scrap-tanch { flex: 0 0 90px; max-width: 90px; }
.scrap-item .scrap-rate { flex: 0 0 170px; max-width: 170px; }
.scrap-item .scrap-output { flex: 0 0 130px; max-width: 130px; }
.scrap-item .scrap-remove { flex: 0 0 110px; max-width: 110px; }
.scrap-item .form-control,
.scrap-item .form-select,
.scrap-item output.form-control,
.scrap-item .btn {
  width: 100%;
  min-height: 42px;
  max-width: 100%;
}
.scrap-item output.form-control {
  display: block;
  padding: .5rem .75rem;
  color: var(--ink);
  background: #f8f7f4;
}
.scrap-item .btn {
  min-width: 0;
}
@media (max-width: 991.98px) {
  .scrap-item .scrap-product-name,
  .scrap-item .scrap-metal-type,
  .scrap-item .scrap-weight,
  .scrap-item .scrap-tanch,
  .scrap-item .scrap-rate,
  .scrap-item .scrap-output,
  .scrap-item .scrap-remove {
    flex-basis: 100%;
    max-width: 100%;
  }
}
.eyebrow {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7rem) 1.25rem;
  border: 1px solid #efe6d6;
  background:
    radial-gradient(ellipse at 82% 18%, rgb(196 163 106 / 18%), transparent 34%),
    linear-gradient(125deg, #f8f2e7, #fff 72%);
  text-align: center;
}
.hero h1 { max-width: 800px; margin: 0 auto 1rem; }
.hero .lead { max-width: 640px; margin-inline: auto; color: var(--muted); }

.product-card, .category-card, .offer-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--surface);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover, .category-card:hover, .offer-card:hover {
  transform: translateY(-3px);
  border-color: #d7c6a7;
  box-shadow: var(--shadow);
}
.product-card img { width: 100%; height: 245px; object-fit: cover; background: var(--cream); }
.offer-card-banner { display: block; width: calc(100% + 3rem); max-height: 240px; margin: -1.5rem -1.5rem 1rem; object-fit: cover; }
.product-card .card-body { padding: 1.2rem; }
.product-card h3 a { color: var(--ink); }
.product-card h3 a:hover { color: var(--gold-dark); }
.product-placeholder {
  display: grid;
  height: 245px;
  place-items: center;
  color: var(--gold);
  background: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .08em;
}
.product-detail-placeholder { height: 420px; }
.product-detail-image { width: 100%; height: 320px; object-fit: contain; background: var(--cream); }
.price { color: var(--gold-dark); font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.rate-panel { padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--cream); }
.rate-ticker span { display: inline-block; margin-right: 3rem; padding-block: .3rem; font-variant-numeric: tabular-nums; }
.rate-static { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.category-card { display: block; color: var(--ink); text-decoration: none; }
.category-card img { width: 100%; height: 160px; object-fit: cover; background: var(--cream); }
.category-card span { display: block; padding: .85rem 1rem; font-weight: 650; }
.metric-card {
  height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: linear-gradient(145deg, #fff, var(--cream));
}
.metric-card p { margin-bottom: .4rem; color: var(--muted); }
.metric-card strong { color: var(--gold-dark); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.admin-nav {
  display: flex;
  gap: .35rem;
  overflow-x: auto;
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--cream);
  scrollbar-width: thin;
}
.admin-nav a, .admin-nav button { flex: 0 0 auto; padding: .45rem .7rem; border-radius: .5rem; text-decoration: none; }
.admin-nav a:hover, .admin-nav a:focus-visible, .admin-nav button:hover { background: #eee5d5; }
.admin-layout { padding-bottom: 0; }
.admin-layout .customer-fixed-shortcuts { display: none; }
.admin-fixed-shortcuts {
  display: none;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9;
  border-top: 1px solid rgb(104 77 30 / 18%);
  background: #f5d083;
  box-shadow: 0 -4px 18px rgb(52 39 18 / 8%);
}
.admin-fixed-shortcut-links {
  display: flex;
  width: min(100%, 1440px);
  min-height: 4rem;
  align-items: stretch;
  justify-content: space-evenly;
  gap: .15rem;
  overflow-x: auto;
  margin-inline: auto;
  padding: .3rem .5rem;
  scrollbar-width: thin;
}
.admin-fixed-shortcut-links a {
  display: flex;
  min-width: 4.25rem;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  padding: .3rem .55rem;
  border-radius: .55rem;
  color: #665735;
  font-size: .75rem;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}
.admin-fixed-shortcut-links a:hover,
.admin-fixed-shortcut-links a[aria-current="page"] { color: #a76e0d; background: rgb(255 255 255 / 28%); }
.admin-fixed-shortcut-links a[aria-current="page"] svg { stroke-width: 2.2; }
.admin-fixed-shortcut-links svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.admin-heading h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.admin-thumb { width: 58px; height: 58px; object-fit: cover; border-radius: .5rem; }
.table { --bs-table-border-color: var(--line); }
.table thead th { color: var(--muted); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.whatsapp-link {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 5;
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 50%;
  color: white;
  background: #128c7e;
  box-shadow: 0 4px 16px #0002;
  text-decoration: none;
}
.whatsapp-link svg { width: 1.9rem; height: 1.9rem; }
.whatsapp-link svg path:first-child { fill: none; stroke: currentColor; stroke-width: 1.8; }
.whatsapp-link svg path:last-child { fill: currentColor; }
.section-space { padding-block: 2.5rem; }

@media (max-width: 767.98px) {
  body:not(.admin-layout) { padding-bottom: calc(7rem + env(safe-area-inset-bottom)); }
  .admin-layout { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom)); }
  .admin-fixed-shortcuts { display: block; }
  .navbar { min-height: 68px; }
  .navbar-nav { align-items: stretch !important; padding-block: .5rem; }
  .customer-fixed-shortcuts {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: minmax(3.2rem, auto);
    min-height: 4rem;
    overflow-x: hidden;
    padding: .2rem .2rem max(.2rem, env(safe-area-inset-bottom));
  }
  .customer-fixed-shortcuts a {
    position: relative;
    min-width: 0;
    min-height: 3.2rem;
    padding: .15rem .05rem;
    font-size: .62rem;
    white-space: nowrap;
  }
  .customer-fixed-shortcuts svg {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
  }
  .customer-fixed-shortcuts .shortcut-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .admin-fixed-shortcuts .admin-fixed-shortcut-links {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: minmax(4rem, auto);
    min-height: 4.4rem;
    overflow: visible;
    padding: .2rem .2rem max(.2rem, env(safe-area-inset-bottom));
  }
  .admin-fixed-shortcut-links > a,
  .admin-fixed-shortcut-menu > summary,
  .admin-fixed-shortcut-logout button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 4rem;
    gap: .15rem;
    padding: .15rem .05rem;
    border: 0;
    border-radius: .55rem;
    color: #665735;
    background: transparent;
    font: inherit;
    font-size: .6rem;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
  }
  .admin-fixed-shortcut-menu {
    position: relative;
    min-width: 0;
  }
  .admin-fixed-shortcut-menu > summary {
    list-style: none;
  }
  .admin-fixed-shortcut-menu > summary::-webkit-details-marker { display: none; }
  .admin-fixed-shortcut-links > a > span,
  .admin-fixed-shortcut-menu > summary > span,
  .admin-fixed-shortcut-logout button > span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .admin-fixed-shortcut-links > a:hover,
  .admin-fixed-shortcut-links > a[aria-current="page"],
  .admin-fixed-shortcut-menu > summary:hover,
  .admin-fixed-shortcut-menu > summary[aria-current="page"],
  .admin-fixed-shortcut-logout button:hover {
    color: #a76e0d;
    background: rgb(255 255 255 / 28%);
  }
  .admin-fixed-shortcut-links svg {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
  }
  .admin-shortcut-drawer {
    position: absolute;
    bottom: calc(100% + .55rem);
    left: 50%;
    z-index: 12;
    display: none;
    width: min(14rem, calc(100vw - 1rem));
    padding: .4rem;
    transform: translateX(-50%);
    border: 1px solid rgb(104 77 30 / 18%);
    border-radius: .75rem;
    background: #fffaf0;
    box-shadow: 0 8px 24px rgb(52 39 18 / 20%);
  }
  .admin-fixed-shortcut-menu[open] .admin-shortcut-drawer { display: grid; gap: .2rem; }
  .admin-shortcut-drawer a {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    padding: .55rem .7rem;
    border-radius: .5rem;
    color: #59451f;
    font-size: .82rem;
    line-height: 1.2;
    text-decoration: none;
    white-space: normal;
  }
  .admin-shortcut-drawer a:hover,
  .admin-shortcut-drawer a[aria-current="page"] { color: #72511e; background: #f5e8ca; }
  .admin-fixed-shortcut-logout { min-width: 0; margin: 0; }
  .admin-fixed-shortcut-logout button { width: 100%; }
  .whatsapp-link {
    right: .75rem;
    bottom: calc(7rem + env(safe-area-inset-bottom));
    z-index: 10;
    width: 2.85rem;
    height: 2.85rem;
  }
  .whatsapp-link svg { width: 1.7rem; height: 1.7rem; }
}
@media (max-width: 575.98px) {
  .about-feature-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .rate-ticker { display: none; }
  .rate-static {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.5rem;
    width: auto;
    height: auto;
    overflow: visible;
    margin: .5rem 0 0;
    padding: 0;
    clip: auto;
    list-style: none;
    white-space: normal;
  }
}

/* Shared jewellery-store layout */
:root {
  --ink: #29251f;
  --muted: #746b5d;
  --gold: #a77c36;
  --gold-dark: #795821;
  --gold-soft: #efe3cd;
  --cream: #faf7f0;
  --line: #e8dfd0;
  --surface: #fff;
  --shadow: 0 14px 36px rgb(61 43 14 / 7%);
  --shadow-soft: 0 6px 20px rgb(61 43 14 / 5%);
}

html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  background: #fdfcf9;
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}
h1, h2, h3, h4, .navbar-brand {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}
h1 { line-height: 1.12; }
h2 { line-height: 1.2; }
#main-content { max-width: 1440px; min-height: 62vh; padding-top: clamp(1.5rem, 3vw, 2.75rem) !important; padding-bottom: clamp(2.5rem, 5vw, 4.5rem) !important; }
#scrap-purchase-form {
  width: min(100%, 760px);
  margin-inline: auto;
}
.site-header { background: rgb(255 255 255 / 97%); }
.navbar { gap: .75rem; }
.navbar-brand { gap: .8rem; font-size: 1.15rem; }
.navbar-nav .nav-link { border-radius: .55rem; transition: background-color .18s ease, color .18s ease; }
.navbar-nav .nav-link:hover { color: var(--gold-dark); background: var(--cream); }
.site-header { background: #f5d083; border-bottom-color: rgb(104 77 30 / 18%); }
.navbar { min-height: 76px; }
.navbar-brand { gap: .7rem; color: #282319; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 2.9rem;
  height: 2.9rem;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #a56f0b;
  background: rgb(255 255 255 / 28%);
}
.brand-mark svg { width: 1.55rem; height: 1.55rem; }
.brand-mark .brand-logo { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.brand-copy { display: flex; min-width: 0; flex-direction: column; gap: .15rem; }
.brand-copy strong { overflow: hidden; color: #211d16; font-family: "DM Sans", "Segoe UI", Arial, sans-serif; font-size: 1.08rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy small { color: #756544; font-family: Georgia, "Times New Roman", serif; font-size: .68rem; font-weight: 400; letter-spacing: .16em; }
.header-actions { gap: .55rem !important; }
.header-cart { position: relative; display: inline-grid; width: 2.65rem; height: 2.65rem; place-items: center; border-radius: 50%; color: #30291c; text-decoration: none; }
.header-cart:hover { color: #30291c; background: rgb(255 255 255 / 30%); }
.header-cart svg { width: 1.4rem; height: 1.4rem; }
.cart-count {
  position: absolute;
  top: -.1rem;
  right: -.1rem;
  display: grid;
  min-width: 1.1rem;
  height: 1.1rem;
  place-items: center;
  padding-inline: .2rem;
  border-radius: 99px;
  color: white;
  background: #8a6424;
  font-size: .65rem;
  line-height: 1;
}
.account-chip { display: inline-flex; min-height: 2.5rem; align-items: center; gap: .55rem; padding: .2rem .75rem .2rem .3rem; border-radius: 99px; color: #30291c; background: rgb(255 255 255 / 48%); text-decoration: none; }
.account-chip:hover { color: #30291c; background: rgb(255 255 255 / 68%); }
.account-role { padding: .3rem .6rem; border: 1px solid #b78b3c; border-radius: 99px; color: #72511e; font-family: Georgia, "Times New Roman", serif; font-size: .75rem; line-height: 1; }
.account-avatar { display: inline-grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #766343; background: #f8f5f0; font-size: .8rem; font-weight: 600; }
.account-name { max-width: 6rem; overflow: hidden; font-family: Georgia, "Times New Roman", serif; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.header-logout { margin: 0; }
.header-logout button { display: grid; width: 3.1rem; height: 3.1rem; place-items: center; border: 0; border-radius: 50%; color: white; background: #29251f; }
.header-logout button:hover { background: #51493c; }
.header-logout svg { width: 1.25rem; height: 1.25rem; }
.navbar svg, .mobile-shortcuts svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.navbar-nav .nav-link svg,
.drawer-account-icon svg,
.drawer-logout svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}
.navbar .nav-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.drawer-account-icon {
  display: inline-grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  flex-shrink: 0;
}
.product-whatsapp-button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .65rem 1rem;
  border-radius: 99px;
  color: #fff;
  background: #25d366;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.product-whatsapp-button:hover { color: #fff; background: #1ebe5d; box-shadow: var(--shadow-soft); transform: translateY(-1px); }
.product-whatsapp-button svg { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; fill: currentColor; }
.admin-site-header .navbar-nav .nav-link { color: #665735; }
.admin-site-header .navbar-nav .nav-link:hover,
.admin-site-header .navbar-nav .nav-link[aria-current="page"] { color: #362914; background: rgb(255 255 255 / 22%); }
.admin-site-header .navbar-nav .nav-link[aria-current="page"]::after { background: #9c762e; }
.admin-site-header .navbar-nav .dropdown-toggle::after { margin-left: .1rem; }
.admin-site-header .admin-navbar-dropdown .dropdown-menu { background: #fffaf0; }
.admin-site-header .admin-navbar-dropdown .dropdown-item:hover,
.admin-site-header .admin-navbar-dropdown .dropdown-item:focus { background: #f3e5c7; }
.mobile-shortcuts { display: none !important; }
.site-footer { margin-top: 0 !important; }
.eyebrow { color: var(--gold-dark); letter-spacing: .17em; }

.btn { border-radius: .65rem; font-weight: 600; }
.btn-lg { padding: .8rem 1.35rem; }
.form-control, .form-select { min-height: 2.85rem; border-color: #ded5c7; border-radius: .6rem; }
textarea.form-control { min-height: auto; }
label { display: block; color: #484237; font-size: .92rem; font-weight: 600; }
label > .form-control, label > .form-select, label > .input-group { margin-top: .4rem; }
.form-check-label { display: inline-flex; align-items: center; gap: .5rem; }
.input-group > .form-control, .input-group > .form-select { min-width: 0; }
#main-content .alert {
  width: min(100%, 760px);
  max-width: 760px;
  padding: .8rem 3rem .8rem 1rem;
  border: 1px solid rgb(173 102 94 / 30%);
  border-radius: .8rem;
  box-shadow: var(--shadow-soft);
}
#main-content .alert .btn-close {
  opacity: .75;
}
.auth-card, .contact-card, .about-feature, .about-visit-card, .metric-card {
  border-color: var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.auth-card {
  width: min(100%, 760px);
  max-width: 760px;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.auth-card.admin-orders-card { width: 100%; max-width: none; }
.admin-orders-card .table { min-width: 860px; }
.auth-card h2 {
  margin-bottom: .65rem;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}
.auth-card p {
  margin-bottom: 1rem;
  color: var(--muted);
}
.auth-card .input-group {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  width: min(100%, 42rem);
}
.auth-card .input-group .form-control {
  flex: 1 1 16rem;
  min-width: 12rem;
}
.auth-card .input-group .btn {
  white-space: nowrap;
}
.admin-heading { margin: .25rem 0 1.5rem; }
.admin-heading .eyebrow { margin-bottom: .35rem; }
.admin-heading h1 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 2.8rem); }
.admin-nav {
  flex-wrap: wrap;
  gap: .35rem;
  padding: .65rem;
  background: #f7f2e8;
  box-shadow: 0 3px 12px rgb(61 43 14 / 4%);
}
.admin-nav a, .admin-nav button { color: #59451f; font-size: .9rem; }
.admin-nav a:hover, .admin-nav a:focus-visible, .admin-nav button:hover { color: var(--gold-dark); background: #eee3d1; }
.admin-nav form { display: flex; margin-left: auto; }
.admin-nav .admin-nav-dropdown { flex: 0 0 auto; }
.admin-nav .dropdown-menu { min-width: 14rem; padding: .5rem; border-color: var(--line); box-shadow: var(--shadow); }
.admin-nav .dropdown-menu a { display: block; padding: .55rem .7rem; }
.offer-editor-backdrop { position: fixed; inset: 0; z-index: 1040; background: rgb(0 0 0 / 72%); }
.offer-editor {
  position: fixed;
  z-index: 1041;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(560px, calc(100vw - 2rem));
  max-height: min(92vh, 760px);
  flex-direction: column;
  overflow: hidden;
  transform: translate(-50%, -50%);
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: .8rem;
  color: #382d1a;
  background: #f5d083;
  box-shadow: 0 24px 70px rgb(0 0 0 / 35%);
}
.offer-editor-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; padding: 1rem 1.25rem .25rem; }
.offer-editor-header h2 { margin: 0; font-size: 1.2rem; }
.offer-editor-close { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; color: #59451f; font-size: 1.4rem; line-height: 1; text-decoration: none; }
.offer-editor-close:hover { background: rgb(255 255 255 / 30%); }
#offer-editor-form { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; }
.offer-editor-content { min-height: 0; overflow-y: auto; padding: .5rem 1.25rem 1rem; }
.offer-field { display: flex; min-width: 0; flex-direction: column; gap: .3rem; margin-bottom: .65rem; color: #382d1a; font-family: Georgia, "Times New Roman", serif; font-size: .82rem; }
.offer-field > span { font-weight: 600; }
.offer-field > span b { color: #8c4b14; }
.offer-field > span small { font-weight: 400; }
.offer-editor .form-control, .offer-editor .form-select {
  min-height: 2.45rem;
  border-color: rgb(123 88 34 / 35%);
  border-radius: .5rem;
  color: #382d1a;
  background-color: rgb(255 255 255 / 15%);
  font-family: inherit;
  font-size: .82rem;
}
.offer-editor .form-control::placeholder { color: rgb(75 60 36 / 55%); }
.offer-editor textarea.form-control { min-height: 3rem; }
.offer-image-upload { position: relative; display: flex; min-height: 7.25rem; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; overflow: hidden; border: 1px dashed rgb(123 88 34 / 40%); border-radius: .7rem; color: #59451f; cursor: pointer; text-align: center; }
.offer-image-upload:hover { background: rgb(255 255 255 / 18%); }
.offer-image-upload img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.offer-upload-icon { font-family: Arial, sans-serif; font-size: 1.6rem; line-height: 1.2; }
.offer-image-upload strong { font-size: .78rem; font-weight: 500; }
.offer-image-upload small { font-size: .7rem; opacity: .75; }
.offer-category-picker { position: relative; }
.offer-category-picker summary, .offer-advanced > summary { padding: .55rem .75rem; border: 1px solid rgb(123 88 34 / 35%); border-radius: .5rem; background: rgb(255 255 255 / 15%); cursor: pointer; list-style: none; }
.offer-category-picker summary::-webkit-details-marker, .offer-advanced > summary::-webkit-details-marker { display: none; }
.offer-category-picker summary::after { float: right; content: "⌄"; }
.offer-category-picker[open] summary { border-radius: .5rem .5rem 0 0; }
.offer-category-options, .offer-product-options { display: grid; max-height: 9rem; gap: .35rem; overflow-y: auto; padding: .65rem .75rem; border: 1px solid rgb(123 88 34 / 35%); border-top: 0; border-radius: 0 0 .5rem .5rem; background: #f8dfa9; }
.offer-category-options label, .offer-product-options label { display: flex; align-items: center; gap: .5rem; font-size: .82rem; }
.offer-advanced { margin: .25rem 0 .7rem; }
.offer-advanced-content { display: grid; gap: .65rem; padding: .7rem .25rem .1rem; }
.offer-advanced fieldset { min-width: 0; }
.offer-advanced legend { margin-bottom: .4rem; font-family: Georgia, "Times New Roman", serif; font-size: .82rem; font-weight: 600; }
.offer-switch { display: inline-flex; align-items: center; gap: .55rem; margin-top: .25rem; font-family: Georgia, "Times New Roman", serif; font-size: .86rem; font-weight: 600; }
.offer-switch input { width: 2rem; height: 1rem; margin: 0; appearance: none; border: 1px solid #b88a35; border-radius: 99px; background: #e6c27a; cursor: pointer; transition: background .15s ease; }
.offer-switch input::before { display: block; width: .8rem; height: .8rem; margin: .05rem; border-radius: 50%; background: white; content: ""; transition: transform .15s ease; }
.offer-switch input:checked { background: #c58b25; }
.offer-switch input:checked::before { transform: translateX(1rem); }
.offer-editor-actions { display: flex; flex: 0 0 auto; justify-content: flex-end; gap: .5rem; padding: .75rem 1.25rem 1rem; background: #f5d083; }
.offer-editor-actions .btn { font-family: Georgia, "Times New Roman", serif; font-size: .85rem; }
@media (max-width: 575.98px) {
  .offer-editor { width: calc(100vw - 1rem); max-height: 96vh; border-radius: .65rem; }
  .offer-editor-header { padding-inline: 1rem; }
  .offer-editor-content { padding-inline: 1rem; }
  .offer-editor-actions { padding-inline: 1rem; }
}
.metric-card { padding: 1.4rem; background: linear-gradient(145deg, #fff, #faf5ea); }
.metric-card p { font-size: .9rem; font-weight: 600; }
.metric-card strong { font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.table-responsive { border: 1px solid var(--line); border-radius: .8rem; background: white; }
.table { margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .85rem .9rem; }
.table thead th { white-space: nowrap; background: #f8f4ec; }
.table tbody tr:last-child > * { border-bottom: 0; }
.alert { border-radius: .75rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
  align-items: stretch;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  min-height: 400px;
  padding: clamp(1.5rem, 5vw, 4.75rem);
  border: 1px solid #ecdfc9;
  border-radius: 1.25rem !important;
  background: linear-gradient(120deg, #faf4e9, #fff 65%);
  text-align: left;
  box-shadow: var(--shadow-soft);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero h1 { max-width: 680px; margin: .35rem 0 1.1rem; font-size: clamp(2.7rem, 5.3vw, 4.7rem); }
.hero .lead { max-width: 560px; margin: 0 0 1.6rem; color: var(--muted); font-size: 1.12rem; }
.hero-image-wrap { min-height: 300px; overflow: hidden; border: 8px solid rgb(255 255 255 / 75%); border-radius: 1rem 5rem 1rem 5rem; box-shadow: var(--shadow); }
.hero-image { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.section-space { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section-space > h2, .section-space .d-flex h2 { margin-bottom: 0; font-size: clamp(1.65rem, 3vw, 2.15rem); }
.category-card, .product-card, .offer-card { border-color: var(--line); border-radius: 1rem; box-shadow: var(--shadow-soft); }
.product-card img, .product-placeholder { height: clamp(190px, 22vw, 260px); }
.category-card img { height: clamp(130px, 15vw, 190px); }
.product-card .card-body { padding: 1.25rem; }
.product-card h3 { font-size: 1.2rem; }
.rate-panel { border-color: var(--line); border-radius: 1rem; background: #f8f3e9; }
.contact-page, .about-page { padding-block: clamp(1rem, 3vw, 2.5rem); }
.contact-heading { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.contact-heading h1, .about-heading h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); }
.contact-card { height: 100%; }
.about-story { max-width: 820px; margin-inline: auto; }
.about-visit-card { max-width: none; }
.about-signoff { color: var(--gold-dark); }
.auth-card.mx-auto { margin-block: 1rem; }
.auth-card h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.whatsapp-link { right: clamp(.75rem, 2vw, 1.5rem); bottom: clamp(.75rem, 2vw, 1.5rem); }

/* In-store billing and invoice */
.billing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: .9rem; background: linear-gradient(120deg, #fbf6ed, #fff); }
.billing-form { display: grid; gap: 1.25rem; }
.billing-panel { min-width: 0; padding: clamp(1.1rem, 2.5vw, 1.75rem); border: 1px solid var(--line); border-radius: 1rem; background: white; box-shadow: var(--shadow-soft); }
.billing-section-heading { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); align-items: start; gap: .85rem; margin-bottom: 1.35rem; }
.billing-section-heading h2 { margin: 0 0 .25rem; font-size: 1.5rem; }
.billing-section-heading p { margin: 0; color: var(--muted); font-size: .9rem; }
.billing-step { display: grid; width: 2.55rem; height: 2.55rem; place-items: center; border: 1px solid #e8d9bc; border-radius: 50%; color: var(--gold-dark); background: #fbf6ed; font-size: .82rem; font-weight: 700; }
.billing-section-heading-actions { grid-template-columns: 2.75rem minmax(0, 1fr) auto; align-items: center; }
.billing-choice-row { margin-inline: 0; }
.billing-choice-row > fieldset { min-width: 0; margin: 0; padding: clamp(1.1rem, 2.5vw, 1.75rem); }
.billing-choice-row > fieldset > .billing-panel { height: 100%; }
.billing-panel legend { float: none; width: auto; margin: 0 0 1rem; color: var(--ink); font-family: "Playfair Display", Georgia, serif; font-size: 1.2rem; font-weight: 600; }
.choice-pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice-pill { position: relative; display: inline-flex; cursor: pointer; }
.choice-pill input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-pill span { display: inline-flex; min-height: 2.6rem; align-items: center; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 99px; color: #5e5548; background: #fff; transition: .15s ease; }
.choice-pill input:checked + span { border-color: var(--gold-dark); color: var(--gold-dark); background: #f7f0e2; box-shadow: inset 0 0 0 1px var(--gold-dark); }
.choice-pill input:focus-visible + span { outline: 3px solid #c99742; outline-offset: 3px; }
.billing-status { min-height: 1.4em; margin-top: .75rem; color: var(--muted); }
.bill-items-list { display: grid; gap: 1rem; margin-top: 1.15rem; }
.bill-line { min-width: 0; padding: clamp(1rem, 2vw, 1.4rem); border: 1px solid #e9dfcf; border-radius: .85rem; background: #fcfaf6; }
.bill-line-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.bill-line-heading h3 { margin: 0; font-size: 1.15rem; }
.bill-line .form-check-input { margin-top: .2rem; }
.billing-summary-layout { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(0, 1.5fr); align-items: start; gap: 1.25rem; }
.billing-adjustments { display: grid; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: #fcfaf6; }
.billing-preview { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: white; }
.billing-preview h3 { margin: 0 0 1rem; font-size: 1.2rem; }
.billing-totals-grid { margin: 0; }
.billing-total { height: 100%; padding: .75rem; border: 1px solid #eee6d9; border-radius: .65rem; background: #fcfaf6; }
.billing-total span { color: var(--muted); font-size: .78rem; }
.billing-total strong { margin-top: .2rem; color: #403522; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.billing-total-grand { border-color: #d7c19a; background: #f6efdf; }
.billing-total-grand strong { color: var(--gold-dark); font-size: 1.35rem; }
.billing-preview .table { min-width: 840px; font-size: .84rem; }
.billing-preview .table th, .billing-preview .table td { padding: .65rem; }
.billing-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.invoice-card { padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1rem; background: white; box-shadow: var(--shadow-soft); }
.invoice-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.invoice-header h2 { margin-bottom: .5rem; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.invoice-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.invoice-table-wrap { margin-top: 1rem; }
.invoice-table { min-width: 760px; }
.invoice-total { display: flex; align-items: baseline; justify-content: flex-end; gap: 1.5rem; margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: .75rem; background: #f7f0e2; }
.invoice-total span { color: #5f5137; font-weight: 600; }
.invoice-total strong { color: var(--gold-dark); font-family: "Playfair Display", Georgia, serif; font-size: 1.8rem; font-variant-numeric: tabular-nums; }

@media (min-width: 1400px) {
  .admin-site-header .navbar { max-width: 1800px; padding-inline: clamp(1rem, 6vw, 7.5rem); }
  .navbar-expand-xxl { flex-wrap: nowrap; justify-content: space-between; }
  .navbar-expand-xxl .navbar-brand { order: 0; flex: 1 1 auto; }
  .navbar-expand-xxl .header-actions { order: 1; }
  .navbar-expand-xxl .navbar-toggler { display: inline-flex; }
  .navbar-expand-xxl .navbar-collapse { order: 2; }
  .navbar-expand-xxl .offcanvas {
    --bs-offcanvas-width: min(86vw, 22.5rem);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 1045;
    display: flex !important;
    width: var(--bs-offcanvas-width) !important;
    height: 100vh !important;
    flex-direction: column;
    visibility: hidden !important;
    overflow-y: auto;
    color: var(--ink);
    background: #f5d083 !important;
    border-left: 1px solid rgb(87 62 20 / 18%) !important;
    transform: translateX(100%) !important;
    transition: transform .3s ease-in-out, visibility .3s ease-in-out;
  }
  .navbar-expand-xxl .offcanvas.showing,
  .navbar-expand-xxl .offcanvas.show:not(.hiding) {
    visibility: visible !important;
    transform: none !important;
  }
  .navbar-expand-xxl .offcanvas-header { display: flex; justify-content: flex-end; padding: 1rem 1.25rem .25rem; }
  .navbar-expand-xxl .drawer-heading { display: none; }
  .navbar-expand-xxl .drawer-close {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid #b78b3c;
    border-radius: 50%;
    color: #513d1b;
    background: transparent;
    font-size: 1.65rem;
    line-height: 1;
  }
  .navbar-expand-xxl .offcanvas-body { display: flex; flex-direction: column; padding: .5rem 1.25rem 1.25rem; overflow-y: auto; }
  .navbar-expand-xxl .drawer-account {
    display: flex;
    min-height: 4.2rem;
    align-items: center;
    gap: .85rem;
    margin-bottom: .85rem;
    padding: .7rem .85rem;
    border-radius: .8rem;
    color: var(--ink);
    background: #f8f5f0;
    text-decoration: none;
  }
  .drawer-account-icon { display: grid; width: 1.5rem; place-items: center; color: #756c5c; }
  .drawer-account-icon svg { width: 1.25rem; height: 1.25rem; }
  .drawer-account strong, .drawer-account small { display: block; }
  .drawer-account strong { font-family: "Playfair Display", Georgia, serif; font-size: .98rem; font-weight: 500; }
  .drawer-account small { color: #82786b; font-family: Georgia, "Times New Roman", serif; font-size: .88rem; }
  .navbar-expand-xxl .navbar-nav { flex-direction: column; align-items: stretch !important; gap: .12rem; padding-block: 0; }
  .navbar-expand-xxl .navbar-nav .nav-link {
    display: flex;
    min-height: 3.1rem;
    align-items: center;
    gap: .85rem;
    padding: .55rem .85rem;
    border-radius: .75rem;
    color: #282319;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
  }
  .navbar-expand-xxl .navbar-nav .nav-link:hover,
  .navbar-expand-xxl .navbar-nav .nav-link[aria-current="page"] { color: #282319; background: #f8f5f0; }
  .navbar-expand-xxl .navbar-nav .nav-link svg { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
  .navbar-expand-xxl .navbar-nav .nav-sub-link { min-height: 2.7rem; padding-left: 1.2rem; }
  .navbar-expand-xxl .navbar-nav .nav-sub-link svg { width: 1.05rem; height: 1.05rem; }
  .navbar-expand-xxl .admin-navbar-dropdown .dropdown-menu {
    position: static;
    width: 100%;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none !important;
  }
  .navbar-expand-xxl .admin-navbar-dropdown .dropdown-item { padding-left: 2.9rem; }
  .navbar-expand-xxl .drawer-logout {
    display: block;
    margin-top: auto;
    padding-top: .9rem;
    border-top: 1px solid rgb(104 77 30 / 20%);
  }
  .navbar-expand-xxl .drawer-logout button {
    display: flex;
    width: 100%;
    min-height: 3.1rem;
    align-items: center;
    gap: .85rem;
    padding: .55rem .85rem;
    border: 0;
    color: #cf342f;
    background: transparent;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    text-align: left;
  }
  .navbar-expand-xxl .drawer-logout svg { width: 1.25rem; height: 1.25rem; }
  .offcanvas-backdrop.show { opacity: .78; }
}
@media (max-width: 1399.98px) {
  .site-header { backdrop-filter: none; }
  .navbar-expand-xxl { flex-wrap: nowrap; justify-content: space-between; }
  .navbar-expand-xxl .navbar-brand { order: 0; flex: 1 1 auto; }
  .navbar-expand-xxl .header-actions { order: 1; }
  .navbar-expand-xxl .navbar-toggler { display: inline-flex; }
  .navbar-expand-xxl .navbar-collapse { order: 2; }
  .navbar-expand-xxl .navbar-brand > .brand-copy { min-width: 0; overflow: hidden; }
  .navbar-expand-xxl .brand-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .navbar-expand-xxl .header-cart, .navbar-expand-xxl .account-chip, .navbar-expand-xxl .header-logout { display: none; }
  .navbar-expand-xxl .offcanvas {
    --bs-offcanvas-width: min(86vw, 22.5rem);
    color: var(--ink);
    background: #f5d083;
    border-left: 1px solid rgb(87 62 20 / 18%);
  }
  .admin-site-header .account-chip,
  .admin-site-header .header-logout { display: none; }
  .navbar-expand-xxl .offcanvas-header { display: flex; justify-content: flex-end; padding: 1rem 1.25rem .25rem; }
  .navbar-expand-xxl .drawer-heading { display: none; }
  .navbar-expand-xxl .drawer-close {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid #b78b3c;
    border-radius: 50%;
    color: #513d1b;
    background: transparent;
    font-size: 1.65rem;
    line-height: 1;
  }
  .navbar-expand-xxl .offcanvas-body { display: flex; flex-direction: column; padding: .5rem 1.25rem 1.25rem; overflow-y: auto; }
  .navbar-expand-xxl .drawer-account {
    display: flex;
    min-height: 4.2rem;
    align-items: center;
    gap: .85rem;
    margin-bottom: .85rem;
    padding: .7rem .85rem;
    border-radius: .8rem;
    color: var(--ink);
    background: #f8f5f0;
    text-decoration: none;
  }
  .drawer-account-icon { display: grid; width: 1.5rem; place-items: center; color: #756c5c; }
  .drawer-account-icon svg { width: 1.25rem; height: 1.25rem; }
  .drawer-account strong, .drawer-account small { display: block; }
  .drawer-account strong { font-family: "Playfair Display", Georgia, serif; font-size: .98rem; font-weight: 500; }
  .drawer-account small { color: #82786b; font-family: Georgia, "Times New Roman", serif; font-size: .88rem; }
  .navbar-expand-xxl .navbar-nav { align-items: stretch !important; gap: .12rem; padding-block: 0; }
  .navbar-expand-xxl .navbar-nav .nav-link {
    display: flex;
    min-height: 3.1rem;
    align-items: center;
    gap: .85rem;
    padding: .55rem .85rem;
    border-radius: .75rem;
    color: #282319;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
  }
  .navbar-expand-xxl .navbar-nav .nav-link:hover,
  .navbar-expand-xxl .navbar-nav .nav-link[aria-current="page"] { color: #282319; background: #f8f5f0; }
  .navbar-expand-xxl .navbar-nav .nav-link svg { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
  .navbar-expand-xxl .navbar-nav .nav-sub-link { min-height: 2.7rem; padding-left: 1.2rem; }
  .navbar-expand-xxl .navbar-nav .nav-sub-link svg { width: 1.05rem; height: 1.05rem; }
  .navbar-expand-xxl .admin-navbar-dropdown .dropdown-menu {
    position: static;
    width: 100%;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none !important;
  }
  .navbar-expand-xxl .admin-navbar-dropdown .dropdown-item { padding-left: 2.9rem; }
  .navbar-expand-xxl .drawer-logout {
    display: block;
    margin-top: auto;
    padding-top: .9rem;
    border-top: 1px solid rgb(104 77 30 / 20%);
  }
  .navbar-expand-xxl .drawer-logout button {
    display: flex;
    width: 100%;
    min-height: 3.1rem;
    align-items: center;
    gap: .85rem;
    padding: .55rem .85rem;
    border: 0;
    color: #cf342f;
    background: transparent;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    text-align: left;
  }
  .navbar-expand-xxl .drawer-logout svg { width: 1.25rem; height: 1.25rem; }
  .offcanvas-backdrop.show { opacity: .78; }
}
@media (max-width: 767.98px) {
  .navbar { min-height: 68px; }
  .customer-fixed-shortcuts {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: minmax(3.2rem, auto);
    min-height: 4rem;
    overflow-x: hidden;
    padding: .2rem .2rem max(.2rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    border-radius: .85rem .85rem 0 0;
    background: #f5d083;
    box-shadow: 0 -4px 18px rgb(52 39 18 / 8%);
  }
  .customer-fixed-shortcuts a {
    display: flex;
    position: relative;
    min-width: 0;
    min-height: 3.2rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    border-radius: .55rem;
    color: #665735;
    font-size: .62rem;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
  }
  .customer-fixed-shortcuts a:hover,
  .customer-fixed-shortcuts a[aria-current="page"] { color: #a76e0d; }
  .customer-fixed-shortcuts a[aria-current="page"] svg { stroke-width: 2.2; }
  .customer-fixed-shortcuts svg {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
  }
  .customer-fixed-shortcuts .shortcut-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .customer-fixed-shortcuts .shortcut-count {
    position: absolute;
    top: .05rem;
    right: 12%;
    display: grid;
    min-width: 1rem;
    height: 1rem;
    place-items: center;
    padding-inline: .2rem;
    border-radius: 999px;
    color: white;
    background: #795821;
    font-size: .58rem;
    line-height: 1;
  }
}
@media (max-width: 1199.98px) {
  .site-header { backdrop-filter: none; }
  .navbar-expand-xl { flex-wrap: nowrap; justify-content: space-between; }
  .navbar-expand-xl .navbar-brand { order: 0; flex: 1 1 auto; }
  .navbar-expand-xl .header-actions { order: 1; }
  .navbar-expand-xl .navbar-toggler { display: inline-flex; }
  .navbar-expand-xl .navbar-collapse { order: 2; }
  .navbar-expand-xl .navbar-brand > .brand-copy { min-width: 0; overflow: hidden; }
  .navbar-expand-xl .brand-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .navbar-expand-xl .header-cart, .navbar-expand-xl .account-chip, .navbar-expand-xl .header-logout { display: none; }
  .navbar-expand-xl .offcanvas-xl {
    --bs-offcanvas-width: min(88vw, 24rem);
    color: var(--ink);
    background: #ffe082 !important;
    border-left: 1px solid rgb(87 62 20 / 18%);
    transform: translate3d(100%, 0, 0);
    transition: transform 300ms ease-in-out;
  }
  .navbar-expand-xl .offcanvas-xl.show:not(.hiding),
  .navbar-expand-xl .offcanvas-xl.showing {
    transform: translate3d(0, 0, 0);
  }
  .admin-site-header .account-chip,
  .admin-site-header .header-logout { display: none; }
  .navbar-expand-xl .offcanvas-header { display: flex; justify-content: space-between; padding: 1rem 1.25rem .25rem; }
  .navbar-expand-xl .drawer-heading { color: #513d1b; font-family: "Playfair Display", Georgia, serif; font-size: 1.15rem; }
  .navbar-expand-xl .drawer-close {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid #b78b3c;
    border-radius: 50%;
    color: #513d1b;
    background: transparent;
    font-size: 1.65rem;
    line-height: 1;
  }
  .navbar-expand-xl .offcanvas-body { display: flex; flex-direction: column; padding: .5rem 1.25rem 1.25rem; overflow-y: auto; }
  .navbar-expand-xl .drawer-account {
    display: flex;
    min-height: 4.2rem;
    align-items: center;
    gap: .85rem;
    margin-bottom: .85rem;
    padding: .7rem .85rem;
    border-radius: .8rem;
    color: var(--ink);
    background: #f8f5f0;
    text-decoration: none;
  }
  .navbar-expand-xl .navbar-nav { align-items: stretch !important; gap: .12rem; padding-block: 0; }
  .navbar-expand-xl .navbar-nav .nav-link {
    display: flex;
    min-height: 3.1rem;
    align-items: center;
    gap: .85rem;
    padding: .55rem .85rem;
    border-radius: .75rem;
    color: #282319;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
  }
  .navbar-expand-xl .navbar-nav .nav-link:hover,
  .navbar-expand-xl .navbar-nav .nav-link[aria-current="page"] { color: #282319; background: #f8f5f0; }
  .navbar-expand-xl .navbar-nav .nav-link svg { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
  .navbar-expand-xl .navbar-nav .nav-sub-link { min-height: 2.7rem; padding-left: 1.2rem; }
  .navbar-expand-xl .navbar-nav .nav-sub-link svg { width: 1.05rem; height: 1.05rem; }
  .navbar-expand-xl .admin-navbar-dropdown .dropdown-menu {
    position: static;
    width: 100%;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none !important;
  }
  .navbar-expand-xl .admin-navbar-dropdown .dropdown-item { padding-left: 2.9rem; }
  .navbar-expand-xl .drawer-logout { display: block; margin-top: auto; padding-top: .9rem; border-top: 1px solid rgb(104 77 30 / 20%); }
  .navbar-expand-xl .drawer-logout button {
    display: flex;
    width: 100%;
    min-height: 3.1rem;
    align-items: center;
    gap: .85rem;
    padding: .55rem .85rem;
    border: 0;
    color: #cf342f;
    background: transparent;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    text-align: left;
  }
  .navbar-expand-xl .drawer-logout svg { width: 1.25rem; height: 1.25rem; }
  .offcanvas-backdrop.show { opacity: .78; }
}
@media (min-width: 1200px) {
  .navbar-expand-xl { flex-wrap: wrap; }
  .navbar-expand-xl .navbar-toggler { display: none; }
  .navbar-expand-xl .navbar-collapse { flex-basis: 100%; justify-content: center; }
  .navbar-expand-xl .offcanvas-header,
  .navbar-expand-xl .drawer-account,
  .navbar-expand-xl .drawer-logout { display: none !important; }
  .navbar-expand-xl .offcanvas-body { display: flex; padding: 0; overflow: visible; }
  .navbar-expand-xl .navbar-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: .1rem; }
  .navbar-expand-xl .navbar-nav .nav-link { padding-inline: .5rem; font-size: .88rem; }
  .navbar-expand-xl .admin-navbar-dropdown .dropdown-menu { position: absolute; width: auto; margin: var(--bs-dropdown-spacer) 0 0; border: var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color); background: var(--bs-dropdown-bg); box-shadow: var(--shadow); }
  .navbar-expand-xl .admin-navbar-dropdown .dropdown-item { padding-left: .7rem; }
}
@media (min-width: 768px) {
  .customer-fixed-shortcuts { display: none; }
}
@media (max-width: 575.98px) {
  .navbar-expand-xl .brand-copy strong { max-width: 13rem; }
  .brand-mark { width: 2.6rem; height: 2.6rem; }
  .brand-mark svg { width: 1.35rem; height: 1.35rem; }
  .navbar-expand-xl .offcanvas-xl { --bs-offcanvas-width: min(88vw, 22.5rem); }
}
@media (max-width: 1199.98px) {
  .admin-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
  .admin-nav a, .admin-nav button { text-align: center; }
  .admin-nav form { justify-content: center; margin-left: 0; }
}
@media (max-width: 767.98px) {
  #main-content { padding-inline: 1rem; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; padding: clamp(1.4rem, 6vw, 2.5rem); text-align: left; }
  .hero-image-wrap { min-height: 220px; border-radius: .9rem 3rem .9rem 3rem; }
  .hero-image { min-height: 220px; max-height: 300px; }
  .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .billing-summary-layout { grid-template-columns: 1fr; }
  .billing-section-heading-actions { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .billing-section-heading-actions > button { grid-column: 2; justify-self: start; }
  .invoice-header { flex-direction: column; }
  .invoice-actions { justify-content: flex-start; }
}
@media (max-width: 575.98px) {
  .navbar-brand { max-width: calc(100% - 4.5rem); font-size: 1rem; }
  .brand-logo { height: 36px; max-width: 56px; }
  .billing-toolbar, .billing-submit-row { align-items: stretch; flex-direction: column; }
  .billing-toolbar .btn, .billing-submit-row .btn { width: 100%; }
  .billing-panel { padding: 1rem; }
  .choice-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-pill span { justify-content: center; }
  .billing-submit-row { text-align: center; }
  .invoice-actions .btn { flex: 1 1 auto; }
  .whatsapp-link { right: .75rem; width: 2.85rem; height: 2.85rem; }
  .whatsapp-link svg { width: 1.7rem; height: 1.7rem; }
}
@media (max-width: 991.98px) {
  body:not(.admin-layout) .whatsapp-link { bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .admin-layout .whatsapp-link { bottom: calc(4.75rem + env(safe-area-inset-bottom)); }
}
@media print {
  @page { size: landscape; margin: 12mm; }
  .site-header, .site-footer, .admin-heading, .admin-nav, .invoice-actions, .whatsapp-link,
  .report-controls, .report-actions { display: none !important; }
  #main-content { width: 100%; max-width: none; min-height: 0; padding: 0 !important; }
  .invoice-card { border: 0; box-shadow: none; }
  .report-output .table-responsive { overflow: visible; border: 0; }
  .report-table { min-width: 0; font-size: 7pt; }
  .report-table > :not(caption) > * > * { padding: 3pt; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .offcanvas, .offcanvas-xl { transition: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ── Trust Badges ──────────────────────────────────────────────────── */
.trust-badges { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-badge { padding: 1.25rem 1rem; }
.trust-badge-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--cream, #fdf8f0); margin: 0 auto 1rem; color: var(--gold-dark, #a07832); }
.trust-badge-title { font-size: 1rem; font-weight: 650; margin-bottom: .25rem; }
.trust-badge-desc { font-size: .875rem; color: var(--muted); margin: 0; }

/* ── Category card placeholder ─────────────────────────────────────── */
.category-card-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: clamp(130px,15vw,190px); background: var(--cream, #fdf8f0); font-size: 1.5rem; font-weight: 700; color: var(--gold-dark, #a07832); border-radius: .75rem .75rem 0 0; }

/* ── Visit Our Store ───────────────────────────────────────────────── */
.visit-store-card { background: var(--cream, #fdf8f0); border: 1px solid var(--line); }
.visit-store-address { font-style: normal; display: flex; align-items: flex-start; gap: .25rem; color: var(--ink); }
.visit-store-phone { display: inline-flex; align-items: center; color: var(--gold-dark, #a07832); font-weight: 600; text-decoration: none; margin-bottom: .5rem; gap: .25rem; }
.visit-store-phone:hover { text-decoration: underline; }
.visit-store-map-link { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; border: 1px solid #6c757d; border-radius: .5rem; background: #fff; }
.visit-store-map-link:hover { border-color: var(--gold-dark, #a07832); background: var(--cream, #fdf8f0); }

/* ── Enquiry admin ─────────────────────────────────────────────────── */
.enquiry-status-badge { display: inline-block; padding: .2em .6em; border-radius: .4em; font-size: .8rem; font-weight: 600; }
.enquiry-status-new { background: #fff3cd; color: #856404; }
.enquiry-status-in_progress { background: #cfe2ff; color: #084298; }
.enquiry-status-resolved { background: #d1e7dd; color: #0a3622; }
.enquiry-status-closed { background: var(--line, #e8e0d4); color: var(--muted); }

/* Admin product ledger */
.product-ledger-filters { display: flex; flex: 1 1 100%; flex-wrap: wrap; align-items: end; gap: .55rem; }
.product-ledger-filters label { display: grid; min-width: 7rem; gap: .2rem; margin: 0; font-size: .75rem; font-weight: 600; }
.product-ledger-filters .product-ledger-search { flex: 1 1 13rem; }
.product-ledger-filters .form-control, .product-ledger-filters .form-select { min-height: 2.25rem; padding-block: .3rem; font-size: .82rem; }
.product-ledger-summary { margin: .65rem 0; font-size: .85rem; font-weight: 600; }
.product-ledger-scroll { overflow-x: auto; border: 1px solid #8e887e; border-radius: 0; }
.product-ledger-table { width: 100%; min-width: 1020px; table-layout: fixed; border-color: #b7b0a5; font-size: .78rem; }
.product-ledger-table > :not(caption) > * > * { height: 2.55rem; padding: .35rem .4rem; border-color: #b7b0a5; line-height: 1.25; vertical-align: middle; }
.product-ledger-table thead th { height: 2.65rem; color: #29251f; background: #f2f0eb; font-weight: 700; }
.product-ledger-table tbody td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-ledger-table .btn { padding: .2rem .35rem; font-size: .72rem; }
.ledger-col-number { width: 6%; }
.ledger-col-id { width: 6%; }
.ledger-col-name { width: 14%; }
.ledger-col-category { width: 10%; }
.ledger-col-metal { width: 7%; }
.ledger-col-purity { width: 6%; }
.ledger-col-weight { width: 7%; }
.ledger-col-quantity { width: 7%; }
.ledger-col-status { width: 8%; }
.ledger-col-making { width: 8%; }
.ledger-col-actions { width: 14%; }
.product-ledger-pagination { display: flex; justify-content: flex-end; margin-top: .8rem; }
.product-ledger-pagination .pagination { flex-wrap: wrap; gap: .15rem; }
.product-ledger-pagination .page-link { min-width: 2rem; text-align: center; }
@media (max-width: 575.98px) {
  .product-ledger-filters > label { flex: 1 1 8rem; }
  .product-ledger-filters .product-ledger-search { flex-basis: 100%; }
  .product-ledger-pagination { justify-content: center; }
}

/* Shared admin ledger tables */
.ledger-toolbar { margin-bottom: .35rem; }
.ledger-filters {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  align-items: end;
  gap: .55rem;
}
.ledger-filters label {
  display: grid;
  min-width: 7rem;
  gap: .2rem;
  margin: 0;
  font-size: .75rem;
  font-weight: 600;
}
.ledger-filters .ledger-search { flex: 1 1 13rem; }
.ledger-filters .form-control,
.ledger-filters .form-select {
  min-height: 2.25rem;
  padding-block: .3rem;
  font-size: .82rem;
}
.ledger-summary {
  margin: .65rem 0;
  font-size: .85rem;
  font-weight: 600;
}
.ledger-scroll {
  overflow-x: auto;
  border: 1px solid #8e887e;
  border-radius: 0;
}
.ledger-table {
  width: 100%;
  min-width: 1080px;
  margin-bottom: 0;
  border-color: #b7b0a5;
  font-size: .78rem;
}
.ledger-table > :not(caption) > * > * {
  height: 2.55rem;
  padding: .35rem .4rem;
  border-color: #b7b0a5;
  line-height: 1.25;
  vertical-align: middle;
}
.ledger-table thead th {
  height: 2.65rem;
  color: #29251f;
  background: #f2f0eb;
  font-weight: 700;
  white-space: nowrap;
}
.ledger-table tbody td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ledger-table .ledger-number {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.ledger-table td:first-child { text-align: center; }
.ledger-table .btn {
  padding: .2rem .35rem;
  font-size: .72rem;
}
.ledger-table .ledger-actions {
  min-width: 13rem;
  overflow: visible;
  white-space: nowrap;
}
.ledger-table .ledger-actions form { display: inline-flex; vertical-align: middle; }
.ledger-table .ledger-actions .input-group { display: flex; min-width: 18rem; }
.ledger-table.rate-history-table { min-width: 0; }
.ledger-table.rate-history-table th, .ledger-table.rate-history-table td { white-space: normal; }
.ledger-bills { min-width: 1320px; }
.ledger-scrap { min-width: 1180px; }
.ledger-categories { min-width: 950px; }
.ledger-making { min-width: 900px; }
.ledger-customers { min-width: 1280px; }
.ledger-orders { min-width: 1280px; }
.ledger-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin: .65rem 0;
}
.ledger-footer .ledger-summary { margin: 0; }
.ledger-pagination { display: flex; justify-content: flex-end; }
.ledger-pagination .pagination { flex-wrap: wrap; gap: .15rem; }
.ledger-pagination .page-link { min-width: 2rem; text-align: center; }
@media (max-width: 575.98px) {
  .ledger-filters > label { flex: 1 1 8rem; }
  .ledger-filters .ledger-search { flex-basis: 100%; }
  .ledger-footer { justify-content: center; }
  .ledger-footer .ledger-summary { flex-basis: 100%; text-align: center; }
  .ledger-pagination { justify-content: center; }
}

.worker-whatsapp-action { display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.worker-whatsapp-icon { width: 1.15em; height: 1.15em; flex: none; }
.worker-whatsapp-icon path:first-child { fill: none; stroke: currentColor; stroke-width: 2; }
.worker-whatsapp-icon path:last-child { fill: currentColor; }

.mfg-orders-results.is-loading { opacity: .55; pointer-events: none; transition: opacity 120ms; }
.mfg-orders-results .ledger-footer { margin-top: .75rem; }

/* Manufacturing Reports */
.mfg-report-page { --mfg-navy: #172554; --mfg-gold: #c5a04a; --mfg-grey: #f3f4f6; --mfg-text: #1f2937; }
.mfg-report-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding-bottom: .85rem; border-bottom: 2px solid var(--mfg-gold); }
.mfg-report-heading h1 { color: var(--mfg-navy); }
.mfg-export-button { min-width: 7.5rem; border: 1px solid var(--mfg-navy); color: #fff; background: var(--mfg-navy); font-weight: 600; }
.mfg-export-button:hover, .mfg-export-button:focus-visible, .mfg-export-button.show, .mfg-export-button:disabled { border-color: var(--mfg-gold); color: #fff; background: var(--mfg-navy); }
.mfg-report-filters { margin-bottom: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--mfg-grey); }
.mfg-report-filters .form-label { margin-bottom: .2rem; color: var(--mfg-text); font-weight: 600; }
.mfg-report-filter-actions { display: flex; align-items: flex-end; gap: .5rem; }
.mfg-report-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) repeat(2, minmax(0, 1.6fr)); gap: .75rem; margin-bottom: 1.25rem; }
.mfg-report-card { display: flex; flex-direction: column; gap: .1rem; padding: .8rem .9rem; border: 1px solid var(--line); border-top: 3px solid var(--mfg-gold); border-radius: .5rem; background: #fff; }
.mfg-report-card strong { color: var(--mfg-navy); font-size: 1.3rem; font-variant-numeric: tabular-nums; line-height: 1.25; }
.mfg-report-card span { color: var(--mfg-text); font-size: .78rem; font-weight: 600; }
.mfg-report-card small { color: var(--muted); font-size: .72rem; }
.mfg-ledger { overflow: hidden; margin-bottom: 1.75rem; border: 1px solid var(--line); border-radius: .75rem; background: #fff; }
.mfg-ledger-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1rem; }
.mfg-ledger-toolbar h2 { color: var(--mfg-navy); }
.mfg-ledger-table { min-width: 1900px; color: var(--mfg-text); font-size: .82rem; }
.mfg-ledger-table thead th { padding: .55rem .6rem; border-bottom: 2px solid var(--mfg-gold); color: #fff; background: var(--mfg-navy); font-size: .74rem; font-weight: 600; vertical-align: middle; }
.mfg-ledger-table tbody td { padding: .5rem .6rem; border-color: #e5e7eb; }
.mfg-ledger-table tbody tr:nth-child(even) td { background: var(--mfg-grey); }
.mfg-ledger-table tbody td { font-variant-numeric: tabular-nums; }
.mfg-ledger-table th.mfg-ledger-sticky, .mfg-ledger-table td.mfg-ledger-sticky { position: sticky; left: 0; z-index: 1; white-space: nowrap; box-shadow: 1px 0 0 var(--line); }
.mfg-ledger-table td.mfg-ledger-sticky { background: #fff; font-weight: 600; }
.mfg-sort-link { display: inline-flex; align-items: center; gap: .3rem; color: #fff; text-decoration: none; }
.mfg-sort-link:hover, .mfg-sort-link:focus-visible { color: var(--mfg-gold); }
.mfg-sort-link span { color: #94a3b8; font-size: .65rem; }
.mfg-sort-link.is-active span { color: var(--mfg-gold); }
.mfg-status { display: inline-block; padding: .12rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.mfg-status-pending { color: #92400e; background: #fef3c7; }
.mfg-status-in-progress { color: #1e40af; background: #dbeafe; }
.mfg-status-completed { color: #166534; background: #dcfce7; }
.mfg-status-cancelled { color: #991b1b; background: #fee2e2; }
.mfg-ledger-footer { margin: 0; padding: .75rem 1rem; border-top: 1px solid var(--line); }
.mfg-ledger-footer .ledger-summary { display: block; font-size: .84rem; }
.mfg-ledger-footer .page-item.active .page-link { border-color: var(--mfg-navy); color: #fff; background: var(--mfg-navy); }
.mfg-ledger-footer .page-link { color: var(--mfg-navy); }
.mfg-ledger-footer .page-item.disabled .page-link { color: #9ca3af; }
.mfg-ledger-note { padding: .6rem 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.mfg-report-analytics-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.mfg-report-analytics-heading h2 { color: var(--mfg-navy); }
.mfg-report-scroll { max-height: 22rem; overflow-y: auto; }
@media (max-width: 991.98px) {
  .mfg-report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mfg-report-card-wide { grid-column: span 2; }
}
