﻿: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;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(167, 45, 32, 0.42), transparent 28%),
    radial-gradient(circle at 90% 14%, rgba(13, 109, 71, 0.48), transparent 34%),
    linear-gradient(135deg, #f7d0c4 0%, #f1bea9 36%, #d4eebf 68%, #a9dc9c 100%);
  font-family: Inter, Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  background:
    repeating-linear-gradient(45deg, transparent 0 17px, rgba(167, 45, 32, 0.18) 17px 19px),
    repeating-linear-gradient(-45deg, transparent 0 23px, rgba(13, 109, 71, 0.16) 23px 25px);
}

body { position: relative; isolation: isolate; }
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    url("palm-gold-transparent.png") right -180px top 20vh / min(640px, 64vw) auto no-repeat,
    url("palm-gold-transparent.png") left -235px top 72vh / min(700px, 70vw) auto no-repeat;
  opacity: 0.1;
  pointer-events: none;
}
body > * { position: relative; z-index: 1; }

@media (max-width: 700px) {
  body::after {
    background:
      url("palm-gold-transparent.png") right -265px top 22vh / 530px auto no-repeat,
      url("palm-gold-transparent.png") left -290px top 80vh / 560px auto no-repeat;
    opacity: 0.085;
  }
}

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("men03.jpg") 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: 150px minmax(220px, 1fr);
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  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);
}

.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: 10px;
}

.category-tabs button {
  min-height: 40px;
  padding: 10px 15px;
  color: #fff3df;
  background: linear-gradient(135deg, #1a100b, #442017);
  border: 1px solid rgba(255, 243, 216, 0.15);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  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: grid;
  place-items: center;
  color: #fff3df;
  background: linear-gradient(135deg, var(--red), var(--green));
  font-family: Cinzel, Georgia, serif;
  font-size: 52px;
  font-weight: 800;
}

.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,
.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,
.send-quote:hover {
  filter: brightness(1.06);
}

.quote-cart {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 16px;
  padding: 20px;
  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;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.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;
}

.note-field textarea {
  min-height: 105px;
  color: #fff5df;
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 243, 216, 0.16);
  resize: vertical;
}

.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;
}

.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);
}

.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;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar nav {
    gap: 12px 18px;
  }

  .topbar nav a {
    font-size: 14px;
  }

  .quote-main {
    padding-top: 122px;
  }

  .quote-card {
    grid-template-columns: 1fr;
  }

  .quote-card img,
  .image-fallback {
    height: 210px;
  }

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