/**
 * Custom Header Styles
 */
.site-header {
    padding: 1rem 0 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: static;
    top: 0;
    z-index: 999;
}

.header-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-logo {
    max-height: 90px;
    width: auto;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.site-title a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-title a:hover {
    opacity: 0.8;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    justify-content: end;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

#primary-menu,
.custom-menu-wrapper ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

#primary-menu li,
.custom-menu-wrapper li {
    margin: 0;
}

#primary-menu a,
.custom-menu-wrapper a {
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

#primary-menu a:hover,
.custom-menu-wrapper a:hover {
    opacity: 0.7;
}

/* Main Content */
.main-content-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.woocommerce-products-header {
    padding: 1rem 0;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.woocommerce-products-header__title {
    margin: 0 0 1rem;
    font-size: 2rem;
}

/* Footer */
.site-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-info p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 0.5rem 0;
        position: sticky;
        top: 0;
    }

    .header-wrapper {
        padding: 0 15px;
    }

    .custom-logo {
        max-height: 50px;
    }

    .site-title {
        font-size: 1.1rem;
    }

    .header-wrapper {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        position: relative;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 5px;
        transition: .3s;
    }

    .menu-toggle:hover {
        transition: .3s;
        transform: scale(1.03);
    }

    .menu-toggle::before {
        content: '☰';
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: auto;
    }

    .toggled .menu-toggle::before {
        content: '×';
        font-size: 32px;
    }


    .main-navigation {
        width: fit-content;
        order: 3;
    }

    #primary-menu,
    .custom-menu-wrapper ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: 1rem;
        padding: 0;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        opacity: 1;
        max-height: 0;
        transition: visibility 0s 0.3s, opacity 0.3s ease, max-height 0.3s ease;
        display: flex;
    }

    #primary-menu.toggled,
    .custom-menu-wrapper ul.toggled {
        visibility: visible;
        opacity: 1;
        max-height: 500px;
        transition: visibility 0s 0s, opacity 0.3s ease, max-height 0.3s ease;
        padding: 0.5rem 0;
    }

    #primary-menu a,
    .custom-menu-wrapper a {
        padding: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        transition: background-color 0.2s ease;
    }

    #primary-menu a:hover,
    .custom-menu-wrapper a:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    #primary-menu li:last-child a,
    .custom-menu-wrapper li:last-child a {
        border-bottom: none;
    }

    .main-content-wrapper {
        padding: 1rem;
    }

    .woocommerce-products-header__title {
        font-size: 1.5rem;
    }
}

/* Star Rating Styles */
.star-rating {
    overflow: hidden;
    position: relative;
    height: 1em;
    line-height: 1;
    font-size: 1em;
    width: 5.4em;
    font-family: star;
    font-weight: 400;
    margin: 0.5em 0;
}

.star-rating::before {
    content: "\53\53\53\53\53";
    opacity: 0.25;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    letter-spacing: 0.1em;
}

.star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.star-rating span::before {
    content: "\53\53\53\53\53";
    top: 0;
    position: absolute;
    left: 0;
    letter-spacing: 0.1em;
    color: #ffa500;
}

.woocommerce ul.products li.product .star-rating {
    margin: 0.5em auto;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 15px;
}

.woocommerce #content div.product div.images,
.woocommerce div.product div.images,
.woocommerce-page #content div.product div.images,
.woocommerce-page div.product div.images {
    width: 100% !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper .zoomImg {
    background-color: #ffffff00 !important;
    opacity: 0;
}