/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red:    #CC1E1E;
  --blue:   #1638B0;
  --yellow: #FFD100;
  --dark:   #0D0D1A;
  --dark2:  #13131F;
  --card:   #1A1A2E;
  --border: rgba(255,255,255,0.08);
  --text:   #E8E8F0;
  --muted:  #888;
  --radius: 14px;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ===== ACCENT ===== */
.accent { color: var(--red); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 8px; font-size: 0.95rem;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.2s;
  white-space: nowrap; gap: 8px;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--red); color: #fff;
}
.btn-primary:hover { background: #e02020; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(204,30,30,0.4); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-full { width: 100%; }

/* ===== NAV ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(13,13,26,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 14px 24px;
}
.nav-logo {
  font-size: 1.2rem; font-weight: 800; letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  color: var(--text);
}
.nav-links {
  display: flex; gap: 4px; list-style: none; margin-left: auto;
}
.nav-links a {
  padding: 7px 14px; border-radius: 6px; font-size: 0.9rem;
  color: var(--muted); transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--muted); flex-shrink: 0;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22cc55; animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; } 50% { opacity: 0.4; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 24px 60px;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, #0a0a18 60%, #0e1530 100%);
}
.hero-bg-grid {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    linear-gradient(var(--blue) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero::before {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22,56,176,0.18) 0%, transparent 70%);
  top: -100px; right: -100px; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(204,30,30,0.1) 0%, transparent 70%);
  bottom: -50px; left: 10%; pointer-events: none;
}
.hero-content {
  max-width: 600px; z-index: 1; position: relative;
}
.hero-label {
  font-size: 0.75rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--yellow); font-weight: 700; margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 900;
  line-height: 1.05; margin-bottom: 8px; letter-spacing: -1px;
}
.hero-by-kl {
  font-size: 1rem; color: var(--muted); margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.hero-by-kl strong { color: var(--text); }
.hero-sub {
  font-size: 1.1rem; color: var(--muted); margin-bottom: 24px; line-height: 1.7;
}
.hero-sub strong { color: var(--text); }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px;
}
.badge {
  padding: 5px 14px; border-radius: 20px; font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.5px;
}
.badge-new { background: rgba(255,209,0,0.15); color: var(--yellow); border: 1px solid rgba(255,209,0,0.3); }
.badge-auth { background: rgba(22,56,176,0.2); color: #6b9fff; border: 1px solid rgba(22,56,176,0.4); }
.badge-limited { background: rgba(204,30,30,0.15); color: #ff7070; border: 1px solid rgba(204,30,30,0.35); }
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px;
}
.visit-counter-wrap {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.vc-box {
  display: flex; flex-direction: column; align-items: flex-start;
}
.vc-num {
  font-size: 1.8rem; font-weight: 900; color: var(--yellow);
  line-height: 1;
}
.vc-label {
  font-size: 0.72rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-img-wrap {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 42%; max-width: 480px; z-index: 1;
}
.hero-img {
  width: 100%; height: auto;
  mask-image: linear-gradient(to left, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 60%, transparent 100%);
}

/* ===== SECTION BASE ===== */
.section { padding: 80px 24px; }
.section-dark { background: var(--dark2); }
.container { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900;
  margin-bottom: 12px; letter-spacing: -0.5px;
}
.section-sub {
  color: var(--muted); font-size: 1rem; max-width: 640px; margin-bottom: 48px;
  line-height: 1.7;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 40px;
}
.product-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: grid; grid-template-columns: 2fr 3fr;
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(22,56,176,0.2);
}

/* Gallery */
.product-gallery { background: #0a0a18; min-width: 0; overflow: hidden; }
.gallery-main {
  position: relative; aspect-ratio: 3/4;
  cursor: zoom-in; background: #0a0a18;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.gallery-main img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.35s, opacity 0.18s;
  touch-action: manipulation;
}
.gallery-main:hover img { transform: scale(1.06); }

/* Zoom hint icon */
.zoom-hint {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.55); color: #fff;
  border-radius: 6px; padding: 5px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0;
  transition: opacity 0.2s;
}
.gallery-main:hover .zoom-hint { opacity: 1; }

.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: #fff;
  padding: 4px 12px; border-radius: 20px;
  font-size: 0.73rem; font-weight: 700; letter-spacing: 0.5px;
}
.gallery-thumbs {
  display: flex; gap: 6px; padding: 8px;
  overflow-x: auto; background: rgba(0,0,0,0.4);
}
.thumb {
  width: 50px; height: 50px; object-fit: cover; border-radius: 5px;
  cursor: pointer; border: 2px solid transparent;
  transition: all 0.2s; flex-shrink: 0;
}
.thumb:hover { border-color: var(--blue); }
.thumb.active { border-color: var(--red); }

/* Product Info — no max-height, expand naturally */
.product-info {
  padding: 28px 28px; display: flex; flex-direction: column; gap: 11px;
  min-width: 0;
}
.product-brand {
  font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.product-name {
  font-size: 1.2rem; font-weight: 800; line-height: 1.25; color: var(--text);
}
.product-tags {
  display: flex; flex-wrap: wrap; gap: 5px;
}
.tag {
  padding: 3px 9px; border-radius: 4px; font-size: 0.7rem; font-weight: 600;
  background: rgba(255,255,255,0.07); color: var(--muted);
}
.tag-size {
  background: rgba(255,209,0,0.12); color: var(--yellow);
}
.product-specs {
  list-style: none; display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--border); padding-top: 12px;
}
.product-specs li {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.82rem; gap: 12px;
}
.spec-label { color: var(--muted); flex-shrink: 0; min-width: 90px; }
.product-specs li span:last-child { text-align: right; }
.spec-highlight { color: var(--yellow); font-weight: 700; }
.product-price {
  font-size: 1.8rem; font-weight: 900; color: var(--yellow);
  letter-spacing: -0.5px; line-height: 1;
}
.product-desc {
  font-size: 0.82rem; color: var(--muted); line-height: 1.65;
  border-top: 1px solid var(--border); padding-top: 10px;
}
.product-info .btn { margin-top: auto; }

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.feature-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 20px;
  text-align: center; transition: transform 0.3s;
}
.feature-item:hover { transform: translateY(-3px); }
.feature-icon { font-size: 1.8rem; margin-bottom: 10px; }
.feature-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.feature-item p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* ===== CONTACT FORM ===== */
.form-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
  max-width: 760px; margin: 0 auto;
}
.form-row { display: flex; gap: 20px; flex-wrap: wrap; }
.form-group {
  display: flex; flex-direction: column; gap: 7px;
  flex: 1; min-width: 200px;
}
.form-group label { font-size: 0.87rem; font-weight: 600; color: var(--text); }
.optional { color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 13px; color: var(--text);
  font-size: 0.9rem; font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--blue);
}
.form-group select option { background: var(--dark2); }
.form-group textarea { resize: vertical; }
#reg-form { display: flex; flex-direction: column; gap: 18px; }
.reg-success {
  text-align: center; padding: 60px 24px;
}
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.reg-success h3 { font-size: 1.5rem; margin-bottom: 10px; }
.reg-success p { color: var(--muted); margin-bottom: 24px; }
.hidden { display: none !important; }

/* ===== STATS ===== */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px; margin-bottom: 36px;
}
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 18px;
  text-align: center;
}
.stat-num {
  display: block; font-size: 2.2rem; font-weight: 900; color: var(--yellow);
  line-height: 1;
}
.stat-label {
  display: block; font-size: 0.74rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 6px;
}
.click-table-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  overflow-x: auto;
}
.click-table-wrap h3 {
  font-size: 0.82rem; font-weight: 700; margin-bottom: 14px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px;
}
.click-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.click-table th {
  text-align: left; padding: 9px 12px;
  color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border);
  font-size: 0.75rem; letter-spacing: 0.5px;
}
.click-table td { padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.click-table tr:last-child td { border-bottom: none; }
.click-bar-wrap { background: rgba(255,255,255,0.06); border-radius: 3px; height: 7px; min-width: 80px; }
.click-bar { background: var(--blue); border-radius: 3px; height: 100%; transition: width 0.4s; }
.empty-row { color: var(--muted); text-align: center; padding: 22px; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border); padding: 32px 24px;
  text-align: center; color: var(--muted); font-size: 0.84rem;
}
.footer-sub { margin-top: 6px; font-size: 0.78rem; opacity: 0.7; }
.footer-admin { margin-top: 14px; }
.footer-admin a {
  font-size: 0.7rem; color: rgba(255,255,255,0.18);
  transition: color 0.2s;
}
.footer-admin a:hover { color: rgba(255,255,255,0.45); }

/* ===== CHAT WIDGET ===== */
.chat-bubble {
  position: fixed; bottom: 28px; right: 28px; z-index: 1000;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 20px rgba(204,30,30,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.chat-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(204,30,30,0.7);
}
.chat-notif {
  position: absolute; top: -3px; right: -3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--yellow); color: #000;
  font-size: 0.65rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.chat-panel {
  position: fixed; bottom: 96px; right: 28px; z-index: 1000;
  width: 340px; background: var(--card);
  border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  display: none; flex-direction: column;
}
.chat-panel.open { display: flex; }
.chat-header {
  background: var(--blue); padding: 15px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.chat-header strong { display: block; font-size: 0.93rem; }
.chat-status { font-size: 0.7rem; color: rgba(255,255,255,0.75); }
.chat-close {
  background: none; border: none; color: #fff;
  font-size: 1.3rem; cursor: pointer; padding: 4px; line-height: 1;
}
.chat-messages {
  padding: 16px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 120px; max-height: 220px;
}
.msg { max-width: 88%; }
.msg p { font-size: 0.87rem; line-height: 1.55; }
.msg-bot p {
  background: rgba(22,56,176,0.2); border: 1px solid rgba(22,56,176,0.3);
  padding: 9px 13px; border-radius: 0 12px 12px 12px;
  color: var(--text);
}
.msg-user { margin-left: auto; }
.msg-user p {
  background: var(--red); padding: 9px 13px;
  border-radius: 12px 0 12px 12px; color: #fff;
}
.chat-form {
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--border);
}
.chat-form input,
.chat-form textarea {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 12px; color: var(--text);
  font-size: 0.87rem; font-family: inherit; resize: none;
  transition: border-color 0.2s;
}
.chat-form input:focus,
.chat-form textarea:focus { outline: none; border-color: var(--blue); }

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.lightbox-overlay.active {
  opacity: 1; pointer-events: all;
}
.lightbox-overlay img {
  max-width: 95vw; max-height: 90vh;
  object-fit: contain; border-radius: 8px;
  transform-origin: center;
  touch-action: manipulation;
  user-select: none;
  box-shadow: 0 8px 48px rgba(0,0,0,0.7);
}
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  font-size: 1.8rem; line-height: 1; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 2001;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* ===== CONSENT BANNER ===== */
.consent-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1900;
  background: rgba(13,13,26,0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 18px 24px;
}
.consent-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.consent-text {
  flex: 1; font-size: 0.86rem; color: var(--muted); line-height: 1.6;
  min-width: 260px;
}
.consent-btns {
  display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap;
}
.btn-consent-accept {
  padding: 10px 22px; border-radius: 8px; font-size: 0.88rem;
  font-weight: 600; cursor: pointer; border: none;
  background: #1a8f3f; color: #fff; transition: background 0.2s;
}
.btn-consent-accept:hover { background: #1da84a; }
.btn-consent-decline {
  padding: 10px 22px; border-radius: 8px; font-size: 0.88rem;
  font-weight: 600; cursor: pointer;
  background: transparent; color: var(--muted);
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: all 0.2s;
}
.btn-consent-decline:hover { border-color: var(--muted); color: var(--text); }

/* ===== FADE-IN ===== */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.6s, transform 0.6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== PRODUCT VIDEO ===== */
.video-section { padding-top: 60px; padding-bottom: 80px; }
.video-wrap {
  position: relative; max-width: 700px; margin: 0 auto;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.07);
}
.product-video {
  display: block; width: 100%; height: auto;
  background: #000;
}
.video-overlay-badge {
  position: absolute; top: 16px; left: 16px;
  pointer-events: none;
}
.vid-badge {
  background: rgba(204,30,30,0.85); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 5px;
  backdrop-filter: blur(4px);
  animation: vidPulse 2s ease-in-out infinite;
}
@keyframes vidPulse {
  0%,100% { opacity: 1; } 50% { opacity: 0.65; }
}
.video-mute-btn {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(13,13,26,0.75); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; width: 38px; height: 38px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; backdrop-filter: blur(4px);
}
.video-mute-btn:hover { background: rgba(204,30,30,0.65); }

/* ===== ENHANCEMENTS ===== */

/* Scroll progress bar */
#scroll-progress-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  z-index: 1100; width: 0%;
  transition: width 0.07s linear; pointer-events: none;
  border-radius: 0 2px 2px 0;
}

/* Hero entrance stagger */
@keyframes heroEnter {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-label  { animation: heroEnter 0.65s 0.05s both ease; }
.hero-title  { animation: heroEnter 0.65s 0.2s  both ease; }
.hero-by-kl  { animation: heroEnter 0.65s 0.35s both ease; }
.hero-sub    { animation: heroEnter 0.65s 0.45s both ease; }
.hero-badges { animation: heroEnter 0.65s 0.55s both ease; }
.hero-cta    { animation: heroEnter 0.65s 0.65s both ease; }
.hero-img-wrap { animation: heroEnter 0.85s 0.25s both ease; }

/* Hero orb pulse animations */
@keyframes orbFloat {
  0%,100% { transform: translateY(-50%) scale(1); }
  50%      { transform: translateY(calc(-50% - 40px)) scale(1.07); }
}
@keyframes orbFloat2 {
  0%,100% { transform: scale(1) translate(0,0); }
  50%      { transform: scale(1.1) translate(28px,-22px); }
}
.hero::before { animation: orbFloat  9s ease-in-out infinite; }
.hero::after  { animation: orbFloat2 13s ease-in-out infinite; }

/* Hero background grid drift */
@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 48px 48px; }
}
.hero-bg-grid { animation: gridDrift 8s linear infinite; }

/* Hero scroll indicator arrow */
.hero-scroll-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.45); cursor: pointer; margin-top: 28px;
  background: transparent;
  animation: heroEnter 0.6s 0.85s both ease, arrowBounce 2.2s 1.5s ease-in-out infinite;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.hero-scroll-arrow:hover {
  border-color: var(--red); color: var(--red); background: rgba(204,30,30,0.1);
}
@keyframes arrowBounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}

/* Navbar scroll shadow + active links */
#navbar { transition: background 0.3s, box-shadow 0.3s, border-color 0.3s; }
#navbar.scrolled {
  box-shadow: 0 4px 28px rgba(0,0,0,0.5);
  border-bottom-color: rgba(255,255,255,0.13);
}
.nav-links a.nav-active {
  color: var(--text); background: rgba(255,255,255,0.09);
}

/* Product card reveal animation */
.product-card.card-hidden { opacity: 0; }
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-card.card-animating {
  animation: cardReveal 0.6s ease both;
}
.product-card.card-visible {
  opacity: 1;
}
/* Override hover to only work once card is fully visible */
.product-card:not(.card-visible):hover {
  transform: none; box-shadow: none;
}
.product-card.card-visible {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.product-card.card-visible:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 64px rgba(22,56,176,0.28), 0 0 0 1px rgba(22,56,176,0.14);
}

/* Lightbox navigation arrows */
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(13,13,26,0.75); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; width: 50px; height: 50px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; line-height: 1; z-index: 2002;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(6px); padding: 0;
}
.lb-arrow:hover {
  background: rgba(204,30,30,0.7); border-color: rgba(204,30,30,0.5);
  transform: translateY(-50%) scale(1.08);
}
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.6); color: rgba(255,255,255,0.8);
  font-size: 0.78rem; padding: 4px 16px; border-radius: 20px;
  backdrop-filter: blur(4px); pointer-events: none; z-index: 2002;
  letter-spacing: 0.5px;
}
#lightbox-img { transition: opacity 0.15s ease; }

/* Chat panel slide-up animation (override display:none approach) */
.chat-panel {
  display: flex;
  visibility: hidden; opacity: 0; pointer-events: none;
  transform: translateY(14px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}
.chat-panel.open {
  display: flex;
  visibility: visible; opacity: 1; pointer-events: all;
  transform: translateY(0) scale(1);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

/* Toast notifications */
#toast-container {
  position: fixed; top: 24px; right: 24px; z-index: 3000;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none; align-items: flex-end;
}
.toast {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 16px;
  font-size: 0.84rem; color: var(--text);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  animation: toastIn 0.28s ease both;
  display: flex; align-items: center; gap: 9px;
  max-width: 300px;
}
.toast-success { border-left: 3px solid #22cc55; }
.toast-info    { border-left: 3px solid var(--blue); }
.toast.toast-out { animation: toastOut 0.28s ease forwards; }
@keyframes toastIn  { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }
@keyframes toastOut { from { opacity:1; transform:translateX(0);    } to { opacity:0; transform:translateX(20px); } }
.toast-icon { font-size: 1rem; flex-shrink: 0; }

/* Button ripple effect */
.btn-ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  transform: scale(0);
  animation: btnRipple 0.55s linear forwards;
  pointer-events: none;
}
@keyframes btnRipple { to { transform: scale(4); opacity: 0; } }

/* Feature icon glow circles */
.feature-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  background: rgba(22,56,176,0.13);
  border: 1px solid rgba(22,56,176,0.24);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  font-size: 1.6rem;
}
.feature-item:hover .feature-icon {
  transform: scale(1.15) rotate(-6deg);
  background: rgba(22,56,176,0.26);
  box-shadow: 0 4px 22px rgba(22,56,176,0.35);
}

/* Price pulse glow */
@keyframes priceGlow {
  0%,100% { text-shadow: none; }
  50%      { text-shadow: 0 0 28px rgba(255,209,0,0.55), 0 0 8px rgba(255,209,0,0.25); }
}
.product-price { animation: priceGlow 3.5s ease-in-out infinite; }

/* Gradient accent on titles */
.hero-title .accent,
.section-title .accent {
  background: linear-gradient(120deg, var(--red) 0%, #ff6060 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== RESPONSIVE ===== */

/* Tablet: 768px–960px side-by-side with reduced padding */
@media (min-width: 768px) and (max-width: 960px) {
  .product-info { padding: 16px 14px; }
}

/* Below 768px: stack product cards */
@media (max-width: 768px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: 1fr; }
  .gallery-main { aspect-ratio: 16/9; }
  .gallery-main img { object-position: top; }
  .hero-img-wrap { display: none; }
  .hero-content { max-width: 100%; }
}

/* Mobile */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .form-wrap { padding: 22px 16px; }
  .chat-panel { width: calc(100vw - 32px); right: 16px; }
  .hero { padding: 90px 16px 50px; }
  .section { padding: 56px 16px; }
  .visit-counter-wrap { gap: 16px; }
  /* Gallery on mobile */
  .gallery-main { aspect-ratio: 4/3; }
  .thumb { width: 56px; height: 56px; }
  /* Ensure no height cut-off */
  .product-info { max-height: none; overflow-y: visible; }
}
