.banner-image {
  background: var(--site-bg);
}

.brands-section {
  min-height: 100vh;
  padding-top: 80px;
}

.brands-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
}

.brands-search-wrap {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.brands-search-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 1rem;
}

.brands-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.brands-search-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Search filter animation – items visible by default; animate when class is added */
.brands-grid-row.brands-grid-animate .brand-grid-item {
  animation: brandCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.brands-grid-row.brands-grid-animate .brands-no-results {
  animation: brandCardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes brandCardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Brand cards */
.brand-card-link {
  text-decoration: none;
  color: white;
  display: block;
  height: 100%;
}

.brand-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px 16px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-card .brand-logo {
  flex: 1 1 auto;
  min-height: 60px;
  margin-bottom: 0;
}

.brand-card .brand-name {
  flex: 0 0 auto;
  margin-top: 24px;
  padding-bottom: 0;
  align-self: center;
}

.brand-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.brand-logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.brand-logo-placeholder {
  width: 100%;
  max-width: 200px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.brand-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Model cards */
.model-card-link {
  text-decoration: none;
  color: white;
  display: block;
  height: 100%;
}

.model-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.model-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.model-card-img-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.model-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.model-card-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
}

.model-card:hover .model-card-img {
  transform: scale(1.06);
}

.model-card-body {
  flex: 0 0 auto;
  margin-top: 24px;
  padding: 20px;
}

.model-card-body h4 {
  margin: 0 0 8px 0;
  font-size: 1.15rem;
}

.model-card-body p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Model tags (product categories) */
.model-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.model-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Tag filter (brand detail) */
.brand-tag-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.brand-tag-filter-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.model-tag-filter {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.model-tag-filter:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: white;
}

.model-tag-active {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

/* Model gallery sections (text then pictures per tag) */
.model-gallery-section {
  padding-bottom: 1rem;
}

.model-section-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.model-section-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

/* Brand detail header logo */
.brand-detail-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px 28px;
  margin-bottom: 1.25rem;
}

.brand-detail-logo {
  max-height: 60px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Breadcrumb */
.breadcrumb-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: white;
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.3);
}

@media only screen and (max-width: 600px) {
  .lightbox-prev,
  .lightbox-next {
    font-size: 28px;
    padding: 10px;
  }
}
