﻿:root {
  --ink: #25130c;
  --cream: #fff3df;
  --paper: #fffaf1;
  --muted: #7a6353;
  --line: rgba(54, 24, 13, 0.14);
  --dark: #120b07;
  --green: #0d6d47;
  --green-soft: #cde9bd;
  --red: #a72d20;
  --red-soft: #f4c7b8;
  --gold: #e9b23f;
  --gold-bright: #ffc96a;
  --shadow: 0 24px 70px rgba(58, 25, 11, 0.2);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(240, 198, 106, 0.22), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(255, 244, 220, 0.42), transparent 34%),
    linear-gradient(135deg, #082f24 0%, #0d6d47 34%, #d7c191 72%, #fff4dc 100%);
  font-family: Inter, Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.42;
  background:
    radial-gradient(circle at 24% 26%, rgba(90, 45, 20, 0.08), transparent 10%),
    radial-gradient(circle at 68% 34%, rgba(255, 255, 255, 0.34), transparent 12%),
    radial-gradient(circle at 42% 82%, rgba(13, 109, 71, 0.08), transparent 14%);
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 8px clamp(18px, 3vw, 34px);
  background: rgba(18, 12, 8, 0.96);
  border-bottom: 1px solid rgba(255, 243, 216, 0.06);
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}

.topbar nav a {
  padding: 8px 0;
  color: rgba(255, 243, 216, 0.78);
  font-size: 16px;
  font-weight: 800;
}

.topbar nav a:hover {
  color: var(--gold-bright);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 82px;
  min-height: 38px;
  padding: 4px;
  color: rgba(255, 243, 216, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 243, 216, 0.18);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.lang-toggle span {
  display: grid;
  width: 34px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
}

.lang-toggle.is-en [data-lang-option="en"],
.lang-toggle.is-es [data-lang-option="es"] {
  color: #7c1f16;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.quote-main {
  padding: 94px clamp(16px, 4vw, 46px) 44px;
}

.quote-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 360px);
  align-items: end;
  gap: 26px;
  max-width: 1240px;
  min-height: 320px;
  margin: 0 auto 24px;
  padding: clamp(26px, 4vw, 46px);
  overflow: hidden;
  color: #fff7e6;
  background:
    linear-gradient(115deg, rgba(18, 9, 4, 0.95), rgba(73, 18, 11, 0.82)),
    url("site-specials.png") center/cover;
  border: 1px solid rgba(255, 243, 216, 0.16);
  border-radius: 8px 34px 8px 34px;
  box-shadow: var(--shadow);
}

.quote-hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(40px, 7vw, 86px);
  line-height: 0.92;
}

.quote-hero p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 247, 230, 0.82);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.quote-hero img {
  justify-self: end;
  max-height: 230px;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.32));
  animation: floatLogo 5s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quote-shell {
  max-width: 1240px;
  margin: 0 auto;
}

.quote-tools {
  display: grid;
  grid-template-columns: 180px minmax(280px, 1fr);
  gap: 18px;
  margin-bottom: 22px;
  padding: 20px;
  background: rgba(255, 250, 241, 0.72);
  border: 1px solid rgba(54, 24, 13, 0.12);
  border-radius: 30px 8px 30px 8px;
  backdrop-filter: blur(14px);
}

.selected-table {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.selected-table strong {
  display: grid;
  min-height: 48px;
  place-items: center;
  color: var(--ink);
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 21px;
}

.selected-table button {
  min-height: 34px;
  color: #211108;
  background: var(--gold);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.table-select,
.search-box,
.note-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.table-select select,
.search-box input,
.note-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.category-tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 4px 8px;
  scrollbar-color: var(--gold) rgba(18, 11, 7, 0.18);
}

.category-tabs button {
  flex: 1 1 190px;
  min-height: 58px;
  padding: 14px 20px;
  color: #fff3df;
  background: linear-gradient(135deg, #1a100b, #442017);
  border: 1px solid rgba(255, 243, 216, 0.15);
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
}

.category-tabs button.active {
  color: #24140d;
  background: var(--gold);
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 20px;
  align-items: start;
}

.quote-grid {
  display: grid;
  gap: 14px;
}

.quote-card {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  min-height: 170px;
  overflow: hidden;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(54, 24, 13, 0.12);
  border-radius: 8px 26px 8px 26px;
  box-shadow: 0 18px 42px rgba(63, 24, 10, 0.13);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.quote-card:nth-child(even) {
  border-radius: 26px 8px 26px 8px;
}

.quote-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(63, 24, 10, 0.2);
}

.quote-card img,
.image-fallback {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
}

.image-fallback {
  display: block;
  background:
    linear-gradient(135deg, rgba(8, 47, 36, 0.1), rgba(239, 211, 148, 0.34)),
    rgba(255, 250, 241, 0.84);
}

.quote-card-body {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 18px;
}

.menu-category {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-card h3 {
  margin: 0;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.05;
}

.quote-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 6px;
}

.price {
  color: #6f1f17;
  font-size: 20px;
  font-weight: 900;
}

.add-button,
.send-quote,
.note-button,
.back-link {
  min-height: 44px;
  padding: 12px 18px;
  color: #211108;
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.add-button:hover,
.note-button:hover,
.send-quote:hover {
  filter: brightness(1.06);
}

.quote-cart {
  position: sticky;
  top: 84px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
  gap: 16px;
  max-height: calc(100svh - 108px);
  padding: 20px;
  overflow: hidden;
  color: #fff5df;
  background:
    linear-gradient(155deg, rgba(18, 11, 7, 0.97), rgba(71, 24, 16, 0.96)),
    radial-gradient(circle at top right, rgba(13, 109, 71, 0.5), transparent 44%);
  border: 1px solid rgba(255, 243, 216, 0.12);
  border-radius: 28px 8px 28px 8px;
  box-shadow: var(--shadow);
}

.cart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cart-top h2 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-size: 32px;
}

.cart-clear {
  width: 42px;
  height: 42px;
  color: #fff5df;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 243, 216, 0.18);
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 10px;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}

.cart-empty {
  margin: 0;
  color: rgba(255, 245, 223, 0.7);
}

.cart-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 243, 216, 0.1);
  border-radius: 8px;
}

.cart-row strong,
.cart-row span {
  display: block;
}

.cart-row span {
  color: rgba(255, 245, 223, 0.7);
  font-size: 13px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button {
  min-width: 34px;
  height: 34px;
  color: #211108;
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.qty-controls span {
  min-width: 26px;
  color: #fff5df;
  text-align: center;
  font-weight: 900;
}

.totals {
  display: grid;
  gap: 8px;
}

.totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255, 245, 223, 0.75);
}

.grand-total {
  padding-top: 10px;
  color: #fff5df !important;
  border-top: 1px solid rgba(255, 243, 216, 0.16);
  font-size: 22px;
}

.note-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff5df;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 243, 216, 0.16);
}

.note-button strong {
  color: var(--gold-bright);
  font-size: 12px;
  text-transform: uppercase;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff5df;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 243, 216, 0.16);
}

.table-dialog,
.note-dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18, 11, 7, 0.72);
  backdrop-filter: blur(12px);
}

.table-dialog-card,
.note-dialog-card {
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
  padding: clamp(20px, 5vw, 34px);
  color: #fff5df;
  background:
    linear-gradient(155deg, rgba(18, 11, 7, 0.98), rgba(71, 24, 16, 0.96)),
    radial-gradient(circle at top right, rgba(13, 109, 71, 0.45), transparent 44%);
  border: 1px solid rgba(255, 243, 216, 0.14);
  border-radius: 8px 28px 8px 28px;
  box-shadow: var(--shadow);
}

.table-dialog-card h2,
.table-dialog-card p,
.note-dialog-card h2 {
  margin: 0;
}

.table-dialog-card h2,
.note-dialog-card h2 {
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(32px, 8vw, 54px);
  line-height: 1;
}

.table-dialog-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.45;
}

.table-dialog-card .table-select {
  color: rgba(255, 245, 223, 0.8);
}

.table-dialog-card .table-select select {
  min-height: 54px;
  font-size: 20px;
  font-weight: 900;
}

.note-dialog-card textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px 14px;
  color: #fff5df;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 243, 216, 0.16);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.note-dialog-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 16px;
  color: #211108;
  background: var(--gold);
  border-radius: 999px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  font-weight: 900;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatLogo {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@media (max-width: 900px) {
  .quote-hero,
  .quote-layout,
  .quote-tools {
    grid-template-columns: 1fr;
  }

  .quote-hero img {
    justify-self: start;
    max-height: 170px;
  }

  .quote-cart {
    position: static;
    max-height: calc(100svh - 28px);
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar nav {
    gap: 12px 18px;
  }

  .topbar nav a {
    font-size: 14px;
  }

  .quote-main {
    padding-top: 106px;
  }

  .quote-cart {
    grid-template-rows: auto minmax(118px, 1fr) auto auto auto auto;
    gap: 10px;
    max-height: calc(100svh - 18px);
    padding: 14px;
    border-radius: 18px 8px 18px 8px;
  }

  .cart-top {
    gap: 10px;
  }

  .cart-top h2 {
    font-size: 27px;
  }

  .cart-clear {
    width: 38px;
    height: 38px;
  }

  .cart-items {
    gap: 8px;
  }

  .cart-row {
    gap: 7px;
    padding: 10px;
  }

  .cart-row strong {
    font-size: 16px;
    line-height: 1.1;
  }

  .qty-controls button {
    min-width: 32px;
    height: 32px;
  }

  .totals {
    gap: 5px;
  }

  .grand-total {
    padding-top: 6px;
    font-size: 18px;
  }

  .send-quote {
    min-height: 40px;
    padding: 10px 16px;
  }

  .note-dialog-card textarea {
    min-height: 120px;
  }

  .note-dialog-actions {
    grid-template-columns: 1fr;
  }

  .quote-card {
    grid-template-columns: 1fr;
  }

  .quote-card img,
  .image-fallback {
    height: 210px;
  }

  .card-bottom {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Sticky compact quote filters */
.quote-tools {
  position: sticky;
  top: 126px;
  z-index: 90;
  max-height: calc(100svh - 138px);
  overflow-y: auto;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.category-tabs {
  max-height: 190px;
  padding-right: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.category-tabs button {
  min-height: 46px;
  padding: 10px 16px;
}

@media (max-width: 760px) {
  .quote-main {
    padding-inline: 8px;
  }

  .quote-tools {
    top: 142px;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 8px;
    margin: 0 -2px 12px;
    padding: 8px;
    border-radius: 16px;
    max-height: none;
    overflow: visible;
  }

  .selected-table {
    gap: 3px;
  }

  .selected-table span,
  .search-box span {
    font-size: 10px;
    line-height: 1;
  }

  .selected-table strong {
    font-size: 18px;
    line-height: 1;
  }

  .selected-table button {
    min-height: 28px;
    padding: 5px 8px;
    border-radius: 10px;
    font-size: 11px;
  }

  .search-box {
    gap: 4px;
  }

  .search-box input {
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 13px;
  }

  .category-tabs {
    grid-column: 1 / -1;
    flex-wrap: nowrap;
    gap: 8px;
    max-height: none;
    padding: 0 2px 3px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .category-tabs button {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 36px;
    padding: 8px 11px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.05;
    scroll-snap-align: start;
  }
}

@media (max-width: 430px) {
  .quote-tools {
    top: 136px;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 6px;
    padding: 7px;
  }

  .selected-table strong {
    font-size: 16px;
  }

  .selected-table button {
    font-size: 10px;
    padding-inline: 6px;
  }

  .category-tabs button {
    min-height: 32px;
    padding: 7px 9px;
    font-size: 11px;
  }
}

/* Mobile collapsible order viewer */
.mobile-cart-toggle {
  display: none;
}

@media (max-width: 760px) {
  body.mobile-cart-open {
    overflow: hidden;
  }

  .mobile-cart-toggle {
    display: inline-grid;
    grid-template-columns: 28px auto minmax(24px, auto);
    align-items: center;
    gap: 6px;
    justify-self: start;
    min-height: 40px;
    padding: 5px 8px 5px 5px;
    color: #fff3df;
    background: linear-gradient(145deg, rgba(18, 11, 7, 0.96), rgba(69, 27, 17, 0.94));
    border: 1px solid rgba(240, 198, 106, 0.38);
    border-radius: 999px;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    cursor: pointer;
  }

  .mobile-cart-toggle img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 50%;
  }

  .mobile-cart-toggle strong {
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    color: #211108;
    background: var(--gold);
    border-radius: 999px;
    font-size: 12px;
  }

  .mobile-cart-toggle.has-items strong {
    background: var(--gold-bright);
  }

  .quote-layout::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 8999;
    background: rgba(7, 27, 19, 0.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  body.mobile-cart-open .quote-layout::before {
    opacity: 1;
    pointer-events: auto;
  }

  .quote-cart {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 9000;
    width: min(410px, calc(100vw - 24px));
    max-height: min(78svh, 620px);
    grid-template-rows: auto minmax(112px, 1fr) auto auto auto auto;
    padding: 14px;
    border-radius: 18px;
    transform: translate(-50%, -45%) scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.mobile-cart-open .quote-cart {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .cart-top h2 {
    font-size: 24px;
  }

  .cart-top .eyebrow {
    font-size: 10px;
    margin-bottom: 6px;
  }

  .cart-clear {
    width: 36px;
    height: 36px;
  }

  .cart-items {
    max-height: none;
  }

  .cart-row {
    gap: 7px;
    padding: 10px;
  }

  .cart-row strong {
    font-size: 15px;
    line-height: 1.1;
  }

  .qty-controls button {
    width: 34px;
    height: 34px;
  }

  .totals {
    gap: 7px;
  }

  .grand-total {
    font-size: 22px;
  }

  .note-button,
  .send-quote,
  .back-link {
    min-height: 40px;
    padding-block: 9px;
  }
}

@media (max-width: 430px) {
  .mobile-cart-toggle {
    grid-template-columns: 24px minmax(0, auto) 22px;
    max-width: 128px;
    min-height: 34px;
    gap: 5px;
    padding: 4px 6px 4px 4px;
    font-size: 11px;
  }

  .mobile-cart-toggle img {
    width: 24px;
    height: 24px;
  }

  .mobile-cart-toggle strong {
    min-width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .quote-cart {
    width: calc(100vw - 18px);
    max-height: 80svh;
    padding: 12px;
  }
}

/* Quote menu header and table-first fixes */
.quote-menu-header {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.quote-menu-header .mobile-cart-toggle {
  grid-column: 2;
}

.quote-menu-header .header-actions {
  grid-column: 3;
}

.table-dialog {
  z-index: 12000;
}

.note-dialog {
  z-index: 12001;
}

body.table-dialog-open .quote-tools,
body.table-dialog-open .mobile-cart-toggle {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 760px) {
  .quote-menu-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 72px !important;
  }

  .quote-menu-header .brand-mark {
    width: 58px !important;
    min-height: 58px !important;
    padding: 5px !important;
  }

  .quote-menu-header .mobile-cart-toggle {
    justify-self: start;
  }

  body:not(.table-confirmed) .quote-menu-header .mobile-cart-toggle {
    display: none !important;
  }

  body.table-dialog-open .quote-menu-header {
    z-index: 80 !important;
  }

  body.table-dialog-open main.quote-main {
    filter: blur(1px);
  }
}

@media (max-width: 430px) {
  .quote-menu-header {
    min-height: 64px !important;
    gap: 8px !important;
  }

  .quote-menu-header .brand-mark {
    width: 50px !important;
    min-height: 50px !important;
    border-radius: 14px !important;
  }

  .quote-menu-header .lang-toggle {
    min-width: 66px !important;
    min-height: 32px !important;
  }

  .quote-menu-header .lang-toggle span {
    width: 27px !important;
    height: 24px !important;
  }
}

/* Quote categories-only sticky organization */
.quote-tools {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  grid-template-columns: 180px minmax(280px, 1fr);
  max-height: none !important;
  overflow: visible !important;
  box-shadow: none !important;
}

.category-sticky {
  position: sticky;
  top: 118px;
  z-index: 900;
  margin: 0 0 18px;
  padding: 10px 12px;
  background: rgba(255, 250, 241, 0.82);
  border: 1px solid rgba(54, 24, 13, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.category-sticky .category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 174px;
  padding: 0 4px 4px 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(18, 11, 7, 0.18);
}

.category-sticky .category-tabs button {
  flex: 1 1 180px;
  min-height: 46px;
  padding: 10px 16px;
}

body.table-dialog-open .category-sticky,
body.table-dialog-open .mobile-cart-toggle {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 760px) {
  .quote-tools {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 8px !important;
    margin: 0 0 8px !important;
    padding: 8px !important;
    border-radius: 14px !important;
  }

  .category-sticky {
    top: 72px;
    margin: 0 -4px 10px;
    padding: 7px;
    border-radius: 0 0 16px 16px;
  }

  .category-sticky .category-tabs {
    flex-wrap: nowrap;
    gap: 7px;
    max-height: none;
    padding: 0 2px 3px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  .category-sticky .category-tabs button {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.05;
    scroll-snap-align: start;
  }

  .selected-table strong {
    min-height: 36px;
    font-size: 16px;
  }

  .selected-table button {
    min-height: 27px;
  }

  .search-box input {
    min-height: 40px;
  }
}

@media (max-width: 430px) {
  .quote-tools {
    grid-template-columns: 66px minmax(0, 1fr) !important;
    gap: 6px !important;
    padding: 7px !important;
  }

  .category-sticky {
    top: 64px;
    padding: 6px;
  }

  .category-sticky .category-tabs button {
    min-height: 31px;
    padding: 6px 9px;
    font-size: 11px;
  }
}

/* Quote categories left menu like menu page */
.category-sticky {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  float: left;
  width: min(270px, 28vw);
  max-height: calc(100svh - 142px);
  margin: 0 22px 18px 0;
  padding: 16px;
  overflow-y: auto;
  background: linear-gradient(155deg, rgba(18, 11, 7, 0.96), rgba(69, 27, 17, 0.94));
  border: 1px solid rgba(255, 243, 216, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.category-sticky .category-tabs {
  display: grid;
  gap: 10px;
  max-height: none;
  padding: 0;
  overflow: visible;
}

.category-sticky .category-tabs button {
  width: 100%;
  min-height: 56px;
  padding: 13px 16px;
  text-align: left;
}

.quote-layout {
  clear: none;
}

@media (max-width: 900px) {
  .category-sticky {
    width: min(260px, 34vw);
    margin-right: 14px;
    padding: 12px;
  }
}

@media (max-width: 760px) {
  .category-sticky {
    float: none;
    width: auto;
    max-height: none;
    margin: 0 0 12px;
    padding: 10px;
  }

  .category-sticky .category-tabs {
    display: grid;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
  }

  .category-sticky .category-tabs button {
    min-height: 46px;
    padding: 10px 14px;
    font-size: 14px;
  }
}

/* Quote categories left menu floating final */
.category-sticky {
  position: sticky !important;
  top: 118px !important;
  z-index: 900 !important;
  float: left;
  width: min(270px, 28vw);
  max-height: calc(100svh - 136px);
  margin: 0 22px 18px 0;
  overflow-y: auto;
}

@media (max-width: 900px) {
  .category-sticky {
    top: 96px !important;
    width: min(260px, 34vw);
    max-height: calc(100svh - 112px);
  }
}

@media (max-width: 760px) {
  .category-sticky {
    position: sticky !important;
    top: 72px !important;
    float: none;
    width: auto;
    max-height: 280px;
    margin: 0 0 12px;
  }
}

@media (max-width: 430px) {
  .category-sticky {
    top: 64px !important;
    max-height: 250px;
  }
}

/* Quote menu no header, table language selector */
body:has(main.quote-main) main.quote-main {
  padding-top: clamp(16px, 4vw, 34px) !important;
}

.table-language-choice {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 2px;
}

.table-language-choice .lang-toggle {
  display: inline-flex;
  min-width: 82px;
  min-height: 38px;
  color: rgba(255, 243, 216, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 243, 216, 0.2);
}

.table-language-choice .lang-toggle.is-en [data-lang-option="en"],
.table-language-choice .lang-toggle.is-es [data-lang-option="es"] {
  color: #7c1f16;
  background: #fff;
}

.mobile-cart-toggle {
  display: none !important;
}

.category-sticky {
  top: 12px !important;
}

@media (max-width: 760px) {
  body:has(main.quote-main) main.quote-main {
    padding-top: 10px !important;
  }

  .table-language-choice {
    justify-content: flex-start;
  }

  .category-sticky {
    top: 8px !important;
  }
}

/* Table language choice improved */
.table-language-choice {
  display: grid;
  gap: 10px;
  justify-content: stretch;
  margin: 2px 0 4px;
}

.language-title {
  display: grid;
  gap: 2px;
  margin: 0;
  color: rgba(255, 245, 223, 0.82);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.language-title span:last-child {
  color: rgba(255, 245, 223, 0.62);
  font-size: 12px;
  text-transform: none;
}

.language-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.language-option {
  min-height: 46px;
  padding: 10px 14px;
  color: #fff3df;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 243, 216, 0.18);
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.language-option.is-active {
  color: #211108;
  background: var(--gold);
  border-color: rgba(255, 243, 216, 0.35);
}

@media (max-width: 430px) {
  .language-actions {
    gap: 8px;
  }

  .language-option {
    min-height: 42px;
    padding-inline: 10px;
  }
}


/* Mobile table-first category drilldown final */
.mobile-category-back {
  display: none;
}

@media (max-width: 760px) {
  .quote-main {
    padding-top: 10px !important;
  }

  .quote-shell {
    display: block !important;
    padding: 8px 12px 18px !important;
  }

  .quote-tools {
    display: none !important;
  }

  .category-sticky {
    position: static !important;
    float: none !important;
    width: 100% !important;
    max-height: 54svh !important;
    margin: 0 0 14px !important;
    padding: 10px !important;
    overflow-y: auto !important;
    border-radius: 8px !important;
  }

  .category-sticky .category-tabs {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .category-sticky .category-tabs button {
    width: 100% !important;
    min-height: 55px !important;
    justify-content: flex-start !important;
    padding: 12px 16px !important;
    font-size: clamp(1rem, 4.5vw, 1.2rem) !important;
  }

  .quote-layout {
    display: block !important;
    padding: 0 !important;
  }

  .quote-layout::before {
    display: none !important;
  }

  .quote-grid {
    display: none !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .quote-cart {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    z-index: auto !important;
    display: grid !important;
    grid-template-rows: auto minmax(82px, auto) auto auto auto auto !important;
    gap: 10px !important;
    padding: 20px !important;
    border-radius: 8px !important;
  }

  body.mobile-cart-open {
    overflow: auto !important;
  }

  body.mobile-cart-open .quote-cart {
    transform: none !important;
    opacity: 1 !important;
  }

  body.mobile-category-open .category-sticky,
  body.mobile-category-open .quote-cart {
    display: none !important;
  }

  body.mobile-category-open .quote-grid {
    display: grid !important;
  }

  body.mobile-category-open .mobile-category-back {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin: 0 0 12px;
    border: 0;
    border-radius: 999px;
    color: #24140d;
    background: var(--gold);
    font: 900 1.05rem/1 var(--font-sans);
    box-shadow: 0 12px 22px rgba(0, 0, 0, .18);
  }

  body.table-dialog-open .category-sticky,
  body.table-dialog-open .quote-layout,
  body.table-dialog-open .mobile-category-back {
    visibility: hidden !important;
  }
}
/* Mobile clean order start strict */
@media (max-width: 760px) {
  body:not(.mobile-category-open) main.quote-main .quote-tools,
  body:not(.mobile-category-open) main.quote-main .mobile-category-back,
  body:not(.mobile-category-open) main.quote-main .quote-grid,
  body:not(.mobile-category-open) main.quote-main .mobile-cart-toggle,
  body:not(.mobile-category-open) main.quote-main .quote-menu-header,
  body:not(.mobile-category-open) main.quote-main .quote-hero {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body:not(.mobile-category-open) main.quote-main .quote-shell {
    display: block !important;
    max-width: 430px !important;
    width: min(100%, 430px) !important;
    margin: 0 auto !important;
    padding: 10px 10px 18px !important;
  }

  body:not(.mobile-category-open) main.quote-main .category-sticky,
  body:not(.mobile-category-open) main.quote-main .quote-cart {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body:not(.mobile-category-open) main.quote-main .category-sticky {
    width: 100% !important;
    max-height: 58svh !important;
    overflow-y: auto !important;
    margin: 0 0 14px !important;
  }

  body:not(.mobile-category-open) main.quote-main .quote-layout {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body:not(.mobile-category-open) main.quote-main .quote-layout > :not(.quote-cart) {
    display: none !important;
  }

  body.mobile-category-open main.quote-main .quote-tools,
  body.mobile-category-open main.quote-main .category-sticky,
  body.mobile-category-open main.quote-main .quote-cart {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.mobile-category-open main.quote-main .quote-shell {
    max-width: 430px !important;
    width: min(100%, 430px) !important;
    margin: 0 auto !important;
    padding: 10px !important;
  }

  body.mobile-category-open main.quote-main .quote-layout,
  body.mobile-category-open main.quote-main .quote-grid,
  body.mobile-category-open main.quote-main .mobile-category-back {
    visibility: visible !important;
    pointer-events: auto !important;
  }
}
/* Mobile cart visualizer cleanup 20260614 */
@media (max-width: 760px) {
  body:not(.mobile-category-open) main.quote-main .quote-cart {
    padding: 18px 16px !important;
    gap: 12px !important;
  }

  body:not(.mobile-category-open) main.quote-main .cart-top {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }

  body:not(.mobile-category-open) main.quote-main .cart-top .clear-cart {
    display: none !important;
  }

  body:not(.mobile-category-open) main.quote-main .cart-top h2 {
    font-size: clamp(2rem, 10vw, 3rem) !important;
    line-height: .95 !important;
    margin: 0 !important;
  }

  body:not(.mobile-category-open) main.quote-main .cart-items {
    gap: 8px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body:not(.mobile-category-open) main.quote-main .cart-row {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: start !important;
    gap: 8px !important;
    min-height: 0 !important;
    padding: 12px 52px 12px 12px !important;
    border-radius: 8px !important;
  }

  body:not(.mobile-category-open) main.quote-main .cart-row h3 {
    margin: 0 !important;
    font-size: clamp(1rem, 4.8vw, 1.25rem) !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere !important;
  }

  body:not(.mobile-category-open) main.quote-main .cart-row p,
  body:not(.mobile-category-open) main.quote-main .cart-row small {
    margin: 3px 0 0 !important;
    font-size: .95rem !important;
    line-height: 1.1 !important;
  }

  body:not(.mobile-category-open) main.quote-main .qty-controls {
    display: contents !important;
  }

  body:not(.mobile-category-open) main.quote-main .qty-controls button[data-decrease],
  body:not(.mobile-category-open) main.quote-main .qty-controls button[data-increase] {
    display: none !important;
  }

  body:not(.mobile-category-open) main.quote-main .qty-controls span {
    align-self: center !important;
    justify-self: end !important;
    min-width: 28px !important;
    color: #fff5df !important;
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    text-align: right !important;
  }

  body:not(.mobile-category-open) main.quote-main .qty-controls button[data-remove] {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    font-size: .95rem !important;
    line-height: 1 !important;
  }

  body:not(.mobile-category-open) main.quote-main .cart-total-line {
    font-size: clamp(1.05rem, 5vw, 1.35rem) !important;
  }

  body:not(.mobile-category-open) main.quote-main .cart-total-line.total {
    padding-top: 8px !important;
    margin-top: 0 !important;
    font-size: clamp(1.35rem, 7vw, 1.8rem) !important;
  }

  body:not(.mobile-category-open) main.quote-main .note-button {
    display: none !important;
  }

  body:not(.mobile-category-open) main.quote-main .send-quote,
  body:not(.mobile-category-open) main.quote-main .back-link {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 1rem !important;
  }
}
/* Mobile cart extra breathing room 20260615 */
@media (max-width: 760px) {
  body:not(.mobile-category-open) main.quote-main .quote-cart {
    padding: 22px 18px 24px !important;
    gap: 18px !important;
  }

  body:not(.mobile-category-open) main.quote-main .cart-top {
    gap: 10px !important;
    margin-bottom: 4px !important;
  }

  body:not(.mobile-category-open) main.quote-main .cart-top .cart-clear {
    display: none !important;
  }

  body:not(.mobile-category-open) main.quote-main .cart-top .eyebrow {
    margin-bottom: 8px !important;
  }

  body:not(.mobile-category-open) main.quote-main .cart-top h2 {
    margin-bottom: 8px !important;
  }

  body:not(.mobile-category-open) main.quote-main .cart-items {
    margin-top: 4px !important;
    margin-bottom: 8px !important;
    gap: 12px !important;
  }

  body:not(.mobile-category-open) main.quote-main .cart-row {
    padding: 16px 58px 16px 14px !important;
    gap: 12px !important;
  }

  body:not(.mobile-category-open) main.quote-main .qty-controls button[data-remove] {
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%) !important;
  }

  body:not(.mobile-category-open) main.quote-main .totals {
    display: grid !important;
    gap: 12px !important;
    margin: 6px 0 4px !important;
  }

  body:not(.mobile-category-open) main.quote-main .cart-total-line {
    padding-block: 2px !important;
  }

  body:not(.mobile-category-open) main.quote-main .cart-total-line.total {
    margin-top: 6px !important;
    padding-top: 14px !important;
  }

  body:not(.mobile-category-open) main.quote-main .send-quote {
    margin-top: 6px !important;
  }

  body:not(.mobile-category-open) main.quote-main .back-link {
    margin-top: 2px !important;
  }
}