/* Remove all bootstrap containers and padding */
#product-category.container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.category-listing {
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Category Header */
.category-header {
  width: 100%;
  margin: 0;
  padding: 50px 0 20px 16px;
  text-align: left;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.category-header h1 {
  font-size: 1.1em;
  text-transform: uppercase;
  margin: 0;
  color: #000;
}

.category-count {
  font-size: 0.9em;
  color: #666;
  letter-spacing: 1px;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}

.product-item {
  position: relative;
  border: none;
  border-right: none;
  border-bottom: none;
  background: #fff;
}

.product-item:nth-child(4n) {
  border-right: none;
}

.product-item:nth-last-child(-n+4) {
  border-bottom: none;
}

.product-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Product Image - Desktop */
.product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fafafa;
}

.product-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.product-image-wrapper .image-primary {
  opacity: 1;
  z-index: 1;
}

.product-image-wrapper .image-hover {
  opacity: 0;
  z-index: 2;
}

.product-item:hover .product-image-wrapper .image-hover {
  opacity: 1;
}

/* Mobile Image Slider */
.product-image-slider {
  display: none;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fafafa;
}

.slider-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slider-image {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
}

.slider-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scroll Indicator - Pink Position Bar */
.scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 10;
  pointer-events: none;
}

.scroll-progress {
  position: absolute;
  left: 0;
  height: 100%;
  background: rgb(216, 82, 132);
  width: 25%;
  transition: left 0.1s ease-out;
}

/* Product Info */
.product-info {
  padding: 16px;
  background: #fff;
}

.product-name {
  font-family: 'chaneyregular', sans-serif;
  font-size: 1.2em;
  /*letter-spacing: 1px;*/
  text-transform: uppercase;
  margin: 0 0 8px 0;
  color: #000;
  line-height: 1.4;
}

.product-price {
  font-size: 0.9em;
  color: #000;
}

.product-price .price-new {
  color: #000;
}

.product-price .price-old {
  text-decoration: line-through;
  color: #999;
  margin-left: 8px;
  font-size: 12px;
}

/* Pagination */
.category-pagination {
  width: 40%;
  margin: 60px auto;
  text-align: center;
}

.pagination {
  display: inline-flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination li {
  display: inline-block;
}

.pagination a,
.pagination span {
  display: block;
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 1px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #000;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.pagination .active span {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Hide default OpenCart elements */
.breadcrumb,
#content > h2,
.btn-group,
#compare-total,
.row:has(.col-md-2) {
  display: none !important;
}

/* Mobile */
@media (max-width: 768px) {
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-item:nth-child(4n) {
    border-right: none;
  }
  
  .product-item:nth-child(2n) {
    border-right: none; 
  }
  
  .product-item:nth-last-child(-n+4) {
    border-bottom: none;
  }
  
  .product-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
  
  /* Switch to slider on mobile */
  .product-image-wrapper {
    display: none;
  }
  
  .product-image-slider {
    display: block;
  }
  
  .product-info {
    padding: 12px;
  }
  
  .product-name {
    font-size: 1.2em;
  }
  
  .product-price {
    font-size: 0.9em;
  }
  
  .category-pagination {
    width: 90%;
    margin: 40px auto;
  }
}
