/* =========================================================
   EVELORA HOUSE
   CUSTOMER ACCOUNT PAGES
========================================================= */

.account-page {

    min-height: 75vh;

    padding: 70px 20px 90px;

    background: #f7f6f3;

}


.account-card {

    width: 100%;

    max-width: 520px;

    margin: 0 auto;

    padding: 50px;

    background: #ffffff;

    box-shadow:
        0 10px 35px
        rgba(0, 0, 0, 0.06);

}


.account-label {

    margin: 0 0 12px;

    text-align: center;

    color: #b08a4a;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 3px;

}


.account-card h1 {

    margin: 0;

    text-align: center;

    color: #111111;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 40px;

    font-weight: 400;

}


.account-description {

    max-width: 400px;

    margin: 15px auto 35px;

    text-align: center;

    color: #777777;

    font-size: 14px;

    line-height: 1.6;

}


/* =========================================================
   FORM
========================================================= */

.form-group {

    margin-bottom: 20px;

}


.form-group label {

    display: block;

    margin-bottom: 8px;

    color: #111111;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: .5px;

}


.form-group input {

    width: 100%;

    height: 48px;

    padding: 0 14px;

    border: 1px solid #d5d5d5;

    background: #ffffff;

    color: #111111;

    font-size: 14px;

    outline: none;

    transition:
        border-color .2s ease;

}


.form-group input:focus {

    border-color: #111111;

}


.form-group small {

    display: block;

    margin-top: 7px;

    color: #888888;

    font-size: 11px;

}


/* =========================================================
   BUTTON
========================================================= */

.account-button {

    width: 100%;

    height: 50px;

    margin-top: 8px;

    border: 1px solid #111111;

    background: #111111;

    color: #ffffff;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 1.5px;

    cursor: pointer;

    transition:
        background .2s ease,
        opacity .2s ease;

}


.account-button:hover {

    background: #333333;

}


.account-button:disabled {

    opacity: .6;

    cursor: wait;

}


/* =========================================================
   MESSAGE
========================================================= */

.account-message {

    margin-bottom: 25px;

    padding: 14px 15px;

    font-size: 13px;

    line-height: 1.5;

}


.account-message.error {

    background: #fff0f0;

    border: 1px solid #f0caca;

    color: #a00000;

}


.account-message.success {

    background: #f0f8f2;

    border: 1px solid #c8e2cf;

    color: #206b36;

}


/* =========================================================
   FOOTER
========================================================= */

.account-footer {

    margin-top: 28px;

    padding-top: 25px;

    border-top:
        1px solid #eeeeee;

    text-align: center;

    color: #777777;

    font-size: 13px;

}


.account-footer a {

    margin-left: 5px;

    color: #111111;

    font-weight: 600;

    text-decoration: underline;

}


/* =========================================================
   MOBILE
========================================================= */

@media (
    max-width: 600px
) {

    .account-page {

        padding:
            35px 15px 60px;

    }


    .account-card {

        padding:
            35px 22px;

    }


    .account-card h1 {

        font-size: 32px;

    }

}

/* =========================================================
   CUSTOMER DASHBOARD
========================================================= */

.account-dashboard {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.account-dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}

.account-dashboard-header h1 {
    margin: 0;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 42px;
    font-weight: 400;
}

.account-dashboard-header .account-description {
    margin: 10px 0 0;
    text-align: left;
}

.logout-button {
    min-width: 120px;
    height: 44px;
    padding: 0 20px;
    border: 1px solid #111;
    background: transparent;
    color: #111;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
}

.logout-button:hover {
    background: #111;
    color: #fff;
}

.dashboard-section {
    margin-bottom: 25px;
}

.dashboard-section-header {
    margin-bottom: 15px;
}

.dashboard-label {
    margin: 0 0 7px;
    color: #b08a4a;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.dashboard-section-header h2 {
    margin: 0;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 28px;
    font-weight: 400;
}

.profile-card,
.order-card {
    background: #fff;
    padding: 30px;
}

.profile-card {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-label {
    display: block;
    color: #888;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.profile-item strong {
    color: #111;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.orders-container {
    display: grid;
    gap: 15px;
}

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.order-card-header h3 {
    margin: 7px 0 0;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 20px;
    font-weight: 400;
}

.order-status {
    padding: 8px 12px;
    border: 1px solid #ddd;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.order-status.status-delivered {
    border-color: #b9d8c1;
}

.order-status.status-shipped {
    border-color: #b8cde5;
}

.order-status.status-confirmed {
    border-color: #d9c69c;
}

.order-card-body {
    display: grid;
    grid-template-columns:
        2fr 1fr 1fr;
    gap: 25px;
    padding: 22px 0;
}

.order-card-info p {
    margin: 8px 0 0;
    color: #555;
    font-size: 13px;
    line-height: 1.6;
}

.order-card-info strong {
    display: block;
    margin-top: 8px;
    font-size: 15px;
}

.order-card-actions {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.order-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 25px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.order-action-button:hover {
    background: #333;
}

.profile-loading,
.account-error,
.empty-orders {
    padding: 30px;
    background: #fff;
    color: #777;
    text-align: center;
}

.empty-orders h3 {
    margin: 0 0 10px;
    color: #111;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 24px;
    font-weight: 400;
}

.empty-orders p {
    margin: 0 0 25px;
    font-size: 14px;
}

.empty-orders .account-button {
    display: inline-flex;
    width: auto;
    padding: 0 25px;
    text-decoration: none;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .account-dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-dashboard-header h1 {
        font-size: 34px;
    }

    .logout-button {
        width: 100%;
    }

    .profile-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .profile-card,
    .order-card {
        padding: 22px;
    }

    .order-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-card-body {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .order-action-button {
        width: 100%;
    }

}

/* =========================================================
   ORDER DETAILS
========================================================= */

.order-detail-products {
    background: #fff;
    padding: 30px;
}

.order-detail-product {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.order-detail-product-image {
    width: 90px;
    height: 110px;
    overflow: hidden;
    background: #f5f5f5;
}

.order-detail-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.order-detail-product-info h3 {
    margin: 5px 0 8px;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 18px;
    font-weight: 400;
}

.order-detail-product-info p:last-child {
    margin: 0;
    color: #777;
    font-size: 12px;
}

.order-detail-product > strong {
    font-size: 14px;
    white-space: nowrap;
}

.order-detail-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 22px;
    border-top: 1px solid #111;
    font-size: 16px;
}

.order-detail-total strong {
    font-size: 20px;
}

.order-detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.order-detail-actions .secondary {
    background: #fff;
    color: #111;
    border: 1px solid #111;
}

.order-detail-actions .secondary:hover {
    background: #111;
    color: #fff;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .order-detail-products {
        padding: 20px;
    }

    .order-detail-product {
        grid-template-columns:
            70px 1fr;
        gap: 14px;
    }

    .order-detail-product-image {
        width: 70px;
        height: 85px;
    }

    .order-detail-product > strong {
        grid-column: 2;
    }

    .order-detail-actions {
        flex-direction: column;
    }

    .order-detail-actions
    .order-action-button {
        width: 100%;
    }

}



/* =========================================================
   WISHLIST
========================================================= */

.wishlist-list {
    display: grid;
    gap: 20px;
    margin-top: 25px;
}

.empty-wishlist {
    padding: 45px 25px;
    border: 1px dashed #cccccc;
    background: #ffffff;
    text-align: center;
}

.empty-wishlist-icon {
    margin-bottom: 15px;
    font-size: 42px;
    line-height: 1;
}

.empty-wishlist h3 {
    margin: 0 0 10px;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 24px;
    font-weight: 400;
}

.empty-wishlist p {
    margin: 0 auto 25px;
    max-width: 420px;
    color: #777777;
    font-size: 14px;
    line-height: 1.7;
}

.wishlist-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    background: #ffffff;
}

.wishlist-card-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.wishlist-card-image {
    width: 80px;
    height: 95px;
    flex-shrink: 0;
    background: #f7f6f3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-placeholder {
    color: #777777;
    font-size: 28px;
}

.wishlist-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
}

.wishlist-card p {
    margin: 0;
    color: #777777;
    font-size: 13px;
}

.wishlist-remove-button {
    padding: 9px 14px;
    border: 1px solid #111111;
    background: #ffffff;
    color: #111111;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

.wishlist-remove-button:hover {
    background: #111111;
    color: #ffffff;
}

.wishlist-error {
    padding: 20px;
    color: #b00020;
    background: #fff5f5;
}

@media (max-width: 600px) {

    .wishlist-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .wishlist-card-info {
        width: 100%;
    }

    .wishlist-remove-button {
        width: 100%;
    }

}

/* =========================================================
   EVELORA HOUSE
   SAVED ADDRESSES
========================================================= */

#savedAddressesSection {
    width: 100%;
    margin-top: 35px;
}

#savedAddressesSection .account-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

#savedAddressesSection .section-label {
    margin: 0 0 8px;
    color: #777777;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

#savedAddressesSection h2 {
    margin: 0;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 28px;
    font-weight: 400;
    color: #111111;
}


/* =========================================================
   ADD ADDRESS BUTTON
========================================================= */

#savedAddressesSection .account-action-button {
    display: inline-block;
    padding: 12px 20px;
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

#savedAddressesSection .account-action-button:hover {
    background: #333333;
}


/* =========================================================
   ADDRESS LIST
========================================================= */

#savedAddressesSection .addresses-list {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px, 1fr)
        );
    gap: 20px;
    width: 100%;
}


/* =========================================================
   ADDRESS CARD
========================================================= */

#savedAddressesSection .saved-address-card {
    box-sizing: border-box;
    padding: 24px;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    transition:
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

#savedAddressesSection .saved-address-card:hover {
    border-color: #d5d5d5;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.05);
}


/* =========================================================
   CARD HEADER
========================================================= */

#savedAddressesSection
.saved-address-card-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 15px;

    padding-bottom: 16px;

    border-bottom:
        1px solid #eeeeee;
}


/* =========================================================
   ADDRESS LABEL
========================================================= */

#savedAddressesSection
.saved-address-label {

    display: inline-block;

    color: #111111;

    font-size: 14px;

    font-weight: 600;

    letter-spacing: 0.3px;
}


/* =========================================================
   DEFAULT BADGE
========================================================= */

#savedAddressesSection
.saved-address-default {

    display: inline-block;

    margin-left: 8px;

    padding: 4px 7px;

    background: #111111;

    color: #ffffff;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 1px;

    vertical-align: middle;
}


/* =========================================================
   ADDRESS DETAILS
========================================================= */

#savedAddressesSection
.saved-address-details {

    padding-top: 18px;

    color: #555555;

    font-size: 13px;

    line-height: 1.7;
}

#savedAddressesSection
.saved-address-details strong {

    display: block;

    margin-bottom: 5px;

    color: #111111;

    font-size: 14px;
}

#savedAddressesSection
.saved-address-details p {

    margin: 4px 0;
}


/* =========================================================
   EDIT / DELETE BUTTONS
========================================================= */

#savedAddressesSection
.saved-address-actions {

    display: flex;

    flex-shrink: 0;

    gap: 8px;
}


#savedAddressesSection
.address-edit-button,

#savedAddressesSection
.address-delete-button {

    padding: 7px 10px;

    border:
        1px solid #111111;

    background: #ffffff;

    color: #111111;

    cursor: pointer;

    font-family: inherit;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 1px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


#savedAddressesSection
.address-edit-button:hover,

#savedAddressesSection
.address-delete-button:hover {

    background: #111111;

    color: #ffffff;
}


/* =========================================================
   EMPTY ADDRESSES
========================================================= */

#savedAddressesSection
.empty-addresses {

    width: 100%;

    box-sizing: border-box;

    padding: 40px 25px;

    border:
        1px dashed #cccccc;

    background: #ffffff;

    text-align: center;
}


#savedAddressesSection
.empty-addresses p {

    margin:
        0 0 20px;

    color: #777777;

    font-size: 14px;
}


/* =========================================================
   LOADING
========================================================= */

#savedAddressesSection
.account-loading {

    padding: 25px;

    color: #777777;

    font-size: 13px;

    text-align: center;
}


/* =========================================================
   ADDRESS MODAL
========================================================= */

.address-modal {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

}


.address-modal-overlay {

    position: absolute;

    inset: 0;

    background:
        rgba(
            0,
            0,
            0,
            0.55
        );

}


.address-modal-content {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 650px;

    max-height: 90vh;

    overflow-y: auto;

    box-sizing: border-box;

    padding: 35px;

    background: #ffffff;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.18);
}


/* =========================================================
   MODAL CLOSE
========================================================= */

.address-modal-close {

    position: absolute;

    top: 12px;

    right: 18px;

    width: 35px;

    height: 35px;

    border: 0;

    background: transparent;

    color: #111111;

    cursor: pointer;

    font-size: 28px;

    line-height: 1;
}


/* =========================================================
   MODAL TITLE
========================================================= */

.address-modal-content .section-label {

    margin: 0 0 8px;

    color: #777777;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 1.5px;
}


.address-modal-content h2 {

    margin:
        0 0 25px;

    color: #111111;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 28px;

    font-weight: 400;
}


/* =========================================================
   FORM
========================================================= */

.address-modal-content .form-row {

    display: flex;

    gap: 15px;

    margin-bottom: 15px;
}


.address-modal-content .form-group {

    width: 100%;
}


.address-modal-content .form-group label {

    display: block;

    margin-bottom: 7px;

    color: #333333;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.7px;
}


.address-modal-content
.form-group input,

.address-modal-content
.form-group textarea {

    width: 100%;

    box-sizing: border-box;

    padding: 12px 13px;

    border:
        1px solid #dddddd;

    background: #ffffff;

    color: #111111;

    font-family: inherit;

    font-size: 14px;

    transition:
        border-color 0.2s ease;
}


.address-modal-content
.form-group input:focus,

.address-modal-content
.form-group textarea:focus {

    outline: none;

    border-color: #111111;
}


/* =========================================================
   DEFAULT ADDRESS CHECKBOX
========================================================= */

#savedAddressesSection
.address-default-option,

.address-default-option {

    display: flex;

    align-items: center;

    gap: 9px;

    margin:
        20px 0;

    color: #555555;

    font-size: 13px;

    cursor: pointer;
}


.address-default-option input {

    width: 16px;

    height: 16px;

    cursor: pointer;
}


/* =========================================================
   SAVE BUTTON
========================================================= */

.address-save-button {

    width: 100%;

    padding: 14px 20px;

    border: 1px solid #111111;

    background: #111111;

    color: #ffffff;

    cursor: pointer;

    font-family: inherit;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 1.2px;

    transition:
        background 0.2s ease;
}


.address-save-button:hover {

    background: #333333;
}


.address-save-button:disabled {

    opacity: 0.6;

    cursor: not-allowed;
}


/* =========================================================
   MOBILE
========================================================= */

@media (
    max-width: 700px
) {

    #savedAddressesSection
    .account-section-header {

        align-items:
            flex-start;

        flex-direction:
            column;

    }


    #savedAddressesSection
    .account-action-button {

        width: 100%;

    }


    #savedAddressesSection
    .addresses-list {

        grid-template-columns:
            1fr;

    }


    #savedAddressesSection
    .saved-address-card-header {

        flex-direction:
            column;

    }


    #savedAddressesSection
    .saved-address-actions {

        width: 100%;

    }


    #savedAddressesSection
    .address-edit-button,

    #savedAddressesSection
    .address-delete-button {

        flex: 1;

    }


    .address-modal {

        padding: 10px;

    }


    .address-modal-content {

        max-height: 95vh;

        padding: 25px 20px;

    }


    .address-modal-content
    .form-row {

        flex-direction:
            column;

        gap: 0;

    }

}
.forgot-password-row { margin: 14px 0 0; text-align: center; }
.forgot-password-row a { color: #8b7445; text-decoration: none; font-size: 13px; }
.forgot-password-row a:hover { text-decoration: underline; }
