/* assets/style.css */

/* Base wrapper */
.woo-subcategories-wrapper {
    margin: 20px 0;
}

/* Title Styles */
.woo-subcategories-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* List layout */
.woo-subcategories-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Grid layout */
.woo-subcategories-grid {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Category items */
.woo-subcategory-item {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.woo-subcategory-item:hover {
    border-color: #ddd;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.woo-subcategory-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    height: 100%;
    transition: all 0.3s ease;
}

.woo-subcategory-item a:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* Category image */
.category-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Category info */
.category-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Grid layout specific */
.woo-subcategories-grid .category-info {
    text-align: center;
}

.woo-subcategories-grid .woo-subcategory-item a {
    flex-direction: column;
    padding: 20px;
}

.woo-subcategories-grid .category-image {
    margin: 0 0 15px 0;
    width: 80px;
    height: 80px;
}

/* Category name */
.category-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* Category description */
.category-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-top: 5px;
}

/* Product count */
.product-count {
    font-size: 13px;
    color: #999;
    background: #f7f7f7;
    padding: 4px 10px;
    border-radius: 15px;
    display: inline-block;
    margin-top: 5px;
    width: fit-content;
}

/* Hidden items */
.woo-subcategory-item.hidden-item {
    display: none !important;
}

.woo-subcategory-item.show-item {
    display: block;
    animation: fadeInSlide 0.4s ease forwards;
}

/* Button wrapper */
.button-wrapper {
    margin-top: 20px;
}

/* See more button */
.woo-see-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

/* Link style button */
.woo-see-more-btn.woo-see-more-link {
    display: inline-flex;
}

.woo-see-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.woo-see-more-btn:active {
    transform: translateY(0);
}

.woo-see-more-btn .btn-icon {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.woo-see-more-btn.see-less .btn-icon {
    transform: rotate(180deg);
}

/* Button ripple effect */
.woo-see-more-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.woo-see-more-btn:active::before {
    width: 300px;
    height: 300px;
}

/* Animations */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .woo-subcategories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .woo-subcategories-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .woo-subcategories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .woo-subcategory-item a {
        padding: 12px 15px;
    }

    .category-image {
        width: 50px;
        height: 50px;
    }

    .category-name {
        font-size: 15px;
    }

    .category-description {
        font-size: 13px;
    }

    .product-count {
        font-size: 12px;
        padding: 3px 8px;
    }

    .woo-see-more-btn {
        font-size: 14px;
        padding: 10px 24px;
    }

    .woo-subcategories-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .woo-subcategories-wrapper {
        margin: 15px 0;
    }

    .woo-subcategory-item a {
        padding: 10px 12px;
    }

    .woo-subcategories-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
}

/* List layout */
.woo-subcategories-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Grid layout */
.woo-subcategories-grid {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Category items */
.woo-subcategory-item {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.woo-subcategory-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #ddd;
}

.woo-subcategory-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    height: 100%;
    transition: all 0.3s ease;
}

.woo-subcategory-item a:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* Category image */
.category-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Category info */
.category-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Grid layout specific */
.woo-subcategories-grid .category-info {
    text-align: center;
}

.woo-subcategories-grid .woo-subcategory-item a {
    flex-direction: column;
    padding: 20px;
}

.woo-subcategories-grid .category-image {
    margin: 0 0 15px 0;
    width: 80px;
    height: 80px;
}

/* Category name */
.category-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* Category description */
.category-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-top: 5px;
}

/* Product count */
.product-count {
    font-size: 13px;
    color: #999;
    background: #f7f7f7;
    padding: 4px 10px;
    border-radius: 15px;
    display: inline-block;
    margin-top: 5px;
}

/* Hidden items */
.woo-subcategory-item.hidden-item {
    display: none !important;
}

.woo-subcategory-item.show-item {
    display: block;
    animation: fadeInSlide 0.4s ease forwards;
}

/* See more button */
.woo-see-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.woo-see-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.woo-see-more-btn:active {
    transform: translateY(0);
}

.woo-see-more-btn .btn-icon {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.woo-see-more-btn.see-less .btn-icon {
    transform: rotate(180deg);
}

/* Button ripple effect */
.woo-see-more-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.woo-see-more-btn:active::before {
    width: 300px;
    height: 300px;
}

/* Animations */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .woo-subcategories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .woo-subcategories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .woo-subcategory-item a {
        padding: 12px 15px;
    }

    .category-image {
        width: 50px;
        height: 50px;
    }

    .category-name {
        font-size: 15px;
    }

    .category-description {
        font-size: 13px;
    }

    .product-count {
        font-size: 12px;
        padding: 3px 8px;
    }

    .woo-see-more-btn {
        font-size: 14px;
        padding: 10px 24px;
    }
}

@media (max-width: 480px) {
    .woo-subcategories-wrapper {
        margin: 15px 0;
    }

    .woo-subcategory-item a {
        padding: 10px 12px;
    }
}