/* Header Styles - Updated with logo and icons */
header {
    background-color: rgba(0, 0, 0, 0.8); /* Using the new black background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 15px;
        transition: all 0.3s ease;
    }

/* Logo with image */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.logo-image {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color); /* Using the new orange/red color */
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* Navigation */
nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

    nav ul {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
    }

        nav ul li {
            margin: 0 1.2rem;
            transition: all 0.3s ease;
        }

            nav ul li a {
                font-weight: 500;
                transition: color 0.3s ease;
                color: var(--text-color);
                text-decoration: none;
                position: relative;
                padding: 5px 0;
            }

                nav ul li a:hover {
                    color: var(--primary-color);
                }

                nav ul li a.active {
                    color: var(--primary-color);
                    font-weight: 600;
                }

                    nav ul li a.active::after {
                        content: '';
                        position: absolute;
                        bottom: -5px;
                        left: 0;
                        width: 100%;
                        height: 2px;
                        background-color: var(--primary-color);
                    }

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.header-icon {
    position: relative;
    font-size: 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

    .header-icon:hover {
        color: var(--primary-color);
    }

    .header-icon img {
        width: 25px;
        height: 25px;
        max-width: none;
        cursor: pointer;
    }

.cart-icon {
    display: flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: 2;
    }

    .about-content {
        order: 1;
    }

    .newsletter-container {
        flex-direction: column;
        text-align: center;
    }

    header .container {
        flex-wrap: wrap;
    }

    .logo {
        margin-bottom: 0.5rem;
    }

    nav {
        order: 3;
        width: 100%;
        /*margin-top: 1rem;*/
    }

    .header-icons {
        order: 2;
    }
}

@media (max-width: 768px) {

    header .container {
        flex-direction: column;
    }

    nav ul {
        /*margin-top: 1rem;*/
    }

        nav ul li {
            margin: 0 0.5rem;
        }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

        nav ul li {
            margin: 0.5rem 0.8rem;
        }

    .header-icons {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

        nav ul li {
            margin: 0.5rem;
        }

    .hero-content h1 {
        font-size: 2rem;
    }

    .featured-item, .benefit-card, .testimonial-card {
        padding: 1.5rem;
    }

    .newsletter-container {
        padding: 2rem;
    }

    .logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }

        .logo h1 {
            font-size: 1.5rem;
        }

    header .container {
        flex-direction: column;
    }

    .header-icons {
        margin: 1rem 0;
    }

    header.scrolled {
        padding: 0;
    }

        header.scrolled .container {
            padding-top: 8px;
            padding-bottom: 8px;
        }

        header.scrolled .logo-image {
            height: 0px;
        }

        header.scrolled .logo h1 {
            font-size: 1rem;
        }

        header.scrolled nav ul li {
            margin: 0rem 0.6rem;
            font-size: 0.7rem;
        }

        header.scrolled .header-icons {
            display: none;
        }
}








/* ENHANCED: Advanced Search Container */
.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--input-background);
    border: 1px solid var(--input-border);
    border-radius: 25px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

    .search-wrapper:focus-within {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px var(--input-focus);
    }

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    outline: none;
}

    .search-input::placeholder {
        color: var(--light-text);
    }

.search-btn, .search-filter-btn {
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    padding: 5px;
    margin-left: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1rem;
}

    .search-btn:hover, .search-filter-btn:hover {
        color: var(--primary-color);
        background-color: rgba(255, 255, 255, 0.1);
    }

/* ENHANCED: Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--card-background);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-top: 5px;
    display: none;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

    .search-suggestions.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

.suggestions-header {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--light-text);
    font-weight: 600;
    text-transform: uppercase;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    gap: 10px;
}

    .suggestion-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

.suggestion-icon {
    font-size: 1rem;
    opacity: 0.7;
}

.suggestion-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.suggestion-name {
    flex: 1;
}

    .suggestion-name strong {
        color: var(--primary-color);
    }

.suggestion-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ENHANCED: Search Filters Panel */
.search-filters {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background-color: var(--card-background);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-top: 5px;
    display: none;
    z-index: 1000;
    padding: 1.5rem;
}

    .search-filters.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

    .filters-header span {
        font-weight: 600;
        color: var(--primary-color);
    }

.close-filters {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .close-filters:hover {
        color: var(--primary-color);
    }


.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-option {
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-color);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

    .filter-option:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: var(--primary-color);
    }

    .filter-option.active {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
    }

/* ENHANCED: Mobile Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .search-overlay.show {
        display: block;
        opacity: 1;
    }

.search-overlay-content {
    padding: 2rem;
    height: 100%;
    overflow-y: auto;
}

.search-overlay-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-overlay-input {
    flex: 1;
    background-color: var(--input-background);
    border: 1px solid var(--input-border);
    border-radius: 25px;
    padding: 15px 20px;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
}

    .search-overlay-input::placeholder {
        color: var(--light-text);
    }

.close-search-overlay {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .close-search-overlay:hover {
        color: var(--primary-color);
    }

.search-overlay-suggestions {
    display: grid;
    gap: 2rem;
}

.suggestion-category h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.suggestion-category .suggestion-item {
    padding: 1rem;
    background-color: var(--card-background);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .suggestion-category .suggestion-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }



/* Animations */
@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding: 0;
        margin-bottom: 3rem;
    }

        .hero-content h1 {
            font-size: 2.5rem;
        }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    header .container {
        flex-wrap: wrap;
    }

    .search-container {
        order: 3;
        width: 100%;
        margin: 1rem 0 0 0;
        max-width: none;
    }

    nav {
        order: 2;
    }

    .header-icons {
        order: 1;
    }
}

@media (max-width: 768px) {



    .search-container {
        margin: 1rem 0;
        display: none;
    }

    .search-filters {
        width: 100%;
        right: auto;
        left: 0;
    }

    .newsletter-container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

        nav ul li {
            margin: 0.5rem 0.8rem;
        }

    .header-icons {
        gap: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .hero-buttons {
        justify-content: center;
    }

    .search-input:focus {
        pointer-events: none;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .newsletter-form .btn {
        width: 100%;
    }

    .logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }

        .logo h1 {
            font-size: 1.5rem;
        }

    header .container {
        flex-direction: column;
    }

    .header-icons {
        margin: 1rem 0;
    }

    .search-wrapper {
        padding: 10px 15px;
    }

    .search-input {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Header scroll behavior for mobile */
@media (max-width: 768px) {

    header.scrolled {
        padding: 0;
    }

        header.scrolled .container {
            padding-top: 8px;
            padding-bottom: 8px;
        }

        header.scrolled .logo-image {
            height: 30px;
        }

        header.scrolled .logo h1 {
            font-size: 1.4rem;
        }

        header.scrolled nav ul li {
            margin: 0.3rem 0.6rem;
            font-size: 0.9rem;
        }

        header.scrolled .header-icons {
            gap: 0.8rem;
            font-size: 0.9rem;
        }

        header.scrolled .search-container {
            margin: 0.5rem 0;
        }
}



/* #region HEADER - LANGUAGE DROPDOWN */

.header-language-dropdown {
    width: 200px;
    max-height: 150px;
    position: fixed;
    top: 90px;
    right: 20px;
    border-radius: 15px;
    border: 1px solid gray;
    overflow-y: auto;
    background-color: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.header-language-dropdown-header {
    border-bottom: 1px solid gray;
    height: 30px;
    display: flex;
}

.header-language-dropdown-header-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.header-language-dropdown-row {
    border-bottom: 1px solid gray;
    height: 50px;
    display: flex;
    cursor: pointer;
}

    .header-language-dropdown-row.active {
        background-color: rgb(75, 75, 75);
    }

.header-language-dropdown-row-flag {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .header-language-dropdown-row-flag img {
        width: 30px;
        height: 25px;
    }

.header-language-dropdown-row-text {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* #endregion */

/* #region HEADER - COUNTRY DROPDOWN */

.header-country-dropdown {
    width: 200px;
    max-height: 150px;
    position: fixed;
    top: 90px;
    right: 20px;
    border-radius: 15px;
    border: 1px solid gray;
    overflow-y: auto;
    background-color: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.header-country-dropdown-header {
    border-bottom: 1px solid gray;
    height: 30px;
    display: flex;
}

.header-country-dropdown-header-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.header-country-dropdown-row {
    border-bottom: 1px solid gray;
    height: 50px;
    display: flex;
    cursor: pointer;
}

    .header-country-dropdown-row.active {
        background-color: rgb(75, 75, 75);
    }

.header-country-dropdown-row-flag {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .header-country-dropdown-row-flag img {
        width: 30px;
        height: 25px;
    }

.header-country-dropdown-row-text {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* #endregion */

/* #region HEADER - SEARCH DROPDOWN */

.header-search-dropdown {
    position: fixed;
    left: 25%;
    right: 25%;
    top: 90px;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 20px;
    border: 2px solid gray;
    background-color: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.header-search-dropdown-header {
    border-bottom: 1px solid gray;
    height: 40px;
    width: 100%;
    display: flex;
    align-items: center;
    padding-left: 20px;
    font-size: 14px;
    font-weight: 700;
    background-color: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.header-search-dropdown-type-header {
    border-bottom: 1px solid gray;
    height: 30px;
    width: 100%;
    display: flex;
    align-items: center;
    padding-left: 20px;
    font-size: 12px;
    font-weight: 700;
    background-color: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.header-search-dropdown-item {
    display: flex;
    border-bottom: 1px solid gray;
    background-color: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* PRODUCT */

.header-search-dropdown-product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10%;
    height: 50px;
}

    .header-search-dropdown-product-image img {
        height: 40px;
        width: 40px;
        border-radius: 10px;
        object-fit: cover;
    }

.header-search-dropdown-product-name {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 30%;
    height: 50px;
    font-size: 12px;
    flex-direction: column;
}

.header-search-dropdown-product-category {
    display: flex;
    justify-content: left;
    align-items: center;
    width: 30%;
    height: 50px;
    font-size: 12px;
}

.header-search-dropdown-product-price {
    display: flex;
    justify-content: left;
    align-items: center;
    width: 20%;
    height: 50px;
    font-size: 12px;
}

.header-search-dropdown-product-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10%;
    height: 50px;
    font-size: 12px;
}

    .header-search-dropdown-product-actions img {
        height: 25px;
        width: 25px;
    }

/* CATEGORY */

.header-search-dropdown-category-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10%;
    height: 50px;
}

    .header-search-dropdown-category-image img {
        height: 40px;
        width: 40px;
        border-radius: 10px;
        object-fit: cover;
    }

.header-search-dropdown-category-name {
    display: flex;
    justify-content: left;
    align-items: center;
    width: 80%;
    height: 50px;
    font-size: 12px;
}

.header-search-dropdown-category-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10%;
    height: 50px;
    font-size: 12px;
}

    .header-search-dropdown-category-actions img {
        height: 25px;
        width: 25px;
    }

/* CONTENT */

.header-search-dropdown-content-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10%;
    height: 50px;
}

    .header-search-dropdown-content-image img {
        height: 40px;
        width: 40px;
        border-radius: 10px;
        object-fit: cover;
    }

.header-search-dropdown-content-title {
    display: flex;
    justify-content: left;
    align-items: center;
    width: 50%;
    height: 50px;
    font-size: 12px;
}

.header-search-dropdown-content-author-name {
    display: flex;
    justify-content: left;
    align-items: center;
    width: 30%;
    height: 50px;
    font-size: 12px;
}

.header-search-dropdown-content-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10%;
    height: 50px;
    font-size: 12px;
}

    .header-search-dropdown-content-actions img {
        height: 25px;
        width: 25px;
    }

/* #endregion */

/* #region HEADER - USER DROPDOWN */

.header-user-dropdown {
    width: 200px;
    position: fixed;
    top: 90px;
    right: 20px;
    border-radius: 15px;
    border: 1px solid gray;
    overflow-y: auto;
    background-color: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.header-user-dropdown-header {
    border-bottom: 1px solid gray;
    height: 30px;
    display: flex;
}

.header-user-dropdown-header-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

    .header-user-dropdown-header-item a {
        cursor: pointer;
    }

.header-user-dropdown-row {
    border-bottom: 1px solid gray;
    height: 50px;
    display: flex;
}

.header-user-dropdown-row-image {
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-user-dropdown-row-flag img {
    width: 25px;
    height: 25px;
}

.header-user-dropdown-row-text {
    width: 75%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 12px;
}

    .header-user-dropdown-row-text input {
        width: 90%;
        height: 50%;
        border-radius: 20px;
        background: transparent;
        outline: none;
        border: 1px solid white;
        color: var(--text-color);
        padding: 15px;
        background-color: rgb(50, 50, 50);
    }

.header-user-dropdown-row button {
    margin: 5px;
    width: 100%;
}

/* #endregion */

@media (max-width: 768px) {

    .header-user-dropdown {
        width: auto;
        background-color: rgb(50, 50, 50);
        position: fixed;
        top: 25%;
        right: 80px;
        left: 80px;
        border-radius: 15px;
        border: 1px solid gray;
        overflow-y: auto;
        z-index: 100;
    }
}
