@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

.eqx, .eqx-header-wrap { --eqx-green:#1f9a3c; --eqx-yellow:#f4d000; --eqx-dark:#4a4a4f; --eqx-muted:#6b6b70;
  font-family:'Montserrat',Arial,sans-serif; color:var(--eqx-dark); background:#fff; }
.eqx {
  max-width:1440px; margin:0 auto; padding:0 32px 48px; box-sizing:border-box; }
.eqx *, .eqx *::before, .eqx *::after { box-sizing:border-box; }
.eqx a { text-decoration:none; color:inherit; }
.eqx img { max-width:100%; height:auto; display:block; border:0; }

/* ---------- Header: one compact row, like the mockup ---------- */
.eqx-header { display:flex !important; flex-wrap:nowrap !important; align-items:center; gap:24px;
  padding:18px 0; width:100%; }
.eqx-logo { flex:0 0 auto; }
.eqx-logo img { height:78px !important; width:auto !important; max-width:none !important; background:transparent; }
.eqx-est { flex:0 0 auto; font-size:13px; color:var(--eqx-dark); padding:0 22px;
  border-left:1px solid #cfcfcf; line-height:1.4; white-space:nowrap; }
.eqx-links { display:flex !important; flex:1 1 auto; min-width:0; justify-content:flex-end; margin:0 !important; padding:0 !important; }
.eqx-link { display:flex !important; flex:0 1 auto; min-width:0; align-items:flex-start; gap:8px;
  padding:0 18px; border-left:1px solid #cfcfcf; }
.eqx-link:last-child { padding-right:0; }
.eqx-link svg { flex:0 0 auto; width:34px; height:34px; margin-top:1px; }
.eqx-link div { min-width:0; }
.eqx-link strong { display:block; color:var(--eqx-green); font-size:17px; font-weight:700;
  line-height:1.15; white-space:nowrap; }
.eqx-link span { display:block !important; font-size:12px; line-height:1.35; color:var(--eqx-dark);
  margin-top:3px; max-width:250px; }
.eqx-link:hover strong { text-decoration:underline; }

/* ---------- Headline ---------- */
.eqx-hero { padding:8px 0 26px; }
.eqx-hero h1 { font-family:'Montserrat',Arial,sans-serif; font-size:43px; font-weight:500;
  color:var(--eqx-dark); margin:0; line-height:1.2; letter-spacing:-0.5px; }
.eqx-hero .eqx-bar { width:150px; height:6px; background:var(--eqx-yellow); margin-top:22px; }

/* ---------- Three areas ---------- */
.eqx-areas { display:grid; grid-template-columns:repeat(3,1fr); gap:40px; }
.eqx-area img { width:100%; aspect-ratio:4/3; object-fit:cover; }
.eqx-area h2 { font-family:'Montserrat',Arial,sans-serif; font-size:52px; font-weight:700;
  color:var(--eqx-dark); margin:22px 0 4px; padding-left:22px; border-left:8px solid var(--eqx-green); line-height:1; }
.eqx-area p { font-size:24px; color:var(--eqx-dark); margin:10px 0 0 30px; }

/* ---------- AI chat bar ---------- */
.eqx-chat { display:flex; align-items:center; gap:12px; max-width:760px; margin:64px auto 0;
  border:2px solid #d8d8d8; border-radius:999px; padding:8px 8px 8px 24px; background:#fff;
  box-shadow:0 4px 18px rgba(0,0,0,.06); }
.eqx-chat:focus-within { border-color:var(--eqx-green); }
.eqx-chat input { flex:1; border:0 !important; outline:0; font:inherit; font-size:17px; height:48px;
  background:transparent; box-shadow:none !important; padding:0 !important; color:var(--eqx-dark); }
.eqx-chat button { flex:0 0 auto; width:52px; height:52px; border-radius:50%; border:0; padding:0;
  background:#fff; cursor:pointer; }
.eqx-chat button img { width:52px; height:52px; }

/* ---------- Laptop (up to 1439px) ---------- */
@media (max-width:1439px) {
  .eqx-header { gap:20px; }
  .eqx-logo img { height:68px !important; }
  .eqx-est { font-size:12px; padding:0 18px; }
  .eqx-link { padding:0 16px; }
  .eqx-link svg { width:30px; height:30px; }
  .eqx-link strong { font-size:16px; }
  .eqx-link span { font-size:11px; max-width:215px; }
  .eqx-hero h1 { font-size:36px; }
  .eqx-area h2 { font-size:36px; }
  .eqx-area p { font-size:21px; }
}

/* ---------- Small laptop (up to 1279px) ---------- */
@media (max-width:1279px) {
  .eqx-header { gap:16px; }
  .eqx-logo img { height:58px !important; }
  .eqx-est { font-size:11px; padding:0 14px; }
  .eqx-link { padding:0 12px; }
  .eqx-link svg { width:26px; height:26px; }
  .eqx-link strong { font-size:14px; }
  .eqx-link span { font-size:10.5px; max-width:185px; }
  .eqx-hero h1 { font-size:40px; }
  .eqx-area h2 { font-size:40px; }
  .eqx-area p { font-size:19px; }
  .eqx-header-wrap { padding:0 24px; }
}

/* ---------- Tablet ---------- */
@media (max-width:1023px) {
  .eqx-header { flex-wrap:wrap !important; }
  .eqx-est { border-right:0; }
  .eqx-links { flex:1 1 100%; justify-content:flex-start; }
  .eqx-hero h1 { font-size:32px; }
  .eqx-area h2 { font-size:34px; }
  .eqx-area p { font-size:18px; }
}

/* ---------- Mobile ---------- */

/* header block sits outside the page content wrapper */
.eqx-header-wrap { font-family:'Montserrat',Arial,sans-serif; max-width:1440px; margin:0 auto; padding:0 32px; box-sizing:border-box; }
.eqx-header-wrap a { text-decoration:none; color:inherit; }

/* ---------- Hide Porto's own header, menu and footer on Equinox pages ---------- */
.page-wrapper > .page-header,
.page-header,
.panel.wrapper,
.header.panel,
.sections.nav-sections,
.nav-sections,
.page-footer,
.footer-container,
footer.page-footer,
.copyright,
.sticky-header { display:none !important; }

/* ---------- AI chat: answers ---------- */
.eqx-answer { position:relative; max-width:760px; max-height:440px; overflow-y:auto; margin:48px auto -40px;
  padding:20px 22px 12px; background:#fff; border:1px solid #e3e3e3; border-radius:18px;
  box-shadow:0 6px 24px rgba(0,0,0,.08); font-family:'Montserrat',Arial,sans-serif; }
.eqx-answer[hidden] { display:none; }
.eqx-answer-close { position:sticky; top:0; float:right; width:30px; height:30px; margin:-8px -8px 0 0; border:0;
  border-radius:50%; background:#f2f2f2; color:#4a4a4f; font-size:20px; line-height:30px; padding:0; cursor:pointer; }
.eqx-msg { margin:0 0 14px; }
.eqx-msg p { margin:0; font-size:15px; line-height:1.5; color:#4a4a4f; white-space:pre-wrap; }
.eqx-msg-user p { display:inline-block; background:#f1f7f2; color:#1f6f31; padding:8px 14px; border-radius:14px; font-weight:600; }
.eqx-prod { display:block; margin:10px 0 0; padding:12px 14px; border:1px solid #e3e3e3; border-left:4px solid #1f9a3c;
  border-radius:10px; text-decoration:none !important; color:#4a4a4f !important; }
.eqx-prod:hover { border-color:#1f9a3c; }
.eqx-prod strong { display:block; font-size:15px; font-weight:700; color:#4a4a4f; }
.eqx-prod-meta { display:flex; flex-wrap:wrap; gap:6px 16px; margin-top:4px; font-size:13px; }
.eqx-prod-price { font-weight:700; color:#4a4a4f; }
.eqx-prod-stock.is-in { color:#1f9a3c; font-weight:600; }
.eqx-prod-stock.is-out { color:#c62828; font-weight:600; }
.eqx-prod-sku { color:#8a8a8f; }

/* logo spins while the AI is thinking */
@keyframes eqx-spin { to { transform:rotate(360deg); } }
.eqx-chat.is-busy button img { animation:eqx-spin 1s linear infinite; }
.eqx-chat.is-busy input { opacity:.6; }


/* =========================================================
   DESKTOP (768px and up): fit the whole page on one screen
   so the AI chat bar is visible without scrolling.
   Image height = screen height minus everything else (~450px).
   ========================================================= */
@media (min-width:768px) {
  .eqx-hero { padding:5px 0 18px; }
  .eqx-hero .eqx-bar { margin-top:16px; }
  .eqx-areas { gap:32px; }
  .eqx-area img { width:100%; height:calc(100vh - 450px); min-height:170px; max-height:400px;
    aspect-ratio:auto; object-fit:contain; object-position:center center; }
  .eqx-area h2 { font-size:38px; margin:16px 0 0; padding-left:18px; border-left-width:7px; }
  .eqx-area p { font-size:18px; margin:8px 0 0 25px; }
  .eqx-chat { margin:30px auto 0; }
  .eqx { padding-bottom:24px; }

  /* centre each area: picture, title (with its green bar) and subtitle */
  .eqx-area { text-align:center; }
  .eqx-area h2 { display:inline-block; text-align:left; }
  .eqx-area p { margin-left:0; margin-right:0; }
}
@media (min-width:768px) and (max-width:1279px) {
  .eqx-hero h1 { font-size:36px; }
  .eqx-area h2 { font-size:32px; }
  .eqx-area p { font-size:16px; }
}
@media (min-width:1280px) and (max-width:1439px) {
  .eqx-hero h1 { font-size:33px; }
}
@media (min-width:1440px) {
  .eqx-hero h1 { font-size:40px; }
  .eqx-area h2 { font-size:38px; }
  .eqx-area p { font-size:20px; }
    /* images 20% smaller on screens 1440px and wider */
  .eqx-area img { height:calc((100vh - 450px) * 0.8); min-height:136px; max-height:320px; }
}

/* =========================================================
   MOBILE (up to 767px)
   - logo centred
   - 3 links in one row, 3 columns, small text
   - AI search field moved right under the headline
   ========================================================= */
@media (max-width:767px) {
  .eqx-header-wrap { padding:0 16px; }
  .eqx-header { flex-wrap:wrap !important; justify-content:center; gap:10px; padding:16px 0 12px; }

  .eqx-logo { flex:1 1 100%; display:flex; justify-content:center; }
  .eqx-logo img { height:52px !important; }

  .eqx-est { flex:1 1 100%; text-align:center; border:0; padding:0; white-space:normal; font-size:11px; }

  .eqx-links { display:grid !important; grid-template-columns:repeat(3, 1fr); flex:1 1 100%;
    margin-top:6px !important; padding-top:12px !important; border-top:1px solid #ececec; }
  .eqx-link { flex-direction:column; align-items:center; text-align:center; gap:4px; padding:0 6px;
    border-left:1px solid #e3e3e3; }
  .eqx-link:first-child { border-left:0; padding-left:0; }
  .eqx-link:last-child { padding-right:0; }
  .eqx-link svg { width:24px; height:24px; margin:0; }
  .eqx-link strong { font-size:12px; white-space:normal; }
  .eqx-link span { display:block !important; font-size:9.5px; line-height:1.3; max-width:none; margin-top:2px; }

  /* page body: headline, then AI search, then answers, then the 3 areas */
  .eqx { display:flex; flex-direction:column; padding:0 16px 32px; }
  .eqx-hero { order:2; padding:16px 0 20px; }
  .eqx-hero h1 { font-size:26px; }
  .eqx-hero .eqx-bar { width:110px; height:5px; margin-top:16px; }

  .eqx-chat { order:1; position:static; width:100%; max-width:none; margin:0 0 20px; padding:6px 6px 6px 18px; }
  .eqx-chat input { font-size:16px; height:44px; }
  .eqx-chat button, .eqx-chat button img { width:44px; height:44px; }

  .eqx-answer { order:3; position:relative; width:100%; max-width:none; max-height:60vh; margin:0 0 24px; padding:16px 16px 8px; }
  .eqx-msg p { font-size:14px; }

  .eqx-areas { order:4; grid-template-columns:1fr; gap:32px; }
  .eqx-area h2 { font-size:32px; }
  .eqx-area p { font-size:17px; }
}
