/* === Sidebar Buttons === */
.close-btn, .toggle-btn {
  display: none;
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.close-btn {
  background-color: #dc3545;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .close-btn, .toggle-btn {
    display: block;
  }

  .toggle-btn {
    margin-top: 15px;
    margin-left: -3px;
    width: fit-content;
  }
}

/* === Brands Carousel === */
.brands-carousel {
  overflow: hidden;
  background-color: #fff;
  padding: 20px 0;
  position: relative;
}

.brands-track {
  display: flex;
  width: calc(250px * 12);
  animation: scroll 25s linear infinite;
}

.brand-slide {
  flex: 0 0 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.brand-slide img {
  max-height: 60px;
  width: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease-in-out;
}

.brand-slide img:hover {
  filter: grayscale(0%);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === Sidebar === */

.brand-sidebar {
  width: 250px;
  background-color: #f9f9f9;
  padding: 25px 20px;
  border-radius: 10px;
  margin-left: 55px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-family: 'Segoe UI', sans-serif;
}

.brand-sidebar h3 {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}

.brand-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.brand-list li {
  margin-bottom: 12px;
  transition: 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.brand-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 16px;
  text-decoration: none;
  color: #333;
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s;
}

.brand-list a:hover {
  background-color: #007bff;
  color: #fff;
  transform: translateX(4px);
}

.brand-list a:hover img {
  filter: brightness(100%) !important;
}

.brand-list img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .brand-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 999;
    transform: translateX(-110%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    margin-left: 0;
    transition: transform 0.4s ease;
  }

  .brand-sidebar.active {
    transform: translateX(0);
  }

  .product-content {
    width: 100%;
  }
}


/* === Product Grid === */
.product-grid, .custom-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

/* === Product Card === */
.product-card, .custom-product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover, .custom-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.product-image img, .custom-product-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background-color: #f4f4f4;
}

/* === Product Info === */
.product-info, .custom-product-info {
  padding: 15px 18px 10px;
}

.product-info h4, .custom-product-info h4 {
  font-size: 18px;
  color: #222;
  margin-bottom: 6px;
}

.product-info p, .custom-product-info p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-description {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
  line-height: normal;
}


/* === Footer Actions === */
.product-footer, .custom-product-footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  background: #fafafa;
  border-top: 1px solid #eee;
}

.action-btn, .custom-action-btn {
  color: white;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.3s;
}

.action-btn.call { background-color: #28a745; }
.action-btn.email { background-color: #17a2b8; }
.action-btn.whatsapp { background-color: #25d366; }

.custom-action-btn { background-color: #e0e0e0; color: #555; }
.custom-action-btn:hover { color: #007bff; }
.action-btn:hover { opacity: 0.9; }

/* === Section Headers === */
.section-header, .custom-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-header h2, .custom-section-header h2 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.btn.view-more, .custom-btn {
  background-color: #007bff;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 0.3s;
}

.btn.view-more:hover, .custom-btn:hover {
  background-color: #0056b3;
}

.no-products {
  text-align: center;
  color: #888;
  font-style: italic;
}

.custom-product-section {
  margin: 40px auto;
  padding: 0 20px;
  max-width: 1200px;
}
/* === Sidebar + Product Layout === */
.product-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  flex-wrap: wrap;
}

/* Desktop view: Sidebar on left, content on right */
.brand-sidebar {
  flex: 0 0 250px;
}

/* Product content takes remaining width */
.product-content {
  flex: 1;
  min-width: 0;
}

/* Mobile responsive: Stack layout vertically */
@media (max-width: 768px) {
  .product-layout {
    flex-direction: column;
  }

  .brand-sidebar {
    width: 100%;
    margin-bottom: 20px;
  }

  .product-content {
    width: 100%;
  }
}
