/*
Theme Name: SayedTheme
Theme URI: https://orbeen.com/sayedtheme
Author: Sayed
Author URI: https://orbeen.com
Description: SayedTheme is a powerful, lightweight, and fully customizable WordPress theme built with Bootstrap 5. Perfect for e-commerce, business, and creative websites. Seamlessly integrated with Elementor page builder and WooCommerce for unlimited design possibilities. Features include responsive layout, custom widgets, multiple header layouts, advanced typography controls, and one-click demo import. Optimized for speed, SEO, and user experience.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sayedtheme
Domain Path: /languages
Tags: bootstrap, responsive, elementor-ready, woocommerce-ready, custom-logo, custom-menu, blog, e-commerce, business, portfolio, custom-background, custom-colors, grid-layout, one-column, two-columns, right-sidebar, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready
*/


/*===========================================
=            Font Awesome Fix              =
===========================================*/
/* @font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("https://use.fontawesome.com/releases/v5.15.4/webfonts/fa-solid-900.woff2") format("woff2"),
        url("https://use.fontawesome.com/releases/v5.15.4/webfonts/fa-solid-900.woff") format("woff"),
        url("https://use.fontawesome.com/releases/v5.15.4/webfonts/fa-solid-900.ttf") format("truetype");
} */

/* Font Awesome Fallback - Supports both v5 and v6 */
[class^="fa-"],
[class*=" fa-"],
.fas,
.far,
.fal,
.fab {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome' !important;
    font-weight: 900 !important;
    speak: none;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Brands need a different font family */
.fab {
    font-family: 'Font Awesome 6 Brands', 'Font Awesome 5 Brands', 'FontAwesome' !important;
    font-weight: 400 !important;
}

.fas,
.fa-solid {
    font-weight: 900 !important;
}

.fa-shopping-cart:before {
    content: "\f07a" !important;
    display: inline-block !important;
}

:root {
    --primary-color: #007cba;
    --secondary-color: #005a87;
    --container-width: 1200px;
    --cart-icon-color: #007cba;
    --cart-hover-color: #005a87;
    --cart-count-color: #dc3545;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #333;
}

.container {
    max-width: var(--container-width);
}

/* Logo */
.custom-logo {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

/* Navbar customization */
.navbar {
    padding: 0.5rem 0;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Dropdown menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-size: 14px;
    color: #333;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* Content area */
.site-content {
    padding: 60px 0;
    min-height: 60vh;
}

/* Posts */
.post {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.post-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.post-title a {
    color: #333;
    text-decoration: none;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
}

.read-more:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* Sidebar */
.widget {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 5px 0;
}

.widget ul li a {
    color: #333;
    text-decoration: none;
}

.widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget {
    color: #ecf0f1;
}

.footer-widget .widget-title {
    color: #fff;
    border-bottom-color: var(--primary-color);
}

.footer-widget ul li a {
    color: #ecf0f1;
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* WooCommerce products grid */
.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.woocommerce .product {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


/* Make dropdowns open on hover */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        /* Remove the gap */
    }

    .dropdown .dropdown-menu {
        display: none;
        transition: none;
        /* Remove Bootstrap's transition */
    }

    /* Keep the toggle button clickable */
    .dropdown-toggle {
        pointer-events: auto;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .post-title {
        font-size: 1.5rem;
    }
}

/*===========================================
=            WooCommerce Product Grid       =
===========================================*/

.product-card {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.product-image {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    line-height: 1.4;
    min-height: 3rem;
}

.product-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover {
    color: var(--primary-color, #007cba) !important;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color, #007cba);
}

.product-price del {
    color: #999;
    font-size: 0.9rem;
    font-weight: 400;
    margin-right: 0.5rem;
}

.product-price ins {
    text-decoration: none;
}

.sale-badge {
    z-index: 10;
}

/* Hide default WooCommerce styles */
.woocommerce ul.products {
    display: none !important;
}

/* Fix WooCommerce pagination */
.woocommerce-pagination {
    margin-top: 3rem;
}

.woocommerce-pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    border: none !important;
}

.woocommerce-pagination ul.page-numbers li {
    margin: 0 !important;
    border: none !important;
}

.woocommerce-pagination ul.page-numbers li .page-numbers {
    display: block;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    color: #212529;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.woocommerce-pagination ul.page-numbers li .page-numbers.current {
    background: var(--primary-color, #007cba);
    color: #fff;
    border-color: var(--primary-color, #007cba);
}

.woocommerce-pagination ul.page-numbers li .page-numbers:hover:not(.current) {
    background: #e9ecef;
}

/* Responsive */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 1rem;
    }
}


/*===========================================
=            Logo Styles                    =
===========================================*/

/* Logo Wrapper */
.logo-wrapper {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* Custom Logo */
.custom-logo {
    max-width: <?php echo get_theme_mod('logo_max_width', '200');
    ?>px;
    max-height: <?php echo get_theme_mod('logo_max_height', '60');
    ?>px;
    width: auto;
    height: auto;
    border-radius: <?php echo get_theme_mod('logo_border_radius', '0');
    ?>px;
    transition: all 0.3s ease;
}

/* Site Title */
.site-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.site-title a {
    color: var(--header-text-color, #333);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-title a:hover {
    color: var(--primary-color, #007cba);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .custom-logo {
        max-width: <?php echo get_theme_mod('logo_mobile_width', '150');
        ?>px !important;
    }

    .site-title {
        font-size: 1.2rem;
    }
}


/*===========================================
=            Search Results Styling         =
===========================================*/

.search-result-item {
    transition: all 0.3s ease;
}

.search-result-item .card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.search-result-item .card:hover {
    transform: translateY(-5px);
}

.search-result-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.search-result-image img {
    transition: transform 0.5s ease;
}

.search-result-item:hover .search-result-image img {
    transform: scale(1.1);
}

.post-type-badge .badge {
    padding: 0.35em 0.65em;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-meta {
    border-top: 1px solid #e9ecef;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

/* Hover shadow utility */
.hover-shadow-lg:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .search-results-grid {
        grid-template-columns: 1fr;
    }

    .search-result-image {
        height: 180px !important;
    }
}


/*===========================================
=            Live Search Results            =
===========================================*/

.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    z-index: 999999 !important;
    /* Increased z-index */
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.results-header {
    padding: 12px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-list {
    max-height: 400px;
    overflow-y: auto;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}

.result-item:hover {
    background: #f0f7ff;
    transform: translateX(5px);
}

.result-item.active {
    background: #e3f2fd;
}

.result-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-image .no-image {
    color: #adb5bd;
    font-size: 20px;
}

.result-info {
    flex: 1;
}

.result-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.result-category {
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-price {
    font-weight: 700;
    color: var(--primary-color, #007cba);
    font-size: 15px;
}

.result-price del {
    color: #999;
    font-size: 12px;
    font-weight: 400;
    margin-right: 5px;
}

.result-price ins {
    text-decoration: none;
}

.no-results {
    text-align: center;
    padding: 30px 15px;
}

.no-results i {
    font-size: 40px;
    color: #dee2e6;
    margin-bottom: 10px;
}

.results-footer {
    padding: 12px 15px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

/* Loading Spinner */
.search-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}


/* Header Search Styles */
#headerLiveSearchResults {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    margin-top: 5px;
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
}

#headerLiveSearchResults .list-group-item {
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 10px 15px;
}

#headerLiveSearchResults .list-group-item:first-child {
    border-top: none;
}

#headerLiveSearchResults .list-group-item:last-child {
    border-bottom: none;
}

#headerLiveSearchResults .list-group-item:hover {
    background-color: #f8f9fa;
}


/* Search bar placement styles */
.search-wrapper {
    transition: all 0.3s ease;
}

/* Left placement */
.search-placement-left .logo-wrapper {
    text-align: center;
}

/* After menu placement */
.search-placement-after-menu .menu-wrapper {
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .search-wrapper {
        max-width: 300px;
    }
}




/* Product Title Custom Styles */
.product-title {
    font-family: inherit;
    color: #333;
    margin-bottom: 20px;
}

.single-product-price {
    font-size: var(--price-font-size, 1.5rem);
}


/* Rating filter stars spacing */
.text-warning i,
.text-warning .fas,
.text-warning .far {
    margin-right: 2px;
    font-size: 14px;
}

.rating-filter+label .text-warning {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}



/*===========================================
=            Global Styles                  =
===========================================*/