    /* Container for all brand items */
.brand-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    margin: 0 auto;
    padding: 20px 40px; /* ✅ added horizontal padding for left-right spacing */
    max-width: 1300px;  /* optional: keep it centered and not full width */
    box-sizing: border-box;
}

/* Each brand “card” wrapper */
.brand-col {
    flex: 0 0 calc((100% / 5) - 20px);
    max-width: calc((100% / 5) - 20px);
    box-sizing: border-box;
}

/* The card itself */
.product__item {
    background: #ffffff;
    border: 1px solid #dddddd; /* soft grey border */
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    padding: 20px 10px;
    height: 100%; /* make full height of parent */
}

/* Hover effect: shadow + slight raise */
.product__item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

/* Thumbnail / logo area */
.product__thumb {
    flex: 0 0 auto;
    margin-bottom: 12px;
}

.product__thumb img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Brand name styling */
.product__content h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #333333; /* dark grey text */
    line-height: 1.2;
    margin-bottom: 12px;
}

/* “View” button at bottom */
.product__add-btn {
    margin-top: auto; /* push to bottom */
}

.product__add-btn button {
    background-color: #007bff; /* primary blue */
    border: none;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.product__add-btn button:hover {
    background-color: #0056b3;
}

/* Responsive fallback for smaller devices */
@media (max-width: 1200px) {
    .brand-col { flex: 0 0 calc((100% / 4) - 20px); max-width: calc((100% / 4) - 20px); }
}
@media (max-width: 992px) {
    .brand-col { flex: 0 0 calc((100% / 3) - 20px); max-width: calc((100% / 3) - 20px); }
}
@media (max-width: 768px) {
    .brand-col { flex: 0 0 calc((100% / 2) - 20px); max-width: calc((100% / 2) - 20px); }
}
@media (max-width: 576px) {
    .brand-col { flex: 0 0 100%; max-width: 100%; }
}
/* --- Header Navigation Path --- */
.header-path {
    padding: 15px 50px; /* Adjust padding as needed for your layout */
    font-size: 14px;
    color: #6c757d;
}

.header-path a {
    text-decoration: none;
    color: #007bff; /* A standard link blue */
}

/* --- Main Selection Area --- */
.brand-selection {
    text-align: center; /* Centers the heading and search container */
    padding: 40px 20px;
}

/* --- Heading Style --- */
.brand-selection h1 {
    font-size: 28px;
    font-weight: 700; /* Bold */
    color: #333;
    margin-bottom: 30px; /* Space below the heading */
}

/* --- Search Container Layout --- */
.search-container {
    display: inline-flex;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    overflow: hidden;
    /* Added to correct positioning of the dropdown */
    position: relative; 
}


/* --- Search Icon Button Styling --- */
.search-icon-btn {
    background: none;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    /* Removed absolute positioning here as it was conflicting with inline-flex */
}

.search-icon-btn:hover {
    background-color: #f7f7f7;
}

/* --- Icon Style (for the SVG/Icon) --- */
.search-icon {
    width: 20px;
    height: 20px;
    color: #6c757d;
}

/* Add a line break for the divider seen below the search box */
.divider {
    border-bottom: 1px solid #e9ecef;
    margin-top: 40px;
}


/* --- Input Field and Positioning --- */
.brand-search-input {
    
    flex-grow: 1; 
    padding: 10px 10px 10px 10px;
    border: none; /* Removed redundant border */
    outline: none; /* Remove focus outline */
}

/* --- Autocomplete Dropdown Container (Key Fixes Here) --- */
.ui-autocomplete {
    background: #fff;
    border: 1px solid #ddd;
    max-height: 300px;
    overflow-y: hidden !important;
    overflow-x: hidden !important; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  
    width: 40% !important; 
    position: absolute; 
    z-index: 1000;
}

/* --- Autocomplete Individual Item Anchor Tag --- */
.ui-menu-item a {
    
    padding: 4px 12px; 
    line-height: 1.2; 
    display: block;
    color: #333;
    text-decoration: none;
    box-sizing: border-box; 
    width: 100%; 
}

.ui-menu-item {
    
    padding: 0;
    margin: 0;
    line-height: normal; 
    width: 597px;
}


.ui-menu-item .ui-state-focus {
    
    padding: 4px 12px !important; 
    background-color: #e9ecef !important; 
    color: #333 !important;
    width: 597px;
}


.ui-menu-item a:hover, 
.ui-menu-item .ui-state-focus { 
    background: #f4f4f4;
    color: #000;
    width: 100%; 
    box-sizing: border-box; 
}

.ui-menu-item a:hover {
    background: #f4f4f4;
    color: #000;
    width: 597px;
}