/* ════════════════════════════════════════════════════════════════
   cKALARMe Design System — ck.css
   Shared across all cKALARMe pages

   Visual direction:
   - Warm cream canvas
   - Strong black outlines
   - Offset hard shadows
   - Unbounded display typography
   - DM Sans UI typography
   - Rounded / tactile interface elements
   - Personalised Style DNA accent colour
════════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════
   FONTS
════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;600;700;800;900&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');


/* ════════════════════════════════════
   DESIGN TOKENS
════════════════════════════════════ */

:root {

  /* Core colours */
  --ck-ink: #111111;
  --ck-black: #111111;
  --ck-white: #ffffff;

  --ck-cream: #F6F2EA;
  --ck-sand: #EAE3D6;
  --ck-sand-2: #DED6C9;
  --ck-stone: #CFC8BC;

  --ck-muted: #7A756D;
  --ck-muted-dark: #5F5A53;

  /* Personal / Style DNA accent */
  --ck-accent: #5B7FA6;

  /* Semantic */
  --ck-success: #5E8A72;
  --ck-warning: #C6933E;
  --ck-danger: #B95D55;

  /* Typography */
  --ck-display: 'Unbounded', sans-serif;
  --ck-ui: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;

  /* Borders */
  --ck-border-width: 2px;
  --ck-border: var(--ck-border-width) solid var(--ck-ink);

  /* Radius */
  --ck-radius-xs: 8px;
  --ck-radius-sm: 12px;
  --ck-radius: 16px;
  --ck-radius-md: 20px;
  --ck-radius-lg: 24px;
  --ck-radius-xl: 28px;
  --ck-radius-pill: 999px;

  /* Shadows */
  --ck-shadow-xs: 2px 2px 0 var(--ck-ink);
  --ck-shadow-sm: 3px 3px 0 var(--ck-ink);
  --ck-shadow: 5px 5px 0 var(--ck-ink);
  --ck-shadow-lg: 7px 7px 0 var(--ck-ink);

  --ck-shadow-stone: 5px 5px 0 var(--ck-stone);

  /* Spacing */
  --ck-space-1: 4px;
  --ck-space-2: 8px;
  --ck-space-3: 12px;
  --ck-space-4: 16px;
  --ck-space-5: 20px;
  --ck-space-6: 24px;
  --ck-space-7: 32px;
  --ck-space-8: 40px;
  --ck-space-9: 48px;
  --ck-space-10: 64px;

  /* Layout */
  --ck-rail-width: 84px;
  --ck-page-max: 1180px;

  /* Motion */
  --ck-fast: 150ms ease;
  --ck-medium: 220ms ease;
}


/* ════════════════════════════════════
   RESET
════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  font-family: var(--ck-ui);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;

  background: var(--ck-cream);
  color: var(--ck-ink);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  overflow-x: hidden;
}

body.ck-has-rail {
  padding-left: var(--ck-rail-width);
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}


/* ════════════════════════════════════
   TYPOGRAPHY
════════════════════════════════════ */

h1,
h2,
h3,
h4,
h5,
h6,
.ck-display {
  font-family: var(--ck-display);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
}

h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
}

h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
}

h4 {
  font-size: 17px;
  font-weight: 700;
}

p {
  line-height: 1.6;
}

.ck-heading {
  font-family: var(--ck-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.ck-heading-xl {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 900;
}

.ck-heading-lg {
  font-size: clamp(28px, 4vw, 44px);
}

.ck-heading-md {
  font-size: clamp(22px, 3vw, 32px);
}

.ck-heading-sm {
  font-size: 18px;
}

.ck-text-muted {
  color: var(--ck-muted);
}

.ck-text-accent {
  color: var(--ck-accent);
}

.ck-text-center {
  text-align: center;
}

.ck-label {
  font-family: var(--ck-ui);
  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.06em;
  text-transform: uppercase;

  color: var(--ck-muted);
}


/* ════════════════════════════════════
   LAYOUT
════════════════════════════════════ */

.ck-page {
  width: 100%;
  max-width: var(--ck-page-max);

  margin: 0 auto;
  padding: 36px 32px 80px;
}

.ck-page-wide {
  width: 100%;
  max-width: 1320px;

  margin: 0 auto;
  padding: 36px 32px 80px;
}

.ck-section {
  margin-top: 40px;
}

.ck-section-lg {
  margin-top: 64px;
}

.ck-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ck-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ck-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ck-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ck-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ck-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}


/* ════════════════════════════════════
   LEFT NAVIGATION RAIL
════════════════════════════════════ */

.ck-rail {
  position: fixed;

  top: 0;
  left: 0;
  bottom: 0;

  z-index: 300;

  width: var(--ck-rail-width);

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 8px;

  padding: 16px 0 20px;

  background: var(--ck-cream);

  border-right: 2px solid var(--ck-ink);
}

.ck-rail-logo {
  width: 48px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 14px;

  color: var(--ck-ink);

  transition: transform var(--ck-fast);
}

.ck-rail-logo:hover {
  transform: scale(1.06);
}

.ck-rail-logo svg {
  width: 36px;
  height: auto;
}

.ck-rail-nav {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 7px;

  width: 100%;
}

.ck-rail-item {
  position: relative;

  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid transparent;
  border-radius: 16px;

  color: var(--ck-muted);
  background: transparent;

  transition:
    transform var(--ck-fast),
    border-color var(--ck-fast),
    background var(--ck-fast),
    color var(--ck-fast),
    box-shadow var(--ck-fast);
}

.ck-rail-item svg {
  width: 22px;
  height: 22px;
}

.ck-rail-item:hover {
  color: var(--ck-ink);

  background: var(--ck-white);

  border-color: var(--ck-ink);

  transform: translate(-1px, -1px);

  box-shadow: var(--ck-shadow-sm);
}

.ck-rail-item.active,
.ck-rail-item.on {
  color: var(--ck-cream);
  background: var(--ck-ink);

  border-color: var(--ck-ink);

  box-shadow: 3px 3px 0 var(--ck-stone);
}

.ck-rail-spacer {
  flex: 1;
}

.ck-tooltip {
  position: absolute;

  top: 50%;
  left: 64px;

  transform: translateY(-50%);

  z-index: 500;

  padding: 6px 10px;

  border-radius: 8px;

  background: var(--ck-ink);
  color: var(--ck-cream);

  font-family: var(--ck-ui);
  font-size: 12px;
  font-weight: 700;

  white-space: nowrap;

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transition:
    opacity var(--ck-fast),
    visibility var(--ck-fast);
}

.ck-rail-item:hover .ck-tooltip {
  opacity: 1;
  visibility: visible;
}


/* ════════════════════════════════════
   TOP NAVIGATION
   Kept for pages that still use a
   horizontal navbar.
════════════════════════════════════ */

.ck-nav {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  z-index: 200;

  height: 68px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 40px;

  background: rgba(246, 242, 234, 0.94);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border-bottom: 2px solid var(--ck-ink);
}

.ck-nav.dark {
  background: rgba(17, 17, 17, 0.95);
  color: var(--ck-white);
  border-color: var(--ck-ink);
}

.ck-nav-brand {
  display: flex;
  align-items: center;

  gap: 10px;

  font-family: var(--ck-display);
  font-size: 16px;
  font-weight: 700;

  color: var(--ck-ink);
}

.ck-nav.dark .ck-nav-brand {
  color: var(--ck-white);
}

.ck-nav-icon {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 10px;

  background: var(--ck-ink);
  color: var(--ck-white);

  border: 2px solid var(--ck-ink);

  box-shadow: 2px 2px 0 var(--ck-stone);
}

.ck-nav-icon svg {
  width: 18px;
  height: 18px;
}

.ck-nav.dark .ck-nav-icon {
  background: var(--ck-white);
  color: var(--ck-ink);
}

.ck-nav-wordmark {
  font-family: var(--ck-display);
  font-size: 16px;
  font-weight: 700;

  letter-spacing: -0.025em;
}

.ck-nav-links {
  display: flex;
  align-items: center;

  gap: 28px;
}

.ck-nav-links a {
  position: relative;

  font-size: 14px;
  font-weight: 600;

  color: var(--ck-muted);

  transition: color var(--ck-fast);
}

.ck-nav-links a:hover,
.ck-nav-links a.active {
  color: var(--ck-ink);
}

.ck-nav-links a.active::after {
  content: '';

  position: absolute;

  left: 0;
  right: 0;
  bottom: -7px;

  height: 2px;

  border-radius: 999px;

  background: var(--ck-ink);
}

.ck-nav.dark .ck-nav-links a {
  color: var(--ck-stone);
}

.ck-nav.dark .ck-nav-links a:hover,
.ck-nav.dark .ck-nav-links a.active {
  color: var(--ck-white);
}

.ck-nav-actions {
  display: flex;
  align-items: center;

  gap: 8px;
}


/* ════════════════════════════════════
   AVATAR
════════════════════════════════════ */

.ck-avatar {
  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  overflow: hidden;

  border-radius: 50%;

  border: 2px solid var(--ck-ink);

  background: var(--ck-accent);
  color: var(--ck-white);

  box-shadow: var(--ck-shadow-sm);

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  transition:
    transform var(--ck-fast),
    box-shadow var(--ck-fast);
}

.ck-avatar:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ck-ink);
}

.ck-avatar img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.ck-avatar-sm {
  width: 34px;
  height: 34px;

  box-shadow: 2px 2px 0 var(--ck-ink);
}

.ck-avatar-lg {
  width: 64px;
  height: 64px;
}


/* ════════════════════════════════════
   BUTTONS
════════════════════════════════════ */

.ck-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  min-height: 42px;

  padding: 10px 20px;

  border: 2px solid var(--ck-ink);
  border-radius: var(--ck-radius-pill);

  font-family: var(--ck-ui);
  font-size: 14px;
  font-weight: 700;

  line-height: 1;

  cursor: pointer;

  text-decoration: none;

  white-space: nowrap;

  transition:
    transform var(--ck-fast),
    box-shadow var(--ck-fast),
    background var(--ck-fast),
    color var(--ck-fast),
    opacity var(--ck-fast);
}

.ck-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ck-ink);
}

.ck-btn:active {
  transform: translate(0, 0);
  box-shadow: none;
}

.ck-btn:disabled,
.ck-btn.disabled {
  opacity: 0.45;

  cursor: not-allowed;

  transform: none;
  box-shadow: none;
}

.ck-btn-sm {
  min-height: 36px;

  padding: 8px 15px;

  font-size: 12px;
}

.ck-btn-lg {
  min-height: 50px;

  padding: 14px 28px;

  font-size: 15px;
}

.ck-btn-full {
  width: 100%;
}

.ck-btn-solid {
  background: var(--ck-ink);
  color: var(--ck-white);
}

.ck-btn-outline {
  background: var(--ck-white);
  color: var(--ck-ink);
}

.ck-btn-cream {
  background: var(--ck-cream);
  color: var(--ck-ink);
}

.ck-btn-sand {
  background: var(--ck-sand);
  color: var(--ck-ink);
}

.ck-btn-accent {
  background: var(--ck-accent);
  color: var(--ck-white);
}

.ck-btn-ghost {
  background: transparent;
  color: var(--ck-ink);
}

.ck-btn-danger {
  background: var(--ck-danger);
  color: var(--ck-white);
}

.ck-btn-ghost-white {
  background: transparent;
  color: var(--ck-white);

  border-color: var(--ck-white);
}

.ck-btn-ghost-white:hover {
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.45);
}


/* ════════════════════════════════════
   ICON BUTTONS
════════════════════════════════════ */

.ck-icon-btn {
  width: 40px;
  height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  padding: 0;

  border: 2px solid var(--ck-ink);
  border-radius: 50%;

  background: var(--ck-white);
  color: var(--ck-ink);

  cursor: pointer;

  transition:
    transform var(--ck-fast),
    box-shadow var(--ck-fast);
}

.ck-icon-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--ck-shadow-sm);
}

.ck-icon-btn svg {
  width: 18px;
  height: 18px;
}


/* ════════════════════════════════════
   CARDS
════════════════════════════════════ */

.ck-card {
  position: relative;

  padding: 22px;

  border: 2px solid var(--ck-ink);
  border-radius: var(--ck-radius-lg);

  background: var(--ck-white);

  box-shadow: var(--ck-shadow);

  transition:
    transform var(--ck-fast),
    box-shadow var(--ck-fast);
}

.ck-card-hover:hover {
  transform: translate(-2px, -2px);

  box-shadow: var(--ck-shadow-lg);
}

.ck-card-sm {
  padding: 16px;

  border-radius: var(--ck-radius);
}

.ck-card-lg {
  padding: 28px;

  border-radius: var(--ck-radius-xl);
}

.ck-card-flat {
  box-shadow: none;
}

.ck-card-sand {
  background: var(--ck-sand);
}

.ck-card-cream {
  background: var(--ck-cream);
}

.ck-card-accent {
  background: var(--ck-accent);
  color: var(--ck-white);
}

.ck-card-dark {
  background: var(--ck-ink);
  color: var(--ck-cream);

  box-shadow: var(--ck-shadow-stone);
}

.ck-card-dark .ck-text-muted,
.ck-card-dark .ck-label {
  color: var(--ck-stone);
}

.ck-card-title {
  font-family: var(--ck-display);
  font-size: 18px;
  font-weight: 700;

  letter-spacing: -0.02em;
}

.ck-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;

  margin-bottom: 16px;
}


/* ════════════════════════════════════
   KICKERS / CARD LABELS
════════════════════════════════════ */

.ck-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-bottom: 14px;

  font-family: var(--ck-ui);
  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.06em;
  text-transform: uppercase;

  color: var(--ck-muted);
}

.ck-card-dark .ck-kicker {
  color: var(--ck-stone);
}

.ck-kicker-action {
  padding: 5px 10px;

  border-radius: var(--ck-radius-pill);

  background: var(--ck-ink);
  color: var(--ck-cream);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0;
  text-transform: none;

  cursor: pointer;
}


/* ════════════════════════════════════
   STICKERS
════════════════════════════════════ */

.ck-sticker {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  width: fit-content;

  padding: 6px 12px;

  border: 2px solid var(--ck-ink);
  border-radius: var(--ck-radius-pill);

  background: var(--ck-white);
  color: var(--ck-ink);

  box-shadow: var(--ck-shadow-sm);

  font-size: 12px;
  font-weight: 700;
}

.ck-sticker-accent {
  background: var(--ck-accent);
  color: var(--ck-white);
}

.ck-sticker-sand {
  background: var(--ck-sand);
}

.ck-sticker-tilt {
  transform: rotate(-2deg);
}


/* ════════════════════════════════════
   BADGES
════════════════════════════════════ */

.ck-badge {
  display: inline-flex;
  align-items: center;

  gap: 5px;

  width: fit-content;

  padding: 4px 9px;

  border: 2px solid var(--ck-ink);
  border-radius: var(--ck-radius-pill);

  background: var(--ck-accent);
  color: var(--ck-white);

  font-size: 11px;
  font-weight: 700;

  white-space: nowrap;
}

.ck-badge-dark {
  background: var(--ck-ink);
  color: var(--ck-white);
}

.ck-badge-light {
  background: var(--ck-white);
  color: var(--ck-ink);
}

.ck-badge-success {
  background: var(--ck-success);
  color: var(--ck-white);
}

.ck-badge-warning {
  background: var(--ck-warning);
  color: var(--ck-ink);
}

.ck-badge-danger {
  background: var(--ck-danger);
  color: var(--ck-white);
}


/* ════════════════════════════════════
   FORMS
════════════════════════════════════ */

.ck-field {
  display: flex;
  flex-direction: column;

  gap: 7px;
}

.ck-field label {
  font-size: 13px;
  font-weight: 700;
}

.ck-input,
.ck-select,
.ck-textarea {
  width: 100%;

  padding: 12px 14px;

  border: 2px solid var(--ck-ink);
  border-radius: var(--ck-radius);

  outline: none;

  background: var(--ck-white);
  color: var(--ck-ink);

  font-family: var(--ck-ui);
  font-size: 14px;

  transition:
    box-shadow var(--ck-fast),
    transform var(--ck-fast),
    border-color var(--ck-fast);
}

.ck-input::placeholder,
.ck-textarea::placeholder {
  color: var(--ck-stone);
}

.ck-input:focus,
.ck-select:focus,
.ck-textarea:focus {
  transform: translate(-1px, -1px);

  box-shadow: var(--ck-shadow-sm);
}

.ck-textarea {
  min-height: 130px;

  resize: vertical;
}

.ck-input-error {
  border-color: var(--ck-danger);
}

.ck-field-help {
  font-size: 12px;
  color: var(--ck-muted);
}

.ck-field-error {
  font-size: 12px;
  font-weight: 600;

  color: var(--ck-danger);
}


/* ════════════════════════════════════
   CHECKBOX
════════════════════════════════════ */

.ck-check {
  display: inline-flex;
  align-items: center;

  gap: 10px;

  cursor: pointer;
}

.ck-check input {
  appearance: none;

  width: 20px;
  height: 20px;

  flex-shrink: 0;

  border: 2px solid var(--ck-ink);
  border-radius: 6px;

  background: var(--ck-white);

  cursor: pointer;
}

.ck-check input:checked {
  background:
    var(--ck-ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L19 6'/%3E%3C/svg%3E")
    center / 14px
    no-repeat;
}


/* ════════════════════════════════════
   TOGGLE
════════════════════════════════════ */

.ck-toggle {
  position: relative;

  width: 48px;
  height: 28px;

  flex-shrink: 0;

  border: 2px solid var(--ck-ink);
  border-radius: var(--ck-radius-pill);

  background: var(--ck-white);

  cursor: pointer;

  transition: background var(--ck-fast);
}

.ck-toggle::after {
  content: '';

  position: absolute;

  top: 3px;
  left: 3px;

  width: 18px;
  height: 18px;

  border-radius: 50%;

  background: var(--ck-ink);

  transition:
    left var(--ck-fast),
    background var(--ck-fast);
}

.ck-toggle.active {
  background: var(--ck-accent);
}

.ck-toggle.active::after {
  left: 23px;
}


/* ════════════════════════════════════
   TABS
════════════════════════════════════ */

.ck-tabs {
  display: inline-flex;
  align-items: center;

  gap: 4px;

  padding: 4px;

  border: 2px solid var(--ck-ink);
  border-radius: var(--ck-radius-pill);

  background: var(--ck-white);
}

.ck-tab {
  padding: 8px 14px;

  border: none;
  border-radius: var(--ck-radius-pill);

  background: transparent;
  color: var(--ck-muted);

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background var(--ck-fast),
    color var(--ck-fast);
}

.ck-tab.active {
  background: var(--ck-ink);
  color: var(--ck-white);
}


/* ════════════════════════════════════
   DIVIDERS
════════════════════════════════════ */

.ck-divider {
  width: 100%;
  height: 2px;

  border: 0;

  background: var(--ck-ink);
}

.ck-divider-soft {
  height: 1px;

  background: var(--ck-sand-2);
}

.ck-divider-dashed {
  border: 0;
  border-top: 2px dashed var(--ck-stone);

  background: transparent;
}


/* ════════════════════════════════════
   MEDIA / PRODUCT IMAGES
════════════════════════════════════ */

.ck-media {
  position: relative;

  overflow: hidden;

  border: 2px solid var(--ck-ink);
  border-radius: var(--ck-radius);

  background: var(--ck-sand);
}

.ck-media img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.ck-product-thumb {
  position: relative;

  overflow: hidden;

  aspect-ratio: 3 / 4;

  border: 2px solid var(--ck-ink);
  border-radius: var(--ck-radius);

  background: var(--ck-white);

  box-shadow: 4px 4px 0 var(--ck-ink);

  transition:
    transform var(--ck-fast),
    box-shadow var(--ck-fast);
}

.ck-product-thumb:hover {
  transform: translate(-2px, -2px);

  box-shadow: 6px 6px 0 var(--ck-ink);
}

.ck-product-thumb img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.ck-product-label {
  position: absolute;

  left: 8px;
  bottom: 8px;

  padding: 3px 8px;

  border: 2px solid var(--ck-ink);
  border-radius: var(--ck-radius-pill);

  background: var(--ck-white);

  font-size: 11px;
  font-weight: 700;
}


/* ════════════════════════════════════
   IMAGE / OUTFIT GRID
════════════════════════════════════ */

.ck-thumbs {
  display: flex;

  gap: 8px;
}

.ck-thumb {
  flex: 1;

  position: relative;

  overflow: hidden;

  aspect-ratio: 3 / 4;

  border: 2px solid var(--ck-ink);
  border-radius: var(--ck-radius);

  background: var(--ck-cream);
}

.ck-thumb img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* ════════════════════════════════════
   LINK ROWS
════════════════════════════════════ */

.ck-link-row {
  display: flex;
  align-items: center;

  gap: 14px;
}

.ck-link-row-content {
  min-width: 0;

  flex: 1;
}

.ck-link-row-title {
  display: block;

  margin-bottom: 2px;

  font-family: var(--ck-display);
  font-size: 16px;
  font-weight: 700;

  letter-spacing: -0.02em;
}

.ck-link-row-subtitle {
  display: block;

  font-size: 13px;

  color: var(--ck-muted);
}

.ck-card-dark .ck-link-row-subtitle {
  color: var(--ck-stone);
}

.ck-arrow {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  margin-left: auto;

  border: 2px solid var(--ck-ink);
  border-radius: 50%;

  background: var(--ck-white);
  color: var(--ck-ink);

  font-size: 20px;
  font-weight: 700;

  transition:
    transform var(--ck-fast),
    box-shadow var(--ck-fast);
}

.ck-link-row:hover .ck-arrow {
  transform: translate(-2px, -2px);

  box-shadow: var(--ck-shadow-sm);
}


/* ════════════════════════════════════
   STAT CARDS
════════════════════════════════════ */

.ck-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 14px;
}

.ck-stat {
  padding: 16px;

  border: 2px solid var(--ck-ink);
  border-radius: var(--ck-radius-md);

  background: var(--ck-white);

  box-shadow: var(--ck-shadow);

  transition:
    transform var(--ck-fast),
    box-shadow var(--ck-fast);
}

.ck-stat:hover {
  transform: translate(-2px, -2px);

  box-shadow: var(--ck-shadow-lg);
}

.ck-stat-value {
  display: block;

  margin-bottom: 4px;

  font-family: var(--ck-display);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;

  letter-spacing: -0.025em;
}

.ck-stat-label {
  display: block;

  font-size: 13px;

  color: var(--ck-muted);
}


/* ════════════════════════════════════
   COLOUR SWATCHES
════════════════════════════════════ */

.ck-swatch {
  width: 44px;
  height: 44px;

  flex-shrink: 0;

  border: 2px solid var(--ck-ink);
  border-radius: 50%;

  background: var(--ck-accent);
}

.ck-swatch-sm {
  width: 28px;
  height: 28px;
}

.ck-swatch-lg {
  width: 64px;
  height: 64px;
}


/* ════════════════════════════════════
   PROGRESS
════════════════════════════════════ */

.ck-progress {
  width: 100%;
  height: 16px;

  overflow: hidden;

  border: 2px solid var(--ck-ink);
  border-radius: var(--ck-radius-pill);

  background: var(--ck-sand);
}

.ck-progress-bar {
  height: 100%;

  border-radius: inherit;

  background: var(--ck-accent);
}


/* ════════════════════════════════════
   EMPTY STATES
════════════════════════════════════ */

.ck-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 14px;

  min-height: 260px;

  padding: 36px;

  text-align: center;

  border: 2px dashed var(--ck-ink);
  border-radius: var(--ck-radius-lg);

  background: transparent;
}

.ck-empty-icon {
  width: 56px;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid var(--ck-ink);
  border-radius: 50%;

  background: var(--ck-white);

  box-shadow: var(--ck-shadow-sm);
}

.ck-empty-title {
  font-family: var(--ck-display);
  font-size: 18px;
  font-weight: 700;
}

.ck-empty-text {
  max-width: 420px;

  font-size: 14px;

  color: var(--ck-muted);
}


/* ════════════════════════════════════
   MODALS
════════════════════════════════════ */

.ck-modal-backdrop {
  position: fixed;

  inset: 0;

  z-index: 900;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(17, 17, 17, 0.55);

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.ck-modal {
  width: 100%;
  max-width: 520px;

  max-height: calc(100vh - 48px);

  overflow-y: auto;

  padding: 26px;

  border: 2px solid var(--ck-ink);
  border-radius: var(--ck-radius-xl);

  background: var(--ck-cream);

  box-shadow: 8px 8px 0 var(--ck-ink);
}

.ck-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 22px;
}

.ck-modal-title {
  font-family: var(--ck-display);
  font-size: 22px;
  font-weight: 800;
}


/* ════════════════════════════════════
   DROPDOWN
════════════════════════════════════ */

.ck-dropdown {
  position: absolute;

  z-index: 700;

  min-width: 190px;

  padding: 8px;

  border: 2px solid var(--ck-ink);
  border-radius: var(--ck-radius);

  background: var(--ck-white);

  box-shadow: var(--ck-shadow);
}

.ck-dropdown-item {
  display: flex;
  align-items: center;

  gap: 10px;

  width: 100%;

  padding: 10px 12px;

  border: 0;
  border-radius: 10px;

  background: transparent;

  color: var(--ck-ink);

  font-size: 13px;
  font-weight: 600;

  text-align: left;

  cursor: pointer;

  transition: background var(--ck-fast);
}

.ck-dropdown-item:hover {
  background: var(--ck-sand);
}


/* ════════════════════════════════════
   ALERTS
════════════════════════════════════ */

.ck-alert {
  display: flex;
  align-items: flex-start;

  gap: 12px;

  padding: 14px 16px;

  border: 2px solid var(--ck-ink);
  border-radius: var(--ck-radius);

  background: var(--ck-white);

  box-shadow: var(--ck-shadow-sm);

  font-size: 13px;
}

.ck-alert-success {
  background: #E3EEE7;
}

.ck-alert-warning {
  background: #F4E7C9;
}

.ck-alert-danger {
  background: #F3D9D6;
}


/* ════════════════════════════════════
   CHIPS
════════════════════════════════════ */

.ck-chip {
  display: inline-flex;
  align-items: center;

  gap: 6px;

  padding: 6px 10px;

  border: 2px solid var(--ck-ink);
  border-radius: var(--ck-radius-pill);

  background: var(--ck-white);

  font-size: 12px;
  font-weight: 700;
}

.ck-chip.active {
  background: var(--ck-ink);
  color: var(--ck-white);
}


/* ════════════════════════════════════
   TOOLTIP
════════════════════════════════════ */

.ck-tip {
  position: relative;
}

.ck-tip::after {
  content: attr(data-tip);

  position: absolute;

  left: 50%;
  bottom: calc(100% + 8px);

  z-index: 500;

  transform: translateX(-50%);

  padding: 6px 9px;

  border-radius: 8px;

  background: var(--ck-ink);
  color: var(--ck-cream);

  font-size: 11px;
  font-weight: 700;

  white-space: nowrap;

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transition: opacity var(--ck-fast);
}

.ck-tip:hover::after {
  opacity: 1;
  visibility: visible;
}


/* ════════════════════════════════════
   TABLES
════════════════════════════════════ */

.ck-table-wrap {
  overflow-x: auto;

  border: 2px solid var(--ck-ink);
  border-radius: var(--ck-radius-lg);

  background: var(--ck-white);

  box-shadow: var(--ck-shadow);
}

.ck-table {
  width: 100%;

  border-collapse: collapse;
}

.ck-table th,
.ck-table td {
  padding: 14px 16px;

  text-align: left;

  border-bottom: 1px solid var(--ck-sand-2);
}

.ck-table th {
  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.06em;
  text-transform: uppercase;

  color: var(--ck-muted);
}

.ck-table tr:last-child td {
  border-bottom: 0;
}


/* ════════════════════════════════════
   LOADING / SPINNER
════════════════════════════════════ */

.ck-spinner {
  width: 28px;
  height: 28px;

  border: 3px solid var(--ck-sand-2);
  border-top-color: var(--ck-ink);

  border-radius: 50%;

  animation: ck-spin 0.75s linear infinite;
}

.ck-spinner-light {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: var(--ck-white);
}

@keyframes ck-spin {
  to {
    transform: rotate(360deg);
  }
}


/* ════════════════════════════════════
   SKELETON
════════════════════════════════════ */

.ck-skeleton {
  position: relative;

  overflow: hidden;

  border-radius: 8px;

  background: var(--ck-sand-2);
}

.ck-skeleton::after {
  content: '';

  position: absolute;

  inset: 0;

  transform: translateX(-100%);

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );

  animation: ck-shimmer 1.4s infinite;
}

@keyframes ck-shimmer {
  100% {
    transform: translateX(100%);
  }
}


/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */

.ck-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;

  align-items: center;

  gap: 20px;

  padding: 36px 40px;

  border-top: 2px solid var(--ck-ink);

  background: var(--ck-cream);
}

.ck-footer-brand {
  font-family: var(--ck-display);
  font-size: 13px;
  font-weight: 700;

  color: var(--ck-ink);
}

.ck-footer-links {
  display: flex;

  gap: 24px;
}

.ck-footer-links a {
  font-size: 13px;
  font-weight: 600;

  color: var(--ck-muted);

  transition: color var(--ck-fast);
}

.ck-footer-links a:hover {
  color: var(--ck-ink);
}

.ck-footer-copy {
  font-size: 12px;

  color: var(--ck-muted);

  text-align: right;
}


/* ════════════════════════════════════
   PAGE INTRO / GREETING
════════════════════════════════════ */

.ck-page-intro {
  margin-bottom: 28px;
}

.ck-page-intro .ck-sticker {
  margin-bottom: 18px;
}

.ck-page-title {
  font-family: var(--ck-display);

  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 900;

  line-height: 1.05;
  letter-spacing: -0.025em;
}

.ck-page-title em,
.ck-page-title .accent {
  color: var(--ck-accent);

  font-style: normal;
}

.ck-page-subtitle {
  max-width: 620px;

  margin-top: 12px;

  font-size: 15px;

  color: var(--ck-muted);
}


/* ════════════════════════════════════
   ACTION / ADD CARD
════════════════════════════════════ */

.ck-add-card {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 160px;

  border: 2px dashed var(--ck-ink);
  border-radius: var(--ck-radius-lg);

  background: transparent;

  color: var(--ck-muted);

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background var(--ck-fast),
    color var(--ck-fast),
    transform var(--ck-fast);
}

.ck-add-card:hover {
  background: var(--ck-white);
  color: var(--ck-ink);

  transform: translate(-1px, -1px);
}


/* ════════════════════════════════════
   WISHLIST / MINI THUMBS
════════════════════════════════════ */

.ck-wishlist-image {
  width: 64px;
  height: 80px;

  flex-shrink: 0;

  overflow: hidden;

  border: 2px solid var(--ck-ink);
  border-radius: 14px;

  background: var(--ck-cream);
}

.ck-wishlist-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.ck-mini-thumbs {
  display: flex;

  gap: 5px;

  margin-top: 8px;
}

.ck-mini-thumb {
  width: 28px;
  height: 28px;

  overflow: hidden;

  border: 2px solid var(--ck-ink);
  border-radius: 7px;

  background: var(--ck-cream);
}

.ck-mini-thumb img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* ════════════════════════════════════
   STYLE DNA
════════════════════════════════════ */

.ck-dna-row {
  display: grid;

  grid-template-columns: 90px minmax(0, 1fr) 52px;

  align-items: center;

  gap: 12px;

  margin: 12px 0;

  font-size: 13px;
  font-weight: 600;
}

.ck-dna-track {
  height: 16px;

  overflow: hidden;

  border: 2px solid var(--ck-ink);
  border-radius: var(--ck-radius-pill);

  background: var(--ck-sand);
}

.ck-dna-fill {
  height: 100%;

  background: var(--ck-accent);
}

.ck-dna-value {
  text-align: right;

  font-weight: 700;
}


/* ════════════════════════════════════
   SUITABILITY STATES
════════════════════════════════════ */

.ck-suitable {
  position: relative;

  border-color: var(--ck-success);
}

.ck-unsuitable {
  opacity: 0.55;
}

.ck-suitability-badge {
  position: absolute;

  top: 10px;
  left: 10px;

  z-index: 10;

  display: inline-flex;
  align-items: center;

  gap: 5px;

  padding: 4px 9px;

  border: 2px solid var(--ck-ink);
  border-radius: var(--ck-radius-pill);

  background: var(--ck-success);
  color: var(--ck-white);

  font-size: 11px;
  font-weight: 700;
}


/* ════════════════════════════════════
   ANIMATIONS
════════════════════════════════════ */

@keyframes ck-fadeup {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ck-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes ck-pop {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.ck-anim {
  animation: ck-fadeup 0.5s ease both;
}

.ck-anim-fade {
  animation: ck-fade 0.4s ease both;
}

.ck-anim-pop {
  animation: ck-pop 0.35s ease both;
}

.ck-d1 {
  animation-delay: 0.05s;
}

.ck-d2 {
  animation-delay: 0.12s;
}

.ck-d3 {
  animation-delay: 0.20s;
}

.ck-d4 {
  animation-delay: 0.30s;
}

.ck-d5 {
  animation-delay: 0.40s;
}


/* ════════════════════════════════════
   UTILITIES
════════════════════════════════════ */

.ck-hidden {
  display: none !important;
}

.ck-flex {
  display: flex;
}

.ck-inline-flex {
  display: inline-flex;
}

.ck-block {
  display: block;
}

.ck-items-center {
  align-items: center;
}

.ck-items-start {
  align-items: flex-start;
}

.ck-justify-center {
  justify-content: center;
}

.ck-justify-between {
  justify-content: space-between;
}

.ck-flex-1 {
  flex: 1;
}

.ck-wrap {
  flex-wrap: wrap;
}

.ck-gap-1 {
  gap: 4px;
}

.ck-gap-2 {
  gap: 8px;
}

.ck-gap-3 {
  gap: 12px;
}

.ck-gap-4 {
  gap: 16px;
}

.ck-gap-5 {
  gap: 20px;
}

.ck-gap-6 {
  gap: 24px;
}

.ck-w-full {
  width: 100%;
}

.ck-relative {
  position: relative;
}

.ck-overflow-hidden {
  overflow: hidden;
}


/* ════════════════════════════════════
   FOCUS / ACCESSIBILITY
════════════════════════════════════ */

:focus-visible {
  outline: 3px solid var(--ck-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }
}


/* ════════════════════════════════════
   TABLET
════════════════════════════════════ */

@media (max-width: 1000px) {

  .ck-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


/* ════════════════════════════════════
   MOBILE
════════════════════════════════════ */

@media (max-width: 880px) {

  body.ck-has-rail {
    padding-left: 0;
    padding-bottom: 76px;
  }

  .ck-rail {
    top: auto;

    width: 100%;
    height: 68px;

    flex-direction: row;
    justify-content: center;

    padding: 7px 12px;

    border-right: 0;
    border-top: 2px solid var(--ck-ink);
  }

  .ck-rail-logo {
    display: none;
  }

  .ck-rail-nav {
    width: auto;

    flex: 1;
    flex-direction: row;
    justify-content: space-around;

    gap: 4px;
  }

  .ck-rail-item {
    width: 46px;
    height: 46px;

    border-radius: 14px;
  }

  .ck-rail-item svg {
    width: 20px;
    height: 20px;
  }

  .ck-rail-spacer {
    display: none;
  }

  .ck-rail > .ck-avatar {
    display: none;
  }

  .ck-tooltip {
    display: none;
  }

  .ck-page,
  .ck-page-wide {
    padding: 28px 20px 90px;
  }

  .ck-grid-2,
  .ck-grid-3 {
    grid-template-columns: 1fr;
  }

  .ck-nav {
    padding: 0 20px;
  }

  .ck-nav-links {
    display: none;
  }

  .ck-footer {
    grid-template-columns: 1fr;

    padding: 28px 20px;

    text-align: center;
  }

  .ck-footer-links {
    justify-content: center;
  }

  .ck-footer-copy {
    text-align: center;
  }

}


/* ════════════════════════════════════
   SMALL MOBILE
════════════════════════════════════ */

@media (max-width: 600px) {

  .ck-page,
  .ck-page-wide {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ck-grid-4 {
    grid-template-columns: 1fr;
  }

  .ck-card {
    padding: 18px;
    border-radius: 20px;
  }

  .ck-card-lg {
    padding: 20px;
  }

  .ck-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ck-btn-lg {
    padding: 13px 20px;
  }

  .ck-modal {
    padding: 20px;
    border-radius: 22px;
  }

  .ck-thumbs {
    overflow-x: auto;
  }

  .ck-thumb {
    min-width: 115px;
  }

  .ck-dna-row {
    grid-template-columns: 70px minmax(0, 1fr) 44px;
    gap: 8px;
  }

}


/* ════════════════════════════════════
   VERY SMALL SCREENS
════════════════════════════════════ */

@media (max-width: 380px) {

  .ck-page-title {
    font-size: 28px;
  }

  .ck-rail {
    padding-left: 5px;
    padding-right: 5px;
  }

  .ck-rail-item {
    width: 42px;
    height: 42px;
  }

  .ck-stats {
    grid-template-columns: 1fr;
  }

}