/* =============================================
   AVISHI ANIMAL HEALTH — Modern Custom Styles
   Horizontal Scroll, Pack Sizes, Infographic Gallery
   ============================================= */

/* --- Badges & Utility --- */
.section-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  background: rgba(45, 106, 39, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.species-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(45, 106, 39, 0.12);
  color: var(--green-dark);
  padding: 3px 8px;
  border-radius: 20px;
}

.diet-medicine-tag, .diet-medicine-tag-sm {
  font-size: 0.72rem;
  font-weight: 700;
  background: #fff3e0;
  color: #d84315;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid #ffe0b2;
}

.gold-line {
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 10px 0 16px;
  border-radius: 2px;
}

/* --- Features Grid (Why Avishi) --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border, #e0e0d8);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(45,106,39,0.12);
  border-color: var(--gold);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.15rem;
  color: var(--green-dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.6;
}

.category-card.featured-cat {
  background: linear-gradient(145deg, #ffffff 0%, #f0f7f0 100%);
  border: 2px solid var(--gold);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.2);
}

/* --- Section Header Flex --- */
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.carousel-nav-buttons {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--gold);
  color: var(--green-dark);
  font-size: 24px;
  line-height: 1;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: var(--gold);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201, 168, 76, 0.35);
}

/* --- Horizontal Product Track --- */
.product-showcase-section {
  background: #fbfdfb;
  border-top: 1px solid #edf4ec;
  border-bottom: 1px solid #edf4ec;
  padding: 60px 0;
  overflow: hidden;
}

.horizontal-product-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 24px;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  padding: 16px 6px 28px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  width: 100%;
}

.horizontal-product-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.h-product-card {
  flex: 0 0 320px !important;
  min-width: 320px !important;
  max-width: 320px !important;
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(45, 106, 39, 0.12);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.h-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(45, 106, 39, 0.16);
  border-color: var(--gold);
}

.h-card-badge-row {
  padding: 14px 16px 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.h-card-img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 230px;
  padding: 16px;
  background: radial-gradient(circle, #fafdfa 0%, #edf5ec 100%);
  text-decoration: none;
}

.h-card-img-wrap img {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.12));
  transition: transform 0.3s ease;
}

.h-product-card:hover .h-card-img-wrap img {
  transform: scale(1.06);
}

.h-card-placeholder {
  font-size: 3.5rem;
}

.h-card-content {
  padding: 16px 18px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.h-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.h-card-title a {
  color: var(--green-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.h-card-title a:hover {
  color: var(--gold);
}

.h-card-tagline {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
  line-height: 1.35;
}

.h-card-sizes {
  margin-bottom: 12px;
}

.sizes-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.size-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.size-chip, .small-size-pill {
  font-size: 0.72rem;
  font-weight: 600;
  background: #f0f6f0;
  color: var(--green-dark);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(45, 106, 39, 0.15);
}

.h-card-intro {
  font-size: 0.84rem;
  color: var(--text-mid);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.h-card-action {
  padding: 0 18px 18px;
}

.btn-card-view {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green-dark);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-card-view:hover {
  background: var(--green);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 106, 39, 0.25);
}

/* --- PRODUCT DETAIL HERO --- */
.product-detail-hero {
  background: linear-gradient(145deg, #0e2910 0%, #1a4016 60%, #24581f 100%);
  color: #ffffff;
  padding: 36px 0 60px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 24px;
}

.product-visual-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-visual-pedestal {
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.03) 75%);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 24px;
  padding: 36px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.product-hero-img {
  max-height: 380px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.4));
}

.product-hero-placeholder {
  font-size: 5rem;
}

.product-trust-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-badge {
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  color: #e8f5e9;
}

.product-hero-info {
  display: flex;
  flex-direction: column;
}

.product-hero-info .badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.product-page-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 8px;
}

.product-tagline {
  font-size: 1.2rem;
  color: var(--gold-light);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 18px;
}

.target-animals-box {
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--gold);
  padding: 10px 16px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.target-label {
  font-weight: 700;
  color: var(--gold-light);
  margin-right: 6px;
}

.target-value {
  color: rgba(255, 255, 255, 0.95);
}

.product-intro-text {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 20px;
}

/* Pack Size Selector */
.pack-size-selector-box {
  background: rgba(255, 255, 255, 0.09);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 20px 0 24px;
}

.selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.selector-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold-light);
}

.selected-status {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.selected-status strong {
  color: #ffffff;
  font-weight: 700;
}

.pack-size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pack-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pack-pill:hover {
  background: rgba(201, 168, 76, 0.25);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.pack-pill.active {
  background: var(--gold);
  border-color: #ffffff;
  color: var(--green-dark);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.5);
  transform: translateY(-2px);
}

.product-actions-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* --- INFOGRAPHIC SLIDES MASONRY --- */
.slides-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.slide-card-item {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border: 1.5px solid rgba(45, 106, 39, 0.12);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.slide-card-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
  border-color: var(--gold);
}

.slide-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f7faf7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.slide-card-item:hover .slide-img-wrapper img {
  transform: scale(1.04);
}

.slide-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 64, 22, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.slide-card-item:hover .slide-hover-overlay {
  opacity: 1;
}

.zoom-text {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.slide-caption {
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  text-align: center;
  background: #fdfdfd;
  border-top: 1px solid #f0f0f0;
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 24, 12, 0.88);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-modal.open {
  display: flex;
  opacity: 1;
}

.lightbox-content-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content-wrap img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6);
  object-fit: contain;
  background: #ffffff;
}

.lightbox-close-btn {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #ffffff;
  color: #1a1a1a;
  font-size: 26px;
  line-height: 1;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.lightbox-close-btn:hover {
  transform: scale(1.1);
  background: #ffffff;
}

.lightbox-caption-text {
  color: #ffffff;
  font-size: 0.95rem;
  margin-top: 12px;
  text-align: center;
  font-weight: 500;
}

/* --- DETAILED CLINICAL SECTIONS --- */
.details-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
}

.full-width-card {
  grid-column: 1 / -1;
}

.detail-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(45, 106, 39, 0.12);
  padding: 32px 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.detail-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f0f4f0;
}

.detail-icon {
  font-size: 1.8rem;
}

.detail-card-header h2 {
  font-size: 1.3rem;
  color: var(--green-dark);
  font-weight: 700;
}

.detail-card-body {
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--text-mid);
}

.detail-card-body ul {
  list-style: none;
  padding-left: 0;
}

.detail-card-body li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
}

.detail-card-body li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: bold;
  font-size: 1.1rem;
  top: 0;
}

.dosage-box {
  background: #f3f8f3;
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid var(--green);
  margin-top: 10px;
}

.comparison-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

.comparison-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
}

.comparison-table-wrap th {
  background: var(--green-dark);
  color: #ffffff;
  padding: 14px 18px;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 700;
}

.comparison-table-wrap td {
  padding: 14px 18px;
  border-bottom: 1px solid #eef3ee;
  font-size: 0.9rem;
}

.comparison-table-wrap tr:nth-child(even) {
  background: #fbfdfb;
}

/* --- CATALOG FILTERS --- */
.catalog-filters-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #ffffff;
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid rgba(45, 106, 39, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-dark);
  min-width: 80px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 600;
  background: #f3f6f3;
  color: var(--text-mid);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.filter-btn:hover {
  background: rgba(201, 168, 76, 0.2);
  color: var(--green-dark);
}

.filter-btn.active {
  background: var(--green-dark);
  color: #ffffff;
  border-color: var(--green-dark);
}

.filter-btn.diet-btn.active {
  background: #d84315;
  border-color: #d84315;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 900px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-visual-pedestal {
    min-height: 320px;
    padding: 24px;
  }

  .product-hero-img {
    max-height: 300px;
  }

  .details-grid-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .h-product-card {
    flex: 0 0 280px;
    max-width: 280px;
  }

  .slides-masonry-grid {
    grid-template-columns: 1fr;
  }

  .pack-size-pills {
    gap: 6px;
  }

  .pack-pill {
    padding: 7px 12px;
    font-size: 0.84rem;
  }
}
