/* ---------------------------------------------------
Loader
--------------------------------------------------- */

.pulsegear-loader {
  display: none;
  text-align: center;
  margin: 20px 0;
}

.pulsegear-loader.active {
  display: block;
}

/* ---------------------------------------------------
Product Card Reset
--------------------------------------------------- */

ul.products li.product {
  padding: 6px !important;
  margin: 6px !important;
  background: none !important;
  box-shadow: none !important;
  margin-bottom: 40px !important;
}

/* ---------------------------------------------------
Product Cards
--------------------------------------------------- */

.custom-product-card {
  display: block;
  height: 100%;
  box-sizing: border-box;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none !important;
}

.custom-product-card .product-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.custom-product-card .product-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.custom-product-card .product-new-sticker {
  position: absolute;
  top: 0;
  right: 0;
  background: #23252a;
  color: #fff;
  padding: 4px 8px;
  margin: 8px 4px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
}

.custom-product-card .product-description-wrapper {
  background: #ddd;
  padding: 8px 12px;
}

.custom-product-card .product-description {
  font-size: 0.9rem;
  line-height: 1.2;
  color: #333;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.custom-product-card .product-footer {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: #fff;
}

.custom-product-card .woocommerce-LoopProduct-link {
  display: block;
  height: 100%;
}

/* ---------------------------------------------------
Product Grid
--------------------------------------------------- */

.pulsegear-product-cards.products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
}

.pulsegear-product-cards.products li.product {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* Grid Breakpoints */

@media (max-width: 1400px) {
  .pulsegear-product-cards.products {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .pulsegear-product-cards.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .pulsegear-product-cards.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .pulsegear-product-cards.products {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------
Pagination
--------------------------------------------------- */

.pulsegear-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 20px;
}

.pulsegear-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f4f4f4;
  color: #333;
  text-decoration: none;
  transition: 0.2s;
}

.pulsegear-pagination .page-numbers:hover {
  background: #23252a;
  color: #fff;
}

.pulsegear-pagination .page-numbers.current {
  background: #23252a;
  color: #fff;
}

/* ---------------------------------------------------
Layout
--------------------------------------------------- */

.pulsegear-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
}

.pulsegear-sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
}

/* ---------------------------------------------------
Filters
--------------------------------------------------- */

.pulsegear-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pulsegear-filters select,
.pulsegear-filters button {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.pulsegear-search {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.pulsegear-search-button {
  background: #23252a;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
}

.pulsegear-reset-button {
  display: inline-block;
  padding: 10px;
  background: #eee;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
}

/* ---------------------------------------------------
Category Selector
--------------------------------------------------- */

.pulsegear-category-selector {
  margin-bottom: 20px;
}

.pulsegear-category-selector select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* ---------------------------------------------------
Mobile Filter Drawer
--------------------------------------------------- */

.pulsegear-filter-toggle {
  display: none;
}

.pulsegear-filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  z-index: 9998;
}

.pulsegear-filter-overlay.active {
  opacity: 1;
  visibility: visible;
}

.pulsegear-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.pulsegear-filter-close {
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------------------------------------------------
Mobile Layout
--------------------------------------------------- */

@media (max-width: 900px) {
  .pulsegear-layout {
    grid-template-columns: 1fr;
  }

  .pulsegear-filter-toggle {
    display: block;
    margin-bottom: 15px;
    padding: 10px 14px;
    background: #23252a;
    color: #fff;
    border-radius: 6px;
  }

  .pulsegear-sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    width: 85%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: left 0.3s ease;
    padding: 20px;
    overflow-y: auto;
  }

  .pulsegear-sidebar.active {
    left: 0;
  }
}

.pulsegear-stolen-banner {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 25px;
  border-radius: 10px;
  background: #fff3f3;
  border: 1px solid #ffd6d6;
}

.pulsegear-stolen-icon {
  font-size: 28px;
}

.pulsegear-stolen-text strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.pulsegear-stolen-text p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}
