.products-inline-1 {
  padding: 60px 50px; max-width: 1200px; margin: 0 auto;
}

.products-inline-2 {
  font-size: 36px; margin-bottom: 30px; color: #1a3a52;
}

.products-inline-3 {
  font-size: 16px; color: #666; line-height: 1.8; margin-bottom: 40px;
}

.products-inline-4 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px;
}

.products-inline-5 {
  text-decoration: none; color: inherit;
}

.products-inline-6 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 30px; border-radius: 12px; color: white; transition: transform 0.3s;
}

.products-inline-7 {
  font-size: 24px; margin-bottom: 15px;
}

.products-inline-8 {
  opacity: 0.9;
}

.products-inline-9 {
  margin-top: 20px; font-size: 14px; opacity: 0.8;
}

.products-inline-10 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); padding: 30px; border-radius: 12px; color: white; transition: transform 0.3s;
}

.products-inline-11 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); padding: 30px; border-radius: 12px; color: white; transition: transform 0.3s;
}

.products-inline-12 {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); padding: 30px; border-radius: 12px; color: white; transition: transform 0.3s;
}

.search-results-horizontal {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 0;
}

/* Add spacing between result cards */
.search-results-horizontal .category-card-link {
  margin-right: 20px;
}

/* Clear search button styling */
.search-results-horizontal .clear-search-btn {
  background: #ffffff;
  color: #333333;
  border: 1px solid #cccccc;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  align-self: center;
}
.search-results-horizontal .clear-search-btn:hover {
  background: #f0f0f0;
}

.search-results-horizontal .category-card-link {
  flex: 0 0 auto;
  width: 260px;
}

.products-inline-13 {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); padding: 30px; border-radius: 12px; color: white; transition: transform 0.3s;
}

/* ==========================================================================
   ENHANCED PRODUCTS PAGE  (All Products section)
   ========================================================================== */
.all-products-section {
  padding: 70px 50px;
  max-width: 1400px;
  margin: 0 auto;
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f6 100%);
}

.ap-header {
  text-align: center;
  margin-bottom: 40px;
}

.ap-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0f7490;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 6px 16px;
  background: rgba(15, 116, 144, 0.08);
  border-radius: 50px;
}

.ap-title {
  font-size: 40px;
  margin: 0 0 14px 0;
  color: #1a3a52;
  font-weight: 800;
  line-height: 1.15;
}

.ap-subtitle {
  font-size: 17px;
  color: #5a6b78;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Toolbar: search + sort */
.ap-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
}

.ap-search-wrap {
  position: relative;
  flex: 1 1 420px;
  max-width: 560px;
}

.ap-search-input {
  width: 100%;
  padding: 16px 52px 16px 22px;
  font-size: 16px;
  border: 2px solid #dfe6eb;
  border-radius: 50px;
  outline: none;
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
  box-sizing: border-box;
}

.ap-search-input:focus {
  border-color: #0f7490;
  box-shadow: 0 0 0 4px rgba(15, 116, 144, 0.12);
}

.ap-search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: #0f7490;
  pointer-events: none;
}

.ap-sort {
  padding: 14px 18px;
  font-size: 15px;
  border: 2px solid #dfe6eb;
  border-radius: 50px;
  background: #fff;
  color: #1a3a52;
  cursor: pointer;
  outline: none;
  transition: border-color 0.25s;
}

.ap-sort:focus {
  border-color: #0f7490;
}

/* Category filter pills */
.ap-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px;
}

.ap-pill {
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid #dfe6eb;
  border-radius: 50px;
  background: #fff;
  color: #4a5b68;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.ap-pill:hover {
  border-color: #0f7490;
  color: #0f7490;
  transform: translateY(-2px);
}

.ap-pill.active {
  background: #0f7490;
  border-color: #0f7490;
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 116, 144, 0.28);
}

.ap-result-count {
  text-align: center;
  font-size: 14px;
  color: #5a6b78;
  margin-bottom: 28px;
  min-height: 20px;
}

.ap-result-count strong {
  color: #0f7490;
}

/* Products grid */
.ap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
}

/* Product card */
.ap-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(26, 58, 82, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #eef2f5;
  animation: apFadeUp 0.5s ease both;
}

.ap-card.clickable {
  cursor: pointer;
}

.ap-card.clickable:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(15, 116, 144, 0.18);
  border-color: rgba(15, 116, 144, 0.25);
}

@keyframes apFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ap-img-wrap {
  position: relative;
  padding-top: 92%;
  background: linear-gradient(135deg, #f6f9fb 0%, #eef3f6 100%);
  overflow: hidden;
}

.ap-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 22px;
  box-sizing: border-box;
  transition: transform 0.4s ease;
}

.ap-card.clickable:hover .ap-img {
  transform: scale(1.07);
}

.ap-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 116, 144, 0.92);
  color: #fff;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  backdrop-filter: blur(4px);
}

.ap-badge.soon {
  background: rgba(255, 170, 0, 0.95);
  color: #3a2c00;
  left: auto;
  right: 12px;
}

.ap-card-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ap-card-name {
  font-size: 18px;
  margin: 0 0 6px 0;
  color: #1a3a52;
  font-weight: 700;
  line-height: 1.35;
}

.ap-card-cat {
  font-size: 13px;
  color: #0f7490;
  font-weight: 600;
  margin: 0 0 14px 0;
}

.ap-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background: #0f7490;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.25s, gap 0.25s;
}

.ap-card-cta:hover {
  background: #0d6278;
  gap: 12px;
}

.ap-card-cta-soon {
  margin-top: auto;
  padding: 11px 20px;
  background: #eef2f5;
  color: #8595a0;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  font-weight: 600;
}

/* States */
.ap-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
  color: #5a6b78;
  font-size: 16px;
}

.ap-state.error { color: #dc3545; }

.ap-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #dfe6eb;
  border-top-color: #0f7490;
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: apSpin 0.8s linear infinite;
}

@keyframes apSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .all-products-section { padding: 44px 18px; }
  .ap-title { font-size: 30px; }
  .ap-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
  .ap-img { padding: 14px; }
  .ap-card-body { padding: 14px; }
  .ap-card-name { font-size: 15px; }
}
