


.directory-page .header {
    position: absolute;
    background-color: transparent;
}

.directory-page .header .btn-quote {
    background-color: var(--primary-blue);
    color: white !important;
}


.directory-hero {
    position: relative;
    width: 100%;
    padding: 0;
    overflow: hidden;
    height: 600px;
}

.directory-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.directory-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.directory-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
    padding-top: 80px;
}

.directory-hero .container {
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
    margin: 0 auto;
}

.directory-hero-content {
    max-width: 800px;
    color: white;
}

.directory-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.directory-hero-content ul {
    margin-bottom: 30px;
    list-style: none;
}

.directory-hero-content ul li {
    margin-bottom: 15px;
    color: #f0f0f0;
    font-size: 1.2rem;
    position: relative;
    padding-left: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.directory-hero-content ul li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: white;
}

.directory-hero .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}


.directory-content-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.directory-content-section .container {
    max-width: 98%;
    padding: 0 40px;
}


.search-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 0 auto 40px;
    max-width: 800px;
}

.search-box-wrapper {
    display: flex;
    border: 2px solid var(--primary-blue);
    border-radius: 4px;
    overflow: hidden;
    height: 50px;
}

.search-select-wrapper {
    position: relative;
    width: 150px;
    background-color: #f0f4ff;
    border-right: 1px solid #ddd;
}

.search-select-wrapper select {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 15px;
    appearance: none;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.search-select-wrapper .select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 1;
    pointer-events: none;
    font-size: 0.8rem;
}

.search-box-wrapper input {
    flex: 1;
    border: none;
    padding: 0 20px;
    font-size: 1rem;
    outline: none;
}

.btn-search {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 0 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-search:hover {
    background-color: var(--dark-blue);
}

.smart-search-option {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
}

.smart-search-option input {
    margin-right: 8px;
}


.directory-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}


.directory-sidebar {
    flex: 0 0 200px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 5px;
}

.category-list a {
    display: block;
    padding: 10px 15px;
    color: #555;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.category-list a:hover,
.category-list a.active {
    background-color: var(--primary-blue);
    color: white;
}


.directory-grid-wrapper {
    flex: 1;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
    
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-img-box {
    width: 100%;
    padding-top: 100%; 
    height: 0;
    background-color: #f5f5f7;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}

.img-placeholder::after {
    content: 'Image';
    color: #999;
    font-size: 1.2rem;
}

.product-info {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-title {
    font-size: 1.5rem;
    margin: 10px 0 5px;
    color: #333;
    font-weight: 700;
    text-align: center;
    padding: 0 10px;
}

.product-model {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
    text-align: center;
}

.product-specs {
    margin-bottom: 5px;
    flex-shrink: 0;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 0.85rem;
    border-bottom: 1px dashed #eee;
    padding-bottom: 2px;
}

.spec-label {
    color: #777;
    font-weight: 500;
}

.spec-value {
    color: #333;
    font-weight: 600;
    text-align: right;
}

.product-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1920px) {
    .product-grid {
        gap: 15px;
    }
    
    .product-info {
        padding: 15px;
    }
}


@media (max-width: 992px) {
    .directory-layout {
        flex-direction: column;
    }
    
    .directory-sidebar {
        width: 100%;
        flex: none;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-box-wrapper {
        flex-direction: column;
        height: auto;
        border: none;
    }
    
    .search-select-wrapper {
        width: 100%;
        height: 45px;
        border: 1px solid #ddd;
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .search-box-wrapper input {
        height: 45px;
        border: 1px solid #ddd;
        border-radius: 4px;
        margin-bottom: 10px;
        padding: 0 15px;
    }
    
    .btn-search {
        height: 45px;
        border-radius: 4px;
        width: 100%;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}


body.directory-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.directory-content-section {
    flex: 1;
    min-height: 100vh;
    padding-bottom: 100px;
}


.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
    grid-column: 1 / -1;
}

.loading-indicator i {
    font-size: 24px;
    color: var(--primary-blue);
}

.no-products,
.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 20px;
    color: #666;
    text-align: center;
    grid-column: 1 / -1;
}

.no-products i,
.error-message i {
    font-size: 48px;
    color: #ccc;
}

.error-message i {
    color: #e74c3c;
}

.no-products p,
.error-message p {
    font-size: 16px;
    margin: 0;
}


.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}


.loading-category {
    padding: 10px 15px;
    color: #666;
    font-size: 14px;
}

.loading-category i {
    margin-right: 8px;
    color: var(--primary-blue);
}



.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 80px 120px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 10px;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10;
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: calc(100% - 120px);
    overflow: hidden;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-nav:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-thumbnails {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    max-width: 80%;
    overflow-x: auto;
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.lightbox-thumb {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.lightbox-thumb:hover {
    opacity: 0.9;
}

.lightbox-thumb.active {
    border-color: var(--primary-blue);
    opacity: 1;
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-counter {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}


@media (max-width: 768px) {
    .lightbox-container {
        padding: 50px 15px 100px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-thumbnails {
        bottom: 20px;
        padding: 10px 15px;
        gap: 8px;
    }
    
    .lightbox-thumb {
        width: 50px;
        height: 50px;
    }
    
    .lightbox-counter {
        bottom: 85px;
    }
}


.pagination-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    padding: 0 15px;
}

.page-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.page-btn.active {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.page-btn.next {
    padding: 0 20px;
    font-weight: 600;
}

.page-btn.next i {
    margin-left: 8px;
    font-size: 12px;
}

.page-dots {
    color: #999;
    padding: 0 5px;
}
