/**
 * Transport Type Category Template Styles
 *
 * @package Tegral
 * @version 1.0.0
 */

/* ==========================================================================
   Transport Type Archive - Main Layout
   ========================================================================== */

.transport-type-archive {
    background-color: #f9f9f9;
}

.transport-type-archive .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================================
   Transport Hero Section
   ========================================================================== */

.transport-hero {
    background-color: #212121;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 40px 0;
}

.transport-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(33, 33, 33, 0.95) 0%, rgba(33, 33, 33, 0.8) 100%);
}

.transport-hero .container {
    position: relative;
    z-index: 1;
}

.transport-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.transport-hero-image {
    flex-shrink: 0;
}

.transport-hero-image img {
    max-width: 200px;
    max-height: 150px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 15px;
}

.transport-hero-text {
    color: #fff;
}

.transport-hero-title {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 15px;
    color: #fff;
}

.transport-hero-subtitle {
    font-size: 18px;
    color: #fc5c04;
    margin: 0 0 15px;
    font-weight: 500;
}

.transport-hero-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
}

.transport-hero-description p {
    margin: 0 0 10px;
}

.transport-hero-description p:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .transport-hero {
        padding: 60px 0;
    }

    .transport-hero-content {
        flex-direction: row;
        text-align: left;
        gap: 40px;
    }

    .transport-hero-title {
        font-size: 36px;
    }

    .transport-hero-image img {
        max-width: 250px;
        max-height: 180px;
    }
}

@media (min-width: 1200px) {
    .transport-hero {
        padding: 80px 0;
    }

    .transport-hero-title {
        font-size: 42px;
    }

    .transport-hero-description {
        font-size: 18px;
    }
}

/* ==========================================================================
   Featured Content Section
   ========================================================================== */

.transport-featured-content {
    background-color: #fff;
    padding: 40px 0;
    border-bottom: 1px solid #e5e5e5;
}

.transport-featured-content h2 {
    font-size: 24px;
    color: #212121;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.transport-featured-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #4C4C4C;
}

/* ==========================================================================
   Subcategories Grid
   ========================================================================== */

.transport-subcategories {
    background-color: #fff;
    padding: 40px 0;
}

.transport-section-title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    color: #212121;
    text-align: center;
    margin: 0 0 30px;
    position: relative;
}

.transport-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #fc5c04;
    margin: 15px auto 0;
}

.transport-subcategories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.transport-subcategory-card {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.transport-subcategory-card:hover {
    border-color: #fc5c04;
    box-shadow: 0 4px 15px rgba(252, 92, 4, 0.15);
    transform: translateY(-2px);
}

.transport-subcategory-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transport-subcategory-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.transport-subcategory-info {
    flex: 1;
    min-width: 0;
}

.transport-subcategory-name {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
    margin: 0 0 5px;
    text-transform: uppercase;
}

.transport-subcategory-count {
    font-size: 12px;
    color: #9E9E9E;
}

@media (min-width: 576px) {
    .transport-subcategories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .transport-subcategories {
        padding: 60px 0;
    }

    .transport-subcategories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .transport-subcategory-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
    }

    .transport-subcategory-image {
        width: 100px;
        height: 80px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .transport-subcategory-name {
        font-size: 15px;
    }

    .transport-subcategory-count {
        font-size: 13px;
    }
}

@media (min-width: 1200px) {
    .transport-subcategories-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .transport-subcategory-image {
        width: 120px;
        height: 90px;
    }
}

/* ==========================================================================
   Products Section
   ========================================================================== */

.transport-products {
    padding: 40px 0;
}

.transport-filter-bar {
    margin-bottom: 30px;
}

.transport-filter-bar .woocommerce-filter-count {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.transport-filter-bar .woocommerce-filter-count p {
    margin: 0;
    font-size: 13px;
    color: #9E9E9E;
}

.transport-filter-toggle {
    text-decoration: none;
    font-weight: 700;
    margin-left: 10px;
    color: #000;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.transport-filter-toggle:hover {
    color: #fc5c04;
}

.transport-filter-toggle i {
    font-size: 13px;
}

.transport-filter-bar .woocommerce-filter {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    display: none;
}

.transport-filter-bar .woocommerce-filter.active {
    display: block;
}

@media (min-width: 768px) {
    .transport-products {
        padding: 60px 0;
    }

    .transport-filter-bar .woocommerce-filter.active {
        display: flex;
    }
}

/* ==========================================================================
   Related Transport Types Section
   ========================================================================== */

.transport-related {
    background-color: #212121;
    padding: 40px 0;
}

.transport-related .transport-section-title {
    color: #fff;
}

.transport-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.transport-related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.transport-related-card:hover {
    background-color: rgba(252, 92, 4, 0.1);
    border-color: #fc5c04;
    transform: translateY(-3px);
}

.transport-related-image {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 6px;
    padding: 10px;
}

.transport-related-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.transport-related-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
}

.transport-related-card:hover .transport-related-name {
    color: #fc5c04;
}

@media (min-width: 768px) {
    .transport-related {
        padding: 60px 0;
    }

    .transport-related-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .transport-related-card {
        padding: 30px 20px;
    }

    .transport-related-image {
        width: 100px;
        height: 80px;
    }

    .transport-related-name {
        font-size: 16px;
    }
}

/* ==========================================================================
   Product Grid Override for Transport Type
   ========================================================================== */

.transport-type-archive .product-list {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.transport-type-archive .product-list:hover {
    border-color: #fc5c04;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.transport-type-archive .product-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

@media (min-width: 1200px) {
    .transport-type-archive .product-list {
        width: 18.3%;
    }
}

/* ==========================================================================
   WooCommerce Override for Transport Type
   ========================================================================== */

.transport-type-archive .woocommerce-pagination {
    margin: 40px 0;
    text-align: center;
}

.transport-type-archive .woocommerce nav.woocommerce-pagination ul li a:hover,
.transport-type-archive .woocommerce nav.woocommerce-pagination ul li span.current {
    background: #fc5c04;
    border-color: #fc5c04;
}

/* ==========================================================================
   Australian Made Logo Badge
   ========================================================================== */

.transport-type-archive .product-list.australian-logo::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    background-image: url('../images/australian-made.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 575.98px) {
    .transport-hero-title {
        font-size: 24px;
    }

    .transport-section-title {
        font-size: 20px;
    }

    .transport-subcategories-grid {
        grid-template-columns: 1fr;
    }

    .transport-related-grid {
        grid-template-columns: 1fr;
    }
}
