
/* =====================================================
   GEARTECH SPARE PARTS CAROUSEL
   Brand colours: Navy #0d1328 | Orange #ff5601
   ===================================================== */

.gt-spares-section {
    --gt-spares-navy: #0d1328;
    --gt-spares-orange: #ff5601;
    --gt-spares-text: #242a35;
    --gt-spares-muted: #727986;
    --gt-spares-border: #e8eaf0;
    --gt-spares-surface: #ffffff;

    width: 100%;
    padding: 55px 0;
    overflow: hidden;
    background: #ffffff;
}

.gt-spares-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Heading */

.gt-spares-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.gt-spares-heading-copy {
    min-width: 0;
}

.gt-spares-eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--gt-spares-orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.5;
}

.gt-spares-heading h2 {
    margin: 0 0 9px;
    color: var(--gt-spares-navy);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 750;
    line-height: 1.2;
}

.gt-spares-heading-copy p {
    margin: 0;
    color: var(--gt-spares-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* Navigation */

.gt-spares-controls {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
}

.gt-spares-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--gt-spares-border);
    border-radius: 50%;
    background: #ffffff;
    color: var(--gt-spares-navy);
    font-family: inherit;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.gt-spares-arrow:hover {
    border-color: var(--gt-spares-orange);
    background: var(--gt-spares-orange);
    color: #ffffff;
}

.gt-spares-arrow:active {
    transform: scale(0.96);
}

.gt-spares-arrow:focus-visible {
    outline: 2px solid var(--gt-spares-orange);
    outline-offset: 3px;
}

/* Carousel viewport */

.gt-spares-carousel {
    position: relative;
    width: 100%;
    min-width: 0;
}

.gt-spares-track {
    width: 100%;
    margin: 0;
}

/* Slick slide spacing */

.gt-spares-carousel .slick-list {
    margin: 0 -8px;
    overflow: hidden;
}

.gt-spares-carousel .slick-track {
    display: flex;
    align-items: stretch;
}

.gt-spares-carousel .slick-slide {
    float: none;
    height: auto;
    padding: 8px;
    box-sizing: border-box;
    outline: none;
}

.gt-spares-carousel .slick-slide > div {
    display: flex;
    height: 100%;
}

.gt-spares-slide {
    display: flex !important;
    width: 100%;
    min-width: 0;
    height: auto;
}

/* Product card */

.gt-spares-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--gt-spares-border);
    border-radius: 10px;
    background: var(--gt-spares-surface);
    box-shadow: 0 3px 14px rgba(13, 19, 40, 0.045);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.gt-spares-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 86, 1, 0.45);
    box-shadow: 0 12px 28px rgba(13, 19, 40, 0.10);
}

/* Product image */

.gt-spares-image-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.gt-spares-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 215px;
    padding: 18px;
    overflow: hidden;
    background: #f7f8fa;
}

.gt-spares-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.35s ease;
    -webkit-user-drag: none;
    user-select: none;
}

.gt-spares-card:hover .gt-spares-image img {
    transform: scale(1.045);
}

.gt-spares-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--gt-spares-muted);
    font-size: 13px;
    text-align: center;
}

.gt-spares-category {
    position: absolute;
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 5px 9px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--gt-spares-navy);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Card content */

.gt-spares-card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 17px;
}

.gt-spares-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 25px;
    margin-bottom: 11px;
}

.gt-spares-brand img {
    display: block;
    width: auto;
    max-width: 65px;
    height: 25px;
    object-fit: contain;
}

.gt-spares-brand-name {
    color: var(--gt-spares-orange);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-decoration: none;
    text-transform: uppercase;
}

.gt-spares-brand-name:hover {
    color: var(--gt-spares-navy);
}

.gt-spares-title {
    width: 100%;
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.gt-spares-title a {
    color: var(--gt-spares-navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

.gt-spares-title a:hover {
    color: var(--gt-spares-orange);
}

.gt-spares-part-number {
    margin: 0 0 16px;
    color: var(--gt-spares-muted);
    font-size: 12px;
    line-height: 1.5;
}

.gt-spares-part-number span {
    color: var(--gt-spares-text);
    font-weight: 700;
}

/* Product link */

.gt-spares-view-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid var(--gt-spares-border);
    color: var(--gt-spares-navy);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gt-spares-view-link span {
    color: var(--gt-spares-orange);
    font-size: 18px;
    transition: transform 0.2s ease;
}

.gt-spares-view-link:hover {
    color: var(--gt-spares-orange);
}

.gt-spares-view-link:hover span {
    transform: translateX(4px);
}

/* Dragging and focus */

.gt-spares-carousel .slick-list.draggable {
    cursor: grab;
}

.gt-spares-carousel .slick-list.dragging {
    cursor: grabbing;
}

.gt-spares-carousel .slick-slide a:focus-visible {
    outline: 2px solid var(--gt-spares-orange);
    outline-offset: 3px;
}

/* Tablet */

@media (max-width: 991.98px) {
    .gt-spares-section {
        padding: 45px 0;
    }

    .gt-spares-image {
        height: 200px;
    }

    .gt-spares-card-content {
        padding: 15px;
    }
}

/* Mobile */

@media (max-width: 575.98px) {
    .gt-spares-section {
        padding: 35px 0;
    }

    .gt-spares-container {
        padding: 0 16px;
    }

    .gt-spares-heading {
        align-items: center;
        gap: 12px;
        margin-bottom: 18px;
    }

    .gt-spares-heading h2 {
        font-size: 25px;
    }

    .gt-spares-heading-copy p {
        max-width: 260px;
        font-size: 13px;
    }

    .gt-spares-eyebrow {
        font-size: 9px;
        letter-spacing: 1.4px;
    }

    .gt-spares-controls {
        gap: 6px;
    }

    .gt-spares-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .gt-spares-carousel .slick-list {
        margin: 0 -5px;
    }

    .gt-spares-carousel .slick-slide {
        padding: 5px;
    }

    .gt-spares-image {
        height: 225px;
    }

    .gt-spares-card-content {
        padding: 16px;
    }

    .gt-spares-title {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gt-spares-card,
    .gt-spares-image img,
    .gt-spares-arrow,
    .gt-spares-title a,
    .gt-spares-view-link,
    .gt-spares-view-link span {
        transition: none;
    }
}
