/* Aangee colour catalog. Everything is scoped to #aangee-catalog and prefixed ac-
   so it can't clash with the Odoo website theme (Bootstrap). */
#aangee-catalog {
  --ac-red: #C10F1F;
  --ac-red-dark: #9A0B18;
  --ac-ink: #17181A;
  --ac-muted: #6B6F76;
  --ac-line: #E6E7EA;
  --ac-bg: #F6F6F4;
  color: var(--ac-ink);
  background: var(--ac-bg);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  padding: 8px 0 48px;
}
#aangee-catalog * { box-sizing: border-box; }
#aangee-catalog button { font: inherit; cursor: pointer; }
#aangee-catalog .ac-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

#aangee-catalog .ac-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--ac-line); background: #fff; color: var(--ac-ink);
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; line-height: 1.2;
  transition: background .15s, border-color .15s, transform .1s;
  text-decoration: none; white-space: nowrap;
}
#aangee-catalog .ac-btn:hover { border-color: #cfd1d5; background: #fafafa; color: var(--ac-ink); }
#aangee-catalog .ac-btn:active { transform: scale(.98); }
#aangee-catalog .ac-btn.ac-primary { background: var(--ac-red); border-color: var(--ac-red); color: #fff; }
#aangee-catalog .ac-btn.ac-primary:hover { background: var(--ac-red-dark); border-color: var(--ac-red-dark); }
#aangee-catalog .ac-btn.ac-wa { background: #1FA855; border-color: #1FA855; color: #fff; }
#aangee-catalog .ac-btn.ac-wa:hover { background: #188C46; }
#aangee-catalog .ac-btn svg { width: 16px; height: 16px; flex: none; }

/* Layout: filters on the left, catalog on the right */
#aangee-catalog .ac-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 30px; }
#aangee-catalog .ac-side { position: sticky; top: 80px; } /* clears the website's fixed menu bar */
#aangee-catalog .ac-side-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ac-muted); margin: 22px 0 10px 2px; }
#aangee-catalog .ac-search {
  display: flex; align-items: center; gap: 8px; margin: 0;
  background: #fff; border: 1px solid var(--ac-line); border-radius: 999px; padding: 0 14px;
}
#aangee-catalog .ac-search input { border: 0; outline: 0; padding: 10px 0; font: inherit; font-size: 14px; width: 100%; background: transparent; box-shadow: none; }
#aangee-catalog .ac-tabs, #aangee-catalog .ac-filters { display: flex; flex-wrap: wrap; gap: 6px; }
#aangee-catalog .ac-tab, #aangee-catalog .ac-filters button {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  border: 1px solid var(--ac-line); background: #fff; border-radius: 999px; padding: 7px 12px;
  font-size: 13px; font-weight: 600; color: var(--ac-muted); transition: border-color .15s, color .15s;
}
#aangee-catalog .ac-tab:hover, #aangee-catalog .ac-filters button:hover { border-color: #cfd1d5; color: var(--ac-ink); }
#aangee-catalog .ac-tab.ac-on { background: var(--ac-ink); border-color: var(--ac-ink); color: #fff; }
#aangee-catalog .ac-filters button.ac-on { border-color: var(--ac-ink); color: var(--ac-ink); box-shadow: inset 0 0 0 1px var(--ac-ink); }
#aangee-catalog .ac-tab.ac-soon { opacity: .55; cursor: default; }
#aangee-catalog .ac-tab.ac-soon:hover { border-color: var(--ac-line); color: var(--ac-muted); }
#aangee-catalog .ac-tab.ac-soon small { font-weight: 500; font-size: 10px; }
#aangee-catalog .ac-filters button i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; border: 1px solid rgba(0,0,0,.15); }
#aangee-catalog .ac-count { font-size: 13px; color: var(--ac-muted); margin-bottom: 12px; }

/* Intro */
#aangee-catalog .ac-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 0 0 18px; }
#aangee-catalog .ac-intro h1 { margin: 2px 0 6px; font-size: 30px; letter-spacing: -.02em; font-weight: 700; color: var(--ac-ink); line-height: 1.2; }
#aangee-catalog .ac-cat { color: var(--ac-red); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
#aangee-catalog .ac-desc { color: var(--ac-muted); line-height: 1.55; font-size: 15px; max-width: 640px; }
#aangee-catalog .ac-pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #FCEBEC; color: var(--ac-red); text-transform: uppercase; letter-spacing: .04em; line-height: 1.3; }
#aangee-catalog .ac-pill.ac-clear-pill { background: #E8F1FB; color: #1F5FA8; }

/* 3D chip */
#aangee-catalog .ac-chip { position: relative; transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform; }
#aangee-catalog .ac-chip .ac-layer, #aangee-catalog .ac-chip img, #aangee-catalog .ac-chip canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; border-radius: 7%/4.67%;
}
#aangee-catalog .ac-chip img, #aangee-catalog .ac-chip canvas { display: block; user-select: none; -webkit-user-drag: none; }
/* striped backdrop behind transparent chips, so you can see through them */
#aangee-catalog .ac-see { position: relative; }
#aangee-catalog .ac-see::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 76%; height: 64%; transform: translate(-50%, -50%);
  background: repeating-linear-gradient(135deg, rgba(0,0,0,.045) 0 4px, transparent 4px 13px);
  pointer-events: none;
  -webkit-mask: radial-gradient(closest-side, #000 60%, transparent); mask: radial-gradient(closest-side, #000 60%, transparent);
}
#aangee-catalog .ac-stage-sm.ac-see::before { width: 100%; height: 90%; }
#aangee-catalog .ac-chip.ac-idle { animation: ac-float 7s ease-in-out infinite; }
@keyframes ac-float {
  0%,100% { transform: rotateY(-18deg) rotateX(8deg) translateY(0); }
  50%     { transform: rotateY(14deg) rotateX(4deg) translateY(-8px); }
}

/* Grid */
#aangee-catalog .ac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
#aangee-catalog .ac-card {
  background: #fff; border: 1px solid var(--ac-line); border-radius: 14px;
  padding: 30px 14px 33px; text-align: center; position: relative; cursor: pointer;
  transition: border-color .15s, box-shadow .2s, transform .2s;
}
#aangee-catalog .ac-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.08); transform: translateY(-2px); }
#aangee-catalog .ac-stage-sm { perspective: 700px; display: grid; place-items: center; height: 160px; }
#aangee-catalog .ac-card .ac-chip { width: 100px; height: 150px; transform: rotateY(-10deg) rotateX(6deg); }
#aangee-catalog .ac-nm { font-weight: 700; font-size: 14px; margin-top: 12px; }
#aangee-catalog .ac-cd { color: var(--ac-muted); font-size: 12px; margin-top: 2px; font-variant-numeric: tabular-nums; }
#aangee-catalog .ac-card .ac-pill { position: absolute; top: 9px; left: 10px; font-size: 9.5px; }
#aangee-catalog .ac-ghost { cursor: default; }
#aangee-catalog .ac-ghost:hover { box-shadow: none; transform: none; }
#aangee-catalog .ac-ghost .ac-stage-sm::after { content: ""; width: 100px; height: 150px; border-radius: 7%/4.67%; background: #EFEFEC; }
#aangee-catalog .ac-empty { grid-column: 1/-1; text-align: center; color: var(--ac-muted); padding: 60px 0; }
#aangee-catalog .ac-note { font-size: 12px; color: var(--ac-muted); text-align: center; margin-top: 26px; }

/* Custom colour card: a rainbow chip that opens the colour wheel */
#aangee-catalog .ac-card.ac-custom-card { border-style: dashed; border-color: #cfd1d5; }
#aangee-catalog .ac-rainbow {
  width: 100px; height: 150px; border-radius: 7%/4.67%; transform: rotateY(-10deg) rotateX(6deg);
  background: radial-gradient(circle at 50% 42%, #fff 0, rgba(255,255,255,0) 62%),
              conic-gradient(from 0deg at 50% 42%, #f33, #f93, #ff3, #3c3, #3cf, #36f, #c3f, #f33);
  box-shadow: 0 12px 14px rgba(0,0,0,.14), inset 0 0 0 1px rgba(0,0,0,.06);
  display: grid; place-items: end center; padding-bottom: 14px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; color: rgba(0,0,0,.55);
}

/* Pop-ups */
#aangee-catalog .ac-modal { position: fixed; inset: 0; background: rgba(15,15,18,.5); display: none; place-items: center; z-index: 1060; padding: 16px; }
#aangee-catalog .ac-modal.ac-show { display: grid; }

/* Chip viewer pop-up */
#aangee-catalog .ac-viewer {
  position: relative; background: #fff; border-radius: 22px; width: 100%; max-width: 400px; overflow: hidden;
  display: grid; grid-template-columns: 1fr; box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
#aangee-catalog .ac-stage {
  height: 400px; display: grid; place-items: center; perspective: 1100px; position: relative; touch-action: none;
  background: radial-gradient(ellipse at 50% 86%, rgba(0,0,0,.08), transparent 55%), linear-gradient(#fbfbfa, #efefec);
}
#aangee-catalog .ac-stage .ac-chip { width: 220px; height: 330px; }
#aangee-catalog .ac-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--ac-line); background: #fff; color: var(--ac-ink); display: grid; place-items: center; padding: 0; z-index: 2;
}
#aangee-catalog .ac-nav:hover { border-color: var(--ac-ink); }
#aangee-catalog .ac-nav svg { width: 18px; height: 18px; }
#aangee-catalog .ac-prev { left: 14px; }
#aangee-catalog .ac-next { right: 14px; }
#aangee-catalog .ac-x {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; z-index: 3;
  border: 0; background: #f1f1ef; color: var(--ac-ink); display: grid; place-items: center; padding: 0;
}
#aangee-catalog .ac-x:hover { background: #e6e6e3; }
#aangee-catalog .ac-x svg { width: 18px; height: 18px; }
#aangee-catalog .ac-info { padding: 18px 24px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
#aangee-catalog .ac-v-name { font-size: 24px; font-weight: 700; letter-spacing: -.01em; margin-top: 6px; line-height: 1.2; }
#aangee-catalog .ac-v-code:empty, #aangee-catalog .ac-tags:empty { display: none; }
#aangee-catalog .ac-v-code { color: var(--ac-muted); font-size: 15px; margin-top: 4px; font-variant-numeric: tabular-nums; }
/* how-to line, shown only on the custom colour pop-up */
#aangee-catalog .ac-hint { display: none; margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #F6F6F4; color: var(--ac-ink); font-size: 14px; line-height: 1.45; }
#aangee-catalog .ac-viewer.ac-is-custom .ac-hint { display: block; }
#aangee-catalog .ac-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
#aangee-catalog .ac-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
/* Custom colour keeps the side-by-side layout: the wheel needs the room */
#aangee-catalog .ac-viewer.ac-is-custom { max-width: 860px; grid-template-columns: 1.1fr 1fr; }
#aangee-catalog .ac-viewer.ac-is-custom .ac-stage { height: 460px; }
#aangee-catalog .ac-viewer.ac-is-custom .ac-info { padding: 40px 32px; align-items: stretch; text-align: left; justify-content: center; }
#aangee-catalog .ac-viewer.ac-is-custom .ac-actions { justify-content: flex-start; }

/* Colour wheel (custom chip) */
#aangee-catalog .ac-custom { display: none; gap: 18px; align-items: center; margin-top: 18px; }
#aangee-catalog .ac-viewer.ac-is-custom .ac-custom { display: flex; }
#aangee-catalog .ac-viewer.ac-is-custom .ac-nav { display: none; }
#aangee-catalog .ac-picker { position: relative; width: 170px; height: 170px; flex: none; touch-action: none; cursor: crosshair; }
#aangee-catalog .ac-wheel { width: 100%; height: 100%; border-radius: 50%; display: block; }
#aangee-catalog .ac-knob {
  position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 2px 6px rgba(0,0,0,.3); pointer-events: none;
}
#aangee-catalog .ac-controls { display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 0; }
#aangee-catalog .ac-lbl { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ac-muted); margin: 0; }
#aangee-catalog .ac-range { width: 100%; -webkit-appearance: none; appearance: none; height: 10px; border-radius: 999px; outline: 0; border: 1px solid rgba(0,0,0,.1); }
#aangee-catalog .ac-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1px solid rgba(0,0,0,.25); box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; }
#aangee-catalog .ac-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1px solid rgba(0,0,0,.25); cursor: pointer; }
#aangee-catalog .ac-hex {
  border: 1px solid var(--ac-line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px;
  font-variant-numeric: tabular-nums; text-transform: uppercase; color: var(--ac-ink); width: 120px; background: #fff;
}
#aangee-catalog .ac-finish { display: inline-flex; border: 1px solid var(--ac-line); border-radius: 999px; padding: 3px; align-self: flex-start; }
#aangee-catalog .ac-finish button { border: 0; background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ac-muted); }
#aangee-catalog .ac-finish button.ac-on { background: var(--ac-ink); color: #fff; }

@media (max-width: 820px) {
  #aangee-catalog .ac-wrap { padding: 0 16px; }
  /* on phones the sidebar sits on top, its lists become swipeable rows of pills */
  #aangee-catalog .ac-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 16px; }
  #aangee-catalog .ac-side { position: static; margin-bottom: 22px; }
  #aangee-catalog .ac-side-h { display: none; }
  #aangee-catalog .ac-tabs, #aangee-catalog .ac-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 10px -16px 0; padding: 0 16px; }
  #aangee-catalog .ac-tab, #aangee-catalog .ac-filters button { flex: none; }
  #aangee-catalog .ac-intro { flex-direction: column; align-items: flex-start; gap: 14px; }
  #aangee-catalog .ac-intro h1 { font-size: 24px; }
  #aangee-catalog .ac-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  #aangee-catalog .ac-modal { padding: 10px; }
  #aangee-catalog .ac-viewer, #aangee-catalog .ac-viewer.ac-is-custom { grid-template-columns: 1fr; max-height: calc(100vh - 20px); overflow-y: auto; }
  #aangee-catalog .ac-stage { height: 330px; }
  #aangee-catalog .ac-stage .ac-chip { width: 160px; height: 240px; }
  #aangee-catalog .ac-info, #aangee-catalog .ac-viewer.ac-is-custom .ac-info { padding: 18px 20px 22px; }
  #aangee-catalog .ac-v-name { font-size: 22px; }
  #aangee-catalog .ac-viewer.ac-is-custom .ac-stage { height: 260px; }
  #aangee-catalog .ac-viewer.ac-is-custom .ac-stage .ac-chip { width: 130px; height: 195px; }
  #aangee-catalog .ac-viewer.ac-is-custom .ac-custom { flex-direction: column; align-items: stretch; }
  #aangee-catalog .ac-picker { width: 170px; height: 170px; align-self: center; }
}
@media (prefers-reduced-motion: reduce) { #aangee-catalog .ac-chip.ac-idle { animation: none; transform: rotateY(-14deg) rotateX(6deg); } }
