@import url("../assets/fonts/chakra-petch.css");

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  color-scheme: dark;
  font-family: 'Chakra Petch', sans-serif;
  background: #070b18;
  color: #e7edf8;
  line-height: 1.65;

  --cyan: #22d3ee;
  --blue: #2563eb;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(7, 11, 28, 0.72);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

/* ============================================================
   ANIMATED BACKGROUND
   ============================================================ */
body {
  background-color: #060913;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34, 211, 238, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(37, 99, 235, 0.1), transparent),
    radial-gradient(ellipse 40% 30% at 20% 60%, rgba(139, 92, 246, 0.07), transparent);
  background-attachment: fixed;
}

/* Animated grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
  animation: gridPulse 8s ease-in-out infinite alternate;
}

@keyframes gridPulse {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

body > * { position: relative; z-index: 1; }

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

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

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  border-bottom: 1px solid rgba(34, 211, 238, 0.12);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 40px rgba(34, 211, 238, 0.05);
  transition: box-shadow var(--transition);
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.5;
  animation: headerLine 4s ease-in-out infinite alternate;
}

@keyframes headerLine {
  from { opacity: 0.3; transform: scaleX(0.6); }
  to   { opacity: 0.8; transform: scaleX(1); }
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  color: var(--cyan);
  opacity: 0.8;
}

.logo-title {
  margin: 0.15rem 0 0;
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
  background: linear-gradient(135deg, #e7edf8 40%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.nav-links a {
  position: relative;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.03em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: translateX(-50%);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: #e7edf8;
  background: rgba(34, 211, 238, 0.07);
}

.nav-links a:hover::after {
  width: calc(100% - 1.7rem);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 4rem 0 3rem;
  overflow: hidden;
}

.hero-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 2.5rem;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.05),
    0 40px 100px rgba(3, 12, 34, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 4rem 3rem;
  text-align: center;
  overflow: hidden;
}

/* Animated glow orbs inside hero */
.hero-panel::before,
.hero-panel::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  animation: orbFloat 6s ease-in-out infinite alternate;
}

.hero-panel::before {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12), transparent 70%);
  top: -100px;
  left: -80px;
}

.hero-panel::after {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent 70%);
  bottom: -80px;
  right: -60px;
  animation-delay: -3s;
  animation-direction: alternate-reverse;
}

@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, -20px) scale(1.1); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--cyan);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(34, 211, 238, 0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.hero-panel h1 {
  position: relative;
  margin: 0 0 1.25rem;
  font-size: clamp(2.75rem, 4.5vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #c0d8f8 40%, var(--cyan) 70%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 6s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

.hero-panel .section-copy {
  position: relative;
  margin: 0 auto 2rem;
  max-width: 52rem;
  font-size: 1.05rem;
  color: #94a3b8;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.button-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.5rem 0;
  margin: 0.5rem 0;
  position: relative;
}

.button,
.filter-button {
  position: relative;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.75rem;
  min-width: 150px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
  flex: 1 1 auto;
}

.button-row .button,
.filter-row .filter-button {
  max-width: 280px;
}

/* Shimmer sweep on hover */
.button::after,
.filter-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.button:hover::after,
.filter-button:hover::after {
  transform: translateX(100%);
}

.button:hover,
.filter-button:hover {
  transform: translateY(-3px);
}

.button-primary,
.filter-button.active {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  color: #020617;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.3), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.button-primary:hover,
.filter-button.active:hover {
  box-shadow: 0 0 35px rgba(34, 211, 238, 0.5), 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.button-secondary:hover,
.filter-button:hover {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.3);
  color: #e7edf8;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.12);
}

/* ============================================================
   SECTIONS & SCROLL ANIMATION
   ============================================================ */
.section {
  padding: 4rem 0;
}

#gallery {
  margin-top: 1rem;
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 2.5vw, 2.75rem);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #e7edf8, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-copy {
  margin: 0 0 2rem;
  color: #64748b;
  max-width: 54rem;
  font-size: 0.95rem;
}

/* Fade-in from below — applied via JS IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* transition-delay สำหรับ card จัดการด้วย inline style ใน JS */

/* ============================================================
   GALLERY CARDS
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.product-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.75rem;
  padding: 1.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

/* Animated gradient border on hover */
.product-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent, rgba(34, 211, 238, 0.25), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}

/* Spotlight glow that follows mouse (enhanced via JS) */
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, 0.07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.1),
    0 20px 60px rgba(3, 12, 34, 0.5),
    0 0 40px rgba(34, 211, 238, 0.06);
}

.product-card:hover::before { opacity: 1; }
.product-card:hover::after  { opacity: 1; }

/* Cards hidden by filter */
.product-card.hide {
  display: none;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  width: fit-content;
}

.product-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: #e7edf8;
  letter-spacing: -0.01em;
}

.product-card > p {
  margin: 0 0 1.25rem;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.7;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(37, 99, 235, 0.12));
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: auto;
  letter-spacing: 0.05em;
}

.product-card img {
  width: 100%;
  border-radius: 1rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.product-card img:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(34, 211, 238, 0.15);
}

/* ============================================================
   PRICING BANNER
   ============================================================ */
.banner {
  position: relative;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.07), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 2.5rem;
  padding: 3rem;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(34, 211, 238, 0.04) 100%);
  pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  background: rgba(5, 8, 19, 0.95);
  border-top: 1px solid rgba(34, 211, 238, 0.08);
  backdrop-filter: blur(10px);
  margin-top: 2rem;
}

.footer-glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 30%, #818cf8 70%, transparent 100%);
  opacity: 0.35;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 0 2rem;
}

.footer-brand .eyebrow {
  margin-bottom: 0.5rem;
}

.footer-logo {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #e7edf8, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.footer-tagline {
  margin: 0 0 1.25rem;
  color: #475569;
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 26rem;
}

.footer-section h3 {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.footer-section p {
  margin: 0.5rem 0;
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-section a {
  color: #64748b;
  transition: color var(--transition);
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--cyan);
}

.footer-tech {
  font-size: 0.8rem;
  color: #334155;
  margin-top: 1rem;
}

.footer-tech a { color: #475569; }
.footer-tech a:hover { color: var(--cyan); }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links li { margin: 0; }

.footer-links a {
  color: #475569;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a::before {
  content: '›';
  color: var(--cyan);
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--transition);
}

.footer-links a:hover {
  color: #94a3b8;
  transform: translateX(4px);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Social icons with SVG */
.social-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  background: rgba(34, 211, 238, 0.05);
  border: 1px solid rgba(34, 211, 238, 0.12);
  color: #475569;
  text-decoration: none;
  transition: all var(--transition);
}

.social-links a:hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.35);
  color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.15);
}

/* Tech badges */
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.footer-badge {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.14);
  color: #475569;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

/* Bottom bar */
.footer-bottom {
  text-align: center;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom p {
  margin: 0;
  color: #334155;
  font-size: 0.8rem;
}

.footer-heart {
  color: #f43f5e;
  display: inline-block;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15%       { transform: scale(1.25); }
  30%       { transform: scale(1); }
  45%       { transform: scale(1.15); }
}

.component-error {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.06);
  border: 1px solid rgba(248, 113, 113, 0.15);
  border-radius: 1rem;
  padding: 1rem;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: modalFadeIn 0.25s ease forwards;
}

.modal.hidden {
  display: none;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  z-index: 1001;
  background: rgba(8, 12, 28, 0.97);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 2rem;
  max-width: 920px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.05),
    0 40px 100px rgba(3, 12, 34, 0.7),
    0 0 60px rgba(34, 211, 238, 0.06);
  animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: scale(0.94) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 1;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.3);
  color: #fca5a5;
  transform: rotate(90deg);
}

.modal-inner {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.modal-image {
  width: 100%;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.modal-image:hover {
  transform: scale(1.025);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(34, 211, 238, 0.1);
}

.modal-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-details h2 {
  margin: 0;
  font-size: 1.6rem;
  color: #e7edf8;
  letter-spacing: -0.02em;
}

.modal-body {
  color: #64748b;
  line-height: 1.85;
  font-size: 0.9rem;
  flex: 1;
}

.modal-body p  { margin: 0.6rem 0; }
.modal-body h3 { margin: 1.25rem 0 0.5rem; font-size: 1rem; color: #94a3b8; }
.modal-body ul { margin: 0.6rem 0; padding-left: 1.4rem; }
.modal-body li { margin: 0.4rem 0; }

.modal-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.modal-actions .button {
  flex: 1;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  min-width: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .nav-links { width: 100%; justify-content: center; }
  .hero-panel, .banner { padding: 2.5rem 2rem; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 1.5rem); }

  .hero-panel h1,
  .section-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }

  .button, .filter-button { flex: 1 1 100%; min-width: 0; max-width: 100%; }
  .gallery-grid { grid-template-columns: 1fr; }
  .product-card { padding: 1.5rem; }
  .banner { padding: 2rem 1.5rem; }

  .modal-inner { grid-template-columns: 1fr; padding: 1.5rem; }
  .modal-content { border-radius: 1.5rem; }
  .modal-close { width: 2.25rem; height: 2.25rem; font-size: 1.25rem; }
  .modal-actions { flex-direction: column; }
  .product-card img { max-height: 220px; object-fit: cover; }
}

@media (max-width: 640px) {
  .hero-panel, .banner { padding: 1.75rem 1.25rem; }
  .header-inner { align-items: stretch; }
  .nav-links { gap: 0.5rem; }
  .product-card { border-radius: 1.25rem; }
  .footer-content { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0 1.5rem; }
  .footer-badges { justify-content: flex-start; }
  .social-links { justify-content: flex-start; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #060913; }
::-webkit-scrollbar-thumb { background: rgba(34, 211, 238, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(34, 211, 238, 0.4); }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.15s !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   PAGINATION
   ============================================================ */
#pagination {
  margin-top: 2.5rem;
}

.pagination-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #64748b;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.page-btn:hover:not(:disabled) {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.3);
  color: var(--cyan);
}

.page-btn.active {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-color: transparent;
  color: #020617;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.3);
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-prev,
.page-next {
  padding: 0 1.1rem;
  gap: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.page-ellipsis {
  color: #334155;
  padding: 0 0.25rem;
  font-size: 0.9rem;
  line-height: 2.5rem;
}

.page-info {
  width: 100%;
  text-align: center;
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: #334155;
}

@media (max-width: 640px) {
  .page-btn { min-width: 2.25rem; height: 2.25rem; font-size: 0.8rem; }
  .page-prev, .page-next { padding: 0 0.75rem; }
}
