/* ============================================================
   RIM STUDIO — Design System
   Deep black + electric cyan neon showroom aesthetic
   ============================================================ */

:root {
  --bg: #050505;
  --bg-elevated: #0a0a0a;
  --bg-card: #0f0f0f;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 229, 255, 0.35);
  --text: #f5f5f5;
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-dim: rgba(255, 255, 255, 0.38);
  --cyan: #00e5ff;
  --cyan-dim: #00b8d4;
  --cyan-glow: rgba(0, 229, 255, 0.28);
  --green: #25d366;
  --green-hover: #2fe374;
  --radius: 10px;
  --radius-full: 9999px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
  --max: 1200px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, textarea, select {
  font-family: inherit;
  font-size: 0.95rem;
}

/* ---------- LAYOUT ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px) { .wrap { padding: 0 1.75rem; } }
@media (min-width: 1024px) { .wrap { padding: 0 2rem; } }

.section { padding: 4.5rem 0; }
.section-tight { padding: 3.5rem 0; }

.two-col {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* ---------- TYPE ---------- */
.h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.h4 {
  font-size: 1rem;
  font-weight: 600;
}
.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.body-lg {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.body-muted {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.utility-link {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.utility-link:hover { color: #33ebff; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo img {
  height: 32px;
  width: auto;
}
@media (min-width: 640px) { .logo img { height: 36px; } }

.nav-desktop {
  display: none;
  gap: 1.75rem;
}
@media (min-width: 980px) { .nav-desktop { display: flex; } }
.nav-desktop a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.78);
  transition: color 0.2s;
}
.nav-desktop a:hover,
.nav-desktop a.active { color: var(--cyan); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s, background 0.2s;
}
.nav-icon:hover {
  color: var(--cyan);
  background: rgba(255,255,255,0.05);
}
.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--cyan);
  color: #000;
  font-size: 0.6rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}
.cart-count.show { display: flex; }

.nav-wa {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(0,229,255,0.4);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cyan);
  transition: background 0.2s;
}
.nav-wa:hover { background: rgba(0,229,255,0.1); }
@media (min-width: 640px) { .nav-wa { display: flex; } }

.menu-toggle {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
}
@media (min-width: 980px) { .menu-toggle { display: none; } }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: #000;
  padding: 0.5rem 0 1.25rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.mobile-nav .wa-mobile {
  margin: 1rem 1.25rem 0;
  display: flex;
  justify-content: center;
  background: var(--green);
  color: #000;
  font-weight: 600;
  padding: 0.85rem;
  border-radius: var(--radius-full);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  transition: all 0.22s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.75rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--cyan);
  color: #000;
}
.btn-primary:hover {
  background: #33ebff;
  box-shadow: 0 0 22px var(--cyan-glow);
}
.btn-outline {
  border-color: rgba(0,229,255,0.5);
  color: var(--cyan);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(0,229,255,0.1);
  border-color: var(--cyan);
}
.btn-ghost {
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); }
.btn-whatsapp {
  background: var(--green);
  color: #000;
}
.btn-whatsapp:hover { background: var(--green-hover); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: #0a0a0a;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.55) 45%, #050505 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 5rem 0 4rem;
}
.hero-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.hero p {
  margin-top: 1.25rem;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}
.hero-ctas {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- PAGE HEADER ---------- */
.page-header {
  padding: 5.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.page-header .body-lg {
  margin-top: 1rem;
  max-width: 38rem;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* ---------- CATEGORY GRID ---------- */
.category-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
.category-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  min-height: 220px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.category-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.category-card-content {
  position: relative;
  z-index: 1;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.category-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.category-card .cat-link {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

/* ---------- PRODUCT GRID ---------- */
.product-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 560px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  display: block;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.28s, border-color 0.28s, box-shadow 0.28s;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 36px rgba(0, 229, 255, 0.07);
}
.product-media {
  aspect-ratio: 1;
  background: #121212;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #121212;
}
.product-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
}
.product-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.35;
}
.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--cyan);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  z-index: 2;
}
.product-body {
  padding: 1.15rem 1.2rem 1.35rem;
}
.product-body h3 {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card:hover .product-body h3 { color: var(--cyan); }
.product-meta {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.price-row {
  margin-top: 0.85rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.price {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-display);
}
.price-was {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

/* ---------- FILTERS ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.filter-chip {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  transition: all 0.2s;
}
.filter-chip:hover {
  border-color: rgba(0,229,255,0.4);
  color: var(--cyan);
}
.filter-chip.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #000;
}

/* ---------- WHY GRID ---------- */
.why-grid {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 600px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
}
.why-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.why-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- STATS ---------- */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}
.stat .num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cyan);
  font-family: var(--font-display);
}
.stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  padding: 4.5rem 0;
  text-align: left;
  border-top: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(0,229,255,0.04), transparent 50%, rgba(0,229,255,0.03));
}
.cta-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- FORMS ---------- */
.field {
  margin-bottom: 1.15rem;
}
.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  transition: border-color 0.2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--cyan);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.form-note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.form-success {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.3);
  border-radius: 8px;
  color: var(--cyan);
  font-size: 0.9rem;
}
.form-success.show { display: block; }

/* ---------- CART / CHECKOUT ---------- */
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.summary-row.total {
  border-bottom: none;
  padding-top: 0.9rem;
  margin-top: 0.3rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.empty-state h3 {
  margin-bottom: 0.5rem;
}
.empty-state p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ---------- MAP ---------- */
.map-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #111;
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--cyan); }

/* ---------- LEGAL ---------- */
.legal-content h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
}
.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.65;
}
.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
.legal-table th {
  color: var(--text-muted);
  font-weight: 500;
  width: 38%;
}

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #080808;
  padding: 3.25rem 0 1.75rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  gap: 2.25rem;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-grid h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.9);
}
.footer-grid p,
.footer-grid address,
.footer-grid li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: normal;
}
.footer-grid a:hover { color: var(--cyan); }
.footer-logo {
  height: 30px;
  width: auto;
  margin-bottom: 0.9rem;
}
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ---------- FLOATING WHATSAPP ---------- */
.wa-float {
  position: fixed;
  bottom: 1.35rem;
  right: 1.35rem;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 26px rgba(37, 211, 102, 0.55);
}
.wa-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--cyan);
  color: #000;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- UTIL ---------- */
.text-center { text-align: center; }
