/* * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f9fafb;
  color: #111827;
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
} */

/* Header */
.pl-top .header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pl-top .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 25px 50px;
  max-width: 100%;
  margin: 0 auto;
}

.pl-top .header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pl-top .header-title {
  color: #111827;
  font-size: 18px;
  font-weight: 500;
  padding: 0px;
  margin: 0px;
  line-height: normal;
  letter-spacing: normal;
}

.pl-top .product-count {
  background: #dbeafe;
  color: #005491;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 400;
  padding: 2px 10px;
  margin: 0px;
  line-height: normal;
  letter-spacing: normal;
}

.pl-top .header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pl-top .search-container {
  position: relative;
}

.pl-top .search-input {
  padding: 5px 12px 5px 25px;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  width: 20rem;
  height: auto;
  outline: none;
  font-size: 12px;
  font-weight: 400;
  margin: 0px;
  line-height: normal;
  letter-spacing: normal;
}
.pl-top .search-input::placeholder {
  font-size: 12px;
  font-weight: 400;
  margin: 0px;
  line-height: normal;
  letter-spacing: normal;
}
.pl-top .search-input:focus {
  border-color: #005491;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pl-top .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  width: 12px;
  height: 12px;
}

.pl-top .sort-select {
  padding: 5px 12px;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: white;
  outline: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  margin: 0px;
  line-height: normal;
  letter-spacing: normal;
  height: auto;
  width: 12rem;
}
.pl-top .nice-select:after {
  left: unset;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 400;
  margin: 0px;
  line-height: normal;
  letter-spacing: normal;
}

.pl-top .sort-select:focus {
  border-color: #005491;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.pl-top .sort-select select {
  font-size: 12px;
  font-weight: 400;
  padding: 0px;
  margin: 0px;
  line-height: normal;
  letter-spacing: normal;
  text-transform: capitalize;
}
.pl-top .nice-select span {
  font-size: 12px;
  font-weight: 400;
  padding: 0px;
  margin: 0px;
  line-height: normal;
  letter-spacing: normal;
  text-transform: capitalize;
}
.pl-top .nice-select .option,
.pl-top .nice-select .option.selected {
  min-height: auto;
  height: auto;
  line-height: normal;
  padding: 2px 10px;
  text-transform: capitalize;
}

.pl-top .view-toggle {
  display: flex;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  overflow: hidden;
}

.pl-top .view-btn {
  padding: 0.5rem;
  background: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pl-top .view-btn.active {
  background: #005491;
  color: white;
}

.pl-top .view-btn:hover:not(.active) {
  background: #f3f4f6;
}

/* Main Layout */
.pl-bottom .main-layout {
  display: flex;
  gap: 2rem;
  padding: 5rem 0;
}

/* Sidebar */
.pl-bottom .sidebar {
  width: 30rem;
  flex-shrink: 0;
}

.pl-bottom .sidebar-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  position: sticky;
  top: 6rem;
}

.pl-bottom .sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.pl-bottom .sidebar-title {
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  padding: 0px;
  margin: 0px;
  line-height: normal;
  letter-spacing: normal;
}

.pl-bottom .category-list {
  padding: 1rem;
}

.pl-bottom .category-item {
  margin-bottom: 0.5rem;
}

.pl-bottom .category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px;
  background: #eff6ff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  color: #005491;
  font-size: 0.875rem;
}

.pl-bottom .category-header:hover {
  background: #dbeafe;
}

.pl-bottom .category-header.active {
  background: #005491;
  color: white;
}

.pl-bottom .category-name {
  flex: 1;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  padding: 0px;
  margin: 0px;
  line-height: normal;
  letter-spacing: normal;
}

.pl-bottom .chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.pl-bottom .chevron.rotated {
  transform: rotate(90deg);
}

.pl-bottom .subcategory-list {
  margin-left: 1rem;
  margin-top: 0.5rem;
  display: none;
}

.pl-bottom .subcategory-list.open {
  display: block;
}

.pl-bottom .subcategory-item {
  margin-bottom: 0.25rem;
}

.pl-bottom .subcategory-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #4b5563;
  font-size: 14px;
  font-weight: 400;
  margin: 0px;
  line-height: normal;
  letter-spacing: normal;
  text-align: left;
}

.pl-bottom .subcategory-btn:hover {
  background: #f3f4f6;
}

.pl-bottom .subcategory-btn.active {
  background: #dbeafe;
  color: #005491;
  font-weight: 500;
}

.pl-bottom .subcategory-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pl-bottom .product-count-badge {
  background: #f3f4f6;
  color: #6b7280;
  /* padding: 0.125rem 0.5rem; */
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 400;
  padding: 3px;
  margin: 0px;
  line-height: normal;
  letter-spacing: normal;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pl-bottom .subcategory-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.pl-bottom .subcategory-btn.active .subcategory-chevron {
  transform: rotate(90deg);
}

.pl-bottom .product-list-container {
  margin-left: 1rem;
  margin-top: 0.25rem;
  display: none;
  border-left: 2px solid #e5e7eb;
  padding-left: 0.75rem;
}

.pl-bottom .product-list-container.open {
  display: block;
}

.pl-bottom .product-item {
  padding: 5px;
  font-size: 0.875rem;
  color: #6b7280;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: all 0.2s;
  margin-bottom: 0.25rem;
}

.pl-bottom .product-item:hover {
  color: #005491;
  background: #f8fafc;
}

.pl-bottom .product-name {
  color: #374151;
  font-size: 14px;
  font-weight: 400;
  margin: 0px;
  line-height: normal;
  letter-spacing: normal;
}

.pl-bottom .product-model {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-left: 0.25rem;
}

.pl-bottom .clear-filters {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.pl-bottom .clear-btn {
  width: 100%;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 400;
  padding: 10px;
  margin: 0px;
  line-height: normal;
  letter-spacing: normal;
}

.pl-bottom .clear-btn:hover {
  background: #f9fafb;
}

/* Product Grid */
.pl-bottom .product-grid {
  flex: 1;
}

.pl-bottom .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.pl-bottom .products-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pl-bottom .product-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
  overflow: hidden;
  padding: 1.5rem;
}

.pl-bottom .product-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.pl-bottom .product-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f3f4f6;
  /* margin-bottom: 15px; */
  border-radius: 0.5rem;
}
img.product-image[src="admin/uploads/placeholder.svg"] {
  object-fit: cover;
}

.pl-bottom .product-content {
  /* padding: 1.5rem; */
  /* margin-top: 15px; */
}

.pl-bottom .product-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  margin-top: 15px;
}

.pl-bottom .product-info h3 {
  font-size: 16px;
  font-weight: 500;
  color: #111827;
  padding: 0;
  margin: 0;
  margin-bottom: 5px;
  line-height: normal;
  letter-spacing: normal;
}

.pl-bottom .product-model {
  font-size: 14px;
  color: #6b7280;
  font-weight: normal;
  padding: 0;
  margin: 0;
  margin-bottom: 5px;
  line-height: normal;
  letter-spacing: normal;
}

.pl-bottom .stock-badge {
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  margin: 0;
  margin-bottom: 5px;
  line-height: normal;
  letter-spacing: normal;
}

.pl-bottom .in-stock {
  background: #dcfce7;
  color: #166534;
}

.pl-bottom .out-of-stock {
  background: #fef2f2;
  color: #dc2626;
}

.pl-bottom .product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0px;
}

.pl-bottom .product-category {
  font-size: 12px;
  color: #6b7280;
  font-weight: normal;
  padding: 0;
  margin: 0;
  margin-bottom: 0px;
  line-height: normal;
  letter-spacing: normal;
}

.pl-bottom .product-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #005491;
}

.pl-bottom .product-actions {
  display: flex;
  gap: 0.5rem;
}

.pl-bottom .btn {
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 14px;
  font-weight: normal;
  padding: 5px 0px;
  margin: 0;
  line-height: normal;
  letter-spacing: normal;
  width: 50%;
}

.pl-bottom .btn-primary {
  background: #005491;
  color: white;
  flex: 1;
  font-size: 14px;
  font-weight: normal;
  padding: 5px 0px;
  margin: 0;
  line-height: normal;
  letter-spacing: normal;
  width: 50%;
}

.pl-bottom .btn-primary:hover:not(:disabled) {
  /* background: #2563eb; */
  background: #ac0000;
}

.pl-bottom .btn-primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.pl-bottom .btn-secondary {
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
}

.pl-bottom .btn-secondary:hover {
  background: #f9fafb;
}

.pl-bottom .no-products {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

.pl-bottom .no-products h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.pl-bottom .no-products p {
  font-size: 0.875rem;
}

/* List View Styles */
.pl-bottom .product-card.list-view {
  display: flex !important;
  align-items: center;
  padding: 1rem;
}

.pl-bottom .product-card.list-view .product-image {
  width: 6rem;
  height: 6rem;
  flex-shrink: 0;
  margin-right: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 0px;
}

.pl-bottom .product-card.list-view .product-content {
  padding: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pl-bottom .product-card.list-view .product-actions {
  margin-left: 1rem;
}

.pl-bottom .product-card.list-view .product-model {
  margin-bottom: 0px;
}

/* Product List */
.pl-bottom .product-actions {
  margin-top: 15px;
  gap: 10px !important;
}
.pl-bottom .product-actions button {
  width: 50%;
  border-radius: 5px;
}
.product-image-container {
  position: relative;
  background: #eaeaea;
}
.pl-bottom .stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #005491;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 50px;
}

/* Responsive */
@media (max-width: 1024px) {
  .pl-bottom .main-layout {
    flex-direction: column;
  }

  .pl-bottom .sidebar {
    width: 100%;
  }

  .pl-bottom .sidebar-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .pl-top .header-content {
    flex-direction: column;
    height: auto;
    padding: 1rem;
    gap: 1rem;
  }

  .pl-top .header-title {
    font-size: 1.5rem;
  }

  .pl-top .header-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .pl-top .search-input {
    width: 100%;
    min-width: 200px;
  }

  .pl-bottom .products-grid {
    grid-template-columns: 1fr;
  }

  .pl-bottom .sidebar {
    width: 100%;
  }

  .pl-bottom .main-layout {
    gap: 1rem;
    padding: 1rem 0;
  }
}

@media (max-width: 480px) {
  .pl-top .header-content {
    padding: 0.5rem;
  }

  .pl-bottom .container {
    padding: 0 0.5rem;
  }

  .pl-bottom .product-content {
    padding: 1rem;
  }

  .pl-bottom .sidebar-card {
    margin: 0;
  }

  .pl-bottom .category-list {
    padding: 0.5rem;
  }

  .pl-bottom .sidebar-header {
    padding: 1rem;
  }
}
