/* Custom CSS for Storefront theme */

/* Header layout customizations */
.header-flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-navigation-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Changed from flex-end to center */
    flex: 1;
}

/* Center the primary navigation menu */
.main-navigation ul.menu, 
.main-navigation ul.nav-menu {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.site-branding {
    margin-bottom: 0 !important;
    margin-right: 2rem;
}

/* Make header more compact */
.site-header {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

/* Hide storefront primary navigation wrapper */
.storefront-primary-navigation {
    display: none;
}

/* Hide category and edit links on product pages */
.single-product .entry-taxonomy,
.single-product .edit-link,
.single-product .posted_in,
.single-product .tagged_as {
    display: none !important;
}

/* Centered product title */
.centered-product-title {
    text-align: center;
    margin: 1rem auto 2rem;
    width: 100%;
}

.centered-product-title h1 {
    font-size: 2.2em;
    font-weight: 500;
}

/* Hide breadcrumbs */
.woocommerce-breadcrumb {
    display: none !important;
}

/* Adjust product layout to align form with gallery */
.single-product div.product .summary {
    margin-top: -1.5em;
}

/* Fix product form layout */
.single-product div.product form.cart {
    display: block;
    width: 100%;
    margin-bottom: 1.5em;
}

/* Style Add to Cart button */
.single_add_to_cart_button {
    display: inline-block !important;
    float: left;
    margin-right: 15px !important;
}

/* Style price next to Add to Cart button */
.product-price-container {
    display: inline-block;
    vertical-align: middle;
    font-size: 1.41575em;
    font-weight: 500;
    color: #333;
    line-height: 2.5;
}

/* Clear floats */
.cart::after {
    content: "";
    display: table;
    clear: both;
}

/* Ensure form fields have proper width */
.single-product div.product table.variations {
    width: 100%;
    margin-bottom: 1.5em;
}

.single-product div.product table.variations td, 
.single-product div.product table.variations th {
    display: list-item;
    list-style: none;
    padding: 0.5em 0;
    background-color: transparent;
}

.single-product div.product table.variations select {
    max-width: 100%;
    width: 100%;
}

/* Adjust product description spacing */
.single-product div.product .woocommerce-product-details__short-description {
    margin-top: -0.5em;
    margin-bottom: 1.5em;
}

/* Mobile menu adjustments */
@media screen and (max-width: 768px) {
    .header-flex-container {
        flex-wrap: wrap;
    }
    
    .site-branding {
        margin-bottom: 1rem !important;
        width: 100%;
        text-align: center;
    }
    
    .site-navigation-container {
        width: 100%;
        justify-content: center;
    }
    
    button.menu-toggle {
        margin: 0 auto;
    }
    
    /* Reset margin on mobile */
    .single-product div.product .summary {
        margin-top: 0;
    }
} 