/* ===== Hero ===== */
.ap-hero {
  padding: 60px 0 40px;
  background: #F2F8FF;
}

.ap-breadcrumb {
  color: #1e63e6;
  font-size: 13px;
  text-align: center;
  margin-bottom: 16px;
}

.ap-title {
  color: #1e63e6;
  font-weight: 700;
  font-size: 48px;
  text-align: center;
  margin: 0;
}

/* ===== Content ===== */
.ap-content {
  padding: 40px 0 80px;
  background: #fff;
}

/* Search bar */
.ap-search-bar {
  display: flex;
  border: 1px solid #d1e2ff;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 30px;
}

.ap-search-bar input {
  border: 0;
  outline: 0;
  padding: 16px 24px;
  flex: 1;
  font-size: 15px;
  color: #333;
}

.ap-search-bar input::placeholder {
  color: #a0bce6;
}

.ap-search-btn {
  width: 52px;
  height: 52px;
  border: 0;
  background: #0d6efd;
  color: #fff;
  border-radius: 50%;
  margin: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.ap-search-btn:hover {
  background: #0b5ed7;
}

/* Toolbar */
.ap-toolbar {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.ap-results {
  color: #1e63e6;
  font-size: 14px;
  font-weight: 600;
}

.ap-view-toggles {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
}

.ap-view-icon {
  color: #1e63e6;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.ap-view-icon.active {
  opacity: 1;
}

.ap-toggle {
  background: #fff;
  border: 2px solid #1e63e6;
  border-radius: 0;
  padding: 10px 24px;
  color: #1e63e6;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.ap-toggle:hover {
  background: #1e63e6;
  color: #fff;
}

/* ===== Product Cards ===== */
.ap-card {
  background: #fff;
  border: 1px solid #f0f4ff;
  border-radius: 0;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.ap-card:hover {
  box-shadow: 0 4px 20px rgba(30, 99, 230, 0.08);
}

.ap-card-top {
  height: 280px;
  background: #F2F8FF;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 30px;
}

.ap-card-fav {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #a0bce6;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s;
}

.ap-card-fav:hover {
  color: #0d6efd;
}

.ap-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ap-card-body {
  padding: 20px;
  flex-grow: 1;
}

.ap-card-name {
  color: #1e63e6;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
}

.ap-card-price {
  color: #1e63e6;
  font-weight: 600;
  font-size: 14px;
}

/* ===== Filter Sidebar (slides from right) ===== */
.ap-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.ap-sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.ap-sidebar {
  position: fixed;
  top: 0;
  left: -400px;
  width: 380px;
  height: 100%;
  background: #F2F8FF;
  z-index: 1050;
  overflow-y: auto;
  padding: 0 28px 40px;
  transition: left 0.3s ease;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.ap-sidebar.open {
  left: 0;
}

/* Sidebar header */
.ap-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #e8f0ff;
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.ap-sidebar-back {
  color: #1e63e6;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ap-sidebar-title {
  color: #1e63e6;
  font-weight: 700;
  font-size: 16px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.ap-sidebar-done {
  color: #1e63e6;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* Sidebar search */
.ap-sidebar-search {
  display: flex;
  border: 1px solid #d1e2ff;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 24px;
}

.ap-sidebar-search input {
  border: 0;
  outline: 0;
  padding: 10px 16px;
  flex: 1;
  font-size: 13px;
}

.ap-sidebar-search button {
  width: 40px;
  height: 40px;
  border: 0;
  background: #0d6efd;
  color: #fff;
  border-radius: 50%;
  margin: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* Filter groups */
.ap-filter-group {
  margin-bottom: 24px;
}

.ap-filter-label {
  color: #1e63e6;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.ap-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ap-chip {
  border: 1px solid #d1e2ff;
  padding: 10px 18px;
  border-radius: 1px;
  background: #fff;
  color: #1e63e6;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.ap-chip:hover,
.ap-chip.selected {
  background: #1e63e6;
  color: #fff;
  border-color: #1e63e6;
}

.ap-see-all {
  color: #1e63e6;
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
  cursor: pointer;
}

/* Sort buttons */
.ap-sort-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ap-sort-btn {
  border: 2px solid #1e63e6;
  background: #fff;
  color: #1e63e6;
  padding: 12px 8px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.ap-sort-btn:hover,
.ap-sort-btn.active {
  background: #1e63e6;
  color: #fff;
}

/* Price range */
.ap-price-row {
  display: flex;
  justify-content: space-between;
  color: #1e63e6;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.ap-range {
  width: 100%;
  accent-color: #1e63e6;
}

/* Grid toggle: 2-column view */
.ap-grid.view-2 .col-lg-4 {
  flex: 0 0 50%;
  max-width: 50%;
}

/* ===== Responsive ===== */
@media(max-width: 768px) {
  .ap-title {
    font-size: 36px;
  }

  .ap-sidebar {
    width: 100%;
    left: -100%;
  }

  .ap-card-top {
    height: 200px;
  }
}

@media(max-width: 576px) {
  .ap-title {
    font-size: 28px;
  }

  .ap-toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .ap-toggle {
    width: 100%;
  }

  .ap-view-toggles {
    margin: 0;
  }
}