/* =========================================================
   HLO HAIRS — PRODUCT CSS
   Section 1: brand variables
   Section 2: original styles (unchanged — same visual look)
   Section 3: new dynamic sections (built to match brand system)
   ========================================================= */

:root {
  --hlo-primary: #511f20;
  --hlo-primary-dark: #3d1718;
  --hlo-accent: #f5a623;
  --hlo-light-bg: #f5f5f5;
  --hlo-border: #ddd;
  --hlo-text-muted: #999;
  --hlo-radius: 10px;
  --hlo-max-width: 1200px;
}

/* ===========================================================
   ORIGINAL STYLES (extracted verbatim from single-lp_product.php,
   moved here unchanged so the look stays identical)
   =========================================================== */

    header#site-header, footer#site-footer {
    display: none;
}

/* ===== LAYOUT ===== */
.product { display:flex; max-width:1200px; margin:auto; padding:40px 20px; gap:60px; }
.product__media { width:55%; }
.product__info { width:45%; position:sticky; top:100px; }

/* ===== SLIDER ===== */
.media-gallery { position:relative; overflow:hidden; border-radius:12px; }
.media-track { display:flex; transition:transform 0.5s ease; }
.media-slide { width:100%; height:520px; object-fit:cover; flex-shrink:0; }

/* ARROWS */
.media-arrow {
  position:absolute; top:50%; transform:translateY(-50%);
  background:#fff; border:none; width:40px; height:40px;
  border-radius:50%; cursor:pointer; z-index:2;
}
.prev { left:10px; }
.next { right:10px; }

/* THUMBS */
.media-thumbs { display:flex; gap:10px; margin-top:15px; }
.media-thumbs img {
  width:70px; height:70px; object-fit:cover;
  cursor:pointer; opacity:0.6; border-radius:8px;
}
.media-thumbs img.active {
  opacity:1; border:2px solid #511f20;
}

/* TEXT */
.product__title { font-size:28px; font-weight:600; margin-bottom:10px; }
.stars { color:#f5a623; margin-bottom:10px; }
.price { font-size:24px; margin-bottom:15px; }
.old-price { text-decoration:line-through; color:#999; margin-left:10px; font-weight: 300; }

/* BUTTON */
.buy-btn {
  width:100%; padding:15px; background:#511f20; color:#fff;
  border:none; border-radius:6px; font-size:16px; cursor:pointer;
  animation:pulse 1.5s infinite;
}
@keyframes pulse {
  0% { box-shadow:0 0 0 0 rgba(81,31,32,0.6); }
  70% { box-shadow:0 0 0 15px rgba(81,31,32,0); }
  100% { box-shadow:0 0 0 0 rgba(81,31,32,0); }
}

/* BADGES */
.badges { display:flex; gap:10px; margin:15px 0; flex-wrap:wrap; }
.badge { background:#f5f5f5; padding:8px 12px; border-radius:20px; font-size:13px; }

/* POPUP */
.popup {
  display:none; position:fixed; inset:0;
  background:#00000080; z-index:999;
}
.popup-box {
  background:#fff; padding:20px;
  max-width:400px; margin:100px auto; border-radius:8px;
}
.popup input,.popup textarea {
  width:100%; margin-bottom:10px; padding:10px;
}

/* RELATED */
.related { max-width:1200px; margin:80px auto; }
.related h2 { text-align:center; margin-bottom:30px; }

.r-track { display:flex; gap:12px; transition:0.4s; overflow-x:auto; scroll-snap-type: x mandatory; }
.r-item { flex:0 0 25%; }
.r-track .r-card { flex: 0 0 260px; scroll-snap-align: start; text-decoration:none; color:inherit; display:block;border: 1px solid #eee; border-radius: 10px; overflow: hidden; }
.r-card img { width:100%; height:200px; object-fit:cover; }
.r-meta { padding:10px; }
.r-price { color:#511f20; font-weight:bold; margin-top: 10px; }
section.hlo-section.related {padding-bottom: 60px; }

/* MOBILE */
@media(max-width:768px){
  .product { flex-direction:column; }
  .product__media,.product__info { width:100%; }
}


.popup-box {
  max-width:420px;
  margin:40px auto;
  background:#fff;
  border-radius:12px;
  padding:20px;
  max-height:90vh;
  overflow-y:auto;
}

.popup-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:15px;
}

.popup-product {
  display:flex;
  gap:10px;
  margin-bottom:15px;
}
.popup-product img {
  width:60px;
  border-radius:6px;
}

.p-title { font-size:14px; font-weight:600; }
.p-price { font-size:14px; font-weight:bold; }

.popup-summary {
  background:#f5f5f5;
  padding:10px;
  border-radius:8px;
  margin-bottom:15px;
}
.popup-summary div {
  display:flex;
  justify-content:space-between;
  margin-bottom:5px;
}
.popup-summary .total {
  font-weight:bold;
}

.section-title {
  text-align:center;
  margin:15px 0;
  font-size:30px;
}

.popup-form input,
.popup-form textarea {
  width:100%;
  padding:12px;
  margin-bottom:10px;
  border:1px solid #ddd;
  border-radius:6px;
  font-size:14px;
}

.btn-primary {
  width:100%;
  background:#000;
  color:#fff;
  padding:14px;
  border:none;
  margin-top:10px;
  font-weight:bold;
}

.btn-secondary {
  width:100%;
  background:#000;
  color:#fff;
  padding:14px;
  margin-top:10px;
}

.discount-text {
  text-align:center;
  color:red;
  font-size:13px;
  margin-top:10px;
}

.custom-header {
  background: #511f20;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  gap: 10px;
}

.logo img {
  width: 160px;
}

.hamburger {
  font-size: 22px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: none;
}

/* SEARCH */
.search {
  position: relative;
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
}


form.search-form {
    width: 100%;
}

.search-form input {
  padding: 8px 12px;
  border-radius: 4px;
  border: none;
}


.search-icon-mobile img{
    max-height: 15px;
}
button#searchToggle {
    border: none;
}
/* ICONS */
.icons {
    display: flex;
    gap: 10px;
}
.icons a {
  color: #fff;
  text-decoration: none;
  margin-left: 15px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.icons img {
  width: 20px;
}

/* NAV */
.nav {
  background: #fff;
  color: #000;
  display: flex;
  justify-content: center;
}

.nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 10px 20px;
  gap: 25px;
}

.nav a {
  text-decoration: none;
  color: #000;
}

/* MOBILE */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
  }

  .nav.active {
    display: flex;
  }

  .search {
    display: none;
  }
nav.nav.active {
    position: absolute;
    z-index: 10 !important;
}
nav.nav.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}
  nav.nav.active ul {
    flex-direction: column;
    min-height: 100dvh;
    min-width: 300px;
    z-index: 11 !important;
    background: #fff;
}
/* 
  .search-form.active {
    display: block;
    position: absolute;
    top: 40px;
    right: 0;
    background: #fff;
    padding: 10px;
  } */
}

.custom-footer {
  background: #511f20;
  color: #fff;
  padding: 50px 20px 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer-logo {
  width: 160px;
  margin-bottom: 10px;
}

.footer-col h4 {
  margin-bottom: 15px;
  font-size: 16px;
}

.footer-col p {
  font-size: 14px;
  color: #ddd;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  color: #ddd;
  text-decoration: none;
  font-size: 14px;
}

.footer-col ul a:hover {
  color: #fff;
}

/* NEWSLETTER */
.newsletter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter input {
  padding: 10px;
  border: none;
  border-radius: 4px;
}

.newsletter button {
  padding: 10px;
  background: #fff;
  color: #511f20;
  border: none;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
}

/* BOTTOM */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #6b2c2f;
  padding-top: 15px;
  font-size: 13px;
  color: #ccc;
}

/* MOBILE */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .newsletter {
    flex-direction: column;
  }
}

/* ===========================================================
   NEW DYNAMIC SECTIONS — matches brand system above
   =========================================================== */

.hlo-section { max-width: var(--hlo-max-width); margin: 0 auto; padding: 60px 20px 0px; }
.hlo-section-title { text-align: center; font-size: 34px; margin-bottom: 40px; color: var(--hlo-primary); }
.hlo-section-subtitle { text-align: center; color: var(--hlo-text-muted); margin-bottom: 40px; }

/* ---- Hero ---- */
.hlo-hero { background: var(--hlo-light-bg); text-align: center; padding: 60px 20px; }
.hlo-hero-badge { display: inline-block; background: var(--hlo-accent); color: #fff; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.hlo-hero h1 { font-size: 34px; color: var(--hlo-primary); margin: 0 0 10px; }
.hlo-hero-sub { font-size: 17px; color: #555; margin-bottom: 24px; }
.hlo-hero-chips { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.hlo-hero-chips span { background: #fff; border: 1px solid var(--hlo-border); padding: 6px 14px; border-radius: 20px; font-size: 13px; }
.hlo-hero .btn-primary { display: inline-block; width: auto; padding: 14px 34px; background: var(--hlo-primary); color: #fff; border-radius: 6px; text-decoration: none; font-weight: 600; border: none; cursor: pointer; font-size: 15px; }

/* ---- Trust icons ---- */
section.hlo-section:has(.hlo-trust-grid) { padding: 10px 20px; }
.hlo-trust-grid { display: grid; gap: 10px; grid-template-columns: repeat(4,1fr); justify-content: space-between !important; }
.hlo-trust-item { text-align: center; border: 1px solid #eee; padding: 15px 5px; border-radius: 15px; }
.hlo-trust-item img { width: 48px; height: 48px; object-fit: contain; margin-bottom: 10px; }
.hlo-trust-item h4 { margin: 0 0 4px; font-size: 15px; color: var(--hlo-primary); }
.hlo-trust-item p { margin: 0; font-size: 13px; color: var(--hlo-text-muted); }

/* ---- Reviews ---- */
.hlo-reviews-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
.hlo-review-card { flex: 0 0 280px; scroll-snap-align: start; background: #fff; border: 1px solid var(--hlo-border); border-radius: var(--hlo-radius); padding: 18px; }
.hlo-review-card .stars { color: var(--hlo-accent); margin-bottom: 8px; }
.hlo-review-card .verified-badge { font-size: 11px; color: #2e7d32; font-weight: 600; margin-left: 6px; }
.hlo-review-card img.review-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.hlo-review-name { font-weight: 600; color: var(--hlo-primary); }
.hlo-review-date { font-size: 12px; color: var(--hlo-text-muted); }

/* ---- Before / After ---- */
.hlo-ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.hlo-ba-card { border: 1px solid var(--hlo-border); border-radius: var(--hlo-radius); overflow: hidden; background: #fff; }
.hlo-ba-images { display: flex; }
.hlo-ba-images img { width: 50%; height: 220px; object-fit: cover; }
.hlo-ba-body { padding: 16px; position: relative; }
.hlo-ba-badge { position: absolute; top: -14px; right: 16px; background: var(--hlo-accent); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; }
.hlo-ba-body h4 { margin: 0 0 6px; color: var(--hlo-primary); }
.hlo-ba-duration { font-size: 12px; color: var(--hlo-text-muted); }

/* ---- Image + Content blocks ---- */
.hlo-ic-block { display: flex; align-items: center; gap: 40px; margin-bottom: 50px; flex-wrap: wrap; }
.hlo-ic-block.reverse { flex-direction: row-reverse; }
.hlo-ic-block img { width: 45%; min-width: 260px; border-radius: var(--hlo-radius); }
.hlo-ic-text { flex: 1; min-width: 260px; }
.hlo-ic-text h3 { color: var(--hlo-primary); font-size: 24px; margin-bottom: 10px; }
.hlo-ic-text .btn-primary { display: inline-block; margin-top: 14px; padding: 12px 26px; background: var(--hlo-primary); color: #fff; border-radius: 6px; text-decoration: none; border: none; cursor: pointer; font-size: 15px; font-weight: 600; }

/* ---- Ingredients ---- */
.hlo-ing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.hlo-ing-card { text-align: center; background: #511f20; padding: 20px 15px; border-radius: 15px; }
.hlo-ing-card img { width: 90px; height: 90px; object-fit: cover; border-radius: 50%; margin-bottom: 10px; }
.hlo-ing-card h4 { margin: 0 0 4px; color: #ffffff; font-size: 22px; margin-bottom: 10px; }
.hlo-ing-card p { font-size: 15px; color: #fff; margin: 0; }

/* ---- Results timeline ---- */
.hlo-timeline { position: relative; max-width: 700px; margin: 0 auto; }
.hlo-timeline::before { content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: var(--hlo-border); }
.hlo-timeline-item { position: relative; padding-left: 56px; margin-bottom: 34px; }
.hlo-timeline-item::before { content: ''; position: absolute; left: 14px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--hlo-primary); }
.hlo-timeline-week { color: var(--hlo-accent); font-weight: 700; font-size: 13px; }
.hlo-timeline-item h4 { margin: 4px 0; color: var(--hlo-primary); }
.hlo-timeline-item img { max-width: 100%; border-radius: var(--hlo-radius); margin-top: 8px; }

/* ---- How to use ---- */
.hlo-steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.hlo-step-card { text-align: center; background: #80808012; padding: 30px 20px; border-radius: 16px; }
.hlo-step-card img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--hlo-radius); margin-bottom: 10px; }
.hlo-step-num { display: inline-block; width: 28px; height: 28px; line-height: 28px; background: var(--hlo-primary); color: #fff; border-radius: 50%; font-size: 13px; margin-bottom: 8px; }

/* ---- Comparison table ---- */
.hlo-compare-table { width: 100%; border-collapse: collapse; background: #fff; }
.hlo-compare-table th, .hlo-compare-table td { border: 1px solid var(--hlo-border); padding: 12px 16px; text-align: center; }
.hlo-compare-table th { background: var(--hlo-primary); color: #fff; }
.hlo-compare-table td:first-child, .hlo-compare-table th:first-child { text-align: left; }
.hlo-compare-table .hlo-yes { color: #2e7d32; font-weight: 700; }
.hlo-compare-table .hlo-no { color: #c62828; }

/* ---- Video testimonials ---- */
.hlo-video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.hlo-video-card { position: relative; border-radius: var(--hlo-radius); overflow: hidden; cursor: pointer; }
.hlo-video-card img { width: 100%; height: 280px; object-fit: cover; }
.hlo-video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hlo-video-meta { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, #000000cc); color: #fff; padding: 30px 12px 10px; font-size: 13px; }

/* ---- Certifications ---- */
.hlo-cert-row { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.hlo-cert-row img { max-height: 60px; object-fit: contain; }
.hlo-cert-row span { display: block; font-size: 12px; color: var(--hlo-text-muted); text-align: center; margin-top: 6px; }

/* ---- Guarantee ---- */
.hlo-guarantee { background: var(--hlo-primary); color: #fff; text-align: center; border-radius: var(--hlo-radius); }
.hlo-guarantee h3 { font-size: 26px; margin: 0 0 10px; }
.hlo-guarantee ul { list-style: none; padding: 0; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 20px; }
.hlo-guarantee li { font-size: 14px; }

/* ---- FAQ ---- */
.hlo-faq-item { border-bottom: 1px solid var(--hlo-border); }
.hlo-faq-q { padding: 16px 0; cursor: pointer; font-weight: 600; color: var(--hlo-primary); display: flex; justify-content: space-between; align-items: center; }
.hlo-faq-a { max-height: 0; overflow: hidden; transition: max-height .2s ease; color: #555; font-size: 14px; }
.hlo-faq-item.open .hlo-faq-a { max-height: 400px; padding-bottom: 16px; }
.hlo-faq-item.open .hlo-faq-q .hlo-faq-icon { transform: rotate(45deg); }
.hlo-faq-icon { transition: transform .2s ease; font-size: 20px; }

/* ---- Sticky Buy Bar ---- */
.hlo-sticky-buy { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--hlo-border); padding: 12px 20px; display: none; justify-content: space-between; align-items: center; z-index: 500; box-shadow: 0 -4px 12px rgba(0,0,0,.08); }
.hlo-sticky-buy.visible { display: flex; }
.hlo-sticky-buy .hlo-sb-price { font-weight: 700; color: var(--hlo-primary); }
.hlo-sticky-buy .btn-primary { width: auto; padding: 10px 24px; background: var(--hlo-primary); color: #fff; border-radius: 6px; border: none; font-weight: 600; }

@media (max-width: 768px) {
  .hlo-ic-block, .hlo-ic-block.reverse { flex-direction: column; }
  .hlo-ic-block img { width: 100%; }
  .hlo-hero h1 { font-size: 26px; }
}

@media (min-width: 768px) {
.product {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.product__media {
  position: sticky;
  top: 100px; /* adjust based on your header height */
  height: fit-content;
}
}