/* ============================================
   SPRAYTECH - VEHICLE COLOUR PICKER PAGE
   ============================================ */

.colour-hero {
    position: relative;
    padding: 7rem 1.5rem 3rem;
    text-align: center;
    background: var(--black-mid);
    overflow: hidden;
}

.colour-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--yellow-glow-soft), transparent 60%);
    pointer-events: none;
}

.colour-hero-content { position: relative; max-width: 700px; margin: 0 auto; }

.colour-hero-content p {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 1.05rem;
    margin-top: 0.8rem;
}

.colour-picker-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.colour-filter-bar {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.colour-filter-btn {
    padding: 0.55rem 1.3rem;
    background: var(--black-soft);
    border: 1px solid var(--black-border);
    border-radius: 999px;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.colour-filter-btn:hover { border-color: var(--yellow-dim); color: var(--text); }

.colour-filter-btn.active {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--black);
}

.colour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.1rem;
    margin-bottom: 2rem;
}

.colour-tile {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
    text-align: center;
}

.colour-tile:hover {
    border-color: var(--yellow-dim);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.colour-tile.selected {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px var(--yellow-glow-soft), var(--shadow-yellow);
}

.colour-tile.hidden { display: none; }

.tile-face {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.4);
    position: relative;
}

.colour-tile.selected .tile-face::after {
    content: '\2713';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow);
    font-size: 1.4rem;
    text-shadow: 0 0 6px rgba(0,0,0,0.9);
}

.tile-face.metallic { box-shadow: inset 0 0 10px rgba(0,0,0,0.4), inset -5px -5px 12px rgba(255,255,255,0.15); }
.tile-face.pearl { box-shadow: inset 0 0 10px rgba(0,0,0,0.15), 0 0 14px rgba(255,255,255,0.15); }

.tile-face.custom-face {
    background: conic-gradient(from 180deg, #f5d000, #c1121c, #1a2f57, #17301f, #f5d000);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-size: 1.3rem;
}

.tile-info { line-height: 1.3; }

.tile-info strong {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--text);
}

.tile-info em {
    font-style: normal;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.colour-custom-panel {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin: 0 auto 2rem;
    max-width: 500px;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
}

.colour-custom-panel input[type="color"] {
    width: 52px;
    height: 44px;
    padding: 2px;
    background: var(--black-soft);
    border: 1px solid var(--black-border);
    border-radius: var(--radius);
    cursor: pointer;
}

.colour-custom-panel input[type="text"] {
    flex: 1;
    min-width: 180px;
    background: var(--black-soft);
    border: 1px solid var(--black-border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
}

.colour-sticky-bar {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: var(--black-soft);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.5rem;
    box-shadow: var(--shadow-card);
}

.sticky-preview {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.sticky-swatch {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    flex: 0 0 auto;
}

.sticky-text { display: flex; flex-direction: column; line-height: 1.3; }

.sticky-text strong {
    font-family: var(--font-ui);
    font-size: 1rem;
    color: var(--text);
}

.sticky-text em {
    font-style: normal;
    font-size: 0.75rem;
    color: var(--yellow);
    letter-spacing: 0.05em;
}

@media (max-width: 600px) {
    .colour-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .tile-face { width: 52px; height: 52px; }
    .colour-sticky-bar { justify-content: center; text-align: center; }
}
