/* ==========================================================================
   MERCEDES-DEALS.STORE — Black Friday Event Stylesheet (v2)
   ========================================================================== */
:root {
  --bg-dark: #07090e;
  --bg-card: #10141f;
  --bg-card-hover: #161c2b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-red: #dc2626;
  --accent-emerald: #10b981;
  --whatsapp-green: #25D366;
  --whatsapp-dark: #128C7E;
  --chrome-gradient: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 72px; /* Space for sticky privacy banner when visible */
}

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

/* Top Announcement Ticker */
.bf-banner {
  background: linear-gradient(90deg, #991b1b, #dc2626, #991b1b);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bf-timer {
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 10px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9rem;
}

/* Navigation Header */
header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(7, 9, 14, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link img {
  height: 46px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.ssl-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 60px 24px 48px;
  text-align: center;
  background: radial-gradient(circle at top center, rgba(220, 38, 38, 0.18), transparent 65%),
              linear-gradient(180deg, #0c101b 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-badge {
  display: inline-block;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 880px;
  margin: 0 auto 16px;
  background: var(--chrome-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

.trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-item span.icon {
  color: var(--accent-emerald);
  font-weight: bold;
}

/* Main Container */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.stock-counter {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.stock-counter strong {
  color: var(--accent-emerald);
}

/* ==========================================================================
   VEHICLE GRID SYSTEM:
   - Desktop: 3 columns
   - Mobile: 2 columns
   ========================================================================== */
.car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .car-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .container {
    padding: 28px 14px 60px;
  }
  .nav-links {
    gap: 12px;
  }
  .nav-links a {
    font-size: 0.76rem;
  }
}

/* Vehicle Card */
.car-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.car-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Featured Available C200 Highlight */
.car-card.featured-available {
  border: 2px solid var(--accent-emerald);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.16);
  cursor: pointer;
}

.car-card.featured-available:hover {
  box-shadow: 0 12px 36px rgba(16, 185, 129, 0.28);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #05070b;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.car-card.featured-available:hover .card-img-wrap img {
  transform: scale(1.05);
}

/* Discount / Status Badges */
.badge-top-left {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
}

.badge-top-left.available-badge {
  background: var(--accent-emerald);
  color: #022c22;
}

.badge-top-right {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(7, 9, 14, 0.85);
  color: #e2e8f0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

/* SOLD OUT Overlay */
.car-card.sold-item .sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 14, 0.86);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.28s ease;
  z-index: 5;
  pointer-events: none;
}

.car-card.sold-item:hover .sold-overlay,
.car-card.sold-item.in-view-sold .sold-overlay {
  opacity: 1;
}

.sold-stamp {
  border: 3px solid #ef4444;
  color: #ef4444;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  padding: 8px 18px;
  border-radius: 8px;
  transform: rotate(-7deg);
  text-transform: uppercase;
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.35);
}

.sold-subtext {
  margin-top: 12px;
  font-size: 0.78rem;
  color: #cbd5e1;
  font-weight: 600;
}

/* Card Body */
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.car-title {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.car-specs span {
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
}

.price-box {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.was-price {
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-color: #ef4444;
  text-decoration-thickness: 2px;
}

.is-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.is-price {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 900;
  color: #ffffff;
}

.car-card.featured-available .is-price {
  color: var(--accent-emerald);
}

.cta-btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cta-btn.btn-available {
  background: var(--accent-emerald);
  color: #022c22;
}

.cta-btn.btn-available:hover {
  background: #34d399;
}

.cta-btn.btn-sold {
  background: #1e293b;
  color: #64748b;
  cursor: not-allowed;
}

/* Call / WhatsApp Action Strip inside C200 Card & Modal */
.contact-action-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.btn-whatsapp,
.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: transform 0.15s ease, filter 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: #052e16;
}

.btn-whatsapp:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-call {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-call:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn-whatsapp svg,
.btn-call svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.page-btn {
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.page-btn:hover {
  border-color: #fff;
}

.page-btn.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}

/* ==========================================================================
   MODALS (C200 CAROUSEL MODAL + LEGAL MODALS)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 9, 0.88);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 16px;
  overflow-y: auto;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: #0f1420;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  max-width: 960px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
}

.legal-dialog {
  max-width: 720px;
  padding: 32px;
}

.legal-dialog h3 {
  font-size: 1.45rem;
  margin-bottom: 14px;
  color: #fff;
}

.legal-dialog h4 {
  font-size: 1rem;
  margin: 16px 0 6px;
  color: var(--accent-emerald);
}

.legal-dialog p,
.legal-dialog li {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.legal-dialog ul {
  padding-left: 20px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--accent-red);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

@media (max-width: 820px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
}

/* Carousel */
.carousel-wrap {
  position: relative;
  background: #05070c;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
      max-width: 470px;
}

.carousel-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.carousel-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(7, 9, 14, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav:hover {
  background: var(--accent-emerald);
  color: #022c22;
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  background: #090c14;
}

.carousel-thumbs img {
  width: 68px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.carousel-thumbs img.active,
.carousel-thumbs img:hover {
  opacity: 1;
  border-color: var(--accent-emerald);
}

/* Modal Details */
.modal-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-badge {
  display: inline-block;
  width: fit-content;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.modal-details h3 {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.25;
}

.modal-price-block {
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.modal-price-block .was {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: #ef4444;
}

.modal-price-block .now {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--accent-emerald);
}

.spec-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.8rem;
}

.spec-cell {
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 10px;
  border-radius: 6px;
}

.spec-cell strong {
  display: block;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.modal-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* PayPal Deposit Box */
.payment-box {
  margin-top: 4px;
  padding: 14px;
  background: rgba(0, 112, 186, 0.12);
  border: 1px solid rgba(0, 156, 222, 0.35);
  border-radius: 10px;
}

.payment-box h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: #fff;
}

.payment-box p {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.paypal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: #ffc439;
  color: #111827;
  font-weight: 800;
  font-size: 0.92rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.paypal-btn:hover {
  background: #f5b922;
}

.enquiry-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.enquiry-btn {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.enquiry-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   FOOTER & LEGAL LINKS
   ========================================================================== */
footer {
  background: #05070b;
  border-top: 1px solid var(--border-subtle);
  padding: 48px 24px 32px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-grid h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-grid a {
  color: var(--text-muted);
  transition: color 0.2s;
  cursor: pointer;
}

.footer-grid a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
}

.footer-legal-inline {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal-inline a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ==========================================================================
   STICKY FOOTER PRIVACY & COOKIE POP-UP BANNER
   ========================================================================== */
.privacy-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  background: rgba(12, 16, 27, 0.97);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.65);
  padding: 14px 24px;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.privacy-sticky-bar.hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.privacy-bar-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.privacy-bar-text {
  font-size: 0.82rem;
  color: #cbd5e1;
  max-width: 820px;
}

.privacy-bar-text strong {
  color: #fff;
}

.privacy-bar-text a {
  color: var(--accent-emerald);
  text-decoration: underline;
  font-weight: 600;
}

.privacy-bar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.priv-btn-accept {
  background: var(--accent-emerald);
  color: #022c22;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.priv-btn-accept:hover {
  background: #34d399;
}

.priv-btn-essential {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.priv-btn-essential:hover {
  background: rgba(255, 255, 255, 0.15);
}
