.brand-layout .brand-grid,
.category-view .brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

.brand-card {
  padding: 1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.brand-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand-card .image-wrapper {
  height: 120px;
  /* border-bottom: 1px solid #ddd; */
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  aspect-ratio: 3 / 2;
}
.brand-card .image-wrapper img { 
  object-fit: contain;
  position: absolute;
}

.brand-name { 
  font-size: 1.5rem; 
  margin: .75rem 0 0; 
  font-weight: 600; 
}
.brand-categories {
  font-size: .875rem;
  color: var(--global-color);
}

.brand-single .brand-logo img { 
  max-height: 120px; 
  width: auto; 
}

.brand-single .brand-meta, 
.brand-single .brand-details { 
  margin-top: 2rem; 
}

.brand-cats { 
  list-style: none; 
  padding: 0; 
  display: flex; 
  gap: .5rem; 
  flex-wrap: wrap; 
}

.brand-cats li { 
  background: #f5f5f5; 
  padding: .25rem .5rem; 
  border-radius: 4px; 
}

.brand-layout {
  display: flex;
  gap: 0rem;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: .75rem;
}

.brand-sidebar {
  flex: 0 0 220px;
  border-right: 1px solid #333;
  padding-right: 1rem;
  padding-top: 2rem;
}
.brand-sidebar.filter-sidebar {
  padding-top: 0rem;
}

.brand-sidebar h2 {
  font-size: 2rem;
  margin-bottom: .75rem;
  color: var(--global-color);
}

.brand-list {
  list-style-type: disc;
  padding: 0px;
  margin: 0;
}

.brand-list a {
  text-decoration: none;
  color: #E2E2E2;
  letter-spacing: 1.2px;
  font-size: 0.85rem;
}

.brand-list a:hover {
  text-decoration: underline;
}

.brand-main {
  flex: 1;
  padding: 2rem;
  min-height: 100vh;
}

.page-header {
  position: relative;
}

.brand-head-banner {
  height: 250px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.brand-head-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.brand-logo {
  position: absolute;
  width: 150px;
  left: 50%;
  top: 100%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 10px;
  border: 1px solid #ddd;
  aspect-ratio: 2 / 1;
  display: flex;
  align-items: center;
}

.brand-content {
  margin-top: 80px;
}
.brand-title {
  font-size: 2rem;
  /* padding: 0.5rem 0; */
  color: var(--global-color);
  text-transform: none;
}
.brand-content h4 {
  border-bottom: 1px solid #ddd;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}
.brand-content .brand-content-intro {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center
}
.brand-content .brand-content-intro a {
  color: var(--global-color);
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-description {
  margin-bottom: 2rem;
}

.brand-catalogue-list {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0 !important;
}

/* Brand Image Carousel - 3 Column Slider */
.brand-carousel-section {
  margin-top: 1rem;
}
.brand-carousel {
  position: relative;
  margin: 0;
  padding: 0rem 0 1rem;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
  padding: 0;
}

.carousel-nav .carousel-prev {
  margin-left: -17px;
}

.carousel-nav .carousel-next {
  margin-right: -17px;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 25px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover:not(:disabled) {
  background: rgba(248, 249, 250, 0.95);
  border-color: #666;
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-btn .dashicons {
  font-size: 20px;
}

.carousel-container {
  overflow: hidden;
  width: 100%;
  padding: 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-item {
  flex: 0 0 calc((100% - 2rem) / 3);
  margin-right: 1rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.carousel-item:last-child {
  margin-right: 0;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 4px;
}

/* Carousel responsive adjustments - optimized */
@media (max-width: 1024px) {
  .carousel-item {
    flex: 0 0 calc((100% - 2rem) / 2);
  }
  .carousel-item:nth-child(even) {
    margin-right: 0;
  }
  .brand-sidebar {
    display: none;
  }
  .brand-main {
    flex: 1;
    padding: 2rem 0px;
  }
  .brand-content .brand-content-intro {
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .brand-catalogue-list {
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width: 768px) {
  .carousel-btn {
    min-width: 45px;
    height: 45px;
    padding: 0.5rem;
  }
  
  .carousel-btn .dashicons {
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .carousel-item {
    flex: 0 0 100%;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .carousel-btn {
    min-width: 40px;
    height: 40px;
    padding: 0.4rem;
  }
  
  .carousel-btn .dashicons {
    font-size: 16px;
  }
}

/* Brand Action Buttons */
.brand-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid #e0e0e0;
  font-family: var(--font);
  text-transform: uppercase;
}

.brand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-align: center;
  min-height: 50px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
}

/* Consolidated hover state for all brand buttons */
.brand-btn:hover {
  background: #f8f9fa;
  border-color: #666;
  color: #000;
}

.btn-icon {
  font-size: 1.2em;
}

.btn-text {
  font-weight: 500;
}

/* Responsive adjustments for buttons */
@media (max-width: 768px) {
  .brand-actions {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
  }
  
  .brand-btn {
    padding: 0.875rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .brand-btn {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }
  
  .btn-icon {
    font-size: 1.5em;
  }
}