/* Brands Page Styles */

/* Hero Section */
.brands-hero {
    background: linear-gradient(rgba(0, 42, 77, 0.8), rgba(0, 42, 77, 0.8)), url(/assets/template/tc-v/upload/screen-1-bg.jpg) center/cover;
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
}

.brands-title {
    font-size: 3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Brands Content */
.brands-content {
    padding: 55px 0;
}

.brands-layout {
    display: flex;
    gap: 40px;
}

/* Sidebar */
.brands-sidebar {
    flex: 0 0 300px;
    background: var(--bg-light);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.filter-block {
    margin-bottom: 30px;
}

.filter-block:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
        text-align: left;
    padding-bottom: 10px;
    font-weight: 600;
}

.filter-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--brand-accent);
}

/* Search Filter */
.filter-search {
    display: flex;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 20px;
}

.filter-input {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    font-size: 1rem;
    background-color: var(--text-light);
    
}
input.filter-input:focus-visible {
    border: 0;
    border-radius: 23px 0px 0px 23px;
}
.filter-button {
    padding: 0 25px;
    background-color: var(--brand-accent);
    color: var(--text-light);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-button:hover {
    background-color: #0d3d6e;
}

/* Checkbox Filters */
.filter-option {
    margin-bottom: 15px;
}

.filter-option:last-child {
    margin-bottom: 0;
}

.filter-option.hidden {
    display: none;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-gray);
    position: relative;
    padding-left: 30px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 3px;
    left: 0;
    height: 22px;
    width: 23px;
    background-color: #ccc;
    border-radius: 3px;
    transition: all 0.3s;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--brand-accent);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.show-more {
    text-align: center;
    margin-top: 15px;
}

.show-more-link {
    color: var(--brand-accent);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.show-more-link:hover {
    text-decoration: underline;
}

.show-less-link {
    color: var(--brand-accent);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.show-less-link:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

/* Main Content */
.brands-main {
    flex: 1;
}

/* Brands Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}

.brand-card {
    /* background: var(--bg-light); */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.brand-link {
    display: block;
    text-decoration: none;
    color: var(--text-dark);
    padding: 40px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.brand-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text-light);
    border-radius: 50%;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.brand-card:hover .brand-logo {
    transform: scale(1.1);
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.brand-card:hover .brand-logo img {
    transform: scale(1.1);
}

.brand-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 15px;
}

/* Search Form */
.brands-search {
    padding: 30px 0;
    background-color: var(--bg-light);
}

.search-form {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    overflow: hidden;
}

.search-input {
    flex-grow: 1;
    padding: 18px 25px;
    border: none;
    font-size: 1.1rem;
    background-color: var(--text-light);
}
input.search-input:focus-visible {
    border: 0;
    border-radius: 28px 0px 0px 28px;
    outline: #104b83 auto 1px;
}

.search-button {
    padding: 0 30px;
    background-color: var(--brand-accent);
    color: var(--text-light);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1.1rem;
    font-weight: 600;
}

.search-button:hover {
    background-color: #0d3d6e;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    background-color: #fff;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--brand-accent);
    text-decoration: none;
    padding: 5px;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-gray);
    padding: 5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .brands-hero {
        padding: 30px 0;
    }
    
    .brands-title {
        font-size: 2.5rem;
    }
    
    .brands-content {
        padding: 40px 0;
    }
    
    .filter-title {
        font-size: 1.2rem;
    }
    
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .brand-link {
        padding: 30px 20px;
    }
    
    .brand-logo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .brands-hero {
        padding: 30px 0;
    }
    
    .brands-title {
        font-size: 2.2rem;
    }
    
    .brands-content {
        padding: 30px 0;
    }
    
    .filter-title {
        font-size: 1.2rem;
    }
    
    .filter-search {
        max-width: 90%;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .brand-logo {
        width: 90px;
        height: 90px;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
    
    .search-form {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .brands-hero {
        padding: 20px 0;
    }
    
    .brands-title {
        font-size: 1.8rem;
    }
    
    .brands-content {
        padding: 20px 0;
    }
    
    .filter-title {
        font-size: 1.4rem;
    }
    
    .filter-search {
        border-radius: 25px;
    }
    
    .filter-input {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .filter-button {
        padding: 0 25px;
    }
    
    .brands-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .brand-link {
        padding: 25px 15px;
    }
    
    .brand-logo {
        width: 80px;
        height: 80px;
    }
    
    .search-form {
        flex-direction: column;
        border-radius: 20px;
    }
    
    .search-input {
        border-radius: 20px 20px 0 0;
    }
    
    .search-button {
        border-radius: 0 0 20px 20px;
        padding: 15px;
    }
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .header__menu-full {
        display: none;
    }
    
    .burger {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-menu-overlay {
        display: none !important;
    }
}

header {

    height: auto;

}

/* Новый блок для результатов поиска по артикулу */
.article-search-results {
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  display: none;
  margin-top: 5px;
}

.article-results-section {
  padding: 10px;
}

.article-results-section h4 {
  margin: 0 0 10px 0;
      padding: 10px 10px;
    background-color: #f4f5ff;
  border-bottom: 1px solid #eee;
  font-size: 16px;
  font-weight: bold;
}
.ajaxResults-wrap {
  box-shadow: none;
}
.article-results-table {
  margin-bottom: 15px;
}

.article-results-header {
  display: flex;
  padding: 5px 10px;
  background-color: #e9ecef;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
}

.article-results-row {
  display: flex;
  padding: 8px 10px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #eee;
}

.article-results-row:hover {
  background-color: #f8f9fa;
}

.article-results-col {
  padding: 3px 5px;
}

.article-results-col-title {
  flex: 2;
}

.article-results-col-article {
  flex: 1;
  color: #007bff;
}

.article-results-footer {
  padding: 10px;
  text-align: center;
  border-top: 1px solid #eee;
}

.article-results-link-all {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

.article-results-link-all:hover {
  text-decoration: underline;
}

.ajaxResults-wrap {
  padding: 10px;
}

.ajaxResults-list {
  max-height: 300px;
  overflow-y: auto;
}

.ajaxResults-row {
  display: flex;
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
}

.ajaxResults-row:hover {
  background-color: #f8f9fa;
}

.ajaxResults-col {
  padding: 5px;
}

.ajaxResults-col_brandTitle {
  flex: 1;
  font-weight: bold;
}

.ajaxResults-col_goodNumber {
  flex: 0 0 100px;
  color: #6c757d;
}

.ajaxResults-col_price {
  flex: 0 0 120px;
  color: #28a745;
  font-weight: bold;
  text-align: right;
}

.ajaxResults-footer {
  padding: 10px;
  text-align: center;
  border-top: 1px solid #eee;
}

.ajaxResults-link2all {
  color: #007bff;
  text-decoration: none;
}

.ajaxResults-link2all:hover {
  text-decoration: underline;
}

/* Новые стили для индикатора загрузки и сообщений об ошибках */
.loading, .error {
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
}

.loading {
  color: #007bff;
}

.error {
  color: #dc3545;
}

/* Адаптивность */
@media (max-width: 768px) {
  .ajaxResults-col_goodNumber {
    flex: 0 0 80px;
  }
  
  .ajaxResults-col_price {
    flex: 0 0 100px;
    font-size: 12px;
  }
}
