:root {
  --green: #04a84f;
  --green-dark: #02733f;
  --blue: #0879d7;
  --blue-dark: #064f91;
  --ink: #071217;
  --muted: #61717c;
  --paper: #f7fbfa;
  --line: rgba(7, 18, 23, 0.1);
  --glass: rgba(255, 255, 255, 0.68);
  --radius: 28px;
  --shadow: 0 24px 80px rgba(7, 18, 23, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(4, 168, 79, 0.16), transparent 28rem),
    linear-gradient(250deg, rgba(8, 121, 215, 0.18), transparent 32rem),
    linear-gradient(180deg, #f7fbfa 0%, #ffffff 48%, #edf6f8 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::selection {
  color: white;
  background: var(--blue);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.aurora {
  position: fixed;
  z-index: -1;
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.18;
  pointer-events: none;
}

.aurora-green {
  top: 12rem;
  left: -16rem;
  background: var(--green);
}

.aurora-blue {
  right: -14rem;
  top: 28rem;
  background: var(--blue);
}

.topbar {
  width: min(1180px, calc(100% - 2rem));
  margin: 0.7rem auto 0;
  color: rgba(7, 18, 23, 0.72);
  font-size: 0.84rem;
  font-weight: 720;
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(24px) saturate(1.35);
}

.site-header {
  position: sticky;
  top: 0.7rem;
  z-index: 10;
  width: min(1180px, calc(100% - 2rem));
  min-height: 78px;
  margin: 0.65rem auto 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(30px) saturate(1.45);
  box-shadow: 0 15px 48px rgba(7, 18, 23, 0.11);
}

.brand {
  width: clamp(170px, 23vw, 300px);
}

.brand img {
  width: 100%;
}

nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: clamp(0.6rem, 2vw, 1.5rem);
  color: rgba(7, 18, 23, 0.68);
  font-size: 0.93rem;
  font-weight: 760;
}

nav a,
.header-action,
.primary-button,
.ghost-button,
.category-tab,
.logo-card,
.contact-actions a {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

nav a:hover,
.header-action:hover,
.primary-button:hover,
.ghost-button:hover,
.category-tab:hover,
.logo-card:hover,
.contact-actions a:hover {
  transform: translateY(-2px);
}

.header-action,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.15rem;
  border-radius: 999px;
  color: white;
  border: 0;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 16px 36px rgba(8, 121, 215, 0.24);
  font-weight: 830;
  cursor: pointer;
}

.page-grid {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: min(780px, calc(100vh - 7rem));
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.88fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2.2rem, 5vw, 4.6rem) 0 4rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.35rem;
  font-size: clamp(3.2rem, 6vw, 6rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.2vw, 4.25rem);
  line-height: 1;
  font-weight: 880;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.2rem;
  line-height: 1.08;
  font-weight: 840;
}

.hero-lead,
.section-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: clamp(1.06rem, 1.6vw, 1.28rem);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.primary-button,
.ghost-button {
  min-height: 56px;
  padding: 0 1.35rem;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(20px);
  font-weight: 830;
}

.hero-showcase {
  position: relative;
  min-height: 0;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 38px;
  background: var(--glass);
  backdrop-filter: blur(30px) saturate(1.35);
  box-shadow: var(--shadow);
}

.hero-showcase img {
  width: 100%;
  height: 520px;
  border-radius: 30px;
  object-fit: cover;
}

.showcase-card {
  flex: 1 1 0;
  min-height: 82px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(26px);
  box-shadow: 0 12px 30px rgba(7, 18, 23, 0.1);
}

.showcase-meta {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.showcase-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.showcase-card strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.08rem;
}

.split-section,
.operation-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: start;
  padding: 5rem 0;
}

.section-copy {
  position: sticky;
  top: 8rem;
}

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

.service-card,
.operation-panel,
.contact-actions,
.photo-stack,
.location-card,
.logo-card,
.brand-dialog {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(28px) saturate(1.28);
  box-shadow: 0 18px 54px rgba(7, 18, 23, 0.08);
}

.service-card {
  min-height: 220px;
  padding: 1.25rem;
  border-radius: var(--radius);
}

.service-card span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1.8rem;
  border-radius: 15px;
  color: white;
  background: linear-gradient(135deg, var(--green), var(--blue));
  font-weight: 880;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.catalog-section {
  padding: 5rem 0;
  border-block: 1px solid rgba(7, 18, 23, 0.07);
  background: rgba(255, 255, 255, 0.42);
}

.catalog-section .section-copy {
  position: static;
  max-width: 850px;
  margin-bottom: 1.35rem;
}

.catalog-section .section-copy h2 {
  max-width: 820px;
  font-size: clamp(2.35rem, 5vw, 4.65rem);
}

.category-tabs {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.25rem 0 1rem;
  scrollbar-width: thin;
}

.category-tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(7, 18, 23, 0.72);
  background: rgba(255, 255, 255, 0.62);
  font-weight: 820;
  cursor: pointer;
}

.category-tab.is-active {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 14px 34px rgba(8, 121, 215, 0.2);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}

.logo-card {
  width: 100%;
  min-width: 0;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: 26px;
  border-color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.logo-card:hover {
  box-shadow: 0 22px 60px rgba(8, 121, 215, 0.12);
}

.logo-frame {
  width: 100%;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(7, 18, 23, 0.07);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.logo-frame img {
  width: auto;
  max-width: 88%;
  max-height: 58px;
  object-fit: contain;
}

.logo-card small {
  color: var(--muted);
  font-weight: 740;
}

.logo-card strong {
  font-size: 1.08rem;
}

.catalog-bridge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(8, 121, 215, 0.18);
  border-radius: 20px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.66);
}

.catalog-bridge span {
  display: grid;
  gap: 0.18rem;
}

.catalog-bridge small {
  color: var(--muted);
}

.catalog-bridge strong {
  white-space: nowrap;
}

.operation-section {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
}

.operation-panel,
.photo-stack,
.location-card {
  border-radius: 34px;
}

.operation-panel {
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 2rem;
}

.route span {
  min-height: 74px;
  display: grid;
  place-items: center;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.76);
  color: rgba(7, 18, 23, 0.76);
  font-weight: 830;
  text-align: center;
}

.photo-stack {
  overflow: hidden;
}

.photo-stack img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.photo-stack div {
  padding: 1.25rem;
}

.photo-stack strong,
.photo-stack span {
  display: block;
}

.photo-stack span {
  margin-top: 0.25rem;
  color: var(--muted);
}

.location-grid {
  display: grid;
  gap: 0.9rem;
}

.location-card {
  overflow: hidden;
}

.location-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  background: #eef5f1;
  transition: transform 500ms cubic-bezier(.2,.8,.2,1), filter 500ms ease;
}

.location-card:hover img,
.location-card:focus-within img {
  transform: none;
  filter: none;
}

.location-card div {
  padding: 1rem 1.15rem 1.15rem;
}

.location-card strong,
.location-card span,
.location-card a {
  display: block;
}

.location-card strong {
  line-height: 1.15;
}

.location-card span,
.location-card a {
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.45;
}

.location-card a {
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.contact-section {
  align-items: center;
  padding-top: 2rem;
}

.produce-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: start;
  padding: 3rem 0 5rem;
}

.produce-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.produce-copy > p:last-child,
.produce-grid span {
  color: var(--muted);
  line-height: 1.55;
}

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

.produce-grid article {
  min-height: 145px;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 54px rgba(7, 18, 23, 0.07);
}

.produce-grid strong,
.produce-grid span { display: block; }
.produce-grid strong { margin-bottom: 0.55rem; font-size: 1.1rem; }

.contact-actions {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 30px;
}

.contact-actions a {
  display: block;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.contact-actions span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
}

.contact-actions strong {
  display: block;
  margin-top: 0.25rem;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  padding: 1.25rem 0 0;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer img {
  width: min(260px, 48vw);
  align-self: flex-start;
}

.site-footer p {
  max-width: 690px;
  margin: 0;
  line-height: 1.5;
}

.system-access-section {
  padding: 5rem 0;
}

.system-access-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(4, 168, 79, 0.13), rgba(8, 121, 215, 0.13)),
    rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(1.3);
}

.system-access-card h2 {
  max-width: 720px;
}

.system-access-card p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
}

.system-status {
  display: grid;
  gap: 0.3rem;
  margin-top: 1.2rem;
  color: rgba(7, 18, 23, 0.68);
}

.system-status strong {
  color: var(--ink);
}

.system-actions {
  display: grid;
  gap: 0.85rem;
}

.system-login-button {
  width: 100%;
  min-height: 96px;
  display: grid;
  place-items: center;
  gap: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  color: white;
  background: linear-gradient(135deg, #071217, #0a3555);
  box-shadow: 0 18px 44px rgba(7, 18, 23, 0.16);
  font: inherit;
  font-size: 1.28rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.system-login-button.manager {
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.system-login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(7, 18, 23, 0.2);
}

.system-login-button small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
}

.erp-login-dialog {
  width: min(430px, calc(100% - 1.5rem));
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 26px;
  padding: 0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 30px 90px rgba(7, 18, 23, 0.24);
  backdrop-filter: blur(28px) saturate(1.28);
}

.erp-login-dialog::backdrop {
  background: rgba(4, 16, 22, 0.42);
  backdrop-filter: blur(12px);
}

.erp-login-panel {
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem;
}

.erp-login-panel h2 {
  margin-bottom: 0.2rem;
  font-size: 2rem;
}

.erp-login-subtitle {
  margin: -0.45rem 0 0.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.erp-login-panel input {
  width: 100%;
  min-height: 54px;
  padding: 0 1rem;
  border: 1px solid rgba(7, 18, 23, 0.14);
  border-radius: 16px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.erp-login-panel input:focus {
  outline: 2px solid rgba(4, 168, 79, 0.24);
  border-color: rgba(4, 168, 79, 0.55);
}

.cashier-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cashier-picker[hidden] {
  display: none !important;
}

.cashier-picker button {
  min-height: 46px;
  border: 1px solid rgba(7, 18, 23, 0.12);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.92);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
}

.cashier-picker button.active {
  border-color: rgba(4, 168, 79, 0.48);
  background: linear-gradient(135deg, rgba(4, 168, 79, 0.96), rgba(0, 126, 198, 0.9));
  color: #fff;
  box-shadow: 0 14px 28px rgba(4, 168, 79, 0.18);
}

.erp-login-error {
  min-height: 18px;
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 720;
}

.erp-login-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.erp-cancel-button,
.erp-submit-button {
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.erp-cancel-button {
  color: var(--ink);
  background: #eef4f5;
}

.erp-submit-button {
  color: white;
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.brand-dialog {
  width: min(760px, calc(100% - 1.5rem));
  max-height: min(820px, calc(100vh - 1.5rem));
  overflow: auto;
  padding: clamp(1rem, 3vw, 1.7rem);
  border-radius: 32px;
  color: var(--ink);
}

.brand-dialog::backdrop {
  background: rgba(4, 16, 22, 0.38);
  backdrop-filter: blur(12px);
}

.close-dialog {
  position: sticky;
  top: 0;
  left: 100%;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: -1.6rem;
}

.dialog-head img {
  width: 150px;
  height: 86px;
  object-fit: contain;
  padding: 0.8rem;
  border: 1px solid rgba(7, 18, 23, 0.08);
  border-radius: 22px;
  background: white;
}

.dialog-head h2 {
  font-size: clamp(2rem, 7vw, 3.2rem);
}

#dialogIntro {
  color: var(--muted);
  line-height: 1.55;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.65rem;
  margin: 1.2rem 0;
}

.product-list span {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 760;
}

.dialog-cta {
  width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .topbar-inner {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .brand {
    width: min(255px, 58vw);
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .header-action {
    margin-left: auto;
  }

  .hero,
  .split-section,
  .operation-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .section-copy {
    position: static;
  }

  .hero-showcase img { height: 430px; }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .produce-section { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .topbar,
  .site-header,
  .page-grid,
  .site-footer {
    width: min(100% - 1rem, 1180px);
  }

  .topbar-inner {
    border-radius: 18px;
  }

  .site-header {
    top: 0.45rem;
    border-radius: 24px;
  }

  .brand {
    width: min(225px, 55vw);
  }

  .header-action {
    min-height: 42px;
    padding: 0 0.95rem;
  }

  .site-header {
    overflow: hidden;
  }

  .site-header nav {
    flex: 0 0 100%;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-start;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 11.5vw, 3.55rem);
    line-height: 1.04;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-actions a {
    width: 100%;
  }

  .service-grid,
  .route {
    grid-template-columns: 1fr;
  }

  .hero-showcase img { height: 330px; }
  .showcase-meta { flex-direction: column; }

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

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

  .dialog-head {
    display: block;
    margin-top: 0;
  }

  .dialog-head img {
    width: 100%;
    margin-bottom: 1rem;
  }

  .site-footer {
    flex-direction: column;
  }

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

.product-hub {
  padding: 6rem 0;
  scroll-margin-top: 7rem;
  border-block: 1px solid rgba(7, 18, 23, 0.07);
  background: rgba(255, 255, 255, 0.38);
}

.hub-header,
.brand-list-head,
.product-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
}

.hub-header {
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: end;
}

.hub-header h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.hub-header > p {
  max-width: 340px;
  margin-bottom: 0.5rem;
  color: var(--muted);
  line-height: 1.55;
}

.catalog-flow {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.catalog-flow span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(8, 121, 215, 0.14);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  font-weight: 760;
}

.catalog-flow b {
  color: var(--blue);
  font-size: 0.76rem;
}

.catalog-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 24px;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
}

.catalog-breadcrumbs button {
  padding: 0;
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

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

.rubro-card,
.brand-entry,
.product-card,
.brand-hero,
.empty-catalog,
.quote-dialog,
.product-detail-dialog {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(28px) saturate(1.25);
  box-shadow: 0 18px 54px rgba(7, 18, 23, 0.08);
}

.rubro-card {
  overflow: hidden;
  border-radius: 28px;
}

.rubro-image {
  height: 160px;
  background: #eaf3ef;
}

.rubro-image img {
  width: 100%;
  height: 100%;
  padding: 1.7rem;
  object-fit: contain;
}

.rubro-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  color: var(--blue-dark);
  font-size: 1.55rem;
  font-weight: 900;
  text-align: center;
}

.rubro-card-body {
  padding: 1.2rem;
}

.rubro-card-top,
.product-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.rubro-card-top .eyebrow {
  margin: 0;
}

.rubro-card-top strong {
  color: var(--green-dark);
  font-size: 0.82rem;
}

.rubro-card h3 {
  margin-top: 1.2rem;
  font-size: 1.45rem;
}

.rubro-card p,
.brand-entry p,
.product-card p,
.empty-catalog p {
  color: var(--muted);
  line-height: 1.5;
}

.rubro-card .ghost-button {
  width: 100%;
  margin-top: 0.75rem;
}

.brand-list-head {
  margin-bottom: 1.2rem;
}

.brand-list-head h2,
.product-toolbar h3 {
  margin-bottom: 0;
}

.quote-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  color: var(--blue-dark);
  background: white;
  font-size: 0.78rem;
}

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

.brand-entry {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  padding: 1rem;
  border-radius: 26px;
}

.brand-entry-logo {
  height: 130px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: white;
}

.brand-entry-logo img {
  max-width: 86%;
  max-height: 90px;
  object-fit: contain;
}

.brand-wordmark {
  display: block;
  padding: 0.5rem;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.brand-entry h3 {
  margin-bottom: 0.35rem;
}

.brand-entry p {
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
}

.brand-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
  min-height: 380px;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 34px;
}

.brand-hero-copy {
  padding: clamp(1.4rem, 4vw, 3rem);
}

.brand-hero-copy h2 {
  margin-bottom: 1rem;
}

.brand-hero-copy > p:not(.eyebrow) {
  max-width: 540px;
  color: var(--muted);
  line-height: 1.6;
}

.brand-hero-logo {
  width: 180px;
  height: 80px;
  display: grid;
  place-items: center;
  margin-bottom: 1.8rem;
  border-radius: 20px;
  background: white;
}

.brand-hero-logo img {
  max-width: 86%;
  max-height: 64px;
  object-fit: contain;
}

.brand-hero-image {
  min-height: 320px;
  background: #eaf3ef;
}

.brand-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: contain;
  padding: 2rem;
}

.brand-hero-image > .brand-wordmark {
  min-height: 320px;
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.brand-chips,
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.brand-chips span,
.product-tags span {
  padding: 0.38rem 0.65rem;
  border: 1px solid rgba(8, 121, 215, 0.14);
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(8, 121, 215, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-toolbar {
  margin-bottom: 1.1rem;
}

.product-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.product-filters label,
.quote-form label {
  display: grid;
  gap: 0.42rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.product-filters input,
.product-filters select,
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  font: inherit;
}

.product-filters input:focus,
.product-filters select:focus,
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 121, 215, 0.12);
}

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

.product-card {
  overflow: hidden;
  border-radius: 26px;
}

.product-image {
  height: 230px;
  display: grid;
  place-items: center;
  background: #edf5f1;
}

.product-image img {
  width: 100%;
  height: 100%;
  padding: 1rem;
  object-fit: contain;
}

.product-card-body {
  padding: 1.1rem;
}

.product-card-meta {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.product-card-meta span:last-child {
  text-align: right;
}

.product-card h3 {
  min-height: 2.35em;
  margin-top: 0.7rem;
  font-size: 1.18rem;
}

.product-card p {
  min-height: 4.5em;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
}

.product-presentation {
  display: block;
  min-height: 2.5em;
  color: var(--ink);
  font-size: 0.88rem;
}

.product-tags {
  min-height: 31px;
  margin: 0.8rem 0;
}

.product-tags span {
  color: var(--green-dark);
  border-color: rgba(4, 168, 79, 0.16);
  background: rgba(4, 168, 79, 0.09);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.product-actions button {
  flex: 1 1 140px;
  min-height: 46px;
  padding: 0 0.8rem;
  font-size: 0.84rem;
}

.empty-catalog {
  padding: 2rem;
  border-radius: 28px;
}

.empty-catalog .primary-button {
  margin-top: 0.8rem;
}

.portfolio-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.portfolio-chips span {
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(8, 121, 215, 0.16);
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  font-weight: 780;
}

.product-detail-dialog,
.quote-dialog {
  width: min(940px, calc(100% - 1.5rem));
  max-height: min(900px, calc(100vh - 1.5rem));
  overflow: auto;
  padding: clamp(1rem, 3vw, 1.8rem);
  border-radius: 32px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 1.5rem;
  align-items: start;
}

.detail-image {
  min-height: 360px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: #edf5f1;
}

.detail-image img {
  width: 100%;
  height: 360px;
  padding: 1.4rem;
  object-fit: contain;
}

.detail-copy h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.detail-copy > p:not(.eyebrow):not(.detail-note) {
  color: var(--muted);
  line-height: 1.55;
}

.detail-copy dl {
  display: grid;
  gap: 0.6rem;
  margin: 1.4rem 0;
}

.detail-copy dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.detail-copy dt { color: var(--muted); }
.detail-copy dd { margin: 0; text-align: right; font-weight: 800; }
.detail-note { color: var(--green-dark); font-size: 0.9rem; font-weight: 800; }

.related-products {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.related-products > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.related-products button {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.quote-dialog-content h2 { margin-bottom: 0.7rem; }
.quote-notice { color: var(--muted); line-height: 1.5; }
.quote-items { display: grid; gap: 0.55rem; margin: 1rem 0 1.2rem; }
.quote-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem; border: 1px solid var(--line); border-radius: 16px; background: white; }
.quote-item strong { flex: 1; }
.quote-item span { color: var(--muted); font-size: 0.84rem; }
.quote-item button { border: 0; color: var(--blue-dark); background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.empty-quote { margin: 0; color: var(--muted); }
.quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.form-wide { grid-column: 1 / -1; }

@media (max-width: 920px) {
  .rubro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-list-grid,
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-hero { grid-template-columns: 1fr; }
  .brand-hero-image { min-height: 260px; }
}

@media (max-width: 580px) {
  .product-hub { padding: 4rem 0; }
  .hub-header,
  .brand-list-head,
  .product-toolbar { display: block; }
  .hub-header > p { margin-top: 1rem; }
  .hub-header .primary-button,
  .brand-list-head .primary-button,
  .product-toolbar .primary-button { width: 100%; margin-top: 1rem; }
  .rubro-grid,
  .brand-list-grid,
  .product-grid,
  .product-filters,
  .catalog-flow,
  .quote-form { grid-template-columns: 1fr; }
  .brand-entry { grid-template-columns: 1fr; }
  .brand-entry-logo { height: 100px; }
  .brand-hero-logo { width: 150px; }
  .brand-hero-image { min-height: 220px; }
  .brand-hero-image img { min-height: 220px; padding: 1rem; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-image { min-height: 250px; }
  .detail-image img { height: 250px; }
  .quote-item { align-items: flex-start; flex-wrap: wrap; }
  .quote-item span { width: 100%; }
  .form-wide { grid-column: auto; }
  .catalog-bridge { align-items: flex-start; flex-direction: column; }
  .catalog-bridge strong { white-space: normal; }
}
