.we-shop-ajax-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  margin-top: 2rem;
  position: relative;
}

/* Hamburger Menu */
.we-hamburger {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background: #0099ff;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin: 0 auto 16px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.we-hamburger:hover {
  background: #0088ee;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 153, 255, 0.3);
}

.we-hamburger svg {
  flex-shrink: 0;
  color: white;
  width: 1em;
  height: auto;
}

.we-hamburger-text {
  color: white;
  font-weight: 500;
}

/* Overlay */
.we-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.we-sidebar-overlay.active {
  opacity: 1;
}

@media (max-width: 1024px) {
  .we-shop-ajax-wrap {
    grid-template-columns: 1fr;
  }

  .we-hamburger {
    display: flex;
  }

  .we-sidebar-overlay.active {
    display: block;
  }

  .we-content h2 {
    text-align: center;
    font-size: 27px;
  }
}
.we-sidebar {
  /* border: 1px solid #eee; */
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  position: sticky;
  top: 16px;
  height: max-content;
  transition: transform 0.3s ease;
margin-top:12px;
}

@media (max-width: 1024px) {
  .we-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 300px;
    max-width: 85vw;
    z-index: 1000;
    transform: translateX(-100%);
    overflow-y: auto;
    border-radius: 0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  }

  .we-sidebar.active {
    transform: translateX(0);
  }
}
.we-field {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  padding-bottom: 8px;
  border-bottom: 1px solid #ccc;
}

.we-field input[type="search"],
.we-field input[type="text"],
.we-field input[type="number"],
.we-field select {
  font-family: inherit;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease;
}

.we-field input[type="search"]:focus,
.we-field input[type="text"]:focus,
.we-field input[type="number"]:focus,
.we-field select:focus {
  border-color: #0099ff;
}

.we-field input[type="search"] {
  padding-left: 24px !important;
  border-radius: 8px;
  margin: 8px 0;
}

.we-details {
  /* border: 1px solid #eee; */
  /* border-radius: 10px; */
  padding: 8px 12px 24px 0;
  background: #fff;
  overflow: hidden;
}

.we-details .we-checklist {
  animation: slideDown 0.3s ease-out;
  transform-origin: top;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
.we-details > summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  font-size: 21px;
  outline: none;
  position: relative;
  padding-bottom: 12px;
}

.we-details > summary::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: #0099ff;
  margin-top: 8px;
  position: absolute;
  bottom: 0;
  left: 0;
}
.we-details > summary::-webkit-details-marker {
  display: none;
}
.we-details > summary::after {
  content: "";
  float: right;
  width: 10px;
  height: 10px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg) translateY(-2px);
  margin-top: 12px;
  transition: transform 0.3s ease;
}
.we-details[open] > summary::after {
  transform: rotate(-135deg) translateY(2px);
}
.we-checklist {
  display: flex;
  flex-wrap: wrap;
  /* gap: 8px; */
  margin-top: 16px;
  flex-direction: column;
}
.we-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  /* border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #e5e7eb; */
  color: #111827;
  cursor: pointer;
  user-select: none;
  width: 100%;
}

.we-chip > span:first-of-type {
  flex: 1;
}

.we-chip-count {
  color: #000;
  font-size: 13px;
  font-weight: 400;
  margin-left: auto;
  flex-shrink: 0;
}
/* .we-chip:hover {
  background: #f3f4f6;
} */
.we-chip input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  background-color: white;
  transition: all 0.2s ease;
}

.we-chip input[type="checkbox"]:hover {
  border-color: #0099ff;
}

.we-chip input[type="checkbox"]:checked {
  background-color: #0099ff;
  border-color: #0099ff;
}

.we-chip input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.we-field legend {
  font-weight: 600;
  margin-bottom: 6px;
}
.we-label {
  display: block;
  font-weight: 600;
  font-size: 21px;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 12px;
}

.we-label::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: #0099ff;
  margin-top: 8px;
  position: absolute;
  bottom: 0;
  left: 0;
}
.we-range input {
  width: 49%;
  max-width: 180px;
}
.we-content {
  padding:14px 0;
}

.badge-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #e3f2fd;
  color: #000;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  /*border: 1px solid #90caf9;*/
}

.filter-badge-remove {
  background: none;
  border: none;
  color: #000;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: 2px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.filter-badge-remove:hover {
  background: rgba(0, 102, 204, 0.1);
}

.we-summary {
  margin-bottom: 16px;
  color: #555;
  position: relative;
  padding-bottom: 12px;
}

.we-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 400px;
}

@media (min-width: 768px) {
  .we-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .we-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

/* Course Card Styles */
.course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #fff;
  position: relative;
}

.course-image-cover {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
}

.course-card picture {
  display: block;
  background: #f5f5f5;
}

.course-body-t {
  padding: 1rem 1rem 0 1rem;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-body-b {
  border-top: solid 1px #e3e3e3;
  padding: 0 1rem 1rem 1rem;
  margin-top: auto;
}

.course-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3em;
  line-height: 1.5em;
}

@media (min-width: 768px) {
  .course-title {
    font-size: 19px;
  }
}

.course-title a {
  color: #333;
  text-decoration: none;
}

.course-badge {
  display: inline-block;
  width: fit-content;
  background: #0099ff;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-bottom: 0.75rem;
  padding-top: 0.5rem;
  font-size: 0.85rem;
  color: #555;
  flex-wrap: wrap;
}

.course-time {
  font-size: 12px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.current-price {
  font-size: 24px;
  font-weight: bold;
  color: #e53935;
}

.old-price {
  font-size: 0.9rem;
  text-decoration: line-through;
  color: #aaa;
  margin-left: 8px;
}

.course-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 1rem;
}

.course-actions .cart-icon svg {
  width: 22px;
  height: 22px;
}

.btn-buy-detail {
  background: #0066cc;
  color: #fff;
  padding: 8px 40px;
  border-radius: 40px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s;
  line-height: 1.4;
  white-space: nowrap;
}

.btn-buy-detail:hover {
  background: #1f3cc6;
}

@media (max-width: 767px) {
  .course-actions {
    gap: 8px;
  }

  .course-actions .cart-icon svg {
    width: 18px;
    height: 18px;
  }

  .btn-buy-detail {
    padding: 5px 12px;
    font-size: 13px;
  }
}
.we-pagination {
  margin: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.we-page-btn {
  padding: 8px 14px;
  /*border: 1px solid #ddd;*/
  background: #fff;
  color: #333;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 40px;
}

.we-page-btn:hover {
  background: #f5f5f5;
  border-color: #0099ff;
}

.we-page-num.active {
  background: #0099ff;
  color: white;
  border-color: #0099ff;
}

.we-page-num.active:hover {
  background: #0088ee;
}

.we-page-prev,
.we-page-next {
  padding: 8px 16px;
  font-weight: 400;
}

.we-page-ellipsis {
  color: #999;
  padding: 0 4px;
  user-select: none;
}

/* Skeleton Loading */
.we-skeleton {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #fff;
}

.we-skel {
  position: relative;
  overflow: hidden;
  background: #eee;
  border-radius: 8px;
}

.we-skel:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: we-skel-shimmer 1.2s infinite;
}

.we-skel-img {
  aspect-ratio: 2 / 1;
  width: 100%;
  border-radius: 0;
}

.we-skeleton-body {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.we-skel-line {
  height: 20px;
  border-radius: 6px;
}

.we-skel-line.title {
  height: 24px;
  margin-bottom: 4px;
}

.we-skel-line.short {
  width: 60%;
}

.we-skel-badge {
  height: 28px;
  width: 110px;
  border-radius: 20px;
  margin-top: auto;
}

.we-skel-price {
  height: 30px;
  width: 120px;
  border-radius: 6px;
  margin-top: 8px;
}

.we-skel-button {
  height: 36px;
  border-radius: 40px;
  margin-top: 8px;
}

@keyframes we-skel-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
