/*
Theme Name: Twenty Twenty-Five Child
Template: twentytwentyfive
Version: 1.0
Description: Child theme of Twenty Twenty-Five with custom WooCommerce header and footer.
*/

/* ====================================================
   RESET TWENTYTWENTYFIVE HEADER & FOOTER
==================================================== */
.wp-block-template-part[data-slug="header"],
.wp-block-template-part[data-slug="footer"],
header.wp-block-template-part,
footer.wp-block-template-part {
    display: none !important;
}

/* ====================================================
   CUSTOM HEADER
==================================================== */
.custom-header {
    background-color: #19366b;
    position: relative;
    z-index: 9999;
}

/* ===== DESKTOP TOP BAR ===== */
.desktop-top {
    display: flex;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
}

/* ====================================
   header-logo
====================================*/
.header-logo {
    width: 20%;
}
.header-logo img {
    max-height: 90px;
    width: auto;
}

/* ====================================
   header-search
====================================*/
.custom-header-search {
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.custom-header-search form {
    display: flex;
    align-items: center;
    background: #1e3f7a;
    border-radius: 50px;
    overflow: hidden;
    width: 100%;
    max-width: 700px;
}
.custom-header-search input::placeholder {
    color: #ddd;
}
.custom-header-search select {
    border: none;
    padding: 10px 20px;
    background: #294e8a;
    color: #fff;
    outline: none;
    cursor: pointer;
}
.custom-header-search select option {
    color: #000;
    background: #fff;
}
.custom-header-search input {
    flex: 1;
    padding: 10px;
    color: #fff !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
}
.custom-header-search button {
    border: none;
    background: none;
    color: #fff;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-header-search button i {
    font-size: 18px;
}

/* ====================================
   header-icons
====================================*/
.header-icons {
    width: 10%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: 10px;
    gap: 25px;
}
.header-icon-item {
    position: relative;
}
.icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
}
.icon-link i {
    font-size: 22px;
}
.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 15px;
    display: none;
    z-index: 99999;
}
.account-wrapper:hover .account-dropdown {
    display: block;
}
.account-dropdown p {
    font-size: 13px;
    margin-bottom: 10px;
}
.account-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.account-dropdown ul li {
    margin-bottom: 8px;
}
.account-dropdown ul li a {
    text-decoration: none;
    color: #333;
    font-size: 13px;
}
.account-dropdown ul li a:hover {
    color: #1e3f7a;
}

/* ===========================================================================
   MENU
============================================================================*/
.main-menu {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 10px 20px;
}
.main-menu > li {
    position: relative;
    margin: 0 15px;
}
.main-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 0;
    transition: color 0.3s ease;
}
.main-menu > li > a:hover {
    border-bottom: 2px solid #fff;
}
.main-menu > li.menu-item-has-children > a::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    margin-left: 6px;
    transition: transform 0.3s ease;
}
.main-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}
.main-menu li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #19366b;
    min-width: 220px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: none;
    z-index: 9999;
}
.main-menu li:hover > .sub-menu {
    display: block;
}
.main-menu .sub-menu li a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}
.main-menu .sub-menu li a:hover {
    background: #f5f5f5;
    color: #1e3f7a;
}

/* ====================================================
   MOBILE HEADER
==================================================== */
@media (max-width: 768px) {
    .desktop-header {
        display: none;
    }
}

.mobile-header {
    display: none;
}
.mobile-sidebar,
.sidebar-overlay,
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .mobile-header {
        display: block;
        background-color: #19366b;
        padding-bottom: 10px;
    }
    .mobile-top {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    .mobile-top::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 1px;
        background: rgba(255,255,255,0.15);
        transform: scaleY(0.4);
        transform-origin: bottom;
    }
    .mobile-top .mobile-menu {
        width: 10%;
        display: block;
        align-items: center;
        justify-content: flex-end;
    }
    .menu-icon {
        font-size: 22px;
        color: #fff;
    }

    /* ================= SIDEBAR ================= */
    .mobile-sidebar {
        display: block;
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100%;
        background: #19366b;
        z-index: 9999;
        transition: 0.3s ease;
        padding: 20px;
        overflow-y: auto;
        box-sizing: border-box;
    }
    .mobile-sidebar.active {
        left: 0;
    }
    .sidebar-close {
        text-align: right;
        font-size: 22px;
        color: #fff;
        cursor: pointer;
        margin-bottom: 20px;
    }
    .mobile-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .mobile-menu-list li {
        position: relative;
        list-style: none;
        margin-bottom: 15px;
    }
    .mobile-menu-list li::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 1px;
        background: rgba(255,255,255,0.15);
        transform: scaleY(0.4);
        transform-origin: bottom;
    }
    .mobile-menu-list li a {
        color: #fff;
        text-decoration: none;
        font-size: 15px;
    }
    .mobile-sidebar .current-menu-item > a,
    .mobile-sidebar .current-menu-ancestor > a {
        color: #ffcc00;
        font-weight: bold;
    }

    /* ================= OVERLAY ================= */
    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        display: none;
        z-index: 9998;
    }
    .sidebar-overlay.active {
        display: block;
    }

    /* ================= ACCORDION ================= */
    .mobile-sidebar .sub-menu {
        display: none;
        padding-left: 15px;
    }
    .mobile-sidebar li.open > .sub-menu {
        display: block;
    }
    .mobile-sidebar li.menu-item-has-children > a::after {
        content: "\f105";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 18px;
        margin-left: 10px;
        float: right;
        transition: transform 0.3s ease;
    }
    .mobile-sidebar li.open > a::after {
        transform: rotate(90deg);
    }
    .mobile-menu {
        cursor: pointer;
        font-size: 20px;
        color: #fff;
    }

    /* ===== MOBILE LOGO ===== */
    .mobile-top .mobile-logo {
        width: 60%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-logo img {
        max-height: 90px;
        width: auto;
    }

    /* ===== MOBILE ICONS ===== */
    .mobile-top .mobile-icons {
        width: 20%;
        display: flex;
        gap: 25px;
        align-items: center;
        justify-content: center;
    }

    /* ===== MOBILE SEARCH ===== */
    .mobile-bottom {
        width: 100%;
        padding: 10px 0 0 0;
    }
    .mobile-search {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .mobile-search .mobile-search-form {
        width: 80%;
        display: flex;
        background: #1e3f7a;
        align-items: center;
        border-radius: 40px;
        overflow: hidden;
    }
    .mobile-search-form .mobile-search-category {
        width: 25%;
        border: none;
        background: #294e8a;
        color: #fff;
        outline: none;
        padding: 8px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-search-category option {
        color: #000;
        background: #fff;
    }
    .mobile-search-category:focus,
    .mobile-search-category:active {
        background: #294e8a;
        color: #fff;
        outline: none;
        box-shadow: none;
    }
    .mobile-search-form input {
        width: 55%;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        padding: 8px;
        color: #fff !important;
        -webkit-appearance: none;
    }
    .mobile-search-form button {
        width: 20%;
        border: none;
        background-color: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-search-form button i {
        font-size: 16px;
    }
}

/* ====================================================
   FOOTER
==================================================== */
.custom-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding-top: 50px;
    font-family: 'Poppins', sans-serif;
}
.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 20px;
}
.footer-col h3,
.footer-col h4 {
    color: #fff;
    margin-bottom: 15px;
}
.footer-col p {
    font-size: 14px;
    line-height: 1.6;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
}
.footer-col ul li a:hover {
    color: #38bdf8;
    padding-left: 5px;
}
.footer-menu li {
    margin-bottom: 8px;
}
.footer-newsletter {
    display: flex;
    gap: 10px;
}
.footer-newsletter input {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: none;
    outline: none;
}
.footer-newsletter button {
    background: #38bdf8;
    color: #000;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}
.footer-newsletter button:hover {
    background: #0ea5e9;
}
.footer-bottom {
    text-align: center;
    padding: 15px;
    border-top: 1px solid #1e293b;
    margin-top: 40px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}
@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}
