:root {
  --accent: #786D3C;  /* Gold accent from logo */
  --primary-dark: #1B1464;  /* Dark blue from logo */
  --text-color: #333;
  --background-color: #f8f9fa;
  --card-background: #fff;
  --success-color: #28a745;
  --error-color: #dc3545;
  --border-color: #e0e0e0;
}

.products-page {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
}

.products-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/static/images/products-hero.jpg');
  background-size: cover;
  background-position: center;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-bottom: 50px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.why-products-section {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.why-products-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 40px;
  font-weight: 700;
}

.why-products-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 50px;
}

.why-products-left,
.why-products-right {
  flex: 1;
  min-width: 250px;
}

.why-products-center {
  flex: 1;
  min-width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.why-product-item {
  margin-bottom: 30px;
}

.why-product-item h3 {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.why-product-item p {
  line-height: 1.6;
}

.products-cta {
  display: flex;
  gap: 30px;
  margin-top: 50px;
}

.cta-box {
  flex: 1;
  background-color: var(--card-background);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.cta-box h3 {
  color: var(--primary-dark);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.cta-box p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: var(--primary-dark);
}

.filter-section {
  background-color: var(--primary-dark);
  padding: 40px 0;
  margin-bottom: 50px;
  text-align: center;
}

.filter-buttons {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* Adjust spacing between buttons */
  padding: 0 20px;
  flex-wrap: nowrap; /* Prevents wrapping */
  overflow-x: auto; /* Enables horizontal scrolling if needed */
  white-space: nowrap; /* Prevents line breaks */
}

.category-btn {
  background-color: white;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  text-align: center;
}

.category-btn:hover,
.category-btn.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(120, 109, 60, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .filter-buttons {
    gap: 10px;
    overflow-x: auto; /* Allows horizontal scrolling if needed */
    justify-content: flex-start; /* Aligns buttons to the start */
    padding-bottom: 10px; /* Add padding for scrollbar */
  }

  .category-btn {
    font-size: 14px;
    padding: 10px 20px;
    min-width: 120px;
    text-align: center;
  }
}

.products-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 50px;
}

.product-card {
  background-color: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-strip {
  display: flex;
  padding: 20px;
}

.product-image {
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 10px;
  margin-right: 20px;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  flex: 1;
}

.product-info h3 {
  color: var(--primary-dark);
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.product-description {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 10px;
  color: #666;
}

.status-container {
  display: flex;
  align-items: center;
}

.trend {
  font-weight: 600;
  font-size: 0.9rem;
}

.trend.up {
  color: var(--success-color);
}

.trend.down {
  color: var(--error-color);
}

.product-details {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
  border-top: 4px solid var(--primary-dark);
}

.specifications h4,
.additional-details h4,
.availability h4 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.specifications ul,
.additional-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.specifications li,
.additional-details li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.specifications li:before,
.additional-details li:before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.spec-key {
  font-weight: 600;
  color: var(--primary-dark);
  margin-right: 0.5rem;
}

.availability-chart {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.month-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 1rem);
  min-width: 80px;
}

.month {
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.status-bar {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background-color: #e0e0e0;
}

.high .status-bar {
  background-color: #4CAF50;
}

.medium .status-bar {
  background-color: #FFC107;
}

.low .status-bar {
  background-color: #F44336;
}

.status-label {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  color: #666;
}

.product-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-sample, .btn-quote {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-sample {
  background-color: var(--primary-dark);
  color: white;
  border: 2px solid var(--primary-dark);
}

.btn-sample:hover {
  background-color: transparent;
  color: var(--primary-dark);
}

.btn-quote {
  background-color: var(--accent);
  color: white;
  border: 2px solid var(--accent);
}

.btn-quote:hover {
  background-color: transparent;
  color: var(--accent);
}

/* No products message */
.no-products-message {
  text-align: center;
  padding: 40px 20px;
  margin: 30px auto;
  background-color: rgba(27, 20, 100, 0.05);
  border: 1px solid rgba(27, 20, 100, 0.1);
  border-radius: 8px;
  max-width: 600px;
}

.no-products-message p {
  font-size: 18px;
  color: var(--primary-dark);
  margin: 0;
}

.dark-mode .no-products-message {
  background-color: rgba(27, 20, 100, 0.2);
  border-color: rgba(120, 109, 60, 0.3);
}

.dark-mode .no-products-message p {
  color: #e0e0e0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .why-products-content {
    flex-direction: column;
  }
  
  .products-cta {
    flex-direction: column;
  }
  
  .products-container {
    grid-template-columns: 1fr;
  }
  
  .product-strip {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .product-image {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

/* Better Responsive Styles for Products CTA */
@media (max-width: 992px) {
  .products-cta {
    gap: 1.5rem;
    margin: 2.5rem 0;
  }
  
  .cta-box {
    padding: 1.75rem;
    min-width: 250px;
  }
  
  .cta-box h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .products-cta {
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  .cta-box {
    width: 100%;
    max-width: 450px;
    min-width: auto;
    padding: 1.5rem;
    margin: 0 auto;
  }
  
  .cta-box h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }
  
  .cta-box p {
    margin-bottom: 1.2rem;
  }
  
  .cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .products-cta {
    gap: 1rem;
    margin: 1.5rem 0;
  }
  
  .cta-box {
    padding: 1.25rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  }
  
  .cta-box h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .cta-box p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  .cta-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  .cta-box {
    padding: 1rem;
  }
  
  .cta-box h3 {
    font-size: 1.1rem;
  }
  
  .cta-box p {
    font-size: 0.9rem;
  }
  
  .cta-button {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
  }
}
