/* ============================================================
   Hariwant Naturals — Premium Single Product Page
   Conversion-focused, Shopify-style layout
   Scoped tokens so the rest of the theme is untouched.
   ============================================================ */

:root {
  --hnp-green:    #1E5A3A;
  --hnp-green-2:  #2C7A4F;
  --hnp-green-50: #EAF3EE;
  --hnp-green-100:#D8EBE0;
  --hnp-gold:     #D9A441;
  --hnp-gold-50:  #FBF3E2;
  --hnp-radius:   16px;
  --hnp-radius-sm:12px;
  --hnp-shadow:   0 10px 30px rgba(30, 90, 58, .10);
  --hnp-shadow-sm:0 4px 14px rgba(30, 90, 58, .08);
  --hnp-border:   1px solid #ECECEC;
}

.hnp { font-family: var(--font-body); color: var(--hn-dark); }
.hnp * { box-sizing: border-box; }

/* Layout container */
.hnp-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.hnp-section { padding: 48px 0; }
.hnp-section__title {
  font-family: var(--font-heading);
  font-size: 1.8rem; font-weight: 700; color: var(--hnp-green);
  text-align: center; margin: 0 0 28px;
}

/* ============================================================
   HERO — 3 columns: gallery | info | purchase card
   ============================================================ */
.hnp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 32px;
  align-items: flex-start;
  padding: 32px 0;
}

/* --- Gallery --- */
.hnp-gallery { position: sticky; top: 20px; }
.hnp-gallery__main {
  position: relative;
  border-radius: var(--hnp-radius);
  overflow: hidden;
  background: #fff;
  border: var(--hnp-border);
  box-shadow: var(--hnp-shadow-sm);
}
.hnp-gallery__main img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.hnp-gallery__main:hover img { transform: scale(1.06); }
.hnp-gallery__badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--hnp-gold); color: #fff; font-weight: 700;
  font-size: .8rem; padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.hnp-gallery__actions {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: flex; flex-direction: column; gap: 8px;
}
.hnp-gallery__act {
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: var(--hnp-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--hnp-green); cursor: pointer; box-shadow: var(--hnp-shadow-sm);
  transition: all .2s ease;
}
.hnp-gallery__act:hover { background: var(--hnp-green); color: #fff; transform: translateY(-2px); }
.hnp-gallery__thumbs {
  display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px;
}
.hnp-gallery__thumb {
  width: 76px; height: 76px; flex: 0 0 auto; border-radius: var(--hnp-radius-sm);
  overflow: hidden; border: 2px solid transparent; cursor: pointer; background: #fff;
  opacity: .7; transition: all .25s ease;
}
.hnp-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hnp-gallery__thumb.is-active { border-color: var(--hnp-green); opacity: 1; }

/* --- Info column --- */
.hnp-info { min-width: 0; }
.hnp-badge-bestseller {
  display: inline-block; background: var(--hnp-green-50); color: var(--hnp-green);
  font-weight: 700; font-size: .72rem; letter-spacing: .08em;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.hnp-title {
  font-family: var(--font-heading); font-size: 2rem; font-weight: 700;
  color: var(--hn-dark); line-height: 1.15; margin: 0 0 10px;
}
.hnp-rating { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; font-size: .9rem; }
.hnp-rating__stars { color: var(--hnp-gold); display: inline-flex; gap: 2px; }
.hnp-rating__stars svg { width: 16px; height: 16px; }
.hnp-rating a, .hnp-meta-link { color: var(--hnp-green); text-decoration: none; }
.hnp-rating a:hover, .hnp-meta-link:hover { text-decoration: underline; }

.hnp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.hnp-price__now { font-size: 2rem; font-weight: 800; color: var(--hnp-green); }
.hnp-price__was { font-size: 1.1rem; color: #999; text-decoration: line-through; }
.hnp-price__off {
  background: #FDECEC; color: #C0392B; font-weight: 700; font-size: .8rem;
  padding: 3px 10px; border-radius: 999px;
}
.hnp-tax { font-size: .78rem; color: var(--hn-muted); margin-bottom: 16px; }

.hnp-desc { color: #444; line-height: 1.7; margin-bottom: 18px; }

.hnp-benefits { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.hnp-benefits li { display: flex; align-items: flex-start; gap: 10px; color: #333; font-size: .92rem; }
.hnp-benefits li svg { width: 18px; height: 18px; color: var(--hnp-green); flex: 0 0 auto; margin-top: 2px; }

.hnp-social { display: flex; gap: 18px; font-size: .82rem; color: #666; }
.hnp-social span { display: inline-flex; align-items: center; gap: 6px; }
.hnp-social svg { width: 16px; height: 16px; }

/* --- Purchase card --- */
.hnp-purchase {
  position: sticky; top: 20px;
  background: #fff; border: var(--hnp-border); border-radius: var(--hnp-radius);
  box-shadow: var(--hnp-shadow); padding: 24px;
}
.hnp-card-block + .hnp-card-block { margin-top: 20px; padding-top: 20px; border-top: 1px solid #F0F0F0; }
.hnp-card-label { font-size: .8rem; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }

.hnp-variants { display: flex; flex-wrap: wrap; gap: 10px; }
.hnp-variant {
  border: 2px solid #E6E6E6; background: #fff; border-radius: 999px;
  padding: 9px 18px; font-size: .9rem; font-weight: 600; color: #444; cursor: pointer;
  transition: all .2s ease;
}
.hnp-variant:hover { border-color: var(--hnp-green-light, #6F8D52); }
.hnp-variant.is-active { border-color: var(--hnp-green); background: var(--hnp-green-50); color: var(--hnp-green); }

.hnp-combo { display: flex; align-items: center; gap: 8px; color: var(--hnp-gold); font-weight: 700; font-size: .88rem; margin-bottom: 12px; }

.hnp-summary-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.hnp-summary-price .hnp-price__now { font-size: 1.7rem; }
.hnp-summary-meta { font-size: .82rem; color: #666; display: flex; gap: 14px; flex-wrap: wrap; }
.hnp-summary-meta b { color: var(--hnp-green); }
.hnp-stock { display: inline-flex; align-items: center; gap: 6px; color: var(--hnp-green); font-weight: 600; }
.hnp-stock svg { width: 16px; height: 16px; }

.hnp-trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hnp-trust li { display: flex; align-items: center; gap: 9px; font-size: .86rem; color: #444; }
.hnp-trust li svg { width: 18px; height: 18px; color: var(--hnp-green); flex: 0 0 auto; }

.hnp-qty { display: flex; align-items: center; gap: 0; border: 1.5px solid #E0E0E0; border-radius: 10px; overflow: hidden; width: max-content; }
.hnp-qty button {
  width: 44px; height: 46px; background: #fff; color: var(--hnp-green); font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center; transition: background .15s ease, transform .15s ease;
}
.hnp-qty button:hover { background: var(--hnp-green-50); }
.hnp-qty button:active { transform: scale(.9); }
.hnp-qty input {
  width: 54px; height: 46px; text-align: center; border: none; border-left: 1.5px solid #E0E0E0; border-right: 1.5px solid #E0E0E0;
  font-size: 1rem; font-weight: 600; color: var(--hn-dark); -moz-appearance: textfield;
}
.hnp-qty input::-webkit-outer-spin-button, .hnp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.hnp-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.hnp-btn {
  width: 100%; border-radius: 12px; padding: 15px 18px; font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  transition: all .2s ease; border: none;
}
.hnp-btn--cart { background: var(--hnp-green); color: #fff; }
.hnp-btn--cart:hover { background: var(--hnp-green-2); transform: translateY(-2px); box-shadow: var(--hnp-shadow); }
.hnp-btn--buy { background: var(--hnp-gold); color: #fff; }
.hnp-btn--buy:hover { background: #c8902f; transform: translateY(-2px); box-shadow: var(--hnp-shadow); }

.hnp-pay { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.hnp-pay span {
  background: #f5f5f5; border-radius: 6px; padding: 5px 9px; font-size: .72rem; font-weight: 700; color: #555;
}
.hnp-pay__secure { margin-left: auto; color: var(--hnp-green); font-size: .76rem; display: inline-flex; align-items: center; gap: 5px; }

/* ============================================================
   Trust bar (4 columns)
   ============================================================ */
.hnp-trustbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hnp-trustbar__item {
  background: #fff; border: var(--hnp-border); border-radius: var(--hnp-radius-sm);
  padding: 18px; display: flex; align-items: center; gap: 14px;
}
.hnp-trustbar__icon { color: var(--hnp-green); flex: 0 0 auto; }
.hnp-trustbar__icon svg { width: 26px; height: 26px; }
.hnp-trustbar__t { font-weight: 700; color: var(--hn-dark); font-size: .95rem; }
.hnp-trustbar__s { font-size: .78rem; color: var(--hn-muted); }

/* ============================================================
   Product Information (vertical tabs + content)
   ============================================================ */
.hnp-info2 { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
.hnp-vtabs { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 20px; }
.hnp-vtab {
  text-align: left; padding: 13px 16px; border-radius: 10px; font-weight: 600; color: #555;
  background: #fff; border: var(--hnp-border); cursor: pointer; transition: all .2s ease;
}
.hnp-vtab:hover { border-color: var(--hnp-green-light, #6F8D52); color: var(--hnp-green); }
.hnp-vtab.is-active { background: var(--hnp-green); color: #fff; border-color: var(--hnp-green); }
.hnp-vpanel { display: none; animation: hnp-fade .3s ease; }
.hnp-vpanel.is-active { display: block; }
@keyframes hnp-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hnp-vpanel h3 { font-family: var(--font-heading); color: var(--hnp-green); font-size: 1.25rem; margin: 0 0 12px; }
.hnp-vpanel p { color: #444; line-height: 1.8; }

.hnp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.hnp-card {
  background: #fff; border: var(--hnp-border); border-radius: var(--hnp-radius-sm); padding: 16px;
}
.hnp-card__l { font-size: .72rem; color: var(--hn-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.hnp-card__v { font-weight: 700; color: var(--hn-dark); font-size: .95rem; }

/* ============================================================
   Ingredients / How-to / Why-choose split
   ============================================================ */
.hnp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hnp-split__media {
  border-radius: var(--hnp-radius); overflow: hidden; box-shadow: var(--hnp-shadow-sm); background: var(--hnp-green-50);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: var(--hnp-green);
}
.hnp-split__media svg { width: 40%; height: 40%; opacity: .8; }
.hnp-split ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.hnp-split li { display: flex; align-items: flex-start; gap: 10px; color: #333; line-height: 1.6; }
.hnp-split li svg { width: 20px; height: 20px; color: var(--hnp-green); flex: 0 0 auto; margin-top: 2px; }

.hnp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hnp-step { text-align: center; }
.hnp-step__icon {
  width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--hnp-green-50); color: var(--hnp-green); display: flex; align-items: center; justify-content: center;
}
.hnp-step__icon svg { width: 38px; height: 38px; }
.hnp-step__t { font-weight: 700; color: var(--hn-dark); margin-bottom: 6px; }
.hnp-step__d { font-size: .88rem; color: #666; line-height: 1.6; }
.hnp-howto-note { text-align: center; margin-top: 22px; font-weight: 700; color: var(--hnp-green); }

/* ============================================================
   Testimonials / Why choose us
   ============================================================ */
.hnp-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hnp-testi {
  background: #fff; border: var(--hnp-border); border-radius: var(--hnp-radius); padding: 24px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: var(--hnp-shadow-sm);
}
.hnp-testi__top { display: flex; align-items: center; gap: 12px; }
.hnp-testi__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--hnp-green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.hnp-testi__name { font-weight: 700; color: var(--hn-dark); }
.hnp-testi__verified { font-size: .72rem; color: var(--hnp-green); display: inline-flex; align-items: center; gap: 4px; }
.hnp-testi__stars { color: var(--hnp-gold); display: inline-flex; gap: 2px; }
.hnp-testi__text { font-size: .88rem; color: #444; line-height: 1.7; font-style: italic; flex: 1; }

/* ============================================================
   Related products carousel + recently viewed
   ============================================================ */
.hnp-carousel { position: relative; }
.hnp-carousel__track {
  display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 8px; scroll-snap-type: x mandatory;
}
.hnp-carousel__track > * { scroll-snap-align: start; flex: 0 0 auto; width: 240px; }
.hnp-carousel__nav {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; background: #fff; border: var(--hnp-border);
  color: var(--hnp-green); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--hnp-shadow-sm);
}
.hnp-carousel__nav--prev { left: -8px; }
.hnp-carousel__nav--next { right: -8px; }

.hnp-recently {
  display: flex; align-items: center; gap: 18px; background: #fff; border: var(--hnp-border);
  border-radius: var(--hnp-radius); padding: 16px 20px; box-shadow: var(--hnp-shadow-sm);
}
.hnp-recently img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--hnp-radius-sm); flex: 0 0 auto; }
.hnp-recently__name { font-weight: 700; color: var(--hn-dark); margin-bottom: 6px; }
.hnp-recently__price { color: var(--hnp-green); font-weight: 700; }
.hnp-recently__btn { margin-left: auto; }

/* ============================================================
   Sticky bottom bar (desktop) + mobile sticky bar
   ============================================================ */
.hnp-stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff; box-shadow: 0 -6px 24px rgba(0,0,0,.10);
  transform: translateY(120%); transition: transform .35s ease;
}
.hnp-stickybar.is-visible { transform: translateY(0); }
.hnp-stickybar__inner { max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 16px; }
.hnp-stickybar img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.hnp-stickybar__name { font-weight: 700; color: var(--hn-dark); }
.hnp-stickybar__price { color: var(--hnp-green); font-weight: 800; }
.hnp-stickybar__was { color: #999; text-decoration: line-through; font-size: .8rem; }
.hnp-stickybar .hnp-btn { width: auto; padding: 12px 22px; }
.hnp-stickybar__spacer { margin-left: auto; display: flex; gap: 10px; }

/* Mobile sticky bar (always visible on small screens) */
.hnp-msticky { display: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hnp-hero { grid-template-columns: 1fr 1fr; }
  .hnp-purchase { grid-column: 1 / -1; position: static; }
  .hnp-info2 { grid-template-columns: 1fr; }
  .hnp-vtabs { flex-direction: row; flex-wrap: wrap; position: static; }
  .hnp-vtab { flex: 1 1 auto; text-align: center; }
  .hnp-cards { grid-template-columns: repeat(2, 1fr); }
  .hnp-trustbar { grid-template-columns: repeat(2, 1fr); }
  .hnp-testi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hnp-hero { grid-template-columns: 1fr; }
  .hnp-gallery { position: static; }
  .hnp-section { padding: 32px 0; }
  .hnp-section__title { font-size: 1.5rem; }
  .hnp-title { font-size: 1.6rem; }
  .hnp-stickybar { display: none; }
  /* Mobile sticky purchase bar */
  .hnp-msticky {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: #fff; box-shadow: 0 -6px 24px rgba(0,0,0,.12);
    padding: 10px 12px; gap: 10px; align-items: center;
  }
  .hnp-msticky__price { font-weight: 800; color: var(--hnp-green); }
  .hnp-msticky__was { font-size: .75rem; color: #999; text-decoration: line-through; }
  .hnp-msticky .hnp-btn { flex: 1; padding: 12px 10px; font-size: .92rem; }
  body.hnp-has-msticky { padding-bottom: 76px; }
  /* Accordion for info tabs on mobile */
  .hnp-vtabs { display: none; }
  .hnp-vpanel { display: block; border-top: var(--hnp-border); padding: 18px 0; }
  .hnp-vpanel h3 { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
  .hnp-vpanel h3::after { content: "+"; font-size: 1.4rem; color: var(--hnp-green); }
  .hnp-vpanel.is-collapsed .hnp-vpanel__body { display: none; }
  .hnp-vpanel.is-collapsed h3::after { content: "+"; }
  .hnp-vpanel:not(.is-collapsed) h3::after { content: "\2212"; }
  .hnp-split { grid-template-columns: 1fr; }
  .hnp-steps { grid-template-columns: 1fr; }
  .hnp-recently { flex-wrap: wrap; }
  .hnp-recently__btn { margin-left: 0; width: 100%; }
  .hnp-recently__btn .hnp-btn { width: 100%; }
}
