h1.entry-title {
    text-align: center;
}

/* --- Account Page Layout --- */
.account-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.account-sidebar {
    background: white;
    border-radius: var(--radius, 12px);
    padding: 20px;
    height: fit-content;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.user-brief {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    margin-bottom: 20px;
}

.user-brief img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid var(--primary-light);
}

.user-brief h3 {
    font-size: 20px;
    font-weight: 500;
    color: #0c0d0e;
    text-transform: capitalize;
}

.user-brief p {
    font-size: 12px;
    margin-top: 5px;
    color: #7e7e7e;
}

.account-nav {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-gray, #6b7280);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary, #10b981);
}

/* Content Area */
.account-content {
    background: white;
    border-radius: var(--radius, 12px);
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark, #111827);
}

/* 1. Account Info */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-box {
    padding: 15px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
}

.info-box label {
    font-size: 12px;
    color: var(--text-gray, #6b7280);
    display: block;
    margin-bottom: 5px;
}

.info-box span {
    font-size: 14px;
    font-weight: 600;
}

.edit-profile-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--primary, #10b981);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
}

.edit-profile-btn:hover {
    opacity: 0.9;
}

/* --- WooCommerce Edit Account Custom Styles --- */
.woocommerce-MyAccount-content-custom {
    max-width: 800px;
}

.woocommerce-EditAccountForm {
    display: flex;
    flex-direction: row;
    row-gap: 20px;
    column-gap: 5px;
    flex-wrap: wrap;
}

/* Row Grid for First/Last Name */
.woocommerce-EditAccountForm .form-row-first,
.woocommerce-EditAccountForm .form-row-last {
    width: 48%;
    float: left;
}

.woocommerce-EditAccountForm .form-row-last {
    float: right;
}

.woocommerce-EditAccountForm .form-row-wide {
    clear: both;
    width: 100%;
}

/* Form Labels */
.woocommerce-EditAccountForm label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.woocommerce-EditAccountForm label .required {
    color: #e11d48;
    /* Soft red for required stars */
    text-decoration: none;
}

/* Input Styling */
.woocommerce-EditAccountForm input.input-text {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.woocommerce-EditAccountForm input.input-text:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 62, 39, 0.05);
}

/* Display Name Description Hint */
#account_display_name_description {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 6px;
    font-style: normal;
}

/* Password Section (Fieldset) */
.woocommerce-EditAccountForm fieldset {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    background: #f9fafb;
    width: 100%;
}

.woocommerce-EditAccountForm fieldset legend {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary);
    padding: 0 10px;
    background: transparent;
}

/* Password Input Wrapper */
.password-input {
    position: relative;
    display: block;
}

.show-password-input {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-gray);
}

/* Submit Button */
.woocommerce-EditAccountForm .button {
    background: var(--primary);
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
    width: fit-content;
}

.woocommerce-EditAccountForm .button:hover {
    background: #082f1d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 62, 39, 0.15);
}

/* Clearfix for floated rows */
.clear {
    clear: both;
}

/* Responsive adjustment */
@media (max-width: 600px) {

    .woocommerce-EditAccountForm .form-row-first,
    .woocommerce-EditAccountForm .form-row-last {
        width: 100%;
        float: none;
    }
}


/* --- Order Details Custom Styles --- */
.woocommerce-MyAccount-content-custom {
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

/* Order Header Info */
.woocommerce-MyAccount-content-custom>p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.woocommerce-MyAccount-content-custom mark {
    background: transparent;
    color: var(--primary);
    font-weight: 700;
}

.order-status {
    background: var(--primary-light) !important;
    /* Soft mint */
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Table Styling */
.woocommerce-order-details__title,
.woocommerce-column__title {
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: var(--primary);
}

.shop_table.order_details {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

.shop_table.order_details th {
    background: #f9fafb;
    padding: 15px 20px;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-gray);
    text-align: left;
}

.shop_table.order_details td {
    padding: 20px;
    border-top: 1px solid #eee;
    vertical-align: middle;
}

/* Product Info inside Table */
.product-name a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.product-name a:hover {
    color: var(--accent);
}

.product-quantity {
    color: var(--text-gray);
    margin-left: 5px;
}

.wc-item-meta {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--text-gray);
}

.wc-item-meta li {
    display: flex;
    gap: 5px;
}

.wc-item-meta p {
    margin: 0;
}

/* Table Footer (Totals) */
.shop_table tfoot th {
    background: transparent;
    text-align: right;
    border-top: 1px solid #eee;
    font-weight: 500;
    color: var(--text-gray);
}

.shop_table tfoot td {
    text-align: right;
    font-weight: 600;
}

.shop_table tfoot tr:last-child th,
.shop_table tfoot tr:last-child td {
    font-size: 18px;
    color: var(--primary);
    font-weight: 800;
}

/* Address Section */
.addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.woocommerce-column {
    background: #ffffff;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 12px;
}

address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.8;
    color: #4b5563;
}

.woocommerce-customer-details--phone,
.woocommerce-customer-details--email {
    margin-top: 10px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .addresses {
        grid-template-columns: 1fr;
    }

    .shop_table.order_details th,
    .shop_table.order_details td {
        padding: 12px;
    }
}

/* --- WooCommerce Orders Table Styling --- */
.account-orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    /* Keeps corners rounded */
}

/* Header Styling */
.account-orders-table thead th {
    background-color: #f9fafb;
    padding: 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-gray);
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

/* Row Styling */
.account-orders-table tbody tr {
    transition: background 0.2s ease;
}

.account-orders-table tbody tr:hover {
    background-color: #fcfdfd;
}

.account-orders-table td,
.account-orders-table th.woocommerce-orders-table__cell-order-number {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: var(--text-dark);
}

/* Remove border from last row */
.account-orders-table tbody tr:last-child td {
    border-bottom: none;
}

/* Order Number Link */
.woocommerce-orders-table__cell-order-number a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.woocommerce-orders-table__cell-order-number a:hover {
    text-decoration: underline;
}

/* Status Badge - Processing */
.woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status {
    color: #854d0e;
    /* Deep amber/gold */
    font-weight: 600;
}

.woocommerce-orders-table__cell-order-status::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: #eab308;
    /* Processing dot */
}

/* Total Amount Styling */
.woocommerce-orders-table__cell-order-total .amount {
    font-weight: 700;
    color: var(--primary);
}

/* Actions "View" Button */
.account-orders-table .view {
    display: inline-block;
    background-color: var(--primary-light);
    /* Same mint as your Add button */
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.account-orders-table .view:hover {
    background-color: var(--primary);
    color: white;
}

/* Responsive Table (Mobile Layout) */
@media screen and (max-width: 768px) {

    .account-orders-table,
    .account-orders-table thead,
    .account-orders-table tbody,
    .account-orders-table th,
    .account-orders-table td,
    .account-orders-table tr {
        display: block;
    }

    .account-orders-table thead {
        display: none;
        /* Hide headers on mobile */
    }

    .account-orders-table tr {
        margin-bottom: 15px;
        border: 1px solid #f3f4f6;
        border-radius: 12px;
        padding: 10px;
    }

    .account-orders-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        border-bottom: 1px dashed #f3f4f6;
        padding: 12px 10px;
    }

    .account-orders-table td::before {
        content: attr(data-title);
        /* Use the data-title for labels */
        font-weight: 700;
        float: left;
        text-transform: uppercase;
        font-size: 12px;
        color: var(--text-gray);
    }

    .account-orders-table td:last-child {
        border-bottom: none;
    }

    .account-orders-table .view {
        width: 100%;
        text-align: center;
    }
}

.log-out-btn {
    margin-top: 20px;
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;

}

.log-out-btn:hover {
    color: #fff;
    background-color: #c62828;
}

@media (max-width: 768px) {
    .account-container {
        grid-template-columns: 1fr;
    }

    .order-card {
        flex-direction: column;
        text-align: center;
    }

    .order-right-info {
        text-align: center;
        align-items: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}