/* WooCommerce My Account Page - WoodMart Inspired Styles */
:root {
    --primary-color: #0073aa; /* Brand accent color */
    --text-color: #333; /* Main text */
    --border-color: #e5e5e5; /* Borders */
    --bg-light: #f8f8f8; /* Light backgrounds */
    --hover-bg: #f0f0f0; /* Hover states */
    --transition: all 0.25s ease; /* Smooth animations */
}

.woocommerce-account .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.woocommerce-MyAccount-content {
    float: right;
    width: 75%;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.woocommerce-MyAccount-navigation {
    float: left;
    width: 25%;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.woocommerce-MyAccount-navigation li {
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

.woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 18px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    position: relative;
    transition: var(--transition);
}

.woocommerce-MyAccount-navigation a:before {
    content: '';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 12px;
    font-size: 16px;
    opacity: 0.7;
    transition: var(--transition);
}

/* Specific icons for WoodMart-style menu items (customize as needed) */
.woocommerce-MyAccount-navigation-link--dashboard a:before {
    content: '\f3fd'; /* Grid icon */
}

.woocommerce-MyAccount-navigation-link--orders a:before {
    content: '\f291'; /* Shopping bag */
}

.woocommerce-MyAccount-navigation-link--downloads a:before {
    content: '\f1c6'; /* Download */
}

.woocommerce-MyAccount-navigation-link--edit-address a:before {
    content: '\f3c5'; /* Map marker */
}

.woocommerce-MyAccount-navigation-link--payment-methods a:before {
    content: '\f09d'; /* Credit card */
}

.woocommerce-MyAccount-navigation-link--edit-account a:before {
    content: '\f007'; /* User */
}

.woocommerce-MyAccount-navigation-link--wishlist a:before {
    content: '\f004'; /* User */
}

.woocommerce-MyAccount-navigation-link--customer-logout a:before {
    content: '\f2f5'; /* Sign out */
}

/* Hover and Active States */
.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
    background: var(--hover-bg);
    color: var(--primary-color);
    padding-left: 28px;
}

.woocommerce-MyAccount-navigation a:hover:before,
.woocommerce-MyAccount-navigation li.is-active a:before {
    opacity: 1;
    color: var(--primary-color);
}

/* Content Area */
.woocommerce-MyAccount-content fieldset {
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    background: #fff;
}

.woocommerce-MyAccount-content legend {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    padding: 0 15px;
}

.woocommerce-MyAccount-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
    box-sizing: border-box;
}

.woocommerce-MyAccount-content input:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.woocommerce-MyAccount-content .button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.woocommerce-MyAccount-content .button:hover {
    background: #005a87;
    transform: translateY(-1px);
}

/* Orders Table (Dashboard) */
.woocommerce-MyAccount-orders th,
.woocommerce-MyAccount-orders td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.woocommerce-MyAccount-orders th {
    background: var(--bg-light);
    font-weight: 600;
}

.woocommerce-MyAccount-orders .button {
    margin-right: 10px;
    margin-bottom: 5px;
}

/* Addresses */
.woocommerce-MyAccount-addresses .woocommerce-Address {
    width: 48%;
    float: left;
    margin-right: 4%;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
}

.woocommerce-MyAccount-addresses .woocommerce-Address:nth-child(2n) {
    margin-right: 0;
    float: right;
}

.woocommerce-MyAccount-addresses .edit {
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: none;
}

.woocommerce-MyAccount-addresses .edit:hover {
    text-decoration: underline;
}

/* Notices and Messages */
.woocommerce-message,
.woocommerce-info {
    border-top: 3px solid var(--primary-color);
    background: #fff;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Mobile Responsiveness (stacks like WoodMart on small screens) */
@media (max-width: 768px) {
    .woocommerce-MyAccount-content {
        float: none;
        width: 100%;
        padding-left: 0;
        margin-top: 30px;
    }

    .woocommerce-MyAccount-navigation {
        float: none;
        width: 100%;
        margin-bottom: 30px;
    }

    .woocommerce-MyAccount-addresses .woocommerce-Address {
        width: 100%;
        margin-right: 0;
        float: none;
    }

    .woocommerce-account .woocommerce {
        padding: 20px 10px;
    }
}

/* Logout Link Styling */
.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #e74c3c; /* Red for logout */
}

.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: #fdf2f2;
    color: #c0392b;
}

/* WooCommerce Addresses Page - WoodMart Style */
.woocommerce-MyAccount-content .woocommerce-Addresses {
    overflow: hidden;
    margin: 0 -15px;
    display: flex;
}

.woocommerce-Addresses .u-columns {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.woocommerce-Addresses .u-column1,
.woocommerce-Addresses .u-column2,
.woocommerce-Addresses .woocommerce-Address {
    flex: 1 1 48%;
    max-width: 48%;
    margin: 0 15px 30px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.woocommerce-Addresses .woocommerce-Address:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: #e0e7ff;
}

/* Address Header */
.woocommerce-Address-title {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #fafbfc 0%, #f7f9fa 100%);
}

.woocommerce-Address-title h2 {
    margin: 0 0 12px 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce-Address-title .edit {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color, #0073aa) 0%, #005a87 100%);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.2);
    position: relative;
    overflow: hidden;
}

.woocommerce-Address-title .edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 115, 170, 0.3);
    background: linear-gradient(135deg, #005a87 0%, #004a70 100%);
    color: #fff !important;
}

.woocommerce-Address-title .edit:before {
    content: '\f044'; /* Font Awesome edit icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
    font-size: 12px;
}

/* Address Content */
.woocommerce-Address address {
    padding: 30px;
    margin: 0;
    font-style: normal;
    color: #6b7280;
    line-height: 1.6;
    font-size: 15px;
}

.woocommerce-Address address:empty::before {
    content: "Henüz bu tür bir adres bilgisi düzenlenmemiş.";
    color: #9ca3af;
    font-style: italic;
    display: block;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    margin: 15px;
}

/* When address HAS content (for future) */
.woocommerce-Address address p {
    margin: 0 0 12px 0;
}

.woocommerce-Address address p:last-child {
    margin-bottom: 0;
}

/* Empty state enhancement */
.woocommerce-Address address:empty::before {
    font-size: 16px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .woocommerce-Addresses .u-column1,
    .woocommerce-Addresses .u-column2,
    .woocommerce-Addresses .woocommerce-Address {
        flex: 1 1 100%;
        max-width: 100%;
        margin: 0 0 25px 0;
    }

    .woocommerce-Address-title {
        padding: 20px;
    }

    .woocommerce-Address address {
        padding: 25px;
    }
}

/* Additional polish for the page */
.woocommerce-MyAccount-content p:first-of-type {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    /*-webkit-text-fill-color: transparent;*/
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 35px 0;
    /*padding: 20px;*/
    /*border-left: 4px solid var(--primary-color, #0073aa);*/
    background-color: #f8fafc;
    border-radius: 0 8px 8px 0;
}

/* Loading state (if needed) */
.woocommerce-Address.loading {
    opacity: 0.7;
    pointer-events: none;
}

/*+++++ START NEW STYLES +++++*/
.woocommerce-account .lc__content{
    display: block;
    position: fixed;
    width: 93vw;
    right: 0;
    overflow-y: scroll;
    height: 100%;
}
.woocommerce-MyAccount-content .input-text{
    border: 1px solid #00000019 !important;
    padding: 15px 10px !important;
    font-size: 15px !important;
    color: var(--font-color-b) !important;
    font-family: OutfitRegular !important;
}
.woocommerce-MyAccount-content .select2-container .select2-dropdown, .woocommerce-MyAccount-content  .select2-container .select2-selection{
    border: 1px solid #00000019 !important;
}
.woocommerce-MyAccount-content .button{
    border: unset;
    background-color: var(--bg-color-a) !important;
    height: 50px;
    width: fit-content;
    font-family: OutfitRegular;
    font-size: 15px !important;
    color: #ffffff !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.woocommerce-MyAccount-content #account_display_name_description{
    font-size: 12px;
    color: var(--bg-color-b);
}
@media screen and (max-width: 978px) {
    .woocommerce-account .lc__main{
        height: 100%;
        width: 100%;
    }
    .woocommerce-account .lc__content{
        width: 100%;
    }
    .woocommerce-account #main-content{
        padding-top: 75px;
    }
    .woocommerce-account .woocommerce-MyAccount-content{
        padding: 20px 10px;
    }
    .woocommerce-MyAccount-content .woocommerce-Addresses{
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        width: 100%;
    }
    .woocommerce-MyAccount-content .form-row{
        width: 100% !important;
    }
}
.woocommerce-account .woocommerce-MyAccount-content a {
    font-size: 14px;
    font-weight: bold;
    color: #0273aa;
}
/*+++++ END NEW STYLES +++++*/