/* 
Theme Name:		 sydney-child
Theme URI:		 http://childtheme-generator.com/
Description:	 sydney-child is a child theme of Sydney, created by ChildTheme-Generator.com
Author:			 edubooksadmin
Author URI:		 http://childtheme-generator.com/
Template:		 sydney
Version:		 1.0.0
Text Domain:	 sydney-child
*/


/*
    Add your custom styles here
*/


/* 🔍 icon looks like header menu item */
.menu-item-search a {
    font-size: 16px;
    padding: 0 12px;
    cursor: pointer;
}

/* Mobile menu – icon visible */
@media (max-width: 1024px) {
    .menu-item-search {
        display: block;
    }
}

/* Overlay */
/* .edubooks-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    z-index: 9999;
} */

.edubooks-search-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .overlay-inner {
    background: #fff;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    position: relative;
} */

.close-search {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

.overlay-inner form {
    display: flex;
}

.overlay-inner input {
    flex: 1;
    padding: 12px;
    font-size: 16px;
}

.overlay-inner button {
    padding: 12px 20px;
    background: #e04b4b;
    border: none;
    color: #fff;
    font-weight: bold;
}

/* ROUND SEARCH LOADER */
.round-search-loader {
    width: 32px;
    height: 32px;
    border: 3px solid #ddd;
    border-top: 3px solid #e53935;
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Result list */
.search-results {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.search-results li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.search-results a {
    text-decoration: none;
    color: #333;
}

.search-results .price {
    float: right;
    color: #e04b4b;
}


/* serch css*/
/* SEARCH RESULT PRODUCT CARD */
.search-product-card {
    display: flex;
    gap: 25px;
    padding: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e5e5e5;
}

/* IMAGE */
.search-product-image img {
    width: 160px;
    height: auto;
    border: 1px solid #ddd;
}

/* INFO */
.search-product-info {
    flex: 1;
}

.search-product-info p {
    margin: 6px 0;
    font-size: 14px;
    color: #333;
}

/* TITLE */
.search-product-info .product-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #d32f2f;
}

.search-product-info .product-title a {
    color: inherit;
    text-decoration: none;
}

/* PRICE */
.search-product-info .product-price {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-top: 10px;
}

/* DESCRIPTION */
.search-product-info .product-desc {
    margin-top: 10px;
    color: #555;
    line-height: 1.6;
}

/* MOBILE */
@media (max-width: 768px) {
    .search-product-card {
        flex-direction: column;
    }

    .search-product-image img {
        width: 120px;
    }
}


/* =========================
 HEADER DROPDOWN SEARCH
========================= */
.header-search-wrap {
    display: none;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e53935;
    position: relative;
    z-index: 999;
}

.header-search-wrap.active {
    display: block;
}

/* INPUT ROW */
.header-search-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-search-inner input {
    flex: 1;
    padding: 14px;
    font-size: 16px;
    border: 1px solid #ccc;
}

.header-search-inner button {
    padding: 14px 28px;
    background: #e53935;
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

#closeHeaderSearch {
    font-size: 22px;
    cursor: pointer;
    margin-left: 10px;
}

/* LOADER */
.header-search-loader {
    height: 4px;
    background: linear-gradient(90deg, #e53935, #ffc107, #e53935);
    animation: loading 1s infinite linear;
}

@keyframes loading {
    0% { background-position: 0% }
    100% { background-position: 100% }
}

/* RESULTS */
.header-search-results {
    max-width: 1200px;
    margin: 0 auto;
    list-style: none;
    padding: 0 20px 20px;
}

.header-search-results li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.header-search-results a {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: #333;
}

.header-search-results strong {
    color: #e53935;
}

/* MOBILE */
@media (max-width: 768px) {
    .header-search-inner {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Toggle icons */
.search-close-icon {
    display: none;
}

#openSearch.active .search-open-icon {
    display: none;
}

#openSearch.active .search-close-icon {
    display: inline-block;
}


