/* ===========================
   CoKupilem.pl — Main Styles
   by Graf Zero
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Bebas+Neue&family=DM+Mono:ital,wght@0,400;1,400&display=swap');

:root {
  --bg: #0d0d1a;
  --bg2: #13132b;
  --bg3: #1a1a35;
  --accent: #e94560;
  --accent2: #4ecdc4;
  --accent3: #ffd93d;
  --text: #e8e8f0;
  --text-muted: #888aaa;
  --border: rgba(255,255,255,0.08);
  --card-bg: rgba(255,255,255,0.04);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-accent: 0 0 30px rgba(233,69,96,0.3);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --nav-h: 70px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ============ NAVIGATION ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(13,13,26,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 2rem;
  gap: 1.5rem;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 1px;
  white-space: nowrap;
}
.navbar-brand span { color: var(--accent); }

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin-left: auto;
  align-items: center;
}

.navbar-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}
.navbar-nav a:hover, .navbar-nav a.active {
  color: var(--text);
  background: var(--card-bg);
}

.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 8px !important;
}
.nav-cta:hover { background: #c73550 !important; transform: translateY(-1px); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.75em; }
.dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  min-width: 200px;
  box-shadow: var(--shadow);
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu { display: block; animation: fadeDown 0.2s ease; }
.dropdown-menu a { display: block; padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.88rem; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none;
  padding: 0.5rem;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg) 0%, #1a0a20 50%, var(--bg) 100%);
}

.hero-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(233,69,96,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233,69,96,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-glow-1 { width: 600px; height: 600px; background: rgba(233,69,96,0.12); top: -100px; right: -100px; }
.hero-glow-2 { width: 400px; height: 400px; background: rgba(78,205,196,0.08); bottom: 0; left: -100px; }

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative; z-index: 1;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent2);
  background: rgba(78,205,196,0.1);
  border: 1px solid rgba(78,205,196,0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.hero h1 .line-accent { color: var(--accent); display: block; }

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-stats {
  display: flex; gap: 2rem;
  margin-bottom: 2.5rem;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.hero-stat-label { font-size: 0.78rem; color: var(--text-muted); }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image-wrap {
  position: relative;
}
.hero-image-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-accent);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.hero-badge {
  position: absolute; top: -15px; right: -15px;
  background: var(--accent);
  color: white;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 1px;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-accent);
  animation: pulse 2s infinite;
}

/* ============ SLIDER / CAROUSEL ============ */
.carousel-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.carousel-slide {
  min-width: 100%;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  display: block;
}
.carousel-slide-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.carousel-slide-content h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 0.25rem;
}
.carousel-slide-content p { color: var(--text-muted); font-size: 0.9rem; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(13,13,26,0.8);
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}
.carousel-btn:hover { background: var(--accent); border-color: var(--accent); }
.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }

.carousel-dots {
  display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border);
  cursor: pointer; transition: all 0.2s;
  border: none;
}
.carousel-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ============ SECTIONS ============ */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-full { padding: 5rem 2rem; }
.section-full > * { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ============ CARDS ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.cards-grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.cards-grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(233,69,96,0.3);
  box-shadow: var(--shadow-accent);
}

.card-image {
  position: relative;
  overflow: hidden;
}
.card-image img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform 0.4s;
  display: block;
}
.card:hover .card-image img { transform: scale(1.05); }

.card-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--accent);
  color: white;
  font-size: 0.72rem; font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card-badge.new { background: var(--accent2); color: var(--bg); }
.card-badge.hot { background: var(--accent3); color: var(--bg); }

.card-body { padding: 1.2rem; }
.card-category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.card-title {
  font-size: 1.05rem; font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.card-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }

.card-price-wrap { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 1rem; }
.card-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); }
.card-price-old {
  font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through;
}
.card-discount {
  font-size: 0.75rem; font-weight: 700; color: var(--accent3);
  background: rgba(255,217,61,0.15);
  padding: 0.15rem 0.5rem; border-radius: 20px;
}

.card-footer {
  padding: 0 1.2rem 1.2rem;
  display: flex; gap: 0.75rem;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #c73550; box-shadow: 0 4px 20px rgba(233,69,96,0.4); }

.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-accent2 { background: var(--accent2); color: var(--bg); }
.btn-accent2:hover { background: #3ab8b0; }

.btn-ghost { background: transparent; color: var(--accent); padding: 0; }
.btn-ghost:hover { color: var(--text); transform: none; }
.btn-ghost:hover::after { content: ' →'; }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.82rem; border-radius: 8px; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: 12px; }
.btn-full { width: 100%; }

.btn-download {
  background: linear-gradient(135deg, var(--accent), #c73550);
  color: white;
  box-shadow: 0 4px 15px rgba(233,69,96,0.3);
}
.btn-download::before { content: '↓ '; }
.btn-download:hover { box-shadow: 0 6px 25px rgba(233,69,96,0.5); }

/* ============ TABS ============ */
.tabs-nav {
  display: flex; gap: 0.25rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.tab-btn {
  padding: 0.75rem 1.5rem;
  background: none; border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.tab-btn::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transition: transform 0.2s;
}
.tab-btn.active { color: var(--text); }
.tab-btn.active::after { transform: scaleX(1); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

/* ============ TABLE ============ */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.spec-table th, .spec-table td {
  padding: 0.85rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.spec-table th {
  font-weight: 600; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted);
  background: var(--bg2);
}
.spec-table td:first-child { color: var(--text-muted); width: 40%; }
.spec-table td:last-child { font-weight: 500; }
.spec-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ============ SPECIAL OFFERS SECTION ============ */
.special-section {
  background: linear-gradient(135deg, #1a0a20, var(--bg2), #0a1a1a);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}
.special-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 40px,
    rgba(233,69,96,0.02) 40px, rgba(233,69,96,0.02) 80px
  );
}

.offer-highlight {
  background: var(--card-bg);
  border: 1px solid rgba(233,69,96,0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex; gap: 1.5rem;
  align-items: center;
  transition: all 0.3s;
  position: relative; z-index: 1;
}
.offer-highlight:hover { border-color: var(--accent); transform: translateX(4px); }
.offer-highlight-icon {
  font-size: 2.5rem;
  min-width: 64px; height: 64px;
  background: rgba(233,69,96,0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.offer-highlight-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.25rem; }
.offer-highlight-desc { font-size: 0.85rem; color: var(--text-muted); }
.offer-highlight-price {
  margin-left: auto;
  text-align: right;
}
.offer-highlight-price .new { font-family: var(--font-display); font-size: 1.8rem; color: var(--accent); }
.offer-highlight-price .old { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; }

/* ============ PRODUCT PAGE ============ */
.product-hero {
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 3rem;
  background: linear-gradient(to bottom, var(--bg2), var(--bg));
}
.product-hero-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}
.product-gallery img {
  width: 100%; border-radius: var(--radius-lg);
  aspect-ratio: 4/3; object-fit: cover;
  box-shadow: var(--shadow);
}
.product-thumbnails {
  display: flex; gap: 0.75rem; margin-top: 1rem;
}
.product-thumbnails img {
  width: 80px; height: 60px; object-fit: cover;
  border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; transition: border-color 0.2s;
}
.product-thumbnails img.active { border-color: var(--accent); }
.product-thumbnails img:hover { border-color: var(--accent2); }

.product-info { padding-top: 0.5rem; }
.product-category {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--accent2); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.product-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: 1px; line-height: 1.1;
  margin-bottom: 0.5rem;
}
.product-rating {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.5rem; font-size: 0.9rem;
}
.stars { color: var(--accent3); letter-spacing: 2px; }
.rating-count { color: var(--text-muted); }

.product-price-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.product-price-promo {
  font-family: var(--font-display);
  font-size: 2.5rem; color: var(--accent);
  line-height: 1;
}
.product-price-original {
  font-size: 1rem; color: var(--text-muted); text-decoration: line-through;
  margin-bottom: 0.25rem;
}
.product-price-saving {
  font-size: 0.85rem; color: var(--accent3); font-weight: 600;
  background: rgba(255,217,61,0.1); padding: 0.25rem 0.75rem;
  border-radius: 20px; display: inline-block;
}

.product-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.product-quick-specs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.75rem; margin-bottom: 1.5rem;
}
.quick-spec {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
}
.quick-spec-label { color: var(--text-muted); font-size: 0.75rem; margin-bottom: 0.2rem; }
.quick-spec-val { font-weight: 600; }

/* ============ MAP / DEALER SECTION ============ */
.dealer-section {
  background: var(--bg2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.dealer-grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
}
.dealer-list { padding: 2rem; border-right: 1px solid var(--border); }
.dealer-item {
  padding: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  margin-bottom: 0.5rem;
}
.dealer-item:hover, .dealer-item.active {
  background: var(--card-bg); border-color: var(--accent);
}
.dealer-item-name { font-weight: 600; margin-bottom: 0.25rem; }
.dealer-item-addr { font-size: 0.83rem; color: var(--text-muted); }
.dealer-item-tag {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  color: var(--accent2); letter-spacing: 0.05em; margin-top: 0.35rem;
}

.dealer-map-container {
  min-height: 400px;
  background: var(--bg3);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.dealer-map-placeholder {
  text-align: center; color: var(--text-muted);
}
.dealer-map-placeholder .map-icon { font-size: 4rem; margin-bottom: 1rem; display: block; }

/* ============ CONTACT FORM ============ */
.contact-section {
  background: linear-gradient(135deg, var(--bg2), var(--bg));
  padding: 5rem 2rem;
}
.contact-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 4rem; align-items: start;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: 2.5rem; letter-spacing: 2px;
  margin-bottom: 1rem;
}
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem;
}
.contact-item-icon {
  width: 40px; height: 40px;
  background: rgba(233,69,96,0.1);
  border: 1px solid rgba(233,69,96,0.3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-item-text { font-size: 0.9rem; }
.contact-item-label { color: var(--text-muted); font-size: 0.78rem; }

/* ============ FORM ============ */
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-size: 0.85rem; font-weight: 500;
  margin-bottom: 0.5rem; color: var(--text-muted);
}
.form-control {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 130px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-check {
  display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.85rem;
  color: var(--text-muted);
}
.form-check input[type=checkbox] { accent-color: var(--accent); margin-top: 2px; flex-shrink: 0; }

.form-success {
  display: none;
  text-align: center; padding: 2rem;
}
.form-success-icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.form-success p { color: var(--text-muted); }

/* ============ USED PRODUCTS ============ */
.used-filters {
  display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: none; color: var(--text-muted);
  font-family: var(--font-body); font-size: 0.85rem;
  cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent); color: white; border-color: var(--accent);
}

.used-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.used-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}
.used-card:hover { transform: translateY(-3px); border-color: rgba(78,205,196,0.4); }
.used-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.used-card-body { padding: 1.2rem; }
.used-card-condition {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 20px; display: inline-block;
  margin-bottom: 0.5rem;
}
.condition-a { background: rgba(78,205,196,0.15); color: var(--accent2); }
.condition-b { background: rgba(255,217,61,0.15); color: var(--accent3); }
.condition-c { background: rgba(233,69,96,0.15); color: var(--accent); }
.used-card-name { font-weight: 600; margin-bottom: 0.35rem; }
.used-card-specs { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.used-card-price {
  font-family: var(--font-display); font-size: 1.4rem; color: var(--accent2);
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--text-muted);
  padding: calc(var(--nav-h) + 1rem) 2rem 0;
  max-width: 1200px; margin: 0 auto;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text); }
.breadcrumb-sep { color: var(--border); }

/* ============ FOOTER ============ */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
  margin-top: 5rem;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand {
  font-family: var(--font-display); font-size: 1.8rem; letter-spacing: 2px;
  margin-bottom: 0.75rem;
}
.footer-brand span { color: var(--accent); }
.footer-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.social-link {
  width: 38px; height: 38px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); text-decoration: none; font-size: 1rem;
  transition: all 0.2s;
}
.social-link:hover { background: var(--accent); color: white; border-color: var(--accent); }
.footer-col h4 {
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  color: var(--text-muted); text-decoration: none; font-size: 0.88rem; transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px; margin: 3rem auto 0;
  padding-top: 2rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--text-muted); flex-wrap: wrap; gap: 1rem;
}

/* ============ NEWSLETTER ============ */
.newsletter {
  background: linear-gradient(135deg, var(--accent), #c73550);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  position: relative; overflow: hidden;
  margin: 3rem 0;
}
.newsletter::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 0, transparent 50%);
  background-size: 10px 10px;
}
.newsletter h3 {
  font-family: var(--font-display); font-size: 2rem; letter-spacing: 2px;
  color: white; margin-bottom: 0.5rem; position: relative;
}
.newsletter p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; position: relative; }
.newsletter-form {
  display: flex; gap: 0.75rem; max-width: 440px; margin: 0 auto;
  position: relative;
}
.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  font-family: var(--font-body); font-size: 0.9rem;
  backdrop-filter: blur(10px);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form input:focus { outline: 2px solid rgba(255,255,255,0.5); }
.newsletter-form button {
  padding: 0.85rem 1.5rem;
  border-radius: 10px; border: none;
  background: var(--bg); color: var(--accent);
  font-family: var(--font-body); font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: all 0.2s;
}
.newsletter-form button:hover { background: white; }

/* ============ MODAL ============ */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 560px; width: 100%;
  position: relative;
  animation: slideUp 0.3s ease;
  max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--card-bg); border: 1px solid var(--border);
  color: var(--text-muted); width: 32px; height: 32px;
  border-radius: 8px; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.modal-close:hover { background: var(--accent); color: white; border-color: var(--accent); }
.modal h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.modal-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ============ MISC ============ */
.divider { height: 1px; background: var(--border); margin: 0; }
.text-accent { color: var(--accent); }
.text-accent2 { color: var(--accent2); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600;
  padding: 0.2rem 0.7rem; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.tag-red { background: rgba(233,69,96,0.15); color: var(--accent); border: 1px solid rgba(233,69,96,0.3); }
.tag-cyan { background: rgba(78,205,196,0.15); color: var(--accent2); border: 1px solid rgba(78,205,196,0.3); }
.tag-yellow { background: rgba(255,217,61,0.15); color: var(--accent3); border: 1px solid rgba(255,217,61,0.3); }

.alert {
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: 1px solid;
}
.alert-success { background: rgba(78,205,196,0.1); border-color: rgba(78,205,196,0.3); color: var(--accent2); }
.alert-error { background: rgba(233,69,96,0.1); border-color: rgba(233,69,96,0.3); color: var(--accent); }

.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block; vertical-align: middle;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }
@keyframes fadeDown { from { opacity:0; transform:translateY(-8px) } to { opacity:1; transform:translateY(0) } }
@keyframes slideUp { from { opacity:0; transform:translateY(30px) } to { opacity:1; transform:translateY(0) } }
@keyframes spin { to { transform:rotate(360deg) } }
@keyframes pulse { 0%,100% { box-shadow:0 0 20px rgba(233,69,96,0.3) } 50% { box-shadow:0 0 40px rgba(233,69,96,0.6) } }

.fade-in { opacity:0; transform:translateY(20px); transition: all 0.5s ease; }
.fade-in.visible { opacity:1; transform:translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { gap: 2rem; }
  .contact-grid { gap: 2.5rem; }
  .dealer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .navbar-nav { display: none; flex-direction: column; position: fixed;
    top: var(--nav-h); left: 0; right: 0; background: var(--bg2);
    border-bottom: 1px solid var(--border); padding: 1rem; z-index: 999;
    gap: 0.25rem; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
  .navbar-nav.open { display: flex; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-cta { display: none; }

  .hero-content { grid-template-columns: 1fr; }
  .hero-image-wrap { display: none; }
  .hero h1 { font-size: 3rem; }

  .product-hero-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cards-grid-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  
  .offer-highlight { flex-wrap: wrap; }
  .offer-highlight-price { margin-left: 0; }
  
  .section, .section-full { padding: 3rem 1rem; }
  .newsletter { padding: 2rem 1rem; }
  .newsletter-form { flex-direction: column; }
}
