


.directory-page .header {
    position: fixed !important;
    background-color: rgba(0,0,0,0.9) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.directory-hero {
  height: 220px;
  margin-top: 0;
}
.directory-content-wrapper {
    padding-top: 0; 
}
.directory-hero-content {
  width: 100%;
  text-align: left; 
  padding: 0 20px;
}
.directory-hero-content h1 {
  font-size: 1.8rem;
  text-align: left;
  margin-bottom: 15px;
}
.directory-hero-content ul {
    display: none; 
}
.directory-hero-content .btn {
    margin-top: 5px;
    padding: 10px 25px;
    font-size: 0.9rem;
    display: inline-block;
}


.directory-content-section {
    padding: 20px 0 80px; 
    background-color: #fff; 
}
.directory-content-section .container {
    padding: 0 15px;
}


.search-container {
    padding: 10px 0;
    margin-bottom: 15px;
    background: transparent;
    box-shadow: none;
}

.search-box-wrapper {
    display: flex;
    flex-direction: row; 
    height: 48px;
    border-radius: 24px; 
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    background: white;
    align-items: center;
}

.search-select-wrapper {
    width: 90px; 
    border-right: 1px solid #f1f5f9;
    border-bottom: none;
    height: 100%;
    background: #f8fafc;
    position: relative;
    flex-shrink: 0;
}

.search-select-wrapper select {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    padding: 0 20px 0 10px; 
    color: #475569;
    font-weight: 500;
    outline: none; 
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    
    
    display: flex; 
    align-items: center;
    text-align: center;
    text-align-last: center; 
    justify-content: center;
    
    
    line-height: 48px; 
    margin: 0;
}

.search-select-wrapper select:focus {
    outline: none;
    border: none;
}

#search-input {
    flex: 1;
    height: 100%;
    border-radius: 0;
    text-align: left;
    padding-left: 15px;
    border-bottom: none;
    background: transparent;
    font-size: 0.9rem;
    border: none;
    outline: none; 
    line-height: normal; 
    margin: 0;
}

#search-input:focus {
    outline: none;
}

#search-btn {
    width: 48px; 
    border-radius: 0;
    height: 100%;
    justify-content: center;
    background: var(--primary-blue);
    font-weight: 500;
    padding: 0;
}

#search-btn span {
  display: none; 
}

#search-btn i {
  margin: 0;
  font-size: 1.1rem;
}


.directory-layout {
  display: flex;
  flex-direction: column;
  gap: 15px; 
}


.directory-sidebar {
  width: 100%;
  margin-bottom: 5px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.sidebar-title {
    font-size: 0.95rem;
    margin-bottom: 8px;
    padding-left: 2px;
    border-bottom: none;
    font-weight: 700;
    color: #334155;
}


.category-list {
  display: flex;
  overflow-x: auto;
  gap: 15px; 
  padding-bottom: 5px;
  -webkit-overflow-scrolling: touch; 
  scrollbar-width: none;
  border-bottom: 1px solid #f1f5f9; 
  padding-left: 5px; 
}
.category-list::-webkit-scrollbar {
    display: none;
}

.category-list li {
  margin-bottom: 0;
  flex-shrink: 0;
}

.category-list li a {
  display: block;
  padding: 10px 5px; 
  background: transparent; 
  border-radius: 0; 
  color: #64748b;
  font-weight: 500;
  border-left: none;
  white-space: nowrap;
  font-size: 0.95rem;
  border: none;
  border-bottom: 2px solid transparent; 
  transition: all 0.2s;
}

.category-list li a.active {
  background: transparent;
  color: var(--primary-blue);
  border-color: var(--primary-blue); 
  box-shadow: none;
}


.directory-grid-wrapper {
    width: 100%;
}

.product-grid {
  grid-template-columns: repeat(2, 1fr) !important; 
  gap: 10px; 
}


.product-card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    height: 100%;
}

.product-card-img {
    height: auto;
    aspect-ratio: 1/1; 
    border-bottom: 1px solid #f8fafc;
}

.product-card:hover {
  transform: none; 
  box-shadow: none;
}


.product-info {
    padding: 10px;
    text-align: left !important; 
}


.product-title {
    font-size: 1rem !important; 
    margin: 8px 0 6px !important;
    text-align: center !important; 
    padding: 0 !important;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: flex;       
    align-items: center; 
    justify-content: center; 
    color: #333; 
    font-weight: 700 !important;
}


.product-model {
    font-size: 0.9rem !important; 
    margin-bottom: 8px !important;
    text-align: left !important; 
    color: #475569 !important; 
    font-weight: 500 !important;
}

.product-specs {
    margin-top: auto;
    border-top: 1px solid #f8fafc;
    padding-top: 8px;
}


.spec-row {
    display: flex;
    justify-content: flex-start !important; 
    gap: 4px;
    border-bottom: none !important;
    margin-bottom: 2px !important;
    flex-wrap: wrap; 
}

.spec-label {
    min-width: auto;
    color: #64748b; 
    font-weight: 500;
    font-size: 0.8rem; 
}

.spec-value {
    text-align: left !important;
    font-size: 0.85rem; 
    font-weight: 600;
    color: #1e293b; 
}


.product-desc {
    display: none;
}


.pagination-container {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    border-top: none;
    margin-top: 30px;
}
.page-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
    border-radius: 6px;
}
