/* =========================================================
   Onyemechi Ifende — Systems Engineer Portfolio
   Design language: technical "schematic" aesthetic —
   alternating graphite-dark and blueprint-light panels,
   terminal-style labels, and a network-topology signature.
   ========================================================= */

:root {
  /* Color tokens */
  --bg-dark: #10151b;
  --bg-dark-panel: #161d24;
  --bg-light: #eef1f0;
  --bg-light-panel: #e2e7e6;
  --line-dark: #2a343c;
  --line-light: #ccd3d2;
  --text-on-dark: #e7ecef;
  --text-on-dark-muted: #8b9aa3;
  --text-on-light: #131a20;
  --text-on-light-muted: #566067;
  --accent-amber: #f2a93b;
  --accent-amber-dim: #a97a2f;
  --accent-teal: #3fa79c;
  --accent-teal-rgb: 63, 167, 156;
  --accent-red: #e2664f;
  --muted: #8b9aa3;
  --border: #ccd3d2;

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-on-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--accent-amber);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before { content: '$'; opacity: 0.6; }
.section-light .eyebrow { color: var(--accent-amber-dim); }

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-muted);
}

/* ---------- Skip link / accessibility ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent-amber); color: #10151b;
  padding: 10px 16px; z-index: 1000; font-family: var(--font-mono);
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 3px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(16, 21, 27, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.nav-brand {
  font-family: var(--font-mono);
  color: var(--text-on-dark);
  font-size: 0.95rem;
  display: flex; align-items: center; gap: 10px;
}
.nav-brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 0 3px rgba(242,169,59,0.18);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.nav-links {
  display: flex; gap: 28px; list-style: none; margin: 0; padding: 0;
  font-family: var(--font-mono); font-size: 0.82rem;
}
.nav-links a {
  color: var(--text-on-dark-muted);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a::before { content: '/'; margin-right: 4px; color: var(--line-dark); }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--accent-amber); }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-dark); color: var(--text-on-dark);
  width: 40px; height: 40px; border-radius: 4px; font-family: var(--font-mono); cursor: pointer;
}
.nav-actions {
  display: flex; align-items: center; gap: 16px;
}
.currency-switcher select {
  background: transparent; border: 1px solid var(--line-dark); color: var(--text-on-dark-muted);
  font-family: var(--font-mono); font-size: 0.75rem; padding: 4px 8px; border-radius: 4px;
  cursor: pointer; appearance: auto;
}
.currency-switcher select:hover { border-color: var(--accent-amber); }
.currency-switcher select option { background: var(--bg-dark); color: var(--text-on-dark); }
.nav-cart {
  position: relative; color: var(--text-on-dark-muted); display: flex; align-items: center;
  transition: color 0.2s ease;
}
.nav-cart:hover { color: var(--accent-amber); }
.cart-count {
  position: absolute; top: -6px; right: -8px; background: var(--accent-amber);
  color: var(--bg-dark); font-size: 0.65rem; font-weight: 600;
  width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-family: var(--font-mono);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at 70% 30%, black 10%, transparent 70%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-status {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-teal);
  border: 1px solid rgba(63,167,156,0.35);
  background: rgba(63,167,156,0.08);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 20px;
  margin-bottom: 24px;
}
.hero-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-teal); }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 10px;
}
.hero h1 .accent { color: var(--accent-amber); }
.hero .role-line {
  font-family: var(--font-mono);
  color: var(--text-on-dark-muted);
  font-size: 1.1rem;
  margin-bottom: 22px;
}
.hero p.tagline {
  max-width: 46ch;
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 13px 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent-amber); color: #14100a; }
.btn-primary:hover { background: #ffbe57; }
.btn-outline { border-color: var(--line-dark); color: var(--text-on-dark); }
.btn-outline:hover { border-color: var(--accent-teal); color: var(--accent-teal); }
.section-light .btn-outline { border-color: var(--line-light); color: var(--text-on-light); }

/* ---------- Hero topology (signature element) ---------- */
.topology {
  width: 100%; height: auto;
  position: relative;
}
.topology .node-core circle { fill: var(--bg-dark-panel); stroke: var(--accent-amber); stroke-width: 1.5; }
.topology .node circle { fill: var(--bg-dark-panel); stroke: var(--accent-teal); stroke-width: 1.2; }
.topology .link { stroke: var(--line-dark); stroke-width: 1; }
.topology .node text, .topology .node-core text {
  font-family: var(--font-mono); fill: var(--text-on-dark); font-size: 10px;
}
.topology .pulse {
  fill: var(--accent-amber);
  animation: pulse-fade 1.6s ease-in-out infinite;
}
@keyframes pulse-fade {
  0%, 100% { opacity: 0.25; r: 3; }
  50% { opacity: 1; r: 4; }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); border-bottom: 1px solid var(--line-dark); }
.section-light { background: var(--bg-light); color: var(--text-on-light); border-bottom: 1px solid var(--line-light); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p { color: var(--text-on-light-muted); }
.section-dark .section-head p { color: var(--text-on-dark-muted); }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start;
}
.about-photo {
  aspect-ratio: 4/5;
  background: var(--bg-light-panel);
  border: 1px solid var(--line-light);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .frame-label {
  position: absolute; bottom: 10px; left: 10px;
  font-family: var(--font-mono); font-size: 0.7rem;
  background: rgba(16,21,27,0.75); color: var(--text-on-dark);
  padding: 4px 8px; border-radius: 3px;
}
.about-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px;
  margin-top: 28px;
}
.stat {
  border: 1px solid var(--line-light);
  padding: 16px; border-radius: 6px;
  background: var(--bg-light-panel);
}
.stat .num { font-family: var(--font-display); font-size: 1.7rem; color: var(--accent-amber-dim); }
.stat .label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-on-light-muted); text-transform: uppercase; }

.about-body p { margin-bottom: 1.1em; color: var(--text-on-light-muted); }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.badge {
  font-family: var(--font-mono); font-size: 0.75rem;
  border: 1px solid var(--line-light);
  padding: 6px 12px; border-radius: 20px;
  color: var(--text-on-light);
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.skill-card {
  border: 1px solid var(--line-dark);
  background: var(--bg-dark-panel);
  border-radius: 8px;
  padding: 24px;
}
.skill-card h3 {
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--accent-teal); text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.skill-item { margin-bottom: 16px; }
.skill-item:last-child { margin-bottom: 0; }
.skill-item .top-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 6px; }
.skill-item .top-row span:last-child { font-family: var(--font-mono); color: var(--text-on-dark-muted); font-size: 0.78rem; }
.meter { height: 6px; background: var(--line-dark); border-radius: 4px; overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-teal), var(--accent-amber)); border-radius: 4px; }

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.service-card {
  padding: 26px; border: 1px solid var(--line-light); border-radius: 8px;
  background: var(--bg-light-panel);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: var(--accent-teal); transform: translateY(-3px); }
.service-icon {
  width: 42px; height: 42px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-dark); color: var(--accent-amber);
  margin-bottom: 16px;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-card p { color: var(--text-on-light-muted); font-size: 0.92rem; margin: 0; }

/* ---------- Experience timeline ---------- */
.timeline { position: relative; padding-left: 28px; border-left: 1px solid var(--line-dark); }
.timeline-item { position: relative; padding-bottom: 44px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -33px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg-dark); border: 2px solid var(--accent-amber);
}
.timeline-item .range {
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--accent-teal);
  text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 6px; display: block;
}
.timeline-item h3 { font-size: 1.1rem; margin-bottom: 2px; }
.timeline-item .org { color: var(--text-on-dark-muted); font-family: var(--font-mono); font-size: 0.82rem; margin-bottom: 10px; }
.timeline-item p.desc { color: var(--text-on-dark-muted); margin: 0; max-width: 62ch; }

/* ---------- Projects ---------- */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px;
}
.project-card {
  border: 1px solid var(--line-light); border-radius: 8px; overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(19,26,32,0.08); }
.project-thumb {
  aspect-ratio: 16/10; background: var(--bg-light-panel);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-on-light-muted);
  font-family: var(--font-mono); font-size: 0.75rem;
  border-bottom: 1px solid var(--line-light);
  overflow: hidden;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 20px; }
.project-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.project-body p { color: var(--text-on-light-muted); font-size: 0.9rem; margin-bottom: 14px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag {
  font-family: var(--font-mono); font-size: 0.68rem;
  background: var(--bg-light-panel); border: 1px solid var(--line-light);
  padding: 3px 9px; border-radius: 20px; color: var(--text-on-light-muted);
}
.project-link { font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent-amber-dim); display: inline-flex; align-items: center; gap: 6px; }
.project-link:hover { color: var(--accent-teal); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-info .item { margin-bottom: 22px; }
.contact-info .item .k { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-on-dark-muted); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 4px; }
.contact-info .item .v { font-size: 1.05rem; }
.contact-info .item .v a:hover { color: var(--accent-amber); }
.social-row { display: flex; gap: 12px; margin-top: 28px; }
.social-row a {
  width: 40px; height: 40px; border: 1px solid var(--line-dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-on-dark-muted);
  transition: border-color .2s ease, color .2s ease;
}
.social-row a:hover { border-color: var(--accent-teal); color: var(--accent-teal); }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-on-dark-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px;
}
.form-group input, .form-group textarea {
  width: 100%; background: var(--bg-dark-panel); border: 1px solid var(--line-dark);
  color: var(--text-on-dark); padding: 12px 14px; border-radius: 5px; font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-teal); outline: none; }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-on-dark-muted); margin-top: 10px; }

.alert { padding: 14px 16px; border-radius: 6px; font-size: 0.9rem; margin-bottom: 20px; font-family: var(--font-mono); }
.alert-success { background: rgba(63,167,156,0.12); border: 1px solid rgba(63,167,156,0.4); color: var(--accent-teal); }


/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark); color: var(--text-on-dark-muted);
  padding: 32px 0; font-family: var(--font-mono); font-size: 0.8rem;
}
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-row a:hover { color: var(--accent-amber); }

/* ---------- Cookie Consent Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-dark);
  border-top: 1px solid var(--line-dark);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  padding: 16px 24px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-content {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-banner h4 {
  flex: 1 1 100%;
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--text-on-dark);
}
.cookie-banner p {
  flex: 1;
  min-width: 280px;
  font-size: 0.9rem;
  color: var(--text-on-dark);
  line-height: 1.5;
  margin: 0;
}
.cookie-banner p a {
  color: var(--accent-amber);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-actions .btn {
  padding: 10px 20px;
  font-size: 0.85rem;
}
@media (max-width: 480px) {
  .cookie-content {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions {
    justify-content: center;
  }
}

/* ---------- Legal Pages (Privacy Policy, Terms of Service) ---------- */
.legal-content section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-dark);
}
.legal-content section:last-child {
  border-bottom: none;
}
.legal-content h2 {
  font-size: 1.25rem;
  margin: 0 0 12px;
  color: var(--text-on-dark);
}
.legal-content h3 {
  font-size: 1rem;
  margin: 20px 0 8px;
  color: var(--accent-amber);
}
.legal-content p {
  margin: 0 0 12px;
  line-height: 1.7;
  color: var(--text-on-dark-muted);
}
.legal-content ul {
  margin: 0 0 16px;
  padding-left: 20px;
  line-height: 1.8;
}
.legal-content li {
  margin: 6px 0;
  color: var(--text-on-dark-muted);
}
.legal-content strong {
  color: var(--text-on-dark);
}
.legal-content a {
  color: var(--accent-amber);
  text-decoration: underline;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.testimonial-card {
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 24px;
  background: var(--bg-dark-panel);
}
.testimonial-stars {
  margin-bottom: 12px;
}
.testimonial-stars .star {
  color: var(--line-dark);
  font-size: 1.1rem;
}
.testimonial-stars .star.filled {
  color: var(--accent-amber);
}
.testimonial-content {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}
.testimonial-author strong {
  display: block;
  color: var(--text-on-dark);
  font-size: 0.9rem;
}
.testimonial-author span {
  color: var(--text-on-dark-muted);
  font-size: 0.8rem;
}

/* ---------- Store / Products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  border: 1px solid var(--line-light);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-light-panel);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.product-card-link:hover {
  text-decoration: none;
  color: inherit;
}
.product-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-light);
  position: relative;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--text-on-light-muted);
  background: var(--bg-light-panel);
}
.product-info {
  padding: 20px;
}
.product-name {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--text-on-light);
}
.product-desc {
  color: var(--text-on-light-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 16px;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-amber-dim);
}
.product-add-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.product-attr {
  font-size: .75rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-light-panel);
  color: var(--muted);
  font-family: var(--font-mono);
  border: 1px solid var(--line-light);
}
.product-sku {
  font-size: .7rem;
  opacity: .7;
}
.product-level {
  background: rgba(63,167,156,.1);
  color: var(--accent-teal);
  border-color: rgba(63,167,156,.2);
}

.format-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: .7rem;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.format-digital {
  background: rgba(99,102,241,.15);
  color: #818cf8;
  border: 1px solid rgba(99,102,241,.3);
}
.format-both {
  background: rgba(242,169,59,.12);
  color: var(--accent-amber);
  border: 1px solid rgba(242,169,59,.3);
}

/* Share buttons */
.product-share {
  position: relative;
}
.product-share-btn {
  background: none;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  color: var(--muted);
  font-size: .8rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: border-color .2s, color .2s;
}
.product-share-btn:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}
.share-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: var(--bg-light-panel);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 6px;
  z-index: 20;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.product-share:hover .share-dropdown,
.product-share:focus-within .share-dropdown {
  display: block;
}
.share-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: .82rem;
  color: var(--text-on-light);
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.share-dropdown a:hover {
  background: var(--bg-light);
}
.share-dropdown a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.share-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
}
.share-section .share-label {
  font-size: .85rem;
  color: var(--muted);
  font-family: var(--font-mono);
}
.share-section .share-links {
  display: flex;
  gap: 8px;
}
.share-section .share-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line-light);
  color: var(--muted);
  transition: border-color .2s, color .2s, background .2s;
}
.share-section .share-links a:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  background: rgba(63,167,156,.06);
}
.share-section .share-links a svg {
  width: 18px;
  height: 18px;
}
.size-select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-light-panel);
  color: var(--text-on-light);
  font-size: .82rem;
  font-family: var(--font-mono);
}

/* ---------- Cart ---------- */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}
.cart-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
}
.cart-table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
  vertical-align: middle;
}
.cart-table tbody tr:last-child td {
  border-bottom: none;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  overflow: hidden;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-light-panel);
  color: var(--text-on-light);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.qty-btn:hover {
  background: var(--line-light);
}
.qty-value {
  width: 36px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
}
.cart-remove-btn {
  background: none;
  border: none;
  color: var(--accent-red);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s ease;
  line-height: 1;
}
.cart-remove-btn:hover {
  background: rgba(226, 102, 79, 0.1);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- WhatsApp button ---------- */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-teal);
  color: #fff;
  box-shadow: 0 4px 12px rgba(63, 167, 156, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(63, 167, 156, 0.5);
}

/* ---------- Order Progress ---------- */
.order-progress {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 0 30px;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  text-align: center;
}
.step-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
  margin-bottom: 8px;
  transition: all .3s ease;
}
.progress-step.active .step-dot {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 4px rgba(var(--accent-teal-rgb), .2);
}
.progress-step.completed .step-dot {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  box-shadow: none;
}
.step-label {
  font-size: .7rem;
  color: var(--muted);
  max-width: 80px;
  line-height: 1.3;
}
.progress-step.active .step-label {
  color: var(--accent-teal);
  font-weight: 500;
}
.progress-step.completed .step-label {
  color: var(--accent-teal);
}
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-top: 7px;
  transition: background .3s ease;
}
.step-line.active {
  background: var(--accent-teal);
}

.alert-error {
  padding: 12px 16px;
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .2);
  border-radius: 6px;
  color: var(--accent-red);
  font-size: .9rem;
  margin-bottom: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .topology { max-width: 420px; margin: 0 auto; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .order-progress { flex-wrap: wrap; gap: 8px; }
  .step-line { display: none; }
  .nav-links {
    position: fixed; top: 64px; right: 0; left: 0;
    background: var(--bg-dark); border-bottom: 1px solid var(--line-dark);
    flex-direction: column; padding: 20px 28px; gap: 16px;
    transform: translateY(-120%); transition: transform .25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
}
@media (max-width: 600px) {
  .hero { padding: 130px 0 70px; }
  section { padding: 70px 0; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

.back-to-top {
  position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--bg-dark); color: var(--text-on-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; text-decoration: none; z-index: 50;
  opacity: 0; transition: opacity .3s; pointer-events: none;
  border: 1px solid var(--line-dark);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
