/* Advanced Woo Category Layout Styles */

.awcl-category-header-wrapper {
    margin-bottom: 30px;
    font-family: inherit;
}

/* 1. Featured Subcategories Grid */
.awcl-featured-subcategories {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 20px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.awcl-featured-subcategories::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.awcl-subcategory-card {
    min-width: 160px;
    flex: 0 0 auto;
    text-align: left;
}

.awcl-subcategory-card a {
    text-decoration: none;
    color: #333;
    display: block;
    transition: transform 0.2s ease-in-out;
}

.awcl-subcategory-card a:hover {
    transform: translateY(-3px);
}

.awcl-subcategory-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4; /* Portrait ratio like in screenshot */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background-color: #f5f5f5;
}

.awcl-subcategory-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.awcl-subcategory-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: #ddd;
    text-underline-offset: 4px;
}

.awcl-subcategory-card a:hover .awcl-subcategory-title {
    text-decoration-color: #333;
}

/* 2. Subcategory Text Links */
.awcl-subcategory-text-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.awcl-subcategory-text-links a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.awcl-subcategory-text-links a:hover {
    color: #000;
}

.awcl-subcategory-text-links a.awcl-active-link {
    color: #000;
    font-weight: 700;
    position: relative;
}

.awcl-subcategory-text-links a.awcl-active-link::after {
    content: '';
    position: absolute;
    bottom: -16px; /* Aligns with the border-bottom of parent */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}

/* Product Filters basic alignment - prepares space for the filter plugin */
.awcl-filters-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}
