/* PHST Horizontal Product Section - 6 Products (Bigger) */
.phst-horizontal-section {
  margin: 40px 0;
}

.phst-scroll-container {
  position: relative;
  padding: 0 10px;
}

.phst-scroll-container.with-arrows {
  padding: 0 60px;
}

/* Horizontal scrollable container */
.phst-horizontal-products {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 20px;
  padding-bottom: 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

/* Custom scrollbar */
.phst-horizontal-products::-webkit-scrollbar {
  height: 8px;
}

.phst-horizontal-products::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.phst-horizontal-products::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.phst-horizontal-products::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Product items - 6 visible on desktop */
.phst-product-item {
  flex: 0 0 calc(16.666% - 16.667px);
  min-width: calc(16.666% - 16.667px);
  max-width: calc(16.666% - 16.667px);
  scroll-snap-align: start;
}

.phst-product-item > * {
  width: 100%;
  height: 100%;
}

/* Navigation arrows - Noon.com style */
.phst-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #333;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
  line-height: 1;
}

.phst-scroll-btn:hover {
  background: #f5f5f5;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  transform: translateY(-50%) scale(1.1);
}

.phst-scroll-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.phst-scroll-left {
  left: 0;
}

.phst-scroll-right {
  right: 0;
}

/* Clean title styling for horizontal products */
.phst-horizontal-title {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 20px 0;
  padding: 0;
  letter-spacing: -0.01em;
}

/* Large Desktop (1400px+): 6 products with more breathing room */
@media (min-width: 1400px) {
  .phst-horizontal-products {
    gap: 24px;
  }
  
  .phst-product-item {
    flex: 0 0 calc(16.666% - 20px);
    min-width: calc(16.666% - 20px);
    max-width: calc(16.666% - 20px);
  }
}

/* Tablet: 4 products visible */
@media (min-width: 768px) and (max-width: 1023px) {
  .phst-horizontal-products {
    gap: 18px;
  }
  
  .phst-product-item {
    flex: 0 0 calc(25% - 13.5px);
    min-width: calc(25% - 13.5px);
    max-width: calc(25% - 13.5px);
  }
  
  .phst-scroll-container.with-arrows {
    padding: 0 50px;
  }
}

/* Mobile: 2 products visible */
@media (max-width: 767px) {
  .phst-horizontal-section {
    padding: 0;
  }
  
  .phst-scroll-container {
    padding: 0;
  }
  
  .phst-scroll-container.with-arrows {
    padding: 0;
  }
  
  .phst-horizontal-products {
    gap: 12px;
  }
  
  .phst-product-item {
    flex: 0 0 calc(50% - 6px);
    min-width: calc(50% - 6px);
    max-width: calc(50% - 6px);
  }
  
  .phst-scroll-btn {
    display: none;
  }
  
  .phst-horizontal-title {
    font-size: 18px;
    margin: 0 0 16px 0;
  }
}
