@import "./base.css";
/* Category page styles */

/* Breadcrumb styling */
.breadcrumb {
  background-color: #f8f9fa;
  border-radius: 0.25rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #6c757d;
}

.breadcrumb-item a {
  color: var(--main-green-color);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active a {
  color: #6c757d;
  font-weight: 500;
}

.main-content {
  padding: 0.5rem 1rem;

  /* Category heading styling */
  .category-title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    text-align: left;
    color: var(--color-bright-blue);
  }

  .category-label {
    font-weight: normal;
  }

  /* Quick navigation links */
  .quick-nav-link {
    display: block;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
  }

  .quick-nav-link:hover {
    transform: translateY(-5px);
    color: var(--main-green-color);
  }

  .quick-nav-link img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  /* Category description */
  /* Universal Category Description Styling */

  /* Main container */
  .category-description {
    text-align: left;
    margin: 0 auto;
  }

  /* Container types */
  [data-category-type="full"] {
    padding-bottom: 25px;
  }

  [data-category-type="simple"] {
    padding: 15px 20px;
  }

  /* Main blue highlight text */
  .category-highlight,
  [data-category-element="highlight"] {
    font-size: 2rem;
    color: var(--color-light-blue);
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
  }

  /* Category subtitle */
  .category-subtitle,
  [data-category-element="subtitle"] {
    font-size: 1.5rem;
    color: var(--color-bright-blue);
    font-weight: bold;
    margin: 0.5rem 0 1rem 0;
    text-transform: none;
  }

  /* Detailed description */
  .category-detailed-info,
  [data-category-element="description"] {
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.5;
  }

  /* Different paragraph types */
  [data-paragraph-content="history"] {
    border-left: 3px solid var(--border-color);
    padding-left: 10px;
  }

  [data-paragraph-content="products"] {
    margin-top: 1rem;
  }

  /* Standard paragraph styling */
  .category-detailed-info p {
    margin-bottom: 1rem;
    color: #333;
  }

  /* Link styling */
  .category-detailed-info a,
  [data-partner-website] {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
  }

  .category-detailed-info a:hover,
  [data-partner-website]:hover {
    text-decoration: underline;
    color: var(--color-primary);
  }

  /* Product model styling */
  [data-product-model],
  [data-brand-name],
  .category-detailed-info strong {
    font-weight: bold;
    color: var(--text-dark);
  }

  /* Best Seller Section */
  .bestseller-section {
    max-width: 900px;
    margin: 30px auto;
    text-align: center;
  }

  /* Best Seller Heading */
  .bestseller-heading {
    color: #0099ff;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
  }

  /* Best Seller Products Container */
  .bestseller-products {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }

  /* Product Link */
  .bestseller-product-link {
    display: block;
    transition: transform 0.3s;
  }

  .bestseller-product-link:hover {
    transform: scale(1.05);
  }

  /* Product Image Container */
  .bestseller-product-image {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Product Image */
  .bestseller-product-image img {
    object-fit: contain;
  }

  /* Manufacturer/Brand Section */
  .manufacturer-section {
    text-align: left;
  }

  /* Manufacturer Heading */
  .manufacturer-heading {
    color: var(--color-bright-blue);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
  }

  /* Manufacturer Content */
  .manufacturer-content {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
  }

  .manufacturer-content p {
    margin-bottom: 1rem;
  }

  /* Product Categories List */
  .product-categories-cards {
    max-width: 1600px;
    margin: 0 auto;
  }

  .product-categories {
    margin: 1rem 0 1.5rem 1.5rem;
  }

  .product-categories li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
  }

  /* Strong elements */
  .manufacturer-content strong {
    font-weight: 600;
    color: var(--text-dark);
  }

  /* Product card styling */
  .product-card {
    transition: transform 0.3s;
    border: 1px solid #e0e0e0;
    overflow: hidden;
  }

  .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }

  .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
  }

  .card-text {
    font-size: 0.85rem;
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .card-title {
      font-size: 0.9rem;
    }

    .card-text {
      font-size: 0.8rem;
    }
  }

  /* Print styles */
  @media print {
    .category-description {
      border: 1px solid #999;
      max-width: 100%;
    }

    .category-highlight {
      color: #000;
    }
  }

  /* Responsive adjustment for mobile */
  @media (max-width: 768px) {
    .category-title {
      font-size: 1.4rem;
    }
    .category-description {
      padding: 15px 20px;
      border-radius: 20px;
      margin: 15px 10px;
    }

    .category-highlight,
    [data-category-element="highlight"] {
      font-size: 1.1rem;
    }

    .category-subtitle,
    [data-category-element="subtitle"] {
      font-size: 1rem;
    }

    .category-detailed-info,
    [data-category-element="description"] {
      font-size: 0.9rem;
    }
    .bestseller-heading {
      font-size: 1.5rem;
      margin-bottom: 20px;
    }

    .bestseller-product-image {
      width: 150px;
      height: 150px;
    }
    .manufacturer-heading {
      font-size: 1.2rem;
    }

    .manufacturer-content {
      font-size: 0.9rem;
    }

    .product-categories {
      margin-left: 1rem;
    }
  }
}

@media (max-width: 576px) {
  .quick-nav-image {
    width: 60px;
    height: 60px;
  }
  .bestseller-products {
    gap: 10px;
  }

  .bestseller-product-image {
    width: 130px;
    height: 130px;
    border-width: 4px;
  }
}
