﻿/* =========================================
   WINNIE'S KITCHEN — CUSTOMER ACCOUNT
========================================= */

.account-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 25%, rgba(237,121,31,.09), transparent 30%),
        linear-gradient(135deg, #fff8ef 0%, #ffffff 55%, #fff1e3 100%);
}

.account-navbar {
    background: #28180f;
}

.account-navbar .logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #ed791f;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
}

.account-navbar .cart-link {
    padding: 10px 17px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 8px;
    transition: .2s ease;
}

.account-navbar .cart-link:hover {
    background: rgba(255,255,255,.1);
}

.account-main {
    width: min(1120px, 92%);
    min-height: calc(100vh - 175px);
    margin: 0 auto;
    padding: 65px 0;
    display: grid;
    grid-template-columns: 1fr 470px;
    align-items: center;
    gap: 75px;
}

.account-intro {
    max-width: 500px;
}

.account-eyebrow,
.panel-kicker {
    color: #c95710;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.account-intro h1 {
    margin: 17px 0;
    color: #28180f;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.12;
    letter-spacing: -1.8px;
}

.account-intro h1 span {
    color: #ed791f;
}

.account-intro > p {
    max-width: 430px;
    color: #75675e;
    font-size: 16px;
    line-height: 1.8;
}

.account-benefits {
    display: grid;
    gap: 15px;
    margin-top: 34px;
}

.account-benefits div {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #49372c;
    font-size: 14px;
    font-weight: 600;
}

.account-benefits span {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff0df;
    color: #c95710;
    font-weight: 800;
}

.account-card {
    width: 100%;
    padding: 36px;
    border: 1px solid #f0e4d9;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 22px 65px rgba(55,31,14,.09);
}

.account-panel[hidden],
.account-message[hidden] {
    display: none !important;
}

.panel-heading {
    margin-bottom: 25px;
}

.panel-heading h2 {
    margin: 9px 0 5px;
    color: #28180f;
    font-size: 29px;
    line-height: 1.25;
}

.panel-heading p {
    color: #82766e;
    font-size: 13px;
    line-height: 1.65;
}

.panel-heading p strong {
    color: #603014;
    overflow-wrap: anywhere;
}

.account-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 19px;
}

.account-field label {
    color: #3b2b21;
    font-size: 13px;
    font-weight: 700;
}

.account-field input {
    width: 100%;
    min-height: 49px;
    padding: 12px 14px;
    border: 1px solid #e5d9ce;
    border-radius: 9px;
    outline: none;
    background: #fffdfb;
    color: #28180f;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.account-field input::placeholder {
    color: #b4a69b;
}

.account-field input:focus {
    border-color: #ed791f;
    box-shadow: 0 0 0 3px rgba(237,121,31,.12);
}

.account-field input[readonly] {
    background: #f7f3ef;
    color: #6d5a4d;
}

.account-field small {
    color: #96877d;
    font-size: 11px;
}

.account-submit {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border: none;
    border-radius: 9px;
    background: #ed791f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
}

.account-submit:hover {
    background: #c95710;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(201,87,16,.2);
}

.account-submit:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}

.account-text-button {
    display: block;
    margin: 17px auto 0;
    padding: 4px;
    border: none;
    background: transparent;
    color: #c95710;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.account-text-button:hover,
.account-switch button:hover {
    text-decoration: underline;
}

.account-switch {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0e9e3;
    color: #82766e;
    font-size: 12px;
    text-align: center;
}

.account-switch button {
    padding: 0;
    border: none;
    background: transparent;
    color: #c95710;
    font-size: inherit;
    font-weight: 800;
    cursor: pointer;
}

.account-message {
    margin-bottom: 23px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.6;
}

.account-message.success {
    border-color: #b8e2c5;
    background: #effaf2;
    color: #176b35;
}

.account-message.error {
    border-color: #f0c6c1;
    background: #fff3f1;
    color: #a32e25;
}

.account-message.info {
    border-color: #f2d7b6;
    background: #fff8ed;
    color: #80501e;
}

.verification-icon {
    display: flex;
    width: 55px;
    height: 55px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 16px;
    background: #fff0df;
    color: #c95710;
    font-size: 25px;
}

#verification-code,
#reset-code {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 9px;
    text-align: center;
}

.profile-avatar {
    display: flex;
    width: 65px;
    height: 65px;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 50%;
    background: #ed791f;
    color: #ffffff;
    font-size: 27px;
    font-weight: 800;
}

.profile-details {
    margin: 25px 0;
    border: 1px solid #f0e6dc;
    border-radius: 11px;
    overflow: hidden;
}

.profile-details div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px 15px;
    border-bottom: 1px solid #f0e6dc;
}

.profile-details div:last-child {
    border-bottom: none;
}

.profile-details span {
    color: #95867b;
    font-size: 11px;
}

.profile-details strong {
    color: #38291f;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.profile-details .verified-status {
    color: #168b49;
}

.account-link-button {
    text-decoration: none;
}

.account-logout {
    display: block;
    width: 100%;
    margin-top: 13px;
    padding: 12px;
    border: 1px solid #eadbd0;
    border-radius: 9px;
    background: #ffffff;
    color: #8b3e28;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.account-logout:hover {
    border-color: #c95710;
    background: #fff8ef;
}

.account-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 23px 7%;
    border-top: 1px solid #f0e5da;
    color: #89796d;
    font-size: 12px;
}

.account-footer a {
    color: #c95710;
    font-weight: 700;
}

@media (max-width: 900px) {
    .account-main {
        grid-template-columns: 1fr 430px;
        gap: 35px;
    }

    .account-intro h1 {
        font-size: 42px;
    }
}

@media (max-width: 700px) {
    .account-navbar {
        justify-content: space-between;
    }

    .account-navbar .nav-links {
        display: none;
    }

    .account-main {
        width: min(480px, 92%);
        min-height: auto;
        padding: 42px 0 55px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .account-intro {
        text-align: center;
    }

    .account-intro h1 {
        font-size: 37px;
    }

    .account-intro > p {
        margin: 0 auto;
        font-size: 14px;
    }

    .account-benefits {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 17px;
        margin-top: 22px;
    }

    .account-benefits div {
        font-size: 11px;
    }

    .account-card {
        padding: 27px 22px;
        border-radius: 15px;
    }

    .account-footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .account-card {
        padding: 23px 17px;
    }

    .panel-heading h2 {
        font-size: 25px;
    }

    .account-navbar .cart-link {
        padding: 8px 11px;
        font-size: 12px;
    }
}
