:root{
  --accent: #ff6b00;
  --radius: 12px;
  --shadow: 0 6px 18px rgba(16,24,40,0.08);
}
body{background:var(--bg); color:var(--text); transition:background .2s, color .2s}
.card{border-radius:var(--radius); box-shadow:var(--shadow)}
#adsGrid .card{cursor:pointer; transition:transform .18s}
#adsGrid .card:hover{transform:translateY(-6px)}
.thumb{cursor:pointer}
.small-muted{color:var(--muted)}

/* Responsive tweaks */
@media (max-width:768px){
  header .container{flex-direction:column; gap:8px}
  .dir-rtl{direction:rtl}
}

/* Make images look great and text readable */
.carousel-item img {
  object-fit: cover;
  width: 100%;
  height: 420px;
  transition: transform 0.5s ease;
}

.carousel-item:hover img {
  transform: scale(1.03);
}

/* Responsive text overlay box */
.carousel-caption {
  background: rgba(15, 23, 35, 0.65);
  color: #fff;
  border-radius: 12px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* On mobile: center the box over the image */
@media (max-width: 768px) {
  .carousel-caption {
    position: static !important;
    transform: none !important;
    margin: 0 auto;
    background: rgba(0,0,0,0.6);
    text-align: center;
    max-width: 90%;
  }

  .carousel-item img {
    height: 320px;
  }
}

/* Support for dark theme */
[data-theme="dark"] .carousel-caption {
  background: rgba(240, 240, 255, 0.1);
  color: #fff;
}


/* Brand logo grid styling */
.brand-card {
  background: var(--surface, #f8f9fa);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  background: var(--bg-hover, #ffffff);
}

.brand-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
  transition: transform 0.3s ease;
}

.brand-card:hover .brand-logo {
  transform: scale(1.1);
}

.brand-card {
  background: var(--surface, #f8f9fa);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}
.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  background: var(--bg-hover, #ffffff);
}
.brand-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
  transition: transform 0.3s ease;
}
.brand-card:hover .brand-logo { transform: scale(1.1); }
[data-theme="dark"] .brand-card { background: #1e2735; border-color: #333; }
[data-theme="dark"] .brand-card:hover { background: #2a3345; }

.brand-card.model {
  background: var(--surface, #fafafa);
  border: 1px solid #ddd;
}

#previewStep .card {
  transition: all 0.3s ease;
}
#previewStep .card:hover {
  transform: scale(1.01);
}

/* Dark theme support */
[data-theme="dark"] .brand-card {
  background: #1e2735;
  border-color: #333;
}
[data-theme="dark"] .brand-card:hover {
  background: #2a3345;
}

/* Responsive tweaks */
@media (max-width: 576px) {
  .brand-logo {
    height: 55px;
  }
}


#globalSearch {
  border-bottom-left-radius: 0px;
  border-top-left-radius: 0px;
  border-bottom-right-radius: 5px;
  border-top-right-radius: 5px;
}

#searchBtn {
  border-bottom-left-radius: 5px;
  border-top-left-radius: 5px;
  border-bottom-right-radius: 0px;
  border-top-right-radius: 0px;
}