/*

    ____   ___   _      ____      _      ____  _____
   / ___| / _ \ | |    |  _ \    / \    / ___|| ____|
  | |  _ | | | || |    | | | |  / _ \  | |  _ |  _|
  | |_| || |_| || |___ | |_| | / ___ \ | |_| || |___
   \____| \___/ |_____||____/ /_/   \_\ \____||_____|
                            /\
                            \/
  Goldage Jewellery Limited
  Hong Kong fine jewellery, made for trade

  Developer: Prinseyy

*/

/* GoldAge final UX pass · 2026-11-02
   Interaction and responsive refinements layered after the established theme. */

html { scroll-padding-top: 150px; }

/* Make the primary buyer path visible before authentication. */
body.layout-v18 .header-actions .buyer-button:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Catalogue category switcher is intentionally mobile-only. */
.ga-category-tabs { display: none; }

.ga-open-detail-button {
  appearance: none;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(8, 124, 123, .24);
  border-radius: 3px;
  color: var(--turquoise-deep, #087c7b);
  background: #fff;
  font: inherit;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .03em;
  cursor: pointer;
}
.ga-open-detail-button:hover,
.ga-open-detail-button:focus-visible {
  border-color: var(--turquoise-deep, #087c7b);
  background: #eef9f7;
  outline: none;
}

/* Product detail: summary first, image second and technical content third. */
body.catalogue-final .product-detail {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  grid-template-rows: auto auto;
  align-items: start;
  gap: 24px 38px;
}
body.catalogue-final .product-summary {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
body.catalogue-final .product-photo-column {
  grid-column: 1;
  grid-row: 1 / span 2;
}
body.catalogue-final .product-detail-body {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}
body.catalogue-final .product-summary .product-description { margin-bottom: 16px; }

.product-summary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--turquoise-deep, #087c7b);
  border-radius: 3px;
  color: #fff;
  background: var(--turquoise-deep, #087c7b);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.product-disclosure {
  margin: 18px 0;
  padding: 0;
  border: 1px solid rgba(7, 63, 62, .13);
  border-radius: 4px;
  background: #fffdf8;
}
.product-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 0 16px;
  color: var(--heading, #073f3e);
  font-family: var(--body, Manrope, sans-serif);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.product-disclosure > summary::-webkit-details-marker { display: none; }
.product-disclosure > summary span { font-size: 1.2rem; transition: transform .2s ease; }
.product-disclosure[open] > summary span { transform: rotate(45deg); }
.product-disclosure > :not(summary) { margin-inline: 16px; }
.product-disclosure .verified-specs { margin-block: 4px 16px; }
.product-disclosure .catalogue-disclosure { margin-bottom: 16px; }
.product-spec-block.product-disclosure { padding-top: 0; border-top: 1px solid rgba(7, 63, 62, .13); }
.product-spec-block.product-disclosure > summary { margin: 0; }
.product-mobile-action-bar { display: none; }

body.catalogue-final .product-modal > .modal-close {
  position: sticky;
  inset: auto;
  top: 8px;
  z-index: 50;
  float: right;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 0 -44px auto;
  border: 1px solid rgba(7, 63, 62, .2);
  border-radius: 50%;
  color: #073f3e;
  background: rgba(255, 253, 248, .96);
  box-shadow: 0 8px 22px rgba(7, 63, 62, .12);
  font-size: 1.625rem;
  line-height: 1;
}

/* Manufacturing wayfinding. */
.manufacturing-section-nav {
  position: sticky;
  top: 88px;
  z-index: 42;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  min-height: 52px;
  padding: 8px var(--layout-edge, 4vw);
  border-top: 1px solid rgba(7, 63, 62, .08);
  border-bottom: 1px solid rgba(7, 63, 62, .12);
  background: rgba(255, 253, 248, .96);
  box-shadow: 0 8px 22px rgba(7, 63, 62, .06);
  backdrop-filter: blur(14px);
}
.manufacturing-section-nav a {
  color: #234946;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.manufacturing-section-nav a:hover,
.manufacturing-section-nav a:focus-visible,
.manufacturing-section-nav a[aria-current="location"] { color: var(--turquoise-deep, #087c7b); }
.manufacturing-section-nav a[aria-current="location"] { box-shadow: inset 0 -2px 0 #edc24d; }
.manufacturing-page :is(#procedure, #price-calculator-section, #bulk-order, #manufacturing-request) { scroll-margin-top: 154px; }
.manufacturing-page .secondary-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 3px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
}
.manufacturing-page .secondary-hero-button:hover,
.manufacturing-page .secondary-hero-button:focus-visible { color: #073f3e; background: #fff; }

/* Long-page return control. */
.ux-back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 38;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  color: #fff;
  background: #087c7b;
  box-shadow: 0 12px 30px rgba(7, 63, 62, .2);
  font-size: .75rem;
  font-weight: 850;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.ux-back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

@media (max-width: 760px) {
  html { scroll-padding-top: 132px; }

  body.layout-v18 .mobile-nav-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 16px;
  }
  body.layout-v18 .mobile-nav-actions .mobile-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #087c7b;
    border-radius: 3px;
    color: #fff;
    background: #087c7b;
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .ga-category-tabs {
    position: sticky;
    top: 72px;
    z-index: 32;
    display: flex;
    gap: 8px;
    margin: 0 calc(var(--layout-edge, 20px) * -1) 22px;
    padding: 10px var(--layout-edge, 20px);
    overflow-x: auto;
    border-block: 1px solid rgba(7, 63, 62, .1);
    background: rgba(255, 253, 248, .96);
    scrollbar-width: none;
    backdrop-filter: blur(12px);
  }
  .ga-category-tabs::-webkit-scrollbar { display: none; }
  .ga-category-tabs button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(7, 63, 62, .16);
    border-radius: 999px;
    color: #234946;
    background: #fff;
    font: inherit;
    font-size: .75rem;
    font-weight: 800;
    cursor: pointer;
  }
  .ga-category-tabs button[aria-pressed="true"] { border-color: #087c7b; color: #fff; background: #087c7b; }
  body.catalogue-final:not(.catalogue-search-active) .ga-category-row:not(.is-active-mobile-category) { display: none !important; }
  body.catalogue-final .ga-category-row { scroll-margin-top: 132px; }

  body.catalogue-final .product-modal { padding: 12px 14px 92px; }
  body.catalogue-final .product-modal > .modal-close {
    top: 6px;
    width: 46px;
    height: 46px;
    margin-bottom: -46px;
  }
  body.catalogue-final .product-detail {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto;
    gap: 18px;
  }
  body.catalogue-final .product-summary { grid-column: 1; grid-row: 1; padding: 8px 52px 0 0; }
  body.catalogue-final .product-photo-column { grid-column: 1; grid-row: 2; margin: 0; }
  body.catalogue-final .product-detail-body { grid-column: 1; grid-row: 3; }
  body.catalogue-final .product-title-row h2 { margin: 7px 0; font-size: clamp(2rem, 10vw, 2.6rem); }
  body.catalogue-final .product-title-row > div > p { display: none; }
  body.catalogue-final .product-estimate { margin-top: 12px; }
  body.catalogue-final .product-summary .product-description { margin: 14px 0 0; }
  .product-summary-cta { display: none; }
  .product-disclosure > summary { min-height: 56px; }
  .product-mobile-action-bar {
    position: fixed;
    right: 14px;
    bottom: 12px;
    left: 14px;
    z-index: 80;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(7, 63, 62, .16);
    border-radius: 5px;
    background: rgba(255, 253, 248, .97);
    box-shadow: 0 16px 38px rgba(7, 63, 62, .22);
    backdrop-filter: blur(12px);
  }
  .product-mobile-action-bar button {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #087c7b;
    border-radius: 3px;
    color: #fff;
    background: #087c7b;
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .product-mobile-action-bar button:last-child { color: #087c7b; background: #fff; }

  .manufacturing-section-nav {
    top: 72px;
    justify-content: flex-start;
    gap: 8px;
    min-height: 54px;
    padding: 8px 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .manufacturing-section-nav::-webkit-scrollbar { display: none; }
  .manufacturing-section-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(7, 63, 62, .13);
    border-radius: 999px;
    background: #fff;
  }
  .manufacturing-page :is(#procedure, #price-calculator-section, #bulk-order, #manufacturing-request) { scroll-margin-top: 132px; }
  .manufacturing-page .hero-actions { display: grid; grid-template-columns: 1fr; }
  .manufacturing-page .secondary-hero-button { width: 100%; }
  .manufacturing-reference-grid {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: min(82vw, 320px);
    grid-template-columns: none !important;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }
  .manufacturing-reference-grid figure { scroll-snap-align: start; }
  .ux-back-to-top { right: 12px; bottom: 12px; }
  dialog[open] ~ .ux-back-to-top,
  body.modal-open .ux-back-to-top { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ux-back-to-top,
  .product-disclosure > summary span { transition: none; }
}
