/* RAGHAV FOOD - Product Page Enhancements v2 */

/* ======================================================
   PRODUCT HERO — CLEAN GRADIENT (No background image)
   ====================================================== */

.product-hero-clean {
  background: linear-gradient(135deg, #16233F 0%, #0d2a5e 55%, #16233F 100%);
  padding: 130px 0 55px;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  width: 100%;
  box-sizing: border-box;
}

/* Animated colour blobs */
.phc-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
}
.phc-blob-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(247,108,27,0.18) 0%, transparent 70%);
  top: -120px; right: -60px;
  animation: blobFloat 8s ease-in-out infinite;
}
.phc-blob-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(30,90,200,0.22) 0%, transparent 70%);
  bottom: -80px; left: 8%;
  animation: blobFloat 11s ease-in-out infinite reverse;
}
@keyframes blobFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-20px) scale(1.05); }
}

/* Subtle grid overlay */
.phc-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Hero content */
.phc-inner {
  position: relative;
  z-index: 2;
}

.phc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.phc-breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.phc-breadcrumb a:hover { color: #3D9B28; }

.phc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.phc-badge-featured {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #3D9B28, #ff9553);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.phc-badge-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.88);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
}

.phc-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  max-width: 760px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.phc-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 24px;
}

.phc-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.phc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.3px;
}

.phc-btn-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}
.phc-btn-wa:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,211,102,0.45);
}

.phc-btn-call {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
}
.phc-btn-call:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

/* ======================================================
   TRUST BADGES — 2x2 Grid (v2)
   ====================================================== */

.trust-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.trust-card-v2 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(0,28,60,0.07);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,28,60,0.04);
  transition: all 0.2s ease;
}

.trust-card-v2:hover {
  border-color: rgba(247,108,27,0.25);
  background: #fffaf6;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(247,108,27,0.08);
}

.trust-icon-v2 {
  font-size: 1.7rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.trust-text-v2 {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-text-v2 strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #001C3C;
  line-height: 1.2;
}

.trust-text-v2 span {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.35;
}

/* ======================================================
   PRODUCT GALLERY
   ====================================================== */

.product-gallery-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-gallery {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(10,31,68,0.12);
  border: 1px solid rgba(0,28,60,0.06);
}

.gallery-main-wrap {
  position: relative;
  background: #fff;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  overflow: hidden;
  padding: clamp(14px, 2.4vw, 28px);
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.16s ease, transform 0.4s ease;
  display: block;
}

.gallery-main-wrap:hover .gallery-main-img {
  transform: scale(1.015);
}

.gallery-main-placeholder {
  font-size: 6rem;
  background: linear-gradient(135deg, #001C3C, #003366);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.gallery-main-wrap:hover .gallery-zoom-hint { opacity: 1; }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.92);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #001C3C;
  box-shadow: 0 2px 12px rgba(0,0,0,0.16);
  transition: all 0.2s;
  z-index: 2;
  line-height: 1;
}
.gallery-nav:hover {
  background: #3D9B28;
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.gallery-nav-prev { left: 12px; }
.gallery-nav-next { right: 12px; }

.gallery-thumb-strip {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
  border-top: 1px solid rgba(0,28,60,0.06);
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery-thumb-strip::-webkit-scrollbar { display: none; }

.gallery-thumb-item {
  width: 68px; height: 58px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: all 0.2s;
  opacity: 0.62;
}
.gallery-thumb-item img { width:100%; height:100%; object-fit:cover; display:block; }
.gallery-thumb-item:hover { opacity: 0.88; border-color: rgba(247,108,27,0.5); }
.gallery-thumb-item.active {
  border-color: #3D9B28;
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(247,108,27,0.28);
}

/* ======================================================
   LIGHTBOX
   ====================================================== */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s, visibility 0.28s;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: fixed;
  top: 20px; right: 24px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
  z-index: 100000;
}
.lightbox-close:hover { background: #3D9B28; transform: rotate(90deg); }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 100000;
  line-height: 1;
}
.lightbox-nav:hover { background: #3D9B28; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

/* ======================================================
   PRODUCT SPECS GRID
   ====================================================== */

.product-specs-section { margin-bottom: 28px; }
.product-specs-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #001C3C;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}

.product-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.spec-item-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: #fff;
  border: 1px solid rgba(0,28,60,0.07);
  border-radius: 10px;
  padding: 9px 12px;
  transition: all 0.2s;
}
.spec-item-card:hover {
  border-color: rgba(247,108,27,0.3);
  background: #fffaf6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(247,108,27,0.08);
}

.spec-card-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }

.spec-card-body { display: flex; flex-direction: column; min-width: 0; }

.spec-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #3D9B28;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.spec-card-value {
  font-size: 0.8rem;
  color: #1e293b;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}

/* ======================================================
   CROSS-SELLING SECTIONS
   ====================================================== */

.cross-sell-section { background: #f8fafc; }

.cross-sell-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cross-sell-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,28,60,0.06);
  box-shadow: 0 4px 16px rgba(0,28,60,0.06);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
}
.cross-sell-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3D9B28, #ff9553);
  transform: scaleX(0);
  transition: transform 0.3s;
  border-radius: 16px 16px 0 0;
}
.cross-sell-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,28,60,0.14); }
.cross-sell-card:hover::after { transform: scaleX(1); }

.cross-sell-img {
  height: 160px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.cross-sell-img img { width:100%; height:100%; object-fit:contain; padding:10px; box-sizing:border-box; transition: transform 0.4s; }
.cross-sell-card:hover .cross-sell-img img { transform: scale(1.03); }

.cs-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: linear-gradient(135deg, #3D9B28, #ff9553);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.cross-sell-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }

.cs-category-tag {
  display: inline-block;
  background: rgba(10,31,68,0.06);
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.cross-sell-body h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #001C3C;
  margin-bottom: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cross-sell-body p {
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cs-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3D9B28;
  font-size: 0.78rem;
  font-weight: 700;
  transition: gap 0.2s;
  margin-top: auto;
}
.cross-sell-card:hover .cs-cta { gap: 10px; }

/* ======================================================
   MACHINE CARD HOVER EFFECT
   ====================================================== */

.machine-card { border-left: 4px solid transparent; }
.machine-card:hover {
  border-left-color: #3D9B28;
  box-shadow: 0 20px 50px rgba(10,31,68,0.15);
  transform: translateY(-4px);
}
.feature-tag { transition: all 0.2s; }
.feature-tag:hover { background: rgba(247,108,27,0.12); color: #3D9B28; }

/* ======================================================
   RESPONSIVE / MOBILE
   ====================================================== */

@media (max-width: 900px) {
  .product-hero-clean { padding: 110px 0 40px; }
  .phc-title { font-size: 1.55rem; }
  .phc-subtitle { font-size: 0.88rem; }
  .cross-sell-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cross-sell-img { height: 130px; }
  .cross-sell-body p { display: none; }
  .product-specs-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .product-hero-clean { padding: 100px 0 32px; }
  .phc-title { font-size: 1.3rem; word-break: break-word; }
  .phc-subtitle { display: none; }
  .phc-actions { gap: 8px; }
  .phc-btn { padding: 10px 16px; font-size: 0.8rem; flex: 1; text-align: center; justify-content: center; min-width: 0; }
  .cross-sell-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cross-sell-img { height: 105px; font-size: 1.8rem; }
  .cross-sell-body { padding: 10px; }
  .cross-sell-body h4 { font-size: 0.76rem; word-break: break-word; }
  .product-specs-grid { grid-template-columns: 1fr; }
  .spec-item-card { padding: 8px 10px; }
  .trust-grid-v2 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .trust-icon-v2 { font-size: 1.4rem; }
  .trust-text-v2 strong { font-size: 0.72rem; word-break: break-word; }
  .trust-text-v2 span { font-size: 0.6rem; display: block; word-break: break-word; overflow-wrap: break-word; }
  .machine-img { min-height: 200px; max-height: 220px; }
  .machine-body { padding: 16px; }
  .gallery-nav { width: 34px; height: 34px; font-size: 1.1rem; }
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .product-cta-group { flex-direction: column; }
  .product-cta-group .btn { justify-content: center; width: 100%; }

  /* Product detail info: prevent text overflow */
  .product-detail-info {
    overflow: hidden;
    width: 100%;
    min-width: 0;
  }
  .product-detail-info h2 {
    font-size: 1.25rem !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .product-description {
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .product-gallery-col {
    overflow: hidden;
    width: 100%;
  }
}

@media (max-width: 380px) {
  .phc-title { font-size: 1.15rem; }
  .trust-grid-v2 { grid-template-columns: 1fr; }
  .spec-list div:nth-child(n+5) { display: none; }
}
