/* Header CSS - Extracted from home.css and frontend.css */
/* This file contains ONLY header-related styles (top bar, marquee, header, navbar, search popup) */

/* --- SECTION 1: MARQUEE --- */
body.home-page .top-bar {
    background: #6b161d;
    color: #fff;
    height: 40px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
}

body.home-page .marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
    padding-left: 100%;
    will-change: transform;
}

/* Removed hover pause - marquee continues scrolling on hover */

body.home-page .marquee-content span {
    font-size: 12px;
    letter-spacing: 1px;
}

body.home-page .marquee-content .spacer {
    margin: 0 30px;
    color: #aaa;
}

body.home-page .marquee-content a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
    display: inline-block;
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

body.home-page .marquee-content a:hover {
    opacity: 0.9;
    text-decoration: underline;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- SECTION 2: HEADER --- */
body.home-page header {
    background: #FFF;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

body.home-page .header-main {
    /*background: #ffe3ed;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0px;
}

body.home-page .logo h2 {
    font-weight: 700;
    font-size: 2.4rem;
    color: #8c017d;
}

body.home-page .header-right-group {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
}

/* SEARCH BAR */
body.home-page .search-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

body.home-page .search-input {
    width: 0;
    opacity: 0;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid var(--primary-brown);
    background: #f8f7f3;
    transition: width 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    outline: none;
    font-size: 14px;
    position: absolute;
    right: 30px;
    z-index: 20;
}

body.home-page .search-container.active .search-input {
    width: 200px;
    opacity: 1;
    padding: 8px 10px;
}

body.home-page .search-toggle {
    background: transparent;
    border: none;
    color: var(--primary-brown);
    font-size: 18px;
    padding: 5px;
    transition: 0.3s;
    z-index: 21;
}

body.home-page .search-toggle:hover {
    transform: scale(1.1);
}

/* HEADER ICONS & CONTACT */
body.home-page .header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

body.home-page .contact-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-brown);
}

body.home-page .contact-mini i {
    font-size: 24px;
}

body.home-page .contact-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.3;
}

body.home-page .contact-text span {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-brown);
    display: block;
}

/* Header Social Media Icons */
body.home-page .header-socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(139, 69, 19, 0.2);
}

body.home-page .header-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 18px;
    color: var(--primary-brown);
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.25);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.fa-whatsapp:before {
    color: #FFF !important;
}

body.home-page .header-social-link:hover {
    transform: translateY(-2px);
    color: #8b4513;
    background-color: #f8f7f3;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

body.home-page .header-social-link i {
    transition: transform 0.3s ease;
}

body.home-page .header-social-link:hover i {
    transform: scale(1.15);
}

/* Navbar */
body.home-page .navbar {
    border-top: 1px solid #e0e0e0;
    height: 60px;
    display: flex;
    align-items: center;
    background-color: #f8f7f3;
    padding: 0;
}

body.home-page .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.home-page .dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

body.home-page .category-btn {
    background: #6b161d;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    border-radius: 10px;
}

body.home-page .dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 260px;
    box-shadow: 0px 18px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
    top: 100%;
    left: 0;
    border-radius: 0 0 8px 8px;
}

body.home-page .dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s;
}

body.home-page .dropdown-content a {
    color: black;
    padding: 12px 16px;
    display: block;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

body.home-page .dropdown-content a:hover {
    background-color: #6a151c;
    color: #FFF;
}

/* NAV LINKS */
body.home-page .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

body.home-page .nav-links a {
    font-family: 'Poppins', sans-serif;
    margin: 0 5px;
    font-weight: 600;
    font-size: 15px;
    padding: 5px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

body.home-page .nav-links a:hover,
body.home-page .nav-links a.active {
    /*background-color: var(--primary-brown);*/
    background-color: #6b161d;
    color: #fff;
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.2);
}

body.home-page .nav-actions a {
    margin-left: 20px;
    font-size: 18px;
    color: #333;
    position: relative;
}

body.home-page .count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-brown);
    color: #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================================
   SEARCH POPUP OVERLAY
   ============================================ */
.search-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-popup-overlay.active {
    display: block;
    opacity: 1;
}

.search-popup-container {
    width: 100%;
    height: 100%;
    background: #fff;
    padding: 40px 60px;
    overflow-y: auto;
    position: relative;
}

.search-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.search-popup-input-wrapper {
    flex: 1;
    max-width: 800px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.search-popup-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
}

.search-popup-input:focus {
    border-color: var(--primary-brown, #8b4513);
}

.search-popup-voice,
.search-popup-submit {
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    transition: color 0.3s;
}

.search-popup-voice:hover,
.search-popup-submit:hover {
    color: var(--primary-brown, #8b4513);
}

.search-popup-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s;
}

.search-popup-close:hover {
    color: var(--primary-brown, #8b4513);
}

.search-popup-content {
    max-width: 1200px;
    margin: 0 auto;
}

.search-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.search-loading i {
    margin-right: 10px;
}

/* Search Results Layout */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.search-section {
    margin-bottom: 30px;
}

.search-section-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Suggestions Section */
.search-suggestions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.suggestion-item {
    padding: 12px 15px;
    background: #f8f8f8;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 15px;
    color: #333;
}

.suggestion-item:hover {
    background: #e8e8e8;
}

/* Products and Collections Row */
.search-results-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.search-section-products,
.search-section-collections {
    display: flex;
    flex-direction: column;
}

/* Products Section */
.search-products {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-product-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s, transform 0.2s;
}

.search-product-item:hover {
    background: #e8e8e8;
    transform: translateX(5px);
}

.search-product-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.search-product-info {
    flex: 1;
}

.search-product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.search-product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-brown, #8b4513);
}

/* Collections Section */
.search-collections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.search-collection-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
}

.search-collection-item:hover {
    transform: translateY(-5px);
}

.search-collection-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.search-collection-name {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #333;
}

/* View All Button */
.search-view-all {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f6d365, #fda085);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    box-shadow: 0 15px 30px rgba(253, 160, 133, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.view-all-btn i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(253, 160, 133, 0.45);
    color: #fff;
}

.view-all-btn:hover i {
    transform: translateX(4px);
}

.view-all-btn.white {
    /*background: linear-gradient(135deg, #36d1dc, #5b86e5);*/
    color: #fff;
    box-shadow: 0 15px 30px rgba(91, 134, 229, 0.35);
    z-index: 999;
    position: relative;
    background: #260160;
    border-radius: 11px;
}

.view-all-btn.white:hover {
    box-shadow: 0 20px 36px rgba(91, 134, 229, 0.45);
}

/* Empty State */
.search-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    body.home-page .header-main {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    body.home-page .logo h2 {
        margin-bottom: 5px;
        text-align: center;
    }

    body.home-page .header-right-group {
        width: 100%;
        justify-content: space-between;
        position: relative;
    }

    body.home-page .search-input {
        right: auto;
        left: 45px;
        width: 0;
        max-width: 220px;
        background: #f8f7f3;
        z-index: 20;
    }

    body.home-page .search-container.active .search-input {
        width: 180px;
        padding: 8px 10px;
        border: 1px solid var(--primary-brown);
        border-radius: 4px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    body.home-page .nav-links {
        display: none;
    }

    .search-popup-container {
        padding: 30px 40px;
    }

    .search-results-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    body.home-page .header-main {
        flex-direction: column;
        gap: 15px;
    }

    body.home-page .contact-mini {
        width: 100%;
        justify-content: flex-end;
    }

    body.home-page .contact-text {
        text-align: left;
    }

    .search-popup-container {
        padding: 20px;
    }

    .search-popup-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .search-popup-input-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .search-popup-close {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .search-collections {
        grid-template-columns: 1fr;
    }
}