:root {
  --bg: #111827;
  --panel: #1f2937;
  --panel-soft: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --light: #ffffff;
  --line: #d7dde6;
  --accent: #f59e0b;
  --accent-dark: #b45309;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  color: var(--light);
  background: rgba(17, 24, 39, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  font-weight: 800;
}

.logo-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: #111827;
  background: var(--accent);
  border-radius: 6px;
}

.nav {
  display: flex;
  gap: 0.85rem;
  color: #e5e7eb;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover {
  color: var(--accent);
}

.hero {
  min-height: 520px;
  display: grid;
  align-items: center;
  padding: 4.5rem 1rem;
  color: var(--light);
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.78)),
    repeating-linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0 10px, transparent 10px 24px),
    var(--bg);
}

.hero-content,
.section,
.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.hero-text {
  max-width: 640px;
  margin: 1.25rem 0 0;
  color: #d1d5db;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
}

.button-primary {
  color: #111827;
  background: var(--accent);
}

.button-primary:hover {
  background: #fbbf24;
}

.button-secondary {
  color: var(--light);
  border-color: rgba(255, 255, 255, 0.35);
}

.button-secondary:hover {
  border-color: var(--accent);
}

.section {
  padding: 4rem 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.section-heading p:not(.kicker) {
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.filter-button {
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  color: #334155;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.filter-button.is-active {
  color: #111827;
  background: var(--accent);
  border-color: var(--accent);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #e5e7eb;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

.product-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.category {
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.price {
  font-weight: 800;
}

.description {
  margin: 0;
  color: var(--muted);
}

.card-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: auto;
}

.card-actions .button {
  width: 100%;
  font-size: 0.92rem;
}

.card-actions .button-secondary {
  color: #111827;
  border-color: var(--line);
}

.split {
  display: grid;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
}

.text-block {
  color: #334155;
}

.contact-section {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100% - 1120px) / 2));
  background: var(--panel-soft);
  border-block: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.contact-item {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-item span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-item strong {
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  padding-block: 1.5rem;
  color: #cbd5e1;
  background: var(--bg);
}

body:has(.site-footer) {
  background: var(--bg);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  width: 100%;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.floating-whatsapp {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  color: #111827;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  font-weight: 900;
}

@media (min-width: 640px) {
  .site-header {
    padding-inline: 1.5rem;
  }

  .product-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 920px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }

  .contact-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.button-ghost {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

.button-ghost:hover {
  border-color: var(--accent);
  color: #111827;
}

.cart-toggle {
  position: relative;
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--light);
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
}

.cart-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cart-badge {
  position: absolute;
  top: -0.45rem;
  right: -0.45rem;
  min-width: 1.35rem;
  padding: 0.1rem 0.35rem;
  color: #111827;
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: none;
  background: rgba(0, 0, 0, 0.55);
}

.cart-overlay.is-open {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  width: min(400px, 100vw);
  flex-direction: column;
  color: var(--light);
  background: #1f2937;
  box-shadow: -18px 0 45px rgba(0, 0, 0, 0.28);
}

.cart-drawer[hidden] {
  display: none;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cart-header h2 {
  font-size: 1.35rem;
}

.cart-close {
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.cart-close:hover {
  color: var(--light);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-empty {
  margin: 2rem 0;
  color: #cbd5e1;
  text-align: center;
}

.cart-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cart-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  margin: 0;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-price {
  margin: 0.1rem 0 0;
  color: #cbd5e1;
  font-size: 0.85rem;
}

.cart-item-sub {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

.cart-item-qty {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.cart-item-qty button {
  width: 26px;
  height: 26px;
  color: var(--light);
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
}

.cart-item-qty button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cart-remove {
  color: #cbd5e1;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.cart-remove:hover {
  color: #f87171;
}

.cart-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  color: #cbd5e1;
}

.cart-total strong {
  color: var(--accent);
}

.checkout-fields {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.checkout-input {
  width: 100%;
  min-height: 42px;
  padding: 0.65rem 0.75rem;
  color: var(--light);
  background: #374151;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  font: inherit;
}

.checkout-input:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(245, 158, 11, 0.25);
}

.btn-checkout {
  width: 100%;
}

.card-actions {
  display: flex !important;
  flex-direction: column !important;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 120;
  max-width: calc(100% - 2rem);
  padding: 0.8rem 1rem;
  color: var(--light);
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  opacity: 0;
  transform: translateX(-50%) translateY(0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-show {
  opacity: 1;
  transform: translateX(-50%);
}
