/* ─── Pagina Contul Meu – Grand Plaza ───────────────────────────────────────── */

.gp-account-page {
    background: #faf7f3;
    min-height: calc(100vh - 120px);
}

.gp-account {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* ─── Layout: sidebar + content ──────────────────────────────────────────────── */
.gp-account__layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

/* ─── Sidebar ─────────────────────────────────────────────────────────────────── */
.gp-account__sidebar {
    background: #fff;
    border: 1px solid #e0d4c0;
    border-radius: 12px;
    position: sticky;
    top: 24px;
}

/* ─── User block ─────────────────────────────────────────────────────────────── */
.gp-account__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    border-bottom: 1px solid #e0d4c0;
    background: #fdf9f4;
    border-radius: 12px 12px 0 0;
}

.gp-account__avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #c8a97e;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.gp-account__user-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gp-account__user-name {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-account__user-email {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Navigație sidebar ──────────────────────────────────────────────────────── */

/* Resetare stiluri implicite WooCommerce (float + width: 30%) */
.woocommerce-account .woocommerce-MyAccount-navigation,
.gp-account__layout .woocommerce-MyAccount-navigation {
    float: none !important;
    width: auto !important;
}
.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: auto !important;
}

.gp-account__nav ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.gp-account__nav li {
    margin: 0;
}

.gp-account__nav li {
    padding: 2px 8px;
}

.gp-account__nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    border-radius: 7px;
    transition: background 0.15s, color 0.15s;
}

.gp-account__nav li a svg {
    flex-shrink: 0;
    opacity: 0.55;
    transition: opacity 0.15s;
}

.gp-account__nav li a:hover {
    background: rgba(200, 169, 126, 0.1);
    color: #1a1a1a;
}

.gp-account__nav li a:hover svg {
    opacity: 0.9;
}

.gp-account__nav li.is-active a,
.gp-account__nav li.woocommerce-MyAccount-navigation-link--active a {
    background: #c8a97e;
    color: #fff;
    font-weight: 700;
}

.gp-account__nav li.is-active a svg,
.gp-account__nav li.woocommerce-MyAccount-navigation-link--active a svg {
    opacity: 1;
    color: #fff;
}

/* Logout — roșu subtil */
.gp-account__nav li.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #c0392b;
    border-top: 1px solid #f0e8dc;
    margin-top: 4px;
}

.gp-account__nav li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: #fff5f5;
}

/* ─── Content ─────────────────────────────────────────────────────────────────── */
.gp-account__content {
    background: #fff;
    border: 1px solid #e0d4c0;
    border-radius: 12px;
    padding: 32px 28px;
    min-height: 300px;
}

.gp-account__content h2,
.gp-account__content h3 {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 20px;
    letter-spacing: -0.2px;
}

.gp-account__content p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px;
}

.gp-account__content p a {
    color: #c8a97e;
    text-decoration: none;
    font-weight: 600;
}

.gp-account__content p a:hover {
    color: #a8895e;
    text-decoration: underline;
}

/* ─── Tabel comenzi ───────────────────────────────────────────────────────────── */
.gp-account__content .woocommerce-orders-table,
.gp-account__content .woocommerce-MyAccount-downloads,
.gp-account__content .shop_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: #333;
}

.gp-account__content .shop_table thead tr {
    border-bottom: 2px solid #e0d4c0;
}

.gp-account__content .shop_table thead th {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #999;
    text-align: left;
}

.gp-account__content .shop_table tbody tr {
    border-bottom: 1px solid #f0ebe2;
    transition: background 0.15s;
}

.gp-account__content .shop_table tbody tr:hover {
    background: #fdf9f4;
}

.gp-account__content .shop_table tbody td {
    padding: 12px;
    vertical-align: middle;
    font-size: 13px;
}

.gp-account__content .shop_table .order-status mark {
    background: none;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.gp-account__content .shop_table .order-status mark.on-hold,
.gp-account__content .shop_table .order-status mark.processing {
    background: #fff3cd;
    color: #856404;
}

.gp-account__content .shop_table .order-status mark.completed {
    background: #d1edda;
    color: #155724;
}

.gp-account__content .shop_table .order-status mark.cancelled,
.gp-account__content .shop_table .order-status mark.failed {
    background: #fde8e8;
    color: #991b1b;
}

/* ─── Butoane ─────────────────────────────────────────────────────────────────── */
.gp-account__content .button,
.gp-account__content button[type="submit"],
.gp-account__content input[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #c8a97e;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s;
}

.gp-account__content .button:hover,
.gp-account__content button[type="submit"]:hover,
.gp-account__content input[type="submit"]:hover {
    background: #a8895e;
}

.gp-account__content .button.alt {
    background: #1a1a1a;
}

.gp-account__content .button.alt:hover {
    background: #333;
}

/* ─── Formulare ───────────────────────────────────────────────────────────────── */
.gp-account__content .woocommerce-form .form-row,
.gp-account__content .woocommerce-EditAccountForm .form-row,
.gp-account__content .woocommerce-address-fields .form-row,
.gp-account__content .woocommerce-form-login .form-row,
.gp-account__content .woocommerce-form-register .form-row {
    margin: 0 0 16px;
}

.gp-account__content label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin: 0 0 6px;
}

.gp-account__content input[type="text"],
.gp-account__content input[type="email"],
.gp-account__content input[type="password"],
.gp-account__content input[type="tel"],
.gp-account__content select,
.gp-account__content textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0d4c0;
    border-radius: 6px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fefcf9;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.gp-account__content input[type="text"]:focus,
.gp-account__content input[type="email"]:focus,
.gp-account__content input[type="password"]:focus,
.gp-account__content input[type="tel"]:focus,
.gp-account__content select:focus,
.gp-account__content textarea:focus {
    outline: none;
    border-color: #c8a97e;
    box-shadow: 0 0 0 3px rgba(200, 169, 126, 0.15);
}

.gp-account__content .woocommerce-address-fields .form-row-first,
.gp-account__content .woocommerce-address-fields .form-row-last {
    display: inline-block;
    width: calc(50% - 8px);
}

.gp-account__content .woocommerce-address-fields .form-row-first {
    margin-right: 12px;
}

/* ─── Login form (utilizator nelogat) ────────────────────────────────────────── */
.gp-account__content .woocommerce-form-login,
.gp-account__content .woocommerce-form-register {
    max-width: 420px;
}

.gp-account__content .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    margin: 0 0 16px;
}

.gp-account__content .lost_password {
    font-size: 12px;
    margin-top: 8px;
}

.gp-account__content .lost_password a {
    color: #c8a97e;
    text-decoration: none;
}

.gp-account__content .lost_password a:hover {
    text-decoration: underline;
}

.gp-account__content .woocommerce-form-row--wide {
    display: block;
}

/* ─── Titlu secțiune adrese ──────────────────────────────────────────────────── */
.gp-account__content .woocommerce-Address {
    border: 1px solid #ede5d7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.gp-account__content .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.gp-account__content .woocommerce-Address-title h3 {
    margin: 0;
    font-size: 15px;
}

.gp-account__content .woocommerce-Address-title a {
    font-size: 12px;
    color: #c8a97e;
    font-weight: 600;
    text-decoration: none;
}

.gp-account__content .woocommerce-Address-title a:hover {
    text-decoration: underline;
}

/* Paginație comenzi */
.gp-account__content .woocommerce-pagination {
    margin-top: 20px;
    text-align: center;
}

/* Notificări WooCommerce */
.gp-account__content .woocommerce-message,
.gp-account__content .woocommerce-notice {
    background: #f0f7ec;
    border-left: 4px solid #4caf50;
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: #2e7d32;
    margin-bottom: 20px;
}

.gp-account__content .woocommerce-error {
    background: #fde8e8;
    border-left: 4px solid #e53e3e;
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: #991b1b;
    margin-bottom: 20px;
    list-style: none;
}

/* ─── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .gp-account__layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gp-account__sidebar {
        position: static;
    }

    .gp-account__content {
        padding: 20px 16px;
    }

    .gp-account__content .woocommerce-address-fields .form-row-first,
    .gp-account__content .woocommerce-address-fields .form-row-last {
        display: block;
        width: 100%;
        margin-right: 0;
    }

    .gp-account__content .shop_table thead {
        display: none;
    }

    .gp-account__content .shop_table,
    .gp-account__content .shop_table tbody,
    .gp-account__content .shop_table tr,
    .gp-account__content .shop_table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .gp-account__content .shop_table tr {
        border: 1px solid #e0d4c0;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 12px;
    }

    .gp-account__content .shop_table td {
        padding: 4px 0;
        border: none;
        font-size: 13px;
    }

    .gp-account__content .shop_table td::before {
        content: attr(data-title) ': ';
        font-weight: 700;
        font-size: 11px;
        text-transform: uppercase;
        color: #999;
    }
}
