/* WPCode 71336 — shop-hero-links */
@media (max-width: 600px) {

    /* Hero heading */
    .shop-hero-title h1 {
        font-size: 27px !important;
        line-height: 1.05 !important;
        white-space: nowrap;
    }

    /* Restore original mobile layout */
    .shop-hero-links {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 14px 8px !important;
        width: 100% !important;
    }

    .shop-hero-links > * {
        flex: 0 0 auto !important;
        margin: 0 !important;
    }

    .shop-hero-links h5 {
        font-size: 11px !important;
        line-height: 1.1 !important;
        white-space: nowrap;
    }

    .shop-hero-links .motorcycle-icon {
        width: 25px !important;
    }

    .shop-hero-links .spanner-icon,
    .shop-hero-links .custom-icon {
        width: 23px !important;
        height: 23px !important;
    }
}
/* Category cards */
.category-button {
    position: relative;
    cursor: pointer;
    transition: transform .2s ease, 
                box-shadow .2s ease,
                border-color .2s ease;
}

/* Make heading link cover entire card */
.category-button h3 a::after,
.category-button h4 a::after,
.category-button h5 a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* Keep text looking normal */
.category-button h3 a,
.category-button h4 a,
.category-button h5 a {
    color: inherit;
    text-decoration: none;
}

/* Hover */
.category-button:hover {
    transform: translateY(-3px);
    border-color: #00875a !important;
    box-shadow: 0 0px 0px rgba(0,0,0,0);
}

/* Heading turns Classic Transfers green */
.category-button:hover h3,
.category-button:hover h4,
.category-button:hover h5 {
    color: #00875a;
}
.category-button::before {
    content: "›";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    line-height: 1;
    color: #00875a;
    transition: transform .2s ease;
}

.category-button:hover::before {
    transform: translate(4px, -50%);
}
/* Main shop dynamic category grid */
.ct-main-shop-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ct-main-category-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 105px;
    padding: 20px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 14px;
    color: #111;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease;
}

.ct-main-category-card:hover {
    transform: translateY(-3px);
    border-color: #00875a;
}

.ct-category-name {
    font-weight: 500;
}

.ct-category-arrow {
    color: #00875a;
    font-size: 22px;
}

@media (max-width: 900px) {
    .ct-main-shop-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ct-main-shop-categories {
        grid-template-columns: 1fr;
    }
}
/* Shop category section spacing */
.ct-main-shop-categories {
    margin-top: 30px !important;
    margin-bottom: 70px !important;
}
/* Fix Browse All Categories heading on mobile */
@media (max-width: 600px) {
    .ct-shop-category-heading {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}
/* Keep Custom Projects icon and text together on mobile */
@media (max-width: 600px) {

    .shop-hero-links > :nth-child(5) {
        flex-basis: 100% !important;
        height: 0 !important;
        margin: 0 !important;
        visibility: hidden !important;
    }

    .shop-hero-links > :nth-child(6) {
        margin-top: 0 !important;
    }
}
/* Shop category section - consistent grey background */
.ct-shop-category-heading {
    background-color: #f4f4f4 !important;
}

/* Give the cards spacing without white margin strips */
.ct-main-shop-categories {
    background-color: #f4f4f4 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Grey spacing around the shortcode */
.ct-shop-category-heading:has(.ct-main-shop-categories) {
    padding-top: 30px !important;
    padding-bottom: 70px !important;
}
/* Remove automatic gap between shop category sections */
.wp-site-blocks > .ct-shop-category-heading + .ct-shop-category-heading {
    margin-block-start: 0 !important;
}

/* Remove gap before category shortcode */
.ct-shop-category-heading + .wp-block-shortcode,
.ct-shop-category-heading + .wp-block-group {
    margin-block-start: 0 !important;
}
