/* ===== Linkify3D — styles ===== */

:root {
  --blue: #3a5cf0;
  --purple: #9b3ff0;
  --pink: #ef3fb8;
  --gradient: linear-gradient(120deg, var(--blue), var(--purple), var(--pink));
  --ink: #171a2b;
  --ink-soft: #565b78;
  --bg: #ffffff;
  --bg-soft: #f6f7fc;
  --bg-card: #ffffff;
  --border: #e6e8f4;
  --shadow: 0 10px 30px -12px rgba(23, 26, 43, 0.12);
  --radius: 16px;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand-name {
  font-family: "Poppins", "Inter", sans-serif;
  line-height: 1.15;
  margin: 0;
}
p { margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(155, 63, 240, 0.5);
}
.btn-primary:hover { box-shadow: 0 10px 26px -6px rgba(155, 63, 240, 0.65); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-text {
  background: transparent;
  color: var(--ink-soft);
}
.btn-text:hover { color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px -10px rgba(23, 26, 43, 0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 42px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.cart-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--bg-soft);
}
.cart-toggle svg { width: 20px; height: 20px; }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.cart-badge[data-empty="true"] { display: none; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Banner ---------- */
.site-banner {
  width: 100%;
  line-height: 0;
}
.banner-img {
  width: 100%;
  aspect-ratio: 1600 / 639;
  object-fit: cover;
  object-position: center;
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
  background:
    radial-gradient(600px 300px at 85% -10%, rgba(155, 63, 240, 0.12), transparent),
    radial-gradient(500px 260px at 5% 0%, rgba(58, 92, 240, 0.1), transparent);
}
.hero-wrap { text-align: center; max-width: 780px; }
.eyebrow {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-family: "Poppins", sans-serif; font-size: 1.5rem; font-weight: 700; }
.hero-stats span { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Section shared ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 600px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; margin-bottom: 12px; }
.section-lead { color: var(--ink-soft); line-height: 1.6; }
.services { background: var(--bg-soft); }

/* ---------- Products toolbar ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid transparent;
}
.tab.active {
  background: var(--gradient);
  color: #fff;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  min-width: 220px;
}
.search-box svg { width: 17px; height: 17px; color: var(--ink-soft); flex-shrink: 0; }
.search-box input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.9rem;
  width: 100%;
  color: var(--ink);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink-soft);
}
.chip.active {
  border-color: var(--purple);
  color: var(--purple);
  background: rgba(155, 63, 240, 0.08);
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.state-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid transparent;
}
.page-btn:hover:not(:disabled) { border-color: var(--purple); color: var(--purple); }
.page-btn.active {
  background: var(--gradient);
  color: #fff;
}
.page-btn:disabled { opacity: 0.4; cursor: default; }
.page-ellipsis {
  color: var(--ink-soft);
  font-size: 0.88rem;
  padding: 0 4px;
}
.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--purple);
  margin: 0 auto 14px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  overflow: hidden;
}
.product-media img {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  object-fit: contain;
  object-position: center;
}
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eafff1;
  color: #16a34a;
}
.product-badge.quote { background: #fff3e0; color: #c2760a; }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-brand { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--purple); }
.product-name { font-size: 1.02rem; font-weight: 600; }
.product-sub { font-size: 0.82rem; color: var(--ink-soft); }
.product-desc { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.4; }
.product-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.price { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.1rem; }
.price.on-request { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink);
  flex-shrink: 0;
}
.add-btn svg { width: 14px; height: 14px; }
.add-btn:hover { border-color: var(--purple); color: var(--purple); }
.add-btn.in-cart { background: var(--gradient); color: #fff; border-color: transparent; }

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
}
.service-icon { font-size: 1.8rem; margin-bottom: 14px; }
.service-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.service-card p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }
.services-cta { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- About ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about-text p { color: var(--ink-soft); line-height: 1.65; margin-bottom: 20px; }
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 18px; font-weight: 700; }
.about-list { display: flex; flex-direction: column; gap: 12px; }
.about-list li { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; padding-left: 22px; position: relative; }
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient);
}
.about-media {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 40px;
}

/* ---------- Contact ---------- */
.contact { background: var(--bg-soft); }
.contact-card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}
.contact-row { display: flex; flex-direction: column; gap: 4px; }
.contact-row span:first-child { font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.contact-row a { font-weight: 600; color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 20px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.4fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: 2px;
}
.footer-logo { height: 34px; width: auto; align-self: flex-start; }
.footer-address { font-size: 0.88rem; color: var(--ink-soft); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 0.88rem; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--ink); }
.footer-whatsapp { font-weight: 600; color: var(--whatsapp-dark); font-size: 0.9rem; }
.footer-policy p { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.55; }
.footer-copy { text-align: center; font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px -6px rgba(37, 211, 102, 0.6);
  z-index: 90;
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Cart panel ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 26, 43, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 199;
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 400px;
  max-width: 92vw;
  background: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: -10px 0 40px -10px rgba(23, 26, 43, 0.3);
}
.cart-panel.open { transform: translateX(0); }
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}
.cart-head h3 { font-size: 1.1rem; font-weight: 700; }
.cart-head button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink-soft); }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-empty { text-align: center; color: var(--ink-soft); font-size: 0.9rem; padding: 60px 10px; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.9rem; font-weight: 600; }
.cart-item-sub { font-size: 0.76rem; color: var(--ink-soft); margin: 2px 0 6px; }
.cart-item-price { font-size: 0.85rem; font-weight: 700; }
.cart-item-price .on-req { font-size: 0.76rem; font-weight: 600; color: var(--ink-soft); }
.qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty button {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.qty span { font-size: 0.85rem; font-weight: 600; min-width: 16px; text-align: center; }
.cart-item-remove {
  align-self: flex-start;
  color: var(--ink-soft);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cart-item-remove svg { width: 16px; height: 16px; }
.cart-item-remove:hover { color: #e0455f; }

.cart-foot {
  border-top: 1px solid var(--border);
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
}
.cart-total-row strong { font-family: "Poppins", sans-serif; font-size: 1.3rem; }
.cart-note { font-size: 0.76rem; color: var(--ink-soft); line-height: 1.4; }

/* ---------- Product modal ---------- */
.product-card { cursor: pointer; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 26, 43, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 249;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.97);
  width: 760px;
  max-width: 92vw;
  max-height: 88vh;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
}
.product-modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  box-shadow: 0 2px 10px rgba(23, 26, 43, 0.18);
  z-index: 2;
}
.modal-close:hover { color: var(--ink); }
.modal-close svg { width: 16px; height: 16px; }

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: 88vh;
  overflow-y: auto;
}
.modal-media {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.modal-media img {
  position: absolute;
  inset: 24px;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  object-fit: contain;
}
.modal-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-name { font-size: 1.3rem; font-weight: 700; }
.modal-price { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.4rem; }
.modal-price.on-request { font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }
.modal-desc { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }
.modal-qty { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.modal-qty > span:first-child { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.modal-add-btn { margin-top: 6px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 300;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-wrap { grid-template-columns: 1fr; }
  .about-media { order: -1; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-policy { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 24px 18px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav a { width: 100%; padding: 10px 0; }
  .nav-toggle { display: flex; }
  .hero { padding: 56px 0 44px; }
  .hero-stats { gap: 28px; }
  section { padding: 52px 0; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 0; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-media { aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cart-panel { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-policy { grid-column: auto; }
  .banner-img { aspect-ratio: 4 / 3; }
}
