/**
 * aks-style-colours.css v1.5.1
 */

/* ── Swatch panel wrapper ────────────────────────────────────────────────── */

.aks-style-colours {
    margin: 16px 0 20px;
    padding: 14px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.aks-style-colours__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.aks-style-colours__title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #222;
}

.aks-style-colours__view-all {
    font-size: 11px;
    color: #bd5b40;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    white-space: nowrap;
}

/* ── Slider wrap: arrows + scrollable track ─────────────────────────────── */

.aks-style-colours__slider-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

/* Arrow buttons */
.aks-sc-btn {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 1px solid #d8d8d8;
    border-radius: 50%;
    background: #fff;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.15s, border-color 0.15s, opacity 0.15s;
}

.aks-sc-btn:hover { border-color: #bd5b40; color: #bd5b40; }
.aks-sc-btn.is-disabled { opacity: 0.25; pointer-events: none; }

/* Hide arrows on mobile and tablet */
@media (max-width: 1024px) {
    .aks-sc-btn { display: none !important; }
}

/* Scrollable track */
.aks-style-colours__track {
    align-items: flex-start;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    flex: 1;
    min-width: 0;
}

.aks-style-colours__track::-webkit-scrollbar { display: none; }

/* ── Individual swatch ───────────────────────────────────────────────────── */

.aks-sc-swatch {
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 120px;
}

/* Image container — forced 2:3 portrait, equal height across all swatches */
.aks-sc-img {
    width: 120px !important;
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
    overflow: hidden !important;
    border-radius: 3px;
    border: 2px solid transparent;
    transition: border-color 0.15s;
    background: #f5f5f5;
    flex-shrink: 0 !important;
    display: block !important;
    position: relative;
}

.aks-sc-img img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
}

.aks-sc-swatch.is-current .aks-sc-img { border-color: #bd5b40; }
.aks-sc-swatch.is-oos .aks-sc-img { opacity: 0.4; }
.aks-sc-swatch:hover .aks-sc-img { border-color: #bd5b40; }

/* Color label */
.aks-sc-label {
    font-size: 13px !important;
    color: #666 !important;
    text-align: center !important;
    margin-top: 4px !important;
    line-height: 1.2 !important;
    width: 120px;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: inherit !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.aks-sc-swatch.is-current .aks-sc-label { color: #bd5b40; font-weight: 700; }

/* ── Hub color grid ──────────────────────────────────────────────────────── */

.aks-hub-colours { margin: 20px 0; }

.aks-hub-colours__heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    color: #222;
}

.aks-hub-colours__family { margin-bottom: 24px; }

.aks-hub-colours__family-name {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.aks-hub-colours__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .aks-hub-colours__grid { grid-template-columns: repeat(2, 1fr); }
}

.aks-hub-tile {
    text-decoration: none;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.15s;
    display: block;
}

.aks-hub-tile:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.aks-hub-tile.is-oos { opacity: 0.5; }

.aks-hub-tile__img {
    width: 100%;
    padding-top: 150%;
    position: relative;
    background: #f5f5f5;
    overflow: hidden;
}

.aks-hub-tile__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.aks-hub-tile__info {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aks-hub-tile__name { font-size: 12px; font-weight: 600; color: #222; }
.aks-hub-tile__price { font-size: 11px; color: #666; }
.aks-hub-tile__cta {
    font-size: 10px;
    font-weight: 700;
    color: #bd5b40;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 3px;
}

.aks-style-colours__view-all { display: none !important; }

.aks-style-colours__view-all { display: none !important; }
