/* ==========================================================================
   PRODUCTS PAGE SPECIFIC STYLES
   ========================================================================== */

/* Page Hero Overrides (if any) */
.page-hero {
  padding: 160px 0 80px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--white);
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.breadcrumb a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.breadcrumb a:hover {
  opacity: 1;
}

.breadcrumb span {
  margin: 0 8px;
  opacity: 0.6;
}

.breadcrumb .current {
  color: var(--orange-primary);
  font-weight: 600;
  opacity: 1;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.page-hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Products Section */
.products-section {
  padding: var(--section-padding);
  background: var(--off-white);
  min-height: 800px;
}

/* Filter & Search */
.filter-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

.search-bar {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  background: transparent;
}

.search-bar button {
  background: var(--blue-primary);
  color: var(--white);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

.search-bar button:hover {
  background: var(--orange-primary);
  transform: scale(1.05);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.filter-tab {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.1);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.filter-tab:hover {
  border-color: var(--blue-light);
  color: var(--blue-primary);
  transform: translateY(-2px);
}

.filter-tab.active {
  background: var(--gradient-hero);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(26, 60, 143, 0.2);
}

/* Results Info */
.results-info {
  text-align: right;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

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

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

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* Product Card - reused mostly from index.css, just some specific layout tweaks */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.product-card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  z-index: 2;
}

.badge-rx { background: var(--gradient-orange); }
.badge-otc { background: var(--gradient-hero); }
.badge-nutra { background: var(--gradient-green); }

.product-card-body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category-tag {
  font-size: 0.8rem;
  color: var(--blue-light);
  font-weight: 600;
  margin-bottom: 10px;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--near-black);
}

.product-composition {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
  flex: 1;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.product-type {
  font-size: 0.85rem;
  color: var(--near-black);
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-view-btn {
  color: var(--orange-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.product-view-btn:hover {
  color: var(--orange-dark);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 50px 0;
  grid-column: 1 / -1;
}

.no-results-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-results h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--blue-primary);
}

.no-results p {
  color: #666;
  margin-bottom: 20px;
}

/* Product Modal */
.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.product-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.product-modal-overlay.active .product-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.05);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s, color 0.3s;
}

.modal-close:hover {
  background: var(--orange-primary);
  color: var(--white);
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

@media (max-width: 768px) {
  .modal-content-grid {
    grid-template-columns: 1fr;
  }
}

.modal-image-col {
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 300px;
}

.modal-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 500px;
}

.modal-badge {
  position: absolute;
  top: 20px;
  left: 20px;
}

.modal-info-col {
  padding: 40px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--blue-primary);
  margin-bottom: 5px;
}

.modal-category {
  color: var(--orange-primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 20px;
}

.modal-desc {
  font-size: 1.05rem;
  color: var(--near-black);
  margin-bottom: 30px;
  line-height: 1.6;
}

.modal-details {
  display: grid;
  gap: 15px;
  margin-bottom: 30px;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.detail-label {
  font-weight: 600;
  color: var(--blue-primary);
  width: 120px;
  flex-shrink: 0;
}

.detail-value {
  color: #555;
}

.modal-action {
  margin-top: 30px;
}
