/* ==========================
   WooCommerce Global Layout
   ========================== */

/* Base layout: flex sidebar + content */
.woocommerce {
    display: block;
    gap: 40px;
    align-items: flex-start;
    overflow-x: hidden; /* prevent accidental horizontal scroll */
}
.woocommerce-account main .woocommerce {
    max-width: 100% !important;
    margin-top:10px;
}
.woocommerce-MyAccount-navigation {
    width: 250px;
    flex-shrink: 0; /* sidebar should stay fixed on desktop */
}

.woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0; /* critical to allow shrinking inside flex */
}

/* Navigation Styling */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li{
    padding: 0;
}

.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 12px 16px;
    background: #f5f5f5;
    text-decoration: none;
    font-weight: 500;
    color: #333;
    transition: 0.2s ease;
}

.woocommerce-MyAccount-navigation .is-active a {
    background: #0675c4;
    color: #fff;
}

.woocommerce-MyAccount-navigation a:hover {
    background: #101427;
    color: #fff;
}

/* Address Columns */
.woocommerce-Addresses {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    min-width: 0; /* allow shrinking inside flex */
}

.woocommerce-Address {
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.woocommerce-Address-title a.edit {
    font-size: 0.9em;
    text-decoration: none;
    color: #0675c4;
}

/* ==========================
   WooCommerce Tables (Cart / Orders)
   ========================== */
.woocommerce table {
    display: block;      /* make tables scrollable on small screens */
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
}

/* ==========================
   FSE Block Wrapper Fixes
   ========================== */
/* Fix alignfull / alignwide on WooCommerce pages */
.woocommerce-page .wp-block-group.alignfull,
.woocommerce-page .wp-block-group.alignwide,
.woocommerce-page .wp-site-blocks {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}
.woocommerce-page .alignwide {
    max-width: 1200px !important;
}
.woocommerce-page .has-global-padding > .alignfull {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
/* ==========================
   Responsive / Mobile Styles
   ========================== */
@media (max-width: 768px) {

    /* Stack navigation + content */
    .woocommerce {
        flex-direction: column;
        gap: 20px;
    }

    .woocommerce-MyAccount-navigation {
        width: 100%;
        flex-shrink: 1;
    }

    /* Navigation: horizontal scroll on small screens */
    .woocommerce-MyAccount-navigation ul {
        display: flex;
        overflow-x: auto;
        gap: 10px;
    }

    .woocommerce-MyAccount-navigation li {
        flex: 0 0 auto;
        margin-bottom: 0;
    }

    .woocommerce-MyAccount-navigation a {
        white-space: nowrap;
    }

    /* Stack address columns */
    .woocommerce-Addresses {
        flex-direction: column;
        gap: 15px;
    }

    .woocommerce-Address {
        width: 100%;
        min-width: 0;
    }
}

.form-login .woocommerce {
    display: block !important;

}

.form-login .woocommerce form.login {
    border: none;
    margin:0;
}