/* ==========================================================================
   AI glasses (wearables) launch
   Loaded only on: /ai-glasses/ catalogue URLs, AI product pages, and pages
   with a banner that has the cursor label switched on (see
   inc/sgh-ai-glasses.php). Plain CSS on purpose: main.css is hand-edited and
   must not be rebuilt with Tailwind.
   ========================================================================== */

/* ---- Cursor label (pill next to the pointer; the normal pointer stays) ---- */
.sgh-ai-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: #000;
  color: #fff;
  border-radius: 9999px;
  padding: 6px 12px 6px 10px;
  font: 700 10px/1 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  opacity: 0;
  transition: opacity .2s;
  will-change: transform;
}
.sgh-ai-cursor.is-visible { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .sgh-ai-cursor { display: none; }
}

/* ---- Catalogue header: "Explore the collection", blurb, brand toggle ---- */
.sgh-ai-catalogue-intro { padding: 0 16px; }
.sgh-ai-catalogue-intro__logos {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: center;
  gap: clamp(16px, 5vw, 48px); margin: 12px 0 20px;
}
.sgh-ai-catalogue-intro__logo { display: block; flex: 0 1 220px; min-width: 0; }
.sgh-ai-catalogue-intro__logo img { display: block; width: 100%; height: auto; }
.sgh-ai-catalogue-intro__lead {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #333;
  margin-bottom: 8px;
}
.sgh-ai-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.sgh-ai-toggle__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 22px;
  border: 1px solid #555;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: #333;
  background: transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.sgh-ai-toggle__link:hover { background: #f6f6f6; }
.sgh-ai-toggle__link.is-current,
.sgh-ai-toggle__link.is-current:hover { background: #000; border-color: #000; color: #fff; }
.sgh-ai-landing-modules { margin-top: 32px; }

/* ---- Product page ---- */
.sgh-ai-pdp { color: #333; overflow-x: clip; }
.sgh-ai-pdp__top { padding-top: 40px; }
.sgh-ai-pdp__cols { display: flex; flex-wrap: wrap; gap: 16px; }
.sgh-ai-gallery, .sgh-ai-summary { width: 100%; min-width: 0; }

.sgh-ai-h2 {
  font-family: 'Acta Headline', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: #000;
  margin-bottom: 28px;
}
.sgh-ai-section { padding-top: 56px; }
.sgh-ai-section__head { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.sgh-ai-section__head .sgh-ai-h2 { margin-bottom: 12px; }
.sgh-ai-section__sub { font-size: 14px; line-height: 1.6; color: #555; }

/* Gallery: main image with thumbnails below */
.sgh-ai-gallery__stage { background: #fff; aspect-ratio: 2 / 1; }
.sgh-ai-gallery__main {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .25s ease;
}
.sgh-ai-gallery__main.is-swapping { opacity: 0; }
.sgh-ai-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.sgh-ai-gallery__thumb {
  display: block;
  padding: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  transition: border-color .2s;
}
.sgh-ai-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sgh-ai-gallery__thumb:hover { border-color: #9ca3af; }
.sgh-ai-gallery__thumb.is-active { border-color: #000; }
.sgh-ai-gallery__thumb:focus-visible,
.sgh-ai-tabs__tab:focus-visible,
.sgh-ai-acc summary:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

/* Colourways (other products with the same model code) */
.sgh-ai-colourways { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.sgh-ai-colourways__item {
  display: block; width: 76px; aspect-ratio: 4 / 3; overflow: hidden;
  background: #fff; border: 1px solid #e5e7eb; transition: border-color .2s;
}
.sgh-ai-colourways__item img { display: block; width: 100%; height: 100%; object-fit: contain; }
a.sgh-ai-colourways__item:hover { border-color: #9ca3af; }
.sgh-ai-colourways__item.is-current { border-color: #000; }
a.sgh-ai-colourways__item:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

/* Summary */
.sgh-ai-summary { margin-top: 16px; }
.sgh-ai-summary__brand { margin-bottom: 8px; font-size: 20px; color: #000; }
.sgh-ai-summary__brand img { display: block; height: 44px; width: auto; max-width: 180px; object-fit: contain; object-position: left center; }
.sgh-ai-summary__title {
  font-family: 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  color: #000;
}
.sgh-ai-summary__badge {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #000;
}
.sgh-ai-summary__desc { margin-top: 12px; font-size: 14px; line-height: 1.6; font-weight: 300; color: #555; }
.sgh-ai-summary__price { margin-top: 14px; font-size: 20px; color: #000; }
.sgh-ai-summary__bnpl { margin-top: 4px; font-size: 12px; color: #555; }
.sgh-ai-summary__ctas { display: flex; flex-direction: column; gap: 12px; max-width: 370px; margin-top: 20px; }
.sgh-ai-btn.btn { height: 48px; width: 100%; white-space: nowrap; }
.sgh-ai-stores__pending .sgh-ai-btn.btn { width: auto; }

/* Tabs (wrap on small screens instead of scrolling sideways) */
.sgh-ai-tabs { margin-top: 28px; }
.sgh-ai-tabs__list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 4px;
  border-bottom: 1px solid #d1d5db;
}
.sgh-ai-tabs__tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
}
.sgh-ai-tabs__tab.is-active { color: #000; border-bottom-color: #000; }
.sgh-ai-tabs__panel { padding-top: 24px; }
.sgh-ai-tabs__panel[hidden] { display: none; }
.sgh-ai-box { font-size: 14px; line-height: 1.9; color: #555; }
.sgh-ai-box__note { margin-top: 12px; font-size: 14px; font-weight: 500; color: #000; }

/* Features */
.sgh-ai-features__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 24px; }
.sgh-ai-feature__media { aspect-ratio: 16 / 9; background: #f3f4f6; overflow: hidden; margin-bottom: 16px; }
.sgh-ai-feature__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sgh-ai-feature__media--video { position: relative; }
.sgh-ai-feature__media video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.sgh-ai-feature__play { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: rgba(0, 0, 0, .12); cursor: pointer; transition: background .2s ease; }
.sgh-ai-feature__play:hover,
.sgh-ai-feature__play:focus-visible { background: rgba(0, 0, 0, .28); }
.sgh-ai-feature__play:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }
.sgh-ai-feature__play svg { filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .45)); }
.sgh-ai-feature__media--placeholder { display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; }
.sgh-ai-feature__media--placeholder span { font: 600 11px/1.3 ui-monospace, Menlo, Consolas, monospace; color: #92400e; background: #fef3c7; padding: 4px 8px; border-radius: 4px; }
.sgh-ai-feature__title,
.sgh-ai-step__title {
  font-family: 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 8px;
}
.sgh-ai-feature__text,
.sgh-ai-step__text { font-size: 14px; line-height: 1.7; color: #555; }

/* Feature tile reveal (only when the script has opted in) */
.sgh-ai-js [data-sgh-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--sgh-delay, 0ms);
}
.sgh-ai-js [data-sgh-reveal].is-in { opacity: 1; transform: none; }

/* Setup steps */
.sgh-ai-setup { margin-top: 56px; padding: 56px 0; background: #f6f6f6; }
.sgh-ai-setup__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.sgh-ai-step {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.sgh-ai-step:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .08); }
.sgh-ai-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  border: 1px solid #000;
  border-radius: 9999px;
  font-size: 18px;
  color: #000;
  transition: background-color .35s, color .35s, border-color .35s;
}
.sgh-ai-step:hover .sgh-ai-step__num { background: #000; color: #fff; }
.sgh-ai-step__apps { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; }
.sgh-ai-step__apps a { font-size: 12px; font-weight: 500; text-transform: uppercase; color: #000; border-bottom: 1px solid #000; }
.sgh-ai-step__apps a:hover { border-color: transparent; }

/* Store locator */
.sgh-ai-stores { scroll-margin-top: 80px; }
.sgh-ai-stores__pending { text-align: center; font-size: 14px; color: #555; margin-bottom: 16px; }
/* The store list is 100% of the panel height but starts below the search box,
   so it ran past the map and over the section underneath. Let it take only the
   space left under the search box and scroll inside that. */
@media (min-width: 992px) {
  .sgh-ai-stores #asl-storelocator.asl-cont .sl-main-cont #asl-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .sgh-ai-stores #asl-storelocator.asl-cont .sl-main-cont #asl-panel > * { flex: 0 0 auto; }
  .sgh-ai-stores #asl-storelocator.asl-cont .sl-main-cont #asl-panel .asl-panel-inner {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
  }
}

/* After-sales / Terms / Privacy */
.sgh-ai-legal__inner { max-width: 1100px; }
.sgh-ai-acc { border-top: 1px solid #e5e7eb; }
.sgh-ai-acc:last-child { border-bottom: 1px solid #e5e7eb; }
.sgh-ai-acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #000;
}
.sgh-ai-acc summary::-webkit-details-marker { display: none; }
.sgh-ai-acc__icon { flex: none; transition: transform .25s; }
.sgh-ai-acc[open] .sgh-ai-acc__icon { transform: rotate(45deg); }
.sgh-ai-acc__body { max-width: 820px; padding-bottom: 24px; font-size: 14px; line-height: 1.7; color: #555; }
.sgh-ai-acc__body p + p,
.sgh-ai-acc__body p + ul,
.sgh-ai-acc__body ul + p { margin-top: 12px; }
.sgh-ai-acc__body ul { list-style: disc; padding-left: 20px; }
.sgh-ai-acc__body a { text-decoration: underline; }

/* You may also like */
.sgh-ai-related__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }

@media (min-width: 640px) {
  .sgh-ai-features__grid,
  .sgh-ai-setup__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .sgh-ai-pdp__top { padding-top: 80px; }
  .sgh-ai-pdp__cols { flex-wrap: nowrap; }
  .sgh-ai-gallery { width: 58.3333%; }
  .sgh-ai-summary { width: 41.6667%; margin-top: 0; }
  .sgh-ai-gallery__thumbs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sgh-ai-h2 { font-size: 34px; margin-bottom: 40px; }
  .sgh-ai-section { padding-top: 96px; }
  .sgh-ai-setup { margin-top: 96px; padding: 96px 0; }
  .sgh-ai-tabs { margin-top: 40px; }
  .sgh-ai-tabs__list { column-gap: 24px; }
  .sgh-ai-tabs__tab { font-size: 16px; }
  .sgh-ai-features__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
  .sgh-ai-setup__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .sgh-ai-setup__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sgh-ai-setup__grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .sgh-ai-cursor,
  .sgh-ai-gallery__main,
  .sgh-ai-step,
  .sgh-ai-step__num,
  .sgh-ai-acc__icon,
  .sgh-ai-toggle__link { transition: none; }
  .sgh-ai-step:hover { transform: none; }
  .sgh-ai-js [data-sgh-reveal] { opacity: 1; transform: none; transition: none; }
}
