/* ========================================
   RESPONSIVE - TABLET & DESKTOP
======================================== */

@media (max-width: 1200px) {
  /* Products Grid */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }

  /* Table View */
  .products-table {
    min-width: 700px;
  }

  .col-feature {
    min-width: 100px;
  }
}

/* ========================================
   RESPONSIVE - TABLET
======================================== */

@media (max-width: 992px) {
  /* Section Spacing */
  .products-section,
  .details-section,
  .subgroups-section,
  .cta-section,
  .navigation-section {
    padding: 50px 0;
  }

  /* Products Header */
  .products-header {
    margin-bottom: 30px;
    gap: 15px;
  }

  /* Products Grid */
  .products-grid,
  .subgroups-grid,
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

  /* Card Content */
  .card-content,
  .subgroup-text-content {
    padding: 18px;
  }

  /* Table View */
  .products-table {
    min-width: 600px;
  }

  .col-name {
    width: 30%;
  }

  .col-feature {
    min-width: 90px;
  }

  /* Typography */
  .intro-title,
  .cta-title {
    font-size: 1.75rem;
  }

  .details-title {
    font-size: 1.35rem;
  }

  .intro-text,
  .details-text,
  .cta-text {
    font-size: 0.9rem;
  }

  /* Details Section */
  .details-content-block {
    gap: 30px;
    padding: 30px 0;
  }

  .details-image {
    width: 45%;
    min-width: 280px;
  }
}

/* ========================================
   RESPONSIVE - MOBILE
======================================== */

@media (max-width: 768px) {
  /* Breadcrumb */
  .breadcrumb-section {
    padding: 20px 0;
  }

  .breadcrumb {
    font-size: 0.8125rem;
    gap: 10px;
  }

  .breadcrumb-item i {
    font-size: 0.9375rem;
  }

  .breadcrumb-separator {
    font-size: 0.6875rem;
  }

  /* Products Header */
  .products-header {
    flex-direction: column;
    align-items: stretch;
  }

  /* Content Centering */
  .intro-content,
  .hero-content,
  .cta-content {
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  /* View Switcher */
  .view-switcher {
    width: 100%;
  }

  .view-btn {
    flex: 1;
    justify-content: center;
    padding: 10px 18px;
  }

  .view-btn span {
    display: none;
  }

  /* Table View */
  .products-table-view {
    border: 1px solid var(--light-gray);
  }

  .products-table {
    min-width: 500px;
  }

  .products-table th,
  .products-table td {
    padding: 14px 10px;
    font-size: 0.75rem;
  }

  .products-table th {
    min-height: 55px;
  }

  .manufacturer-tag {
    font-size: 0.6875rem;
    padding: 4px 8px;
  }

  /* Products Grid */
  .products-grid,
  .subgroups-grid,
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Card Content */
  .card-content,
  .subgroup-text-content,
  .category-content {
    padding: 16px;
  }

  .card-title {
    font-size: 0.9375rem;
    min-height: auto;
  }

  .card-button,
  .cta-button {
    padding: 12px 20px;
    font-size: 0.8125rem;
  }

  /* Typography */
  .intro-title,
  .cta-title {
    font-size: 1.5rem;
  }

  .details-title {
    font-size: 1.25rem;
  }

  .intro-text,
  .details-text,
  .cta-text {
    font-size: 0.85rem;
  }

  /* Intro Section */
  .intro-section .container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .intro-image {
    width: 100%;
    max-width: 400px;
  }

  /* Details Section */
  .details-content-block {
    flex-direction: column !important;
    gap: 25px;
    padding: 25px 0;
  }

  .details-image {
    width: 100%;
    min-width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .details-image::before {
    display: none;
  }

  /* Filter Group */
  .filter-group {
    gap: 12px;
  }

  .filter-sort,
  .filter-features {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  .filter-badge-item,
  .filter-results-item {
    flex: 1 1 100%;
    order: 5;
    margin-left: 0;
  }

  .filter-results,
  .filter-badge {
    justify-content: center;
    width: 100%;
  }

  .sort-btn,
  .filter-btn {
    padding: 10px 16px;
    font-size: 0.8125rem;
    justify-content: center;
  }

  /* Navigation */
  .nav-button {
    padding: 14px 28px;
    font-size: 1rem;
  }

  /* Feature Filters Modal */
  .feature-filters-panel {
    width: 95%;
    max-height: 85vh;
  }

  .feature-filters-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-filters-header,
  .feature-filters-footer {
    padding: 15px 20px;
  }

  .feature-filters-content {
    padding: 20px;
  }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE
======================================== */

@media (max-width: 480px) {
  /* Breadcrumb */
  .breadcrumb-section {
    padding: 15px 0;
  }

  .breadcrumb {
    font-size: 0.75rem;
    gap: 8px;
  }

  /* Hide breadcrumb text on very small screens, keep only icons */
  .breadcrumb-item:not(:last-child):not(:first-child) {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .breadcrumb-separator {
    font-size: 0.625rem;
  }

  /* Section Spacing */
  .products-section,
  .details-section,
  .subgroups-section,
  .intro-section {
    padding: 40px 0;
  }

  .cta-section,
  .navigation-section {
    padding: 50px 0;
  }

  /* Loading State */
  .products-loading {
    padding: 50px 15px;
  }

  .loader {
    width: 45px;
    height: 45px;
    border-width: 3px;
  }

  .loader::before {
    width: 30px;
    height: 30px;
  }

  .products-loading p {
    font-size: 0.9375rem;
  }

  /* View Controls */
  .view-btn {
    padding: 10px 14px;
  }

  /* Table View */
  .products-table {
    min-width: 450px;
  }

  .products-table th,
  .products-table td {
    padding: 12px 8px;
    font-size: 0.6875rem;
  }

  .products-table th {
    min-height: 50px;
    letter-spacing: 0.04em;
  }

  .col-feature {
    min-width: 80px;
  }

  /* Card Content */
  .card-content,
  .subgroup-text-content,
  .category-content {
    padding: 14px;
    gap: 10px;
  }

  .card-manufacturer {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .feature-label,
  .feature-value {
    font-size: 0.75rem;
  }

  .card-button,
  .cta-button {
    padding: 11px 18px;
    font-size: 0.75rem;
    gap: 8px;
  }

  /* Typography */
  .intro-title,
  .cta-title {
    font-size: 1.35rem;
  }

  .details-title {
    font-size: 1.15rem;
  }

  .intro-text,
  .details-text,
  .cta-text {
    font-size: 0.8125rem;
  }

  /* Filters */
  .cards-filters {
    padding: 15px 20px;
  }

  .filter-group {
    gap: 10px;
  }

  .filter-sort,
  .filter-features {
    flex: 1 1 100%;
  }

  .sort-btn,
  .filter-btn {
    width: 100%;
    padding: 12px 20px;
  }

  /* Navigation */
  .nav-button {
    padding: 12px 24px;
    font-size: 0.9375rem;
  }

  /* Intro Section */
  .intro-section .container {
    margin: 40px auto;
    gap: 25px;
  }

  .intro-image {
    max-width: 100%;
  }

  /* Details Section */
  .details-section .container {
    gap: 40px;
  }

  .details-content-block {
    padding: 20px 0;
  }

  .details-image {
    max-width: 100%;
  }

  /* Learn More Button */
  .learn-more-button {
    padding: 14px 32px;
    font-size: 0.875rem;
  }

  /* Feature Filters Modal */
  .feature-filters-header h3 {
    font-size: 1.125rem;
  }

  .close-feature-filters {
    font-size: 1.25rem;
  }

  .feature-filter-item {
    padding: 20px;
  }

  .range-value-display input[type="number"] {
    padding: 10px;
    font-size: 0.875rem;
  }

  .btn-filter-reset,
  .btn-filter-apply {
    padding: 12px 24px;
    font-size: 0.875rem;
  }

  /* Pagination */
  .pagination {
    padding: 20px 15px;
    gap: 10px;
  }

  .pagination-btn {
    padding: 10px 18px;
    font-size: 0.8125rem;
  }

  .pagination-number {
    width: 38px;
    height: 38px;
    font-size: 0.875rem;
  }
}

/* ========================================
   RESPONSIVE - EXTRA SMALL MOBILE
======================================== */

@media (max-width: 360px) {
  /* Table View */
  .products-table {
    min-width: 400px;
  }

  .products-table th,
  .products-table td {
    padding: 10px 6px;
    font-size: 0.625rem;
  }

  .products-table th {
    min-height: 48px;
  }

  .col-feature {
    min-width: 70px;
  }

  /* Card Content */
  .card-title,
  .subgroup-title,
  .category-title {
    font-size: 0.875rem;
  }

  .feature-item {
    padding: 8px 0;
  }

  /* Typography */
  .intro-title,
  .cta-title {
    font-size: 1.25rem;
  }

  .details-title {
    font-size: 1.05rem;
  }

  .intro-text,
  .details-text,
  .cta-text {
    font-size: 0.75rem;
  }

  /* Intro Section */
  .intro-section .container {
    margin: 30px auto;
  }

  /* Navigation */
  .nav-button {
    padding: 10px 20px;
    font-size: 0.875rem;
  }

  /* Pagination */
  .pagination-number {
    width: 34px;
    height: 34px;
    font-size: 0.8125rem;
  }

  .pagination-btn {
    padding: 8px 14px;
    font-size: 0.75rem;
  }
}
