/* ================================
   BRANDS PAGE PREMIUM STYLES
   ================================ */

/* Page Layout */
.brands-page {
  background: var(--gradient-background-light);
  min-height: 100vh;
}

.brands-main {
  position: relative;
  /* Sticky navbar naturally handles spacing */
}

/* ================================
   PREMIUM HERO SECTION
   ================================ */

.brands-hero {
  background: var(--bluecart-gradient);
  padding: var(--spacing-20) 0 var(--spacing-16);
  position: relative;
  overflow: hidden;
}

.brands-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
              linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
              linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%),
              linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
  background-size: 30px 30px;
  background-position: 0 0, 0 15px, 15px -15px, -15px 0px;
  opacity: 0.3;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.hero-button.primary {
  background: white;
  color: var(--bluecart-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-button.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.hero-button.secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ================================
   BRANDS SECTION
   ================================ */

.brands-section {
  padding: 6rem 0;
  background: white;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--bluecart-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ================================
   BRANDS TOOLS
   ================================ */

.brands-tools {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.brand-search-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  z-index: 2;
}

.brand-search {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
}

.brand-search:focus {
  outline: none;
  border-color: var(--bluecart-primary);
  box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.1);
}

.filter-container {
  text-align: center;
}

.filter-label {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--bluecart-primary);
  color: var(--bluecart-primary);
  background: rgba(46, 134, 193, 0.05);
}

/* ================================
   BRANDS INFO CARD
   ================================ */

.brands-info {
  margin-bottom: 4rem;
}

.info-card {
  background: linear-gradient(135deg, #f8fffe 0%, #f0fdfc 100%);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.info-icon {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  color: var(--bluecart-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.info-content {
  flex: 1;
}

.info-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bluecart-primary);
  margin-bottom: 0.75rem;
}

.info-description {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* ================================
   BRANDS CONTAINER
   ================================ */

.brands-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.brand-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  text-align: center;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--bluecart-primary);
}

.brand-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: contain;      /* show full brand logo, no cropping */
  object-position: center;
  margin: 0 auto 1.5rem;
  border: 2px solid #f1f5f9;
  background: white;        /* ensure logo visibility */
  padding: 4px;             /* small padding for better logo display */
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bluecart-primary);
  margin-bottom: 0.5rem;
}

.brand-category {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-transform: capitalize;
}

.brand-description {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.brand-button {
  background: linear-gradient(135deg, var(--bluecart-primary), var(--bluecart-cyan));
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.brand-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(46, 134, 193, 0.3);
}

/* ================================
   LOADING STATES
   ================================ */

.brands-loading {
  text-align: center;
  padding: 4rem 2rem;
  color: #64748b;
}

.brands-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #64748b;
}

.brands-empty h3 {
  color: var(--bluecart-primary);
  margin-bottom: 1rem;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 768px) {
  .brands-main {
    padding-top: var(--spacing-4); /* Responsive spacing */
  }

  .brands-hero {
    padding: 4rem 0 3rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-button {
    width: 100%;
    max-width: 300px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

  .brands-tools {
    gap: 1.5rem;
  }

  .filter-buttons {
    gap: 0.5rem;
  }

  .info-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .brands-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-container,
  .section-container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .brand-search-container {
    max-width: 100%;
  }

  .filter-buttons {
    justify-content: flex-start;
  }

  .info-card {
    padding: 1.5rem;
  }

  .brand-card {
    padding: 1.5rem;
  }
}
