/* Aliases so this file works on the new design system (cx.css). */
:root { --green: var(--accent); --green-dim: rgba(61,165,127,.12); --bg-card: var(--surface-2); --border: var(--line); --border-green: #3a3a3e; --text-primary: var(--text); --text-muted: var(--text-2); --text-faint: #6e6e73; --radius-md: 12px; --radius-lg: 18px; --radius-xl: 24px; --transition: 180ms ease; }
.cx-head__sub { color: var(--text-2); max-width: 52ch; }
.page-azden main > section:not(.az-hero):not(.az-catalog):not(.az-guide):not(.az-why) { padding-block: var(--band-pad); }

/* Azden catalogue page: hero, filterable product grid, detail and comparison dialogs. */

.az-hero {
  position: relative;
  padding: clamp(120px, 16vw, 180px) 0 clamp(56px, 8vw, 96px);
  background: var(--bg);
  overflow: hidden;
}
.az-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.az-hero-logo { width: clamp(150px, 18vw, 220px); height: auto; margin-bottom: 22px; }
.az-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 18px;
  text-wrap: balance;
}
.az-hero h1 span { color: var(--green); }
.az-hero-lede { color: var(--text-muted); font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.6; max-width: 56ch; margin: 0 0 28px; }
.az-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.az-hero-facts {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 560px;
}
.az-hero-facts li { border-top: 1px solid var(--border-green); padding-top: 12px; color: var(--text-muted); font-size: .82rem; line-height: 1.4; }
.az-hero-facts strong { display: block; color: #fff; font-size: 1.25rem; margin-bottom: 2px; }
.az-hero-visual {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-xl);
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #e9ecea 70%);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 40px 90px #0000008c;
}
.az-hero-visual img { width: 82%; height: auto; object-fit: contain; }
.az-hero-visual figcaption {
  position: absolute; left: 18px; bottom: 16px; padding: 6px 12px; border-radius: 999px;
  background: #050505d9; color: #fff; font-size: .78rem;
}

/* Use-case guide */
.az-guide { padding: clamp(56px, 8vw, 96px) 0; }
.az-guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.az-guide-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
}
.az-guide-card h3 { margin: 0; color: #fff; font-size: 1.05rem; }
.az-guide-card p { margin: 0; color: var(--text-muted); font-size: .9rem; line-height: 1.55; flex: 1; }
.az-guide-card .az-guide-picks { font-size: .82rem; color: var(--green); font-weight: 600; }
.az-guide-card button {
  align-self: flex-start; background: none; border: 0; padding: 0; color: #fff; font: inherit;
  font-size: .86rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* Catalogue */
.az-catalog { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 110px); scroll-margin-top: 80px; }
.az-toolbar {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 20;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 14px 0; margin-bottom: 20px; background: #050505eb; backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.az-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; max-width: 100%; }
.az-chips::-webkit-scrollbar { display: none; }
.az-chip {
  flex: 0 0 auto; border: 1px solid var(--border); background: transparent; color: var(--text-muted);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .84rem; cursor: pointer;
  transition: var(--transition);
}
.az-chip span { opacity: .6; margin-left: 4px; }
.az-chip:hover { color: #fff; border-color: var(--border-green); }
.az-chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #04130d; font-weight: 600; }
.az-chip[aria-pressed="true"] span { opacity: .75; }
.az-tools-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.az-search {
  width: min(260px, 100%); background: var(--bg-card); border: 1px solid var(--border); color: #fff;
  border-radius: 999px; padding: 9px 16px; font: inherit; font-size: .88rem;
}
.az-search:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.az-sort {
  background: var(--bg-card); border: 1px solid var(--border); color: #fff; border-radius: 999px;
  padding: 9px 14px; font: inherit; font-size: .86rem;
}
.az-result-count { color: var(--text-muted); font-size: .86rem; margin: 0 0 18px; }

.az-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.az-card {
  display: flex; flex-direction: column; background: #0d0d0d; border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; transition: transform var(--transition), border-color var(--transition);
}
.az-card:hover { transform: translateY(-3px); border-color: var(--border-green); }
.az-card[hidden] { display: none !important; }
.az-card-media {
  position: relative; aspect-ratio: 4 / 3; background: #f4f5f4; display: grid; place-items: center;
  border: 0; padding: 0; cursor: pointer; width: 100%;
}
.az-card-media img { width: 86%; height: 86%; object-fit: contain; }
.az-badge {
  position: absolute; top: 10px; left: 10px; background: #050505; color: #fff; font-size: .7rem;
  padding: 4px 9px; border-radius: 999px; letter-spacing: .02em;
}
.az-badge--stock { left: auto; right: 10px; background: #f3383f; }
.az-card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.az-card-group { color: var(--green); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.az-card h3 { margin: 0; color: #fff; font-size: 1.15rem; letter-spacing: -.01em; }
.az-card-title { margin: 0; color: var(--text-primary); font-size: .88rem; line-height: 1.4; }
.az-card-points { margin: 6px 0 0; padding-left: 18px; color: var(--text-muted); font-size: .82rem; line-height: 1.5; flex: 1; }
.az-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.az-btn-details {
  background: #fff; color: #050505; border: 0; border-radius: 999px; padding: 9px 16px;
  font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer;
}
.az-btn-details:hover { background: var(--green); }
.az-compare-toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: .82rem; cursor: pointer; }
.az-compare-toggle input { width: 16px; height: 16px; accent-color: var(--green); }
.az-empty { text-align: center; color: var(--text-muted); padding: 48px 0; }

/* Compare tray */
.az-tray {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); transform: translateX(-50%);
  z-index: 60; width: min(760px, calc(100% - 32px));
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px;
  background: #111; border: 1px solid var(--border-green); border-radius: 999px; box-shadow: 0 20px 60px #000000b3;
}
.az-tray-items { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.az-tray-item {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; background: #1d1d1d; color: #fff;
  border-radius: 999px; padding: 5px 6px 5px 12px; font-size: .8rem;
}
.az-tray-item button { background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 2px 6px; }
.az-tray-hint { color: var(--text-muted); font-size: .8rem; white-space: nowrap; }
.az-tray .btn { padding: 10px 18px; font-size: .86rem; white-space: nowrap; }
.az-tray-clear { background: none; border: 0; color: var(--text-muted); font: inherit; font-size: .8rem; cursor: pointer; }

/* Dialogs */
.az-dialog {
  width: min(980px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: #0b0b0b; color: var(--text-primary); overflow: hidden;
}
.az-dialog::backdrop { background: #000000c7; backdrop-filter: blur(4px); }
.az-dialog-inner { max-height: calc(100dvh - 34px); overflow: auto; padding: clamp(20px, 3vw, 32px); }
.az-dialog-close {
  position: sticky; top: 0; float: right; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: #161616; color: #fff; font-size: 1.2rem; cursor: pointer;
}
.az-detail { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; }
.az-detail-media { background: #f4f5f4; border-radius: var(--radius-md); display: grid; place-items: center; aspect-ratio: 1 / 1; }
.az-detail-media img { width: 86%; height: 86%; object-fit: contain; }
.az-detail h2 { margin: 4px 0 6px; color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.az-detail-sub { margin: 0 0 14px; color: var(--text-muted); line-height: 1.55; font-size: .92rem; }
.az-detail ul { margin: 0 0 18px; padding-left: 18px; color: var(--text-primary); font-size: .9rem; line-height: 1.6; }
.az-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.az-specs { width: 100%; border-collapse: collapse; font-size: .86rem; margin-top: 8px; }
.az-specs th, .az-specs td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.az-specs th { color: var(--text-muted); font-weight: 500; width: 38%; }
.az-specs-title { margin: 22px 0 4px; color: #fff; font-size: 1rem; grid-column: 1 / -1; }
.az-detail-specs { grid-column: 1 / -1; }

.az-compare-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 0 48px 18px 0; }
.az-compare-head h2 { margin: 0; color: #fff; font-size: 1.4rem; }
.az-compare-wrap { overflow-x: auto; }
.az-compare-table { border-collapse: collapse; min-width: 640px; width: 100%; font-size: .86rem; }
.az-compare-table th, .az-compare-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.az-compare-table thead th { vertical-align: bottom; }
.az-compare-table thead img { width: 120px; height: 90px; object-fit: contain; background: #f4f5f4; border-radius: 10px; display: block; margin-bottom: 8px; }
.az-compare-table tbody th { color: var(--text-muted); font-weight: 500; position: sticky; left: 0; background: #0b0b0b; min-width: 150px; }
.az-compare-table tr.is-diff td { color: #fff; }
.az-compare-table tr.is-same td { color: var(--text-muted); }
.az-compare-table .az-model-name { color: #fff; font-size: 1rem; font-weight: 600; }
.az-compare-table .az-missing { color: var(--text-faint); }
.az-compare-table td a { color: var(--green); }

/* Why Camixel strip */
.az-why { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--border); }
.az-why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.az-why-item { padding: 20px; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border); }
.az-why-item h3 { margin: 0 0 6px; color: #fff; font-size: 1rem; }
.az-why-item p { margin: 0; color: var(--text-muted); font-size: .88rem; line-height: 1.55; }

@media (max-width: 960px) {
  .az-hero-grid, .az-detail { grid-template-columns: 1fr; }
  .az-hero-visual { max-width: 420px; }
  .az-guide-grid, .az-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .az-guide-grid, .az-why-grid { grid-template-columns: 1fr; }
  .az-hero-facts { grid-template-columns: 1fr 1fr 1fr; }
  .az-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .az-card-body { padding: 12px; }
  .az-card-points { display: none; }
  .az-card-actions { flex-direction: column; align-items: stretch; }
  .az-tray { border-radius: 18px; flex-wrap: wrap; }
  .az-tools-right { width: 100%; }
  .az-search { flex: 1; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .az-card, .az-chip { transition: none; }
  .az-card:hover { transform: none; }
}

.page-azden .visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Overrides for site-wide element rules (headings, inputs, figures, dialogs). */
.page-azden .az-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -.025em !important;
  max-width: 15ch;
}
.page-azden .az-hero-visual { margin: 0 !important; width: 100%; }
.page-azden .az-hero-visual img { width: 78% !important; max-width: 78% !important; height: auto !important; }
.page-azden .az-toolbar .az-search,
.page-azden .az-toolbar .az-sort {
  width: auto !important; min-width: 0 !important; height: 40px !important; min-height: 0 !important;
  padding: 0 16px !important; margin: 0 !important; border-radius: 999px !important; font-size: .88rem !important;
}
.page-azden .az-toolbar .az-search { width: 240px !important; }
.page-azden .az-toolbar .az-sort { padding-right: 34px !important; }
.page-azden .az-card-media, .page-azden .az-detail-media, .page-azden .az-compare-table thead img { background: #fff !important; }
.page-azden .az-dialog { margin: auto !important; position: fixed; inset: 0; }
.page-azden .az-compare-table thead th, .page-azden .az-compare-table thead th * { text-transform: none !important; letter-spacing: normal !important; }
.page-azden .az-compare-toggle input {
  appearance: auto !important; -webkit-appearance: checkbox !important; width: 16px !important; height: 16px !important;
  min-height: 0 !important; padding: 0 !important; margin: 0 !important; border-radius: 3px !important; flex: 0 0 auto;
}
@media (max-width: 560px) {
  .page-azden .az-toolbar .az-search { width: auto !important; flex: 1 1 140px; }
  .page-azden .az-toolbar .az-sort { flex: 0 0 auto; max-width: 48%; }
  .page-azden .az-tools-right { flex-wrap: nowrap; }
}

body.page-azden .az-hero h1,
body.page-azden.premium-ui .az-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -.025em !important;
}
body.page-azden .az-toolbar select.az-sort,
body.page-azden .az-toolbar input.az-search {
  width: auto !important; max-width: 260px !important; height: 40px !important; min-height: 0 !important;
  padding-block: 0 !important; margin: 0 !important; border-radius: 999px !important;
}
body.page-azden .az-toolbar input.az-search { width: 240px !important; }
body.page-azden .az-hero-visual { background: #fff !important; }
@media (max-width: 560px) {
  body.page-azden .az-toolbar input.az-search { width: auto !important; flex: 1 1 140px; }
}
@media (max-width: 560px) {
  body.page-azden .az-toolbar input.az-search { flex: 0 0 auto !important; width: 56% !important; max-width: none !important; }
  body.page-azden .az-toolbar select.az-sort { flex: 0 0 auto !important; width: calc(44% - 10px) !important; max-width: none !important; }
}

/* Product photos have transparent backgrounds: show them on the page surface. */
body.page-azden .az-card-media, body.page-azden .az-detail-media, body.page-azden .az-compare-table thead img, body.page-azden .az-hero-visual { background: var(--surface-2) !important; }
