/* Our Products listing and product detail pages. Colours follow the shared site theme. */

.products-page .products-hero { padding-bottom: 90px; color: var(--white); background: #07162c; }
.products-page .products-hero .page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.products-page .products-hero h1 { margin-bottom: 14px; }
.products-subtitle { margin: 0 0 14px; color: #dff6ff; font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 700; letter-spacing: -.03em; }
.products-hero .hero-lead { max-width: 600px; color: #b4c9e3; line-height: 1.8; }
.products-hero .breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; color: #8da7ca; font-family: var(--font-mono); font-size: .62rem; }
.products-hero .breadcrumb a:hover { color: var(--cyan); }
.products-hero--compact { min-height: 520px; }

.products-showcase { position: relative; min-height: 360px; border: 1px solid rgba(171, 224, 255, .21); border-radius: 26px; background: linear-gradient(140deg, rgba(47, 100, 163, .38), rgba(16, 36, 74, .6)); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 30px 65px rgba(0, 7, 30, .28); }
.products-showcase::before { content: ""; position: absolute; inset: 15% 18%; border: 1px dashed rgba(124, 221, 255, .35); border-radius: 50%; }
.products-showcase-core { position: absolute; top: 50%; left: 50%; display: grid; width: 112px; height: 112px; translate: -50% -50%; place-items: center; border-radius: 30px; color: #08234b; background: linear-gradient(135deg, var(--cyan), #a78bff); box-shadow: 0 0 55px rgba(47, 220, 255, .35); font-size: 2.6rem; }
.products-showcase-tile { position: absolute; display: inline-flex; align-items: center; gap: 9px; padding: 12px 15px; border: 1px solid rgba(198, 236, 255, .31); border-radius: 12px; color: #d6fbff; background: rgba(12, 39, 80, .9); box-shadow: 0 12px 26px rgba(0, 7, 32, .3); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; }
.products-showcase-tile--one { top: 13%; left: 7%; }
.products-showcase-tile--two { top: 24%; right: 5%; }
.products-showcase-tile--three { bottom: 13%; left: 20%; }

.products-page .products-section { padding: 100px 0; background: var(--theme-surface-2); }
.products-page .products-section h2 { color: var(--theme-heading); }
.products-section .section-intro { margin-bottom: 40px; }
.products-section .section-intro > p { color: var(--theme-copy); }
.products-filter { margin-bottom: 32px; }
.products-empty { padding: 48px 24px; border: 1px dashed var(--theme-border); border-radius: 18px; color: var(--theme-copy); text-align: center; }
.products-empty a { color: #2674c8; font-weight: 800; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; align-items: stretch; }
.product-card { position: relative; display: flex; min-width: 0; flex-direction: column; padding: 28px; overflow: hidden; border: 1px solid var(--theme-border); border-radius: 20px; background: var(--theme-surface); box-shadow: 0 14px 34px rgba(25, 69, 126, .08); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease; }
.product-card[hidden] { display: none; }
.product-card:hover { border-color: #5cc8ee; box-shadow: 0 26px 48px rgba(25, 69, 126, .18); transform: translateY(-8px); }
.product-card.is-featured { padding-top: 46px; border-color: #7fbdf2; }
.product-card.is-featured::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple)); }
.product-ribbon { position: absolute; top: 15px; right: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; color: #fff; background: linear-gradient(110deg, #1f7fd6, #7a5cf0); font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.product-logo { display: grid; width: 66px; height: 66px; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid var(--theme-border); border-radius: 16px; background: #fff; }
.product-logo img { width: 100%; height: 100%; object-fit: contain; }
.product-logo--large { width: 86px; height: 86px; border-radius: 20px; }

.product-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid; border-radius: 99px; font-size: .64rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.product-status > span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.product-status.is-live { border-color: #8fd7ab; color: #11713b; background: #e7f9ee; }
.product-status.is-soon { border-color: #f0c775; color: #8a5300; background: #fff5df; }
.product-status.is-building { border-color: #c3b3f2; color: #5636a8; background: #f1ecff; }

.product-category { margin: 0 0 8px; color: #2b79c4; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.product-name { margin: 0 0 11px; color: var(--theme-heading); font-size: 1.45rem; overflow-wrap: anywhere; }
.product-name a:hover { color: #2674c8; }
.product-summary { margin: 0 0 20px; color: var(--theme-copy); font-size: .82rem; line-height: 1.75; }
.product-features { display: grid; gap: 9px; margin: 0 0 20px; padding: 18px 0 0; border-top: 1px solid var(--theme-border); list-style: none; }
.product-features li { display: flex; align-items: flex-start; gap: 9px; color: var(--theme-copy); font-size: .76rem; line-height: 1.5; }
.product-features i { margin-top: .2em; color: #3b8ae0; }
.product-features .product-features-more { padding-left: 22px; font-weight: 800; }
.product-tech { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 20px; padding: 0; list-style: none; }
.product-tech li { padding: 6px 9px; border: 1px solid var(--theme-border); border-radius: 6px; color: var(--theme-copy); background: var(--theme-surface-2); font-family: var(--font-mono); font-size: .6rem; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.product-actions .button { flex: 1 1 140px; }
.product-button-outline { border-color: var(--theme-border); color: var(--theme-heading); background: transparent; }
.product-button-outline:hover { border-color: #4aa6e8; }

.products-page .products-cta-section { padding: 74px 0 90px; background: var(--theme-surface); }
.products-cta-section .page-callout h2 { color: #fff; }

/* Detail page */
.product-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 76px); align-items: center; }
.products-page .product-detail-hero h1 { font-size: clamp(2.35rem, 4.6vw, 4.2rem); overflow-wrap: anywhere; }
.product-hero-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 4px 0 20px; }
.product-banner { margin: 0; overflow: hidden; border: 1px solid rgba(171, 224, 255, .21); border-radius: 22px; background: #0b2146; box-shadow: 0 30px 65px rgba(0, 7, 30, .35); }
.product-banner img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.products-page .product-body, .products-page .product-gallery-section { padding: 90px 0; background: var(--theme-surface); }
.products-page .product-features-section, .products-page .product-enquiry-section { padding: 90px 0; background: var(--theme-surface-2); }
.product-body h2, .product-features-section h2, .product-gallery-section h2, .product-related h2, .product-enquiry-section h2 { margin-bottom: 28px; color: var(--theme-heading); font-size: clamp(1.8rem, 3vw, 2.7rem); }
.product-body-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.product-richtext { color: var(--theme-copy); font-size: .95rem; line-height: 1.85; overflow-wrap: anywhere; }
.product-richtext h2, .product-richtext h3, .product-richtext h4 { margin: 28px 0 12px; color: var(--theme-heading); }
.product-richtext h2 { font-size: 1.5rem; }
.product-richtext h3 { font-size: 1.2rem; }
.product-richtext ul, .product-richtext ol { margin: 0 0 16px; padding-left: 22px; }
.product-richtext a { color: #2674c8; text-decoration: underline; }
.product-richtext blockquote { margin: 0 0 16px; padding-left: 16px; border-left: 3px solid var(--cyan); }
.product-facts { padding: 27px; border: 1px solid var(--theme-border); border-radius: 18px; background: var(--theme-surface-2); }
.product-facts dl { margin: 0 0 22px; }
.product-facts dl div { padding: 12px 0; border-bottom: 1px solid var(--theme-border); }
.product-facts dt { color: var(--theme-copy); font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }
.product-facts dd { margin: 5px 0 0; color: var(--theme-heading); font-weight: 800; font-size: .9rem; }
.product-facts h3 { margin-bottom: 12px; color: var(--theme-heading); font-size: 1rem; }
.product-facts .button { width: 100%; }

.product-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.product-feature-grid li { display: flex; align-items: center; gap: 13px; padding: 21px; border: 1px solid var(--theme-border); border-radius: 15px; color: var(--theme-heading); background: var(--theme-surface); font-size: .85rem; font-weight: 700; }
.product-feature-grid i { color: #3b8ae0; font-size: 1.1rem; }

.product-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.product-gallery a { overflow: hidden; border: 1px solid var(--theme-border); border-radius: 15px; }
.product-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease; }
.product-gallery a:hover img { transform: scale(1.04); }

.product-enquiry-section { scroll-margin-top: 60px; }
.product-enquiry-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.product-enquiry-copy { color: var(--theme-copy); line-height: 1.8; }
.product-enquiry-form { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: clamp(20px, 3vw, 34px); border: 1px solid var(--theme-border); border-radius: 20px; background: var(--theme-surface); box-shadow: 0 18px 40px rgba(25, 69, 126, .09); }
.product-field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.product-field--wide { grid-column: 1 / -1; }
.product-field label { color: var(--theme-heading); font-size: .75rem; font-weight: 800; }
.product-field input, .product-field textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--theme-border); border-radius: 9px; color: var(--theme-control-text); background: var(--theme-control); font-size: .85rem; }
.product-field textarea { resize: vertical; }
.product-field input:focus, .product-field textarea:focus { border-color: #38b6e8; outline: 3px solid rgba(47, 220, 255, .22); }
.product-field input[readonly] { opacity: .75; }
.product-field [aria-invalid="true"] { border-color: #d9455a; }
.product-field small { color: #c4364b; font-size: .7rem; }
.product-field small:empty { display: none; }
.product-form-feedback { margin: 10px 0 0; color: var(--theme-copy); font-size: .82rem; font-weight: 700; }
.product-form-feedback:empty { display: none; }
.product-form-feedback[data-state="error"] { color: #c4364b; }
.product-form-feedback[data-state="success"] { color: #14804a; }
.product-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

html[data-theme="dark"] .product-status.is-live { border-color: #2f7a52; color: #8ff0b8; background: #0e2f22; }
html[data-theme="dark"] .product-status.is-soon { border-color: #81602a; color: #ffd58a; background: #33270f; }
html[data-theme="dark"] .product-status.is-building { border-color: #5d4a99; color: #cdbbff; background: #231c41; }
html[data-theme="dark"] .product-category,
html[data-theme="dark"] .product-name a:hover,
html[data-theme="dark"] .product-richtext a,
html[data-theme="dark"] .products-empty a { color: #7fd4ff; }
html[data-theme="dark"] .product-field small,
html[data-theme="dark"] .product-form-feedback[data-state="error"] { color: #ff9aa8; }
html[data-theme="dark"] .product-form-feedback[data-state="success"] { color: #8ff0b8; }

@media (max-width: 960px) {
  .products-page .products-hero .page-hero-grid,
  .product-hero-grid,
  .product-body-grid,
  .product-enquiry-grid { grid-template-columns: minmax(0, 1fr); }
  .products-showcase { min-height: 300px; }
}

@media (max-width: 600px) {
  .products-page .products-section, .products-page .product-body, .products-page .product-gallery-section,
  .products-page .product-features-section, .products-page .product-enquiry-section { padding: 64px 0; }
  .product-enquiry-form { grid-template-columns: minmax(0, 1fr); }
  .product-card { padding: 22px; }
  .product-card.is-featured { padding-top: 46px; }
  .products-showcase { min-height: 260px; }
  .products-showcase-core { width: 88px; height: 88px; font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card, .product-gallery img { transition: none; }
  .product-card:hover { transform: none; }
}
