/* ============================================================
   Maniheal — Product archive + single (WooCommerce)
   ============================================================ */

/* ---- Archive layout ---- */
.shop-wrap { display: grid; grid-template-columns: 250px 1fr; gap: var(--space-6); align-items: start; }
.shop-sidebar { position: sticky; top: calc(var(--header-h) + 1rem); max-height: calc(100dvh - var(--header-h) - 2rem); overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
.shop-filter { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.shop-filter + .shop-filter { margin-top: var(--space-4); }
.shop-filter h4 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--saffron-dark); margin-bottom: 0.9rem; }
.shop-filter ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.shop-filter li a { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.45rem 0.6rem; border-radius: 7px; font-size: 0.9rem; color: var(--ink); }
.shop-filter li a:hover, .shop-filter li.active > a { background: var(--sage-light); color: var(--forest); font-weight: 500; }
.shop-filter li a .cnt { font-size: 0.75rem; color: var(--sage); }
.shop-filter .sub { padding-left: 0.6rem; }

.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: var(--space-5); }
.shop-toolbar .count { font-size: var(--fs-sm); color: var(--text-soft); }
.shop-toolbar .count strong { color: var(--forest); }
.shop-toolbar .filter-toggle { display: none; }

/* Product grid on archives */
.woocommerce ul.products, ul.products.mh-products {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5);
}

/* ---- Pagination ---- */
.mh-pagination { display: flex; justify-content: center; gap: 0.4rem; margin-top: var(--space-7); flex-wrap: wrap; }
.mh-pagination a, .mh-pagination span {
  min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 0.75rem;
  border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--forest); font-weight: 600; font-size: 0.9rem;
}
.mh-pagination a:hover { border-color: var(--forest); background: var(--sage-light); }
.mh-pagination .current { background: var(--forest); color: #fff; border-color: var(--forest); }

/* ---- Single product ---- */
.pdp { padding-top: var(--space-6); }
.pdp__top { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-8); align-items: start; }
.pdp__gallery { position: sticky; top: calc(var(--header-h) + 1rem); }
.pdp__media {
  position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(140deg, var(--sage-light) 0%, var(--ivory) 100%); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.pdp__media img { width: 100%; height: 100%; object-fit: contain; padding: 2.5rem; mix-blend-mode: multiply; }
.pdp__mono { font-family: var(--font-head); font-size: clamp(90px, 20vw, 160px); font-weight: 700; color: rgba(27,67,50,0.14); }
.pdp__brand { margin-bottom: 0.5rem; }
.pdp__title { font-size: var(--fs-h1); line-height: 1.08; }
.pdp__badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.pdp__short { color: var(--text-soft); margin-top: 1.25rem; line-height: 1.7; }
.pdp__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 1.5rem; }
.pdp__fact { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.85rem 1rem; }
.pdp__fact dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--sage); font-weight: 600; }
.pdp__fact dd { font-size: 0.95rem; color: var(--forest); font-weight: 600; margin-top: 0.2rem; word-break: break-word; }
.pdp__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.pdp__trust { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Accordion section */
.pdp__details { margin-top: var(--space-8); max-width: 900px; }
.pdp__details h2 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }

/* Export band */
.export-band {
  margin-top: var(--space-8); background: linear-gradient(140deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(1.75rem, 1rem+2vw, 2.75rem);
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between;
}
.export-band h3 { color: #fff; max-width: 560px; }
.export-band p { color: rgba(255,255,255,0.8); margin-top: 0.5rem; max-width: 560px; }

/* Related */
.related-products { margin-top: var(--space-9); }
.related-products h2 { margin-bottom: var(--space-5); }

/* ---- Brands page ---- */
.mh-brands-az { }
.mh-alpha-bar { position: sticky; top: var(--header-h); z-index: 5; background: rgba(255,255,255,0.96); backdrop-filter: blur(6px); display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); margin-bottom: var(--space-6); }
.mh-alpha { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; font-weight: 600; font-size: 0.9rem; }
.mh-alpha-active { color: var(--forest); background: var(--sage-light); }
.mh-alpha-active:hover { background: var(--forest); color: #fff; }
.mh-alpha-inactive { color: var(--line); pointer-events: none; }
.mh-brand-section { margin-bottom: var(--space-7); scroll-margin-top: calc(var(--header-h) + 60px); }
.mh-brand-letter { font-size: 1.5rem; color: var(--saffron-dark); border-bottom: 2px solid var(--line); padding-bottom: 0.5rem; margin-bottom: 1.25rem; }
.mh-brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.mh-brand-card { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.1rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
.mh-brand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sage); }
.mh-brand-name { font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; color: var(--forest); line-height: 1.25; }
.mh-brand-count { font-size: var(--fs-sm); color: var(--text-soft); }
.mh-brand-arrow { margin-top: 0.35rem; font-size: 0.8rem; font-weight: 600; color: var(--saffron-dark); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-8); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.35rem; }
.contact-info__item { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-info__icon { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: var(--sage-light); color: var(--forest); }
.contact-info__icon svg { width: 22px; height: 22px; }
.contact-info__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--sage); font-weight: 600; }
.contact-info__value { font-weight: 500; color: var(--forest); }
.contact-info__value a { color: var(--forest); }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem+2vw, 2.25rem); box-shadow: var(--shadow-sm); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: var(--space-5); }
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; }

/* WooCommerce message tweaks */
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: var(--radius-sm); border-left: 4px solid var(--forest-2); background: var(--sage-light); padding: 1rem 1.25rem; list-style: none; }

/* ---- PDP CRO enhancements ---- */
.pdp__quickbadges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.85rem 0 0; }
.pdp__quickbadges .badge { font-size: 0.8rem; padding: 0.45em 0.8em; }
.pdp__quickbadges .badge svg { width: 14px; height: 14px; }

/* image zoom on hover (desktop) */
.pdp__media { cursor: zoom-in; }
.pdp__zoom { transition: transform 0.35s var(--ease); will-change: transform; }
@media (hover: hover) and (min-width: 961px) {
  .pdp__media:hover .pdp__zoom { transform: scale(1.9); }
}

/* gallery thumbnails */
.pdp__thumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.85rem; }
.pdp__thumb { width: 66px; height: 66px; padding: 4px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; overflow: hidden; transition: border-color var(--dur) var(--ease); }
.pdp__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp__thumb:hover { border-color: var(--sage); }
.pdp__thumb.is-active { border-color: var(--forest); }

/* trust row */
.pdp__trust { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.pdp__trust .badge { background: rgba(27,67,50,0.055); }
.pdp__trust .badge svg { width: 15px; height: 15px; color: var(--forest-2); }
.pdp__cta { flex-direction: column; }

/* Sticky mobile enquiry bar */
.pdp-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 850;
  display: none; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.7rem clamp(0.85rem, 4vw, 1.25rem); background: var(--white);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15,43,31,0.1);
  transform: translateY(100%); transition: transform var(--dur) var(--ease-out);
}
.pdp-sticky.is-visible { transform: none; }
.pdp-sticky__name { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: var(--forest); line-height: 1.15; }
.pdp-sticky__meta { font-size: 0.72rem; color: var(--sage); }
.pdp-sticky__actions { display: flex; gap: 0.5rem; flex: 0 0 auto; }
.pdp-sticky__actions .btn-whatsapp { padding: 0.6em; }
.pdp-sticky__actions .btn-whatsapp svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .pdp-sticky { display: flex; }
  body.has-pdp-sticky { padding-bottom: 70px; }
}

/* ---- Archive sort/toolbar ---- */
.shop-toolbar { justify-content: space-between; }
.shop-sort { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.shop-sort label { font-size: var(--fs-sm); color: var(--text-soft); }
.shop-sort select { font-family: var(--font-body); font-size: 0.88rem; padding: 0.5rem 0.75rem; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); color: var(--forest); cursor: pointer; }

/* ---- Homepage floating export-quote CTA ---- */
.export-fab {
  position: fixed; right: clamp(1rem,3vw,2rem); bottom: calc(clamp(1rem,3vw,2rem) + 58px); z-index: 880;
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7em 1.15em;
  background: var(--forest); color: #fff; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 600;
  box-shadow: var(--shadow-md); opacity: 0; transform: translateY(10px); visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur), background var(--dur) var(--ease);
}
.export-fab.is-visible { opacity: 1; transform: none; visibility: visible; }
.export-fab:hover { background: var(--forest-2); color: #fff; }
.export-fab svg { width: 16px; height: 16px; color: var(--saffron); }
@media (max-width: 760px) { .export-fab { display: none; } }

/* ---- Archive filters (Part 4) ---- */
.shop-sidebar__head { display: none; align-items: center; justify-content: space-between; padding: 0 0 1rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 600; color: var(--forest); }
.shop-filter__all { display: inline-block; margin-top: 0.75rem; font-size: var(--fs-sm); font-weight: 600; color: var(--saffron-dark); }
.brand-filter-form .input { font-size: 0.88rem; padding: 0.6rem 0.7rem; }

.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: var(--space-5); }
.filter-chips__label { font-size: var(--fs-sm); color: var(--text-soft); font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 500; color: var(--forest); background: var(--sage-light); padding: 0.4em 0.85em; border-radius: var(--radius-pill); border: 1px solid transparent; }
.chip:hover { background: var(--forest); color: #fff; }
.chip__x { font-size: 0.72rem; opacity: 0.7; }
.chip--clear { background: transparent; border-color: var(--line); color: var(--text-soft); }
.chip--clear:hover { background: var(--ivory); color: var(--forest); border-color: var(--sage); }

.filter-backdrop { position: fixed; inset: 0; background: rgba(15,43,31,0.5); z-index: var(--z-drawer); opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur); }
body.filters-open .filter-backdrop { opacity: 1; visibility: visible; }

@media (max-width: 960px) {
  .shop-sidebar {
    position: fixed; top: 0; left: 0; height: 100dvh; max-height: none; width: min(340px, 88vw); z-index: calc(var(--z-drawer) + 1);
    background: var(--white); box-shadow: var(--shadow-lg); overflow-y: auto; padding: 1.25rem;
    transform: translateX(-100%); transition: transform var(--dur) var(--ease-out); display: block;
  }
  body.filters-open .shop-sidebar { transform: none; }
  .shop-sidebar__head { display: flex; }
}

/* PDP micro-trust under CTA */
.pdp__micro { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin-top: 1rem; font-size: 0.82rem; color: var(--text-soft); }
.pdp__micro svg { width: 15px; height: 15px; color: var(--forest-2); flex: 0 0 auto; }
