/* Product Listing Section Styles */
.categories-sidebar {
  background: #fff;
  border: 1px solid #eef1f2;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  margin-bottom: 30px;
}
.categories-sidebar .sidebar-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #222;
  border-bottom: 2px solid #35a5cc;
  padding-bottom: 10px;
  display: inline-block;
}
.categories-sidebar .sidebar-group {
  margin-bottom: 24px;
}
.categories-sidebar .sidebar-group:last-child {
  margin-bottom: 0;
}
.categories-sidebar .sidebar-group-title {
  font-size: 13px;
  color: #888;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.categories-sidebar .sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.categories-sidebar .sidebar-list li {
  margin-bottom: 4px;
}
.categories-sidebar .sidebar-list li:last-child {
  margin-bottom: 0;
}
.categories-sidebar .sidebar-list span {
  color: #555;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.categories-sidebar .sidebar-list span:hover {
  color: #1a4a5e;
  background: #f4f9fb;
}
.categories-sidebar .sidebar-list span.active-link {
  color: #1a4a5e;
  background: #e6f0f5;
  font-weight: 600;
  border-left: 3px solid #35a5cc;
}

/* Models Grid Styles */
.models-list .section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #222;
}
.models-list .section-description {
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.6;
}
.models-list .models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.models-list .model-card {
  width: 100%;
  background: #fff;
  border: 1px solid #eef1f2;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.models-list .model-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.models-list .model-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}
.models-list .model-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #222;
}
.models-list .model-card p {
  font-size: 15px;
  color: #666;
  margin: 0 0 24px 0;
  flex-grow: 1;
}
.models-list .view-details-btn {
  background: #35a5cc;
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: background 0.2s;
}
.models-list .view-details-btn:hover {
  background: #2a88a8;
}

/* Model Detail View Styles */
.detail-view .back-btn {
  background: #8c9496;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
}
.detail-view .back-btn:hover {
  background: #767d7f;
}

.detail-container {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef1f2;
}

.detail-header {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 30px;
}

.detail-image {
  flex: 0 0 300px;
}

.detail-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #f8f8f8;
  padding: 15px;
}

.detail-info h2 {
  font-size: 32px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
}

.detail-info .model-name {
  font-size: 20px;
  color: #555;
  margin: 0;
}

.detail-body {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.detail-col {
  flex: 1;
}

.info-section {
  margin-bottom: 30px;
}

.info-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222;
  position: relative;
  padding-bottom: 8px;
}

.info-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: #35a5cc;
}

.specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #bbb;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.specs-table tr:nth-child(even) {
  background-color: #f9fafb;
}

.specs-table td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid #bbb;
  border-right: 1px solid #bbb;
  vertical-align: middle;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table td:last-child {
  border-right: none;
}

.specs-table .spec-label {
  font-weight: 700;
  color: #222;
  width: 40%;
  background-color: #f1f4f6;
  border-right: 1px solid #bbb;
}

.specs-table .spec-val {
  color: #333;
  font-weight: 500;
}

.features-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.features-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: #555;
  line-height: 1.6;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #35a5cc;
  font-weight: bold;
}

.horizontal-divider {
  height: 1px;
  background: #eef1f2;
  margin: 20px 0;
}

.sizes-img {
  width: 100%;
  border-radius: 8px;
  margin-top: 15px;
}

.specs-bullets {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.specs-bullets li {
  position: relative;
  padding-left: 20px;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.specs-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #35a5cc;
  font-weight: bold;
}

.description-text {
  line-height: 1.8;
  color: #555;
  font-size: 16px;
  white-space: pre-wrap;
}

@media (max-width: 991px) {
  .detail-header {
    flex-direction: column;
    text-align: center;
  }
  .detail-body {
    flex-direction: column;
  }
  .detail-image {
    flex: 0 0 auto;
    width: 250px;
  }
  .models-list .models-grid {
    grid-template-columns: repeat(2, 1fr); 
  }
}
@media (max-width: 576px) {
  .models-list .models-grid {
    grid-template-columns: 1fr;
  }
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eef1f2;
  flex-wrap: wrap;
  gap: 20px;
}

.pagination-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pagination-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  border-color: #35a5cc;
  color: #35a5cc;
  background: #f4f9fb;
}

.pagination-btn.active {
  background: #35a5cc;
  color: #fff !important;
  border-color: #35a5cc;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8f8f8;
  color: #999;
}

.pagination-info {
  font-size: 14px;
  color: #444;
  font-weight: 500;
}

.limit-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #444;
  font-weight: 500;
}

.limit-selector select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #333;
  outline: none;
  cursor: pointer;
  font-weight: 600;
}

/* Responsive Pagination */
@media (max-width: 576px) {
  .pagination-container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding-bottom: 20px;
  }
  
  .pagination-controls {
    justify-content: center;
    width: 100%;
    gap: 5px;
  }

  .pagination-btn {
    width: 36px;
    height: 36px;
    font-size: 13px;
    border-radius: 6px;
  }

  .pagination-info {
    order: 2;
    font-size: 13px;
  }
  
  .limit-selector {
    justify-content: center;
    width: 100%;
    margin-bottom: 5px;
  }
}
