/* ==========================================================================
   Codehive Ecommerce Course Marketplace Catalog (Udemy-Style)
   ========================================================================== */

/* Breadcrumb */
.shop-breadcrumb {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 0;
  font-size: 13px;
}
.shop-breadcrumb .shop-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.shop-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color .15s ease;
}
.shop-breadcrumb a:hover {
  color: #0f172a;
}
.shop-breadcrumb .sep {
  color: #94a3b8;
  font-size: 13px;
}
.shop-breadcrumb .current {
  color: #0f172a;
  font-weight: 700;
}

/* Udemy-Style Hero Header */
.shop-hero {
  background: #1c1d1f;
  color: #ffffff;
  padding: 36px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.shop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.shop-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  z-index: 1;
}
.shop-hero-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 6px;
}
.shop-hero h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 10px;
  color: #ffffff;
  letter-spacing: -0.5px;
}
.shop-hero-desc {
  font-size: 15px;
  line-height: 1.55;
  color: #d1d7dc;
  max-width: 680px;
  margin: 0;
}
.shop-hero-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  min-width: 140px;
  flex-shrink: 0;
}
.hero-badge-num {
  font-size: 32px;
  font-weight: 900;
  color: #f59e0b;
  line-height: 1;
}
.hero-badge-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #cbd5e1;
  margin-top: 4px;
}

/* Horizontal Category / Topic Pills Bar */
.shop-topics-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 0;
  position: relative;
  z-index: 5;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.topics-scroll-row {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}
.topics-scroll-row::-webkit-scrollbar {
  display: none;
}
.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  white-space: nowrap;
  background: #ffffff;
  transition: all .15s ease;
  flex-shrink: 0;
}
.topic-pill:hover {
  background: #f8fafc;
  border-color: #1c1d1f;
  color: #0f172a;
}
.topic-pill.is-active {
  background: #1c1d1f;
  color: #ffffff;
  border-color: #1c1d1f;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.topic-count {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}
.topic-pill.is-active .topic-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Shop Container */
.shop-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Two-Column Shop Layout */
.shop-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 28px 0 60px;
}
.shop-layout.sidebar-hidden {
  grid-template-columns: 1fr;
}
.shop-sidebar.desktop-collapsed {
  display: none !important;
}

/* Left Filter Sidebar (Desktop Sticky) */
.shop-sidebar {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.sidebar-sticky-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.sidebar-desktop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 6px;
}
.sidebar-title {
  font-size: 15px;
  font-weight: 800;
  color: #1c1d1f;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-reset-link {
  font-size: 13px;
  font-weight: 700;
  color: #4f46e5;
  text-decoration: none;
}
.sidebar-reset-link:hover {
  text-decoration: underline;
}

/* Filter Accordions */
.filter-accordion {
  border-bottom: 1px solid #f1f5f9;
  padding: 12px 0;
}
.filter-accordion:last-of-type {
  border-bottom: none;
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  color: #1c1d1f;
  user-select: none;
  padding: 4px 0;
}
.accordion-header::-webkit-details-marker {
  display: none;
}
.accordion-caret {
  font-size: 12px;
  color: #64748b;
  transition: transform .2s ease;
}
details[open] > .accordion-header .accordion-caret {
  transform: rotate(180deg);
}
.accordion-body {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.scrollable-options {
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 4px;
}

/* Radio Options Row */
.filter-radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #334155;
  transition: background .15s ease;
  margin: 0;
}
.filter-radio-row:hover {
  background: #f8fafc;
  color: #0f172a;
}
.filter-radio-row input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}
.radio-custom {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  position: relative;
  transition: all .15s ease;
  background: #fff;
  box-sizing: border-box;
}
.filter-radio-row input[type="radio"]:checked ~ .radio-custom {
  border-color: #1c1d1f;
  background: #1c1d1f;
}
.filter-radio-row input[type="radio"]:checked ~ .radio-custom::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}
.filter-label {
  flex: 1;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filter-radio-row input[type="radio"]:checked ~ .filter-label {
  font-weight: 700;
  color: #0f172a;
}
.filter-num {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}
.stars-gold {
  color: #e59819;
  font-size: 13px;
  letter-spacing: 1px;
}
.rating-stars-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mobile Drawer Header & Footer - Hidden on Desktop */
.drawer-header-mobile,
.sidebar-mobile-footer,
.shop-sidebar-backdrop {
  display: none;
}

/* Ecommerce Shop Toolbar */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}
.toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.shop-filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid #1c1d1f;
  background: #ffffff;
  color: #1c1d1f;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}
.shop-filter-toggle-btn:hover {
  background: #f8fafc;
}
.active-count-badge {
  background: #1c1d1f;
  color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.toolbar-results-count {
  font-size: 15px;
  color: #334155;
}
.toolbar-results-count strong {
  font-weight: 800;
  color: #0f172a;
}
.count-range {
  color: #64748b;
  font-size: 13px;
  margin-left: 4px;
}
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.toolbar-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.tb-search-icon {
  position: absolute;
  left: 12px;
  color: #64748b;
  font-size: 16px;
  pointer-events: none;
}
.tb-search-input {
  height: 42px;
  padding: 0 34px 0 36px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
  background: #ffffff;
  outline: none;
  width: 220px;
  transition: border-color .15s, box-shadow .15s, width .2s ease;
}
.tb-search-input:focus {
  border-color: #1c1d1f;
  box-shadow: 0 0 0 3px rgba(28, 29, 31, 0.08);
  width: 260px;
}
.tb-search-clear {
  position: absolute;
  right: 10px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 4px;
}
.toolbar-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sort-label {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}
.shop-sort-select {
  height: 42px;
  padding: 0 32px 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1c1d1f;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat calc(100% - 12px) center;
  appearance: none;
  cursor: pointer;
  outline: none;
}
.shop-sort-select:focus {
  border-color: #1c1d1f;
}

/* Active Filter Chips Bar */
.shop-active-chips-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.active-chips-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}
.chips-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  transition: all .15s ease;
}
.active-chip:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}
.chip-remove {
  font-size: 11px;
  color: #64748b;
}
.active-chip:hover .chip-remove {
  color: #b91c1c;
}
.clear-all-chips-btn {
  font-size: 12px;
  font-weight: 700;
  color: #4f46e5;
  text-decoration: underline;
  margin-left: 6px;
}

/* Course Cards Grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Udemy-Style Marketplace Card */
.marketplace-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.marketplace-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

/* Card Media / Thumbnail */
.card-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #18181b;
  overflow: hidden;
}
.marketplace-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.marketplace-thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.marketplace-card:hover .marketplace-thumbnail img {
  transform: scale(1.04);
}
.thumbnail-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e1e24 0%, #2a221b 100%);
}
.thumbnail-hive {
  width: 50px;
  height: 54px;
  color: #f59e0b;
}
.thumbnail-topic {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

/* Card Tags & Heart */
.shop-card-mode {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}
.shop-card-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  z-index: 2;
}
.bestseller-badge {
  background: #eceb98;
  color: #3d3c0a;
  border: 1px solid rgba(0,0,0,0.06);
}
.free-badge {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.marketplace-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: all .15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 0;
}
.marketplace-heart:hover {
  background: #ffffff;
  transform: scale(1.08);
  color: #dc2626;
}
.marketplace-heart.active {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

/* Card Body */
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.shop-card-category {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #b45309;
  margin-bottom: 4px;
}
.marketplace-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 6px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 40px !important;
}
.marketplace-title a {
  color: #0f172a !important;
  text-decoration: none !important;
  transition: color .15s ease;
}
.marketplace-title a:hover {
  color: #d97706 !important;
}
.marketplace-summary {
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.marketplace-instructor {
  font-size: 12px !important;
  color: #64748b !important;
  margin: 0 0 8px 0 !important;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Ratings */
.marketplace-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.rating-num {
  font-size: 14px;
  font-weight: 800;
  color: #b45309;
}
.marketplace-stars {
  position: relative;
  display: inline-block;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 2px;
  white-space: nowrap;
}
.stars-fill {
  position: absolute;
  left: 0;
  top: 0;
  color: #e59819;
  overflow: hidden;
  white-space: nowrap;
}
.marketplace-rating-count {
  font-size: 11px;
  color: #64748b;
}
.marketplace-rating-badge {
  font-size: 10px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Metadata */
.marketplace-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 11px;
  color: #64748b;
  flex-wrap: wrap;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #94a3b8;
}

/* Price */
.marketplace-price-row {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  margin-bottom: 12px;
}
.price-container {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.current-price {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}
.current-price.is-free {
  color: #16a34a;
  font-size: 16px;
}
.original-price {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
}
.discount-pill {
  font-size: 11px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Card Actions */
.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 16px;
}
.btn-card-explore {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: all .15s ease;
}
.btn-card-explore:hover {
  background: #1c1d1f;
  border-color: #1c1d1f;
  color: #ffffff;
}
.btn-card-cart {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #d97706;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .15s ease;
}
.btn-card-cart:hover {
  background: #f59e0b;
  color: #ffffff;
  transform: scale(1.05);
}

/* Empty State */
.shop-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
}
.empty-icon-wrap {
  font-size: 40px;
  color: #94a3b8;
  margin-bottom: 12px;
}
.shop-empty-state h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}
.shop-empty-state p {
  font-size: 14px;
  color: #64748b;
  max-width: 520px;
  margin: 0 auto 20px;
  line-height: 1.5;
}
.btn-reset-filters {
  display: inline-block;
  padding: 10px 22px;
  background: #1c1d1f;
  color: #ffffff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease;
}
.btn-reset-filters:hover {
  background: #0f172a;
}

/* Udemy-Style Pagination */
.shop-pagination {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: center;
}
.pagination-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1c1d1f;
  text-decoration: none;
  background: #ffffff;
  transition: all .15s ease;
}
.page-arrow:hover:not(.disabled) {
  border-color: #1c1d1f;
  background: #f8fafc;
}
.page-arrow.disabled {
  color: #cbd5e1;
  border-color: #e2e8f0;
  background: #f8fafc;
  pointer-events: none;
  cursor: not-allowed;
}
.page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1c1d1f;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  transition: all .15s ease;
}
.page-num:hover:not(.is-active) {
  border-color: #1c1d1f;
  background: #f8fafc;
}
.page-num.is-active {
  background: #1c1d1f;
  color: #ffffff;
  border-color: #1c1d1f;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.page-dots {
  padding: 0 4px;
  color: #94a3b8;
  font-weight: 700;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1180px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .shop-hero {
    padding: 28px 0;
  }
  .shop-hero-badge {
    display: none;
  }
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 96px;
  }

  /* Slide-over Mobile Drawer */
  .shop-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 320px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    z-index: 99999 !important;
    background: #ffffff !important;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.2);
    overflow-y: auto;
    padding: 0 !important;
    display: block !important;
  }
  .shop-sidebar.is-open {
    transform: translateX(0) !important;
  }
  .shop-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .shop-sidebar-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .drawer-header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 2;
  }
  .drawer-title {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .drawer-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
  }
  .active-badge {
    font-size: 11px;
    font-weight: 700;
    background: #1c1d1f;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 999px;
  }
  .drawer-close-btn {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: #475569;
  }
  .sidebar-desktop-header {
    display: none;
  }
  .sidebar-sticky-wrap {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 12px 20px 80px;
  }
  .sidebar-mobile-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
    z-index: 2;
  }
  .btn-sidebar-apply {
    flex: 1;
    background: #1c1d1f;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .btn-sidebar-reset {
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    background: #f1f5f9;
    border-radius: 8px;
  }
  body.filter-drawer-open {
    overflow: hidden !important;
  }
}

@media (max-width: 640px) {
  .shop-container {
    padding: 0 16px;
  }
  .shop-hero h1 {
    font-size: 22px;
  }
  .shop-hero-desc {
    font-size: 13px;
  }
  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .toolbar-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .toolbar-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .toolbar-search-form {
    width: 100%;
  }
  .toolbar-search-wrap,
  .tb-search-input {
    width: 100% !important;
  }
  .toolbar-sort-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .shop-sort-select {
    flex: 1;
    min-width: 0;
  }
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .page-num, .page-arrow {
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }
  .page-num {
    width: 38px;
  }
}
