/* =========================================
   DNB CARS - Premium Car Detailing Website
   Brand Colors: Black #0A0A0A, Teal #0F8B8D, Gold #D4AF37, Silver #C0C0C0
   ========================================= */

:root {
  --black: #0A0A0A;
  --dark: #111111;
  --dark2: #1A1A1A;
  --dark3: #222222;
  --teal: #0F8B8D;
  --teal-light: #14A8AB;
  --teal-dark: #0A6E70;
  --gold: #D4AF37;
  --gold-light: #F0CC55;
  --gold-dark: #A88A1E;
  --silver: #C0C0C0;
  --silver-light: #E0E0E0;
  --white: #FFFFFF;
  --text-muted: #888888;
  --border: rgba(212, 175, 55, 0.2);
  --border-teal: rgba(15, 139, 141, 0.3);
  --card-bg: rgba(26, 26, 26, 0.9);
  --glass: rgba(255,255,255,0.04);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* -------- SELECTION -------- */
::selection { background: var(--teal); color: var(--white); }

/* -------- TYPOGRAPHY -------- */
h1, h2, h3, h4, h5 { font-family: 'Raleway', sans-serif; font-weight: 700; line-height: 1.2; }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
  position: relative;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--teal);
  vertical-align: middle;
  margin-right: 10px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--white);
  margin-bottom: 16px;
}
.section-title span { color: var(--gold); }

.section-desc {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 600px;
  line-height: 1.8;
}

/* -------- NAVBAR -------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  background: transparent;
}
#navbar.scrolled {
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px);
  height: 65px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-name {
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 3px;
}
.nav-logo-name span { color: var(--teal); }
.nav-logo-sub {
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid var(--border);
}

.nav-logo-img {
  height: 48px;
  width: 48px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  color: var(--silver-light);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--teal); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-cart-btn {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--border-teal);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.nav-cart-btn:hover { background: var(--teal); border-color: var(--teal); }
.cart-count {
  background: var(--gold);
  color: var(--black);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  font-family: 'Montserrat', sans-serif;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--silver);
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  font-family: 'Montserrat', sans-serif;
}
.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.btn-teal {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  font-family: 'Montserrat', sans-serif;
}
.btn-teal:hover {
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 139, 141, 0.4);
}

/* -------- HAMBURGER -------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: flex;
  position: fixed;
  top: 80px; left: 0; right: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 20px 5%;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, top 0.3s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#navbar.scrolled + .mobile-menu {
  top: 65px;
}
.mobile-menu a {
  color: var(--silver-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.mobile-menu a:hover { color: var(--teal); }

/* -------- SECTIONS -------- */
section { padding: 100px 5%; }

.section-header { margin-bottom: 60px; }

/* -------- GOLD DIVIDER -------- */
.gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 30px;
}

/* -------- PAGE HERO -------- */
.page-hero {
  height: 50vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.9) 0%, rgba(15,139,141,0.2) 50%, rgba(10,10,10,0.9) 100%);
  z-index: 1;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.3);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-content h1 {
  font-size: clamp(32px, 6vw, 72px);
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero-content h1 span { color: var(--gold); }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb span { color: var(--gold); }

/* -------- CARDS -------- */
.product-card {
  background: var(--dark2);
  border: 1px solid rgba(212,175,55,0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(212,175,55,0.1);
}

.product-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }

.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold);
  color: var(--black);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}
.product-badge.teal { background: var(--teal); color: var(--white); }
.product-badge.new { background: var(--teal-light); color: var(--white); }

.product-body { padding: 20px; }
.product-category {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}
.product-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.4;
}
.product-stars { color: var(--gold); font-size: 12px; margin-bottom: 6px; }
.product-reviews { color: var(--text-muted); font-size: 11px; }
.product-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.product-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
  font-family: 'Raleway', sans-serif;
}
.product-price-original {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-price-save {
  font-size: 10px;
  color: #4CAF50;
  font-weight: 700;
  letter-spacing: 1px;
}
.product-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.btn-add-cart {
  flex: 1;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Montserrat', sans-serif;
}
.btn-add-cart:hover { background: var(--teal-light); transform: translateY(-2px); }
.btn-wishlist {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--gold);
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}
.btn-wishlist:hover { background: rgba(212,175,55,0.1); }

/* -------- GRID LAYOUTS -------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

/* -------- FOOTER -------- */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 70px 5% 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 50px; }
.footer-brand-desc { color: var(--text-muted); font-size: 14px; line-height: 1.8; margin: 16px 0 24px; }
.footer-social { display: flex; gap: 12px; }
.social-btn {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}
.social-btn:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--teal); padding-left: 6px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 13px;
}
.footer-contact-item i { color: var(--teal); margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); }
.footer-bottom span { color: var(--gold); }

/* -------- TOAST -------- */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  color: var(--white);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 13px;
  max-width: 300px;
  animation: slideInToast 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.toast.success { border-left-color: #4CAF50; }
.toast.error { border-left-color: #f44336; }
@keyframes slideInToast {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* -------- LOADING -------- */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top: 3px solid var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* -------- RESPONSIVE -------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-primary { display: none; }
  .hamburger { display: flex; }
  section { padding: 70px 5%; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  #navbar { padding: 0 4%; height: 65px; }
  .values-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .trust-badges { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:last-child { border-bottom: none; }
}

/* Admin panel responsive helper */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
