@charset "UTF-8";

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    
    line-height: 1.5;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
}

.icon {
    width: 1rem;
    height: 1rem;
}

/* Header Styles */
.header {
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
}

/* Top Bar */
.top-bar {
    display: none;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
    padding: 0.5rem 0;
}

@media (min-width: 1024px) {
    .top-bar {
        display: block;
    }
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info, .user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phone {
	font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.customer-support, .links a {
    font-size: 1rem;
    color: #000000;
    text-decoration: none;
}

.customer-support:hover, .links a:hover {
    text-decoration: underline;
}

.account {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.icon-link .icon {
    font-size: 1rem; /* Adjust size as needed */
}

.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem; /* Add spacing around the icons */
}


/* Main Header */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}

.logo img {
    height: 14rem;
    width: auto;
}

/* Custom styles for the autocomplete widget */
.ui-autocomplete {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #ddd;
    border-top: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0;
}

.ui-menu-item {
    padding: 8px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.ui-menu-item:last-child {
    border-bottom: none;
}

.ui-menu .ui-menu-item-wrapper {
    padding: 0;
}

.search-container {
    width: 50%; /* Adjust width to match the layout */
    margin: 20px auto; /* Centers the search bar */
    display: flex;
    justify-content: center;
}

#searchForm {
    width: 100%; /* Ensures it takes full width of .search-container */
    display: flex;
    border: 1px solid #ddd;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

#searchInput {
    flex-grow: 1;
    border: none;
    padding: 12px 20px;
    font-size: 20px;
    outline: none;
    width: 100%;
}

#searchForm input[type="submit"] {
    background-color: #f8f9fa;
    border: none;
    color: #3c4043;
    padding: 0 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#searchForm input[type="submit"]:hover {
    background-color: #e8eaed;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
}

.suggestion-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.suggestion-details {
    flex: 1;
}

.suggestion-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.suggestion-sku {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 4px;
}

.suggestion-price {
    color: #333;
    font-weight: bold;
}

.ui-menu-item .ui-menu-item-wrapper.ui-state-active {
    background: #f8f9fa;
    border: none;
    color: #333;
    margin: 0;
}

.category-header {
    background: #f8f9fa;
    padding: 8px 15px;
    font-weight: bold;
    color: #666;
    font-size: 0.9em;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-actions a {
    text-decoration: none;
    color: #000000; /* Ensures the link inherits color from the .category-item */
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem; /* Increase padding for a larger clickable area */
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-button .icon {
    font-size: 1.2rem; /* Adjust size as needed */
}

.cart {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-info {
    text-align: right;
}

.cart-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.cart-value {
    font-weight: 500;
}

/* Navigation */
.navigation {
    border-bottom: 1px solid #eee;
    background: white;
    position: relative;
}

.container1 {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.categories-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 3rem;
    padding: 0 1rem;
    background-color: #c20606;
    color: white;
    border: none;
    cursor: pointer;
}

.categories-button:hover {
    background-color: #800040;
}

.nav-links {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    gap: 4.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    height: 3rem;
    color: #000000;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover {
    color: #111827;
    border-bottom-color: #57468F;
}

.action-buttons {
    margin-left: auto;
    display: flex;
    gap: 1rem;
}

.action-button {
    background-color: #c20606;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.action-button:hover {
    background-color: #800040;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

.mega-menu.active {
    display: block;
}

.mega-menu-content {
     display: flex; /* Use flexbox to align categories and subcategories */
    align-items: flex-start;
}

.categories-list {
      width: 250px; /* Fixed width for category list */
    background: #f8f9fa;
    padding: 20px 0;
    border-right: 1px solid #eee;
    flex-shrink: 0;
}

.category-item {
    padding: 10px 20px;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    transition: all 0.3s ease;
}
.category-item a {
    text-decoration: none;
    color: inherit; /* Ensures the link inherits color from the .category-item */
}

.category-item:hover, .category-item.active {
    background: #fff;
    color: #4834d4;
}

.subcategories {
    display: none;
    position: absolute;
    left: 250px; /* Move to the right of category list */
    top: 0;
    width: calc(100% - 250px); /* Fill remaining width */
    background: white;
    padding: 20px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.subcategories.active {
   display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px; /* Reduced gap between subcategory groups */
}

.subcategory-group {
    margin-bottom: 10px; /* Reduced gap between individual subcategory groups */
}

.subcategory-title {
    font-weight: 500;
    margin-bottom: 5px; /* Reduced space below each title */
    color: #333;
    font-size: 14px;
}

.subcategory-title a {
	display: inline-block;
	text-decoration: none;
    font-weight: 500;
    margin-bottom: 5px; /* Reduced space below each title */
    color: #333;
    cursor: pointer;
    font-size: 14px;
}

.subcategory-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.subcategory-item a {
	display: inline-block;
	text-decoration: none;
    padding: 4px 0; /* Reduced padding for tighter spacing */
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.subcategory-item a:hover {
    color: #4834d4; /* Add hover color */
}

.icon {
    font-size: 12px;
}

.ui-menu-item {
    padding: 8px 10px; /* Padding for items */
    cursor: pointer; /* Change cursor to pointer */
}

/* Highlight the item on hover or selection */
.ui-menu-item:hover, 
.ui-state-focus {
    background-color: #f0f0f0; /* Light grey background on hover */
    color: #000; /* Text color on hover */
}

.ui-autocomplete {
    max-height: 200px; /* Set the maximum height for the dropdown */
    overflow-y: auto;  /* Enable vertical scrolling */
    overflow-x: hidden; /* Disable horizontal scrolling */
    padding-right: 10px; /* Prevent cutoff of text */
    background-color: #fff; /* Background color for the dropdown */
    border: 1px solid #ccc; /* Border around the dropdown */
    font-family: Arial, sans-serif; /* Dropdown font */
    font-size: 14px; /* Font size */
    z-index: 1000; /* Ensure it appears above other elements */
}

/* Mobile View Adjustments */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .logo img {
        height: 6rem;
    }

    .search-container {
        width: 100%;
        margin: 10px 0;
    }

    #searchForm {
        flex-direction: column;
        border-radius: 12px;
    }

    #searchInput {
        width: 100%;
        padding: 10px;
    }

    #searchForm input[type="submit"] {
        width: 100%;
        padding: 10px;
    }

    .nav-links, .action-buttons {
        display: none;
    }

    .mega-menu-content {
        grid-template-columns: 1fr;
    }

    .subcategories.active {
        grid-template-columns: 1fr;
    }

    .categories-button {
        width: 100%;
        justify-content: center;
    }

    .mega-menu {
        position: static;
        box-shadow: none;
    }

    .category-item {
        padding: 10px;
    }

    .subcategories {
        padding: 10px;
    }

    .subcategory-group {
        margin-bottom: 5px;
    }

    .subcategory-title {
        font-size: 12px;
    }

    .subcategory-item a {
        font-size: 12px;
    }

    .icon-button {
        padding: 0.25rem;
    }

    .cart {
        gap: 0.25rem;
    }

    .cart-label {
        font-size: 0.65rem;
    }

    .cart-value {
        font-size: 0.875rem;
    }
}