:root {
  --navy: #071b33;
  --navy-soft: #0d2948;
  --gold: #d2a75f;
  --cream: #f7f3ea;
  --paper: #ffffff;
  --ink: #162033;
  --muted: #667085;
  --line: #d8dee8;
  --teal: #0d9488;
  --shadow: 0 18px 48px rgba(7, 27, 51, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f2f5f8;
  font-family: "Segoe UI", Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(7, 27, 51, 0.96);
  color: #fff;
  backdrop-filter: blur(10px);
}

.store-logo {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  letter-spacing: 2px;
  text-decoration: none;
}

.store-nav {
  display: flex;
  gap: 20px;
}

.store-nav a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 600;
}

.cart-button,
.primary-button,
.primary-link,
.secondary-link,
.secondary-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.cart-button {
  padding: 10px 14px;
  background: #fff;
  color: var(--navy);
}

.cart-button span {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  margin-left: 8px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--gold);
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 36px;
  align-items: center;
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(7, 27, 51, 0.96) 0%, rgba(7, 27, 51, 0.88) 42%, rgba(7, 27, 51, 0.42) 100%),
    url('/loja/hero-vitrine-lumive.webp') 62% center / cover no-repeat,
    var(--navy);
  color: #fff;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 12px 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 11vw, 140px);
  font-weight: 500;
  letter-spacing: 4px;
}

.hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-link,
.secondary-link,
.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  text-decoration: none;
}

.primary-link {
  background: var(--teal);
  color: #fff;
}

.secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.social-link {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}

.social-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.hero-panel {
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(7, 27, 51, 0.08));
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
}

.hero-card {
  margin: 28px;
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

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

.hero-card span {
  margin-top: 4px;
  color: var(--muted);
}

.section {
  padding: 44px clamp(18px, 5vw, 72px);
}

.section-head,
.about-grid,
.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.section h2 {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 44px);
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.store-search {
  width: min(420px, 100%);
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.product-card.is-order {
  border-color: rgba(210, 167, 95, 0.58);
  background: linear-gradient(180deg, #fff, #fffaf1);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  object-fit: contain;
}

.product-image.is-default,
.detail-image.is-default {
  padding: 24px;
  background: var(--navy);
}

.product-placeholder {
  display: flex;
  width: 100%;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
}

.product-body {
  padding: 16px;
}

.product-body h3 {
  min-height: 48px;
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 18px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.availability-badge.ready {
  background: rgba(13, 148, 136, 0.12);
  color: #08756d;
}

.availability-badge.order {
  background: rgba(210, 167, 95, 0.22);
  color: #8a5b12;
}

.product-description {
  min-height: 42px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.product-badge {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(210, 167, 95, 0.18);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.product-price {
  display: block;
  margin-top: 12px;
  color: var(--navy);
  font-size: 24px;
  font-weight: 800;
}

.freight-inline {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.lead-time {
  display: block;
  margin-top: 6px;
  color: #8a5b12;
  font-size: 12px;
  font-weight: 800;
}

.product-card button {
  width: 100%;
  height: 42px;
  margin-top: 14px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.product-actions button,
.product-actions a {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
}

.product-actions a {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
}

.about-grid {
  align-items: flex-start;
  background: #fff;
}

.about-grid p,
.contact-band p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.contact-band {
  margin: 0 clamp(18px, 5vw, 72px) 56px;
  padding: 34px;
  border-radius: 18px;
  background: var(--navy);
  color: #fff;
}

.contact-band h2 {
  color: #fff;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(440px, 100vw);
  height: 100vh;
  padding: 24px;
  transform: translateX(105%);
  transition: transform 0.22s ease;
  background: #fff;
  box-shadow: var(--shadow);
  overflow-y: auto;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(7, 27, 51, 0.5);
}

.hidden {
  display: none !important;
}

.cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.cart-head h2 {
  margin: 6px 0 0;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item span {
  color: var(--muted);
  font-size: 13px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quantity-control button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.freight-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.detail-note {
  margin-top: -12px;
}

.quote-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.quote-form fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.quote-form legend {
  padding: 0 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.quote-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.quote-form input,
.quote-form textarea,
.quote-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 10px;
}

.primary-button {
  min-height: 44px;
  background: var(--teal);
  color: #fff;
}

.quote-message {
  min-height: 22px;
  color: var(--teal);
  font-weight: 700;
}

.empty-state {
  margin-top: 24px;
  color: var(--muted);
}

.product-dialog {
  width: min(1040px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.product-dialog::backdrop {
  background: rgba(7, 27, 51, 0.58);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.product-dialog-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  padding: 28px;
}

.detail-image {
  width: 100%;
  max-height: 620px;
  border-radius: 12px;
  background: var(--cream);
  object-fit: contain;
}

.detail-placeholder {
  display: flex;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--cream);
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 76px;
}

.detail-copy h2 {
  margin: 8px 0 10px;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 46px);
}

.detail-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.detail-price {
  display: block;
  margin: 22px 0;
  color: var(--navy);
  font-size: 32px;
  font-weight: 900;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-actions button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.detail-actions button:first-child {
  background: var(--teal);
  color: #fff;
}

@media (max-width: 760px) {
  .store-header,
  .section-head,
  .about-grid,
  .contact-band {
    align-items: stretch;
    flex-direction: column;
  }

  .store-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-panel {
    min-height: 220px;
  }

  .product-dialog-body {
    grid-template-columns: 1fr;
  }
}
