/* SE WooCommerce Extension - Product Line Navigation */

.se-product-line-nav {
    position: relative;
    z-index: 1000;
    background-color: transparent;
}

/* Main Navigation Layout */
.se-nav-main-layout {
    display: flex;
    min-height: 400px;
    /* background: #fff; */
    /* border: 1px solid #ddd; */
    border-radius: 4px;
    overflow: hidden;
}

.se-nav-sidebar {
    width: 16.666667%; /* 1/6 */
    /* background: #f8f9fa; */
    border-right: 1px solid #ddd;
}

.se-nav-products-area {
    width: 83.333333%; /* 5/6 */
    display: block; /* Always visible for click-based navigation */
    /* background: #fff; */
    overflow: hidden;
}

/* Product Lines List */
.se-nav-product-lines {
    list-style: none;
    margin: 0;
    padding: 0;
}

.se-nav-line-item {
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
}

.se-nav-line-item:active {
    transform: scale(0.98);
}

.se-nav-line-item svg line,
.se-nav-line-item svg polyline,
.se-nav-product-link svg line,
.se-nav-product-link svg polyline {
    stroke: #5cb039;
}

.se-nav-line-item:hover .se-nav-line-name, .se-nav-line-item.active .se-nav-line-name {
    color: #5fe61e;
}

.se-nav-line-name {
    display: block;
    padding: 12px 16px;
    /* font-size: 14px; */
    font-weight: 700;
    color: #5cb039;
    text-decoration: none;
}

/* Products Grid */
.se-nav-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    height: fit-content;
    overflow-y: auto;
    overflow-x: hidden;
    
    /* Hide scrollbars */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    background-color: transparent !important;
}

.se-nav-product-item > * {
    flex-basis: 50%;
}

.se-nav-product-line {
    font-size: .8rem;
}

.se-nav-product-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.se-nav-product-info > * {
    flex-basis: 100%;
    flex-basis: auto;
}

.se-nav-products-grid::-webkit-scrollbar {
    display: none; /* WebKit */
}

/* Product Item */
.se-nav-product-item {
    /* background: #fff; */
    /* border: 1px solid #e9ecef; */
    /* border-radius: 4px; */
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    height: fit-content;
    display: flex;
    gap: 1rem;
}

.se-nav-product-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.se-nav-product-link {
    display: block;
    text-decoration: none;
    font-weight: 700;
    color: #55b228;
}

.se-nav-product-image, .se-nav-product-image-placeholder {
    /* width: 100%; */
    height: 100px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 5px;
}

.se-nav-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* border-radius: 2rem; */
}

.se-nav-product-title {
    /* padding: 12px; */
    font-size: 1.45rem;
    font-weight: 700;
    color: white;
    /* text-align: center; */
    line-height: 1.3;
}

/* Loading State */
.se-nav-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #666;
    font-size: 14px;
}

/* No Products State */
.se-nav-no-products {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #999;
    font-size: 14px;
}

/* Footer Navigation Layout */
.se-nav-footer-layout {
    /* background: #f8f9fa; */
    padding: 20px 0;
    border-radius: 4px;
}

.se-nav-footer-lines {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    flex-direction: column;
}

.se-nav-footer-line {
    /* No specific styling needed, just a container */
}

.se-nav-footer-line a {
    display: inline-block;
    color: #5cb039;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.se-nav-footer-line a:hover {
    color: #ffffff;
    background-color: #5cb039;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .se-nav-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .se-nav-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .se-nav-main-layout {
        flex-direction: column;
        min-height: auto;
    }
    
    .se-nav-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    
    .se-nav-products-area {
        width: 100%;
        display: block; /* Always visible for click-based navigation */
    }
    
    .se-nav-product-lines {
        display: flex;
        flex-wrap: wrap;
        gap: 1px;
    }
    
    .se-nav-line-item {
        flex: 1;
        min-width: 120px;
        border-bottom: none;
        border-right: 1px solid #ddd;
    }
    
    .se-nav-line-name {
        padding: 8px 12px;
        font-size: 12px;
        text-align: center;
    }
    
    .se-nav-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }
    
    .se-nav-footer-lines {
        flex-direction: column;
        gap: 10px;
    }
    
    .se-nav-footer-line a {
        padding: 6px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .se-nav-products-grid {
        grid-template-columns: 1fr;
    }
    
    .se-nav-footer-lines {
        gap: 8px;
    }
    
    .se-nav-footer-line a {
        padding: 5px 8px;
        font-size: 12px;
    }
}

/* Animation */
.se-nav-products-area {
    transition: opacity 0.3s ease;
}

.se-nav-products-grid {
    transition: opacity 0.2s ease;
} 