/* ==================================================
   Split from home-sections.css
   File generated for Blocksy child theme modular CSS.
================================================== */

/* ==================================================
   15. HOMEPAGE PRODUCT BRANDS GRID – SHORTCODE STYLES
   Equal small dark tiles with red side edges
================================================== */

.home .akj-homepage-brands-section,
.home .akj-home-brands-section {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 1760px;
    margin: 42px auto 58px;
    padding: 0 12px;
}

.home .akj-homepage-brands-header {
    margin-bottom: 18px;
}

.home .akj-homepage-brands-title {
    margin: 0 0 8px;
    color: #ffffff !important;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.home .akj-homepage-brands-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 16px;
    line-height: 1.6;
}

/* Hide old title/subtitle if old shortcode markup is still used */
.home .akj-home-brands-title,
.home .akj-home-brands-subtitle {
    display: none;
}

/* Grid: 6 equal tiles per row on desktop */
.home .akj-homepage-brands-grid,
.home .akj-home-brands-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    position: relative;
    z-index: 20;
}

/* Single brand tile - supports new and old shortcode class names */
.home .akj-homepage-brand-item,
.home .akj-home-brand-card {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    text-decoration: none !important;
    background: linear-gradient(90deg, #05070d 0%, #0a101e 50%, #05070d 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

/* Left red edge */
.home .akj-homepage-brand-item::before,
.home .akj-home-brand-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 100%;
    background: #d60014;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

/* Right red edge */
.home .akj-homepage-brand-item::after,
.home .akj-home-brand-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 7px;
    height: 100%;
    background: #d60014;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.home .akj-homepage-brand-item:hover,
.home .akj-homepage-brand-item:focus,
.home .akj-home-brand-card:hover,
.home .akj-home-brand-card:focus {
    transform: translateY(-2px);
    border-color: rgba(214, 0, 20, 0.45);
    box-shadow: 0 12px 28px rgba(214, 0, 20, 0.18);
    outline: none;
}

/* Brand name */
.home .akj-homepage-brand-name,
.home .akj-home-brand-name {
    position: relative;
    z-index: 2;
    display: block;
    max-width: 100%;
    color: #ffffff !important;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    transition: color 0.18s ease;
}

.home .akj-homepage-brand-item:hover .akj-homepage-brand-name,
.home .akj-homepage-brand-item:focus .akj-homepage-brand-name,
.home .akj-home-brand-card:hover .akj-home-brand-name,
.home .akj-home-brand-card:focus .akj-home-brand-name {
    color: #d60014 !important;
}

/* Hide taxonomy product counts if output exists */
.home .akj-homepage-brands-grid .count,
.home .akj-home-brands-grid .count {
    display: none !important;
}

/* Prevent pseudo elements from blocking links */
.home .akj-home-section::before,
.home .hero-section::before,
.home .hero-section::after,
.home .akj-hero-banner::before,
.home .akj-hero-banner::after {
    pointer-events: none;
}

/* ==================================================
   RESPONSIVE - HOMEPAGE PRODUCT BRANDS
================================================== */

@media (max-width: 1400px) {
    .home .akj-homepage-brands-grid,
    .home .akj-home-brands-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .home .akj-homepage-brands-grid,
    .home .akj-home-brands-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .home .akj-homepage-brands-grid,
    .home .akj-home-brands-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .home .akj-homepage-brands-section,
    .home .akj-home-brands-section {
        margin: 36px auto 48px;
        padding: 0 16px;
    }

    .home .akj-homepage-brands-grid,
    .home .akj-home-brands-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .home .akj-homepage-brand-item,
    .home .akj-home-brand-card {
        min-height: 54px;
        padding: 0 16px;
    }

    .home .akj-homepage-brand-name,
    .home .akj-home-brand-name {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .home .akj-homepage-brands-grid,
    .home .akj-home-brands-grid {
        grid-template-columns: 1fr;
    }
}
