.page-content {
    width: 100%;
}

.account-page {
    min-height: 100vh;
    padding: calc(var(--header-offset) + var(--header-height) + 7rem) 2rem 5rem;
    background: #ffffff;
    color: #15120f;
}

.account-page__inner {
    width: min(100%, 78rem);
    margin: 0 auto;
}

.account-heading {
    margin-bottom: 1.75rem;
}

.account-heading h1 {
    margin: 0;
    color: #15120f;
    font-family: var(--font-family-display);
    font-size: clamp(2.1rem, 3vw, 2.8rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.96;
}

.account-heading h1 em {
    font-style: italic;
    font-weight: 400;
}

.account-heading p {
    margin: 0.65rem 0 0;
    color: #a89168;
    font-family: var(--font-family-base);
    font-size: 0.94rem;
    font-weight: 500;
}

.account-layout {
    display: grid;
    grid-template-columns: 13.5rem minmax(0, 1fr);
    gap: 2.2rem;
    align-items: start;
}

.account-sidebar {
    display: grid;
    gap: 0.35rem;
    padding: 0.45rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.8rem;
    background: #ffffff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.account-tab {
    width: 100%;
    min-height: 2.9rem;
    display: grid;
    grid-template-columns: 1.15rem minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    border: 0;
    border-radius: 0.55rem;
    background: transparent;
    color: #a89168;
    padding: 0 0.85rem;
    font-family: var(--font-family-base);
    font-size: 0.92rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.account-tab.is-active {
    background: #15120f;
    color: #ffffff;
}

.account-tab__icon {
    display: inline-grid;
    place-items: center;
}

.account-tab svg,
.account-link-button svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-content {
    min-width: 0;
}

.account-panel {
    display: grid;
    gap: 1.2rem;
    padding: 1.65rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.8rem;
    background: #ffffff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.account-panel[hidden] {
    display: none;
}

.account-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.account-panel__header--with-action {
    align-items: center;
}

.account-panel__header h2 {
    margin: 0;
    color: #15120f;
    font-family: var(--font-family-base);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.account-panel__header p {
    margin: 0.55rem 0 0;
    color: #a89168;
    font-family: var(--font-family-base);
    font-size: 0.94rem;
    font-weight: 500;
}

.account-link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 0;
    background: transparent;
    color: #a89168;
    padding: 0.35rem 0;
    font-family: var(--font-family-base);
    font-size: 0.9rem;
    cursor: pointer;
}

.account-profile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.85rem 4.5rem;
    max-width: 44rem;
}

.account-data-item {
    display: grid;
    gap: 0.3rem;
}

.account-data-item span {
    color: #a89168;
    font-family: var(--font-family-base);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.25;
}

.account-data-item strong {
    color: #15120f;
    font-family: var(--font-family-base);
    font-size: 0.97rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.account-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin-top: 0.45rem;
}

.account-security {
    display: grid;
    gap: 0.85rem;
    justify-items: start;
}

.account-security h3 {
    margin: 0;
    color: #15120f;
    font-family: var(--font-family-display);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1;
}

.account-form {
    display: grid;
    gap: 1rem;
}

.account-form[hidden] {
    display: none;
}

.account-form--compact {
    width: 100%;
    margin-top: 0.4rem;
}

.account-grid {
    display: grid;
    gap: 1rem;
}

.account-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-field {
    display: grid;
    gap: 0.4rem;
    color: #15120f;
    font-size: 0.92rem;
    font-weight: 500;
}

.account-field--wide {
    grid-column: span 1;
}

.account-field input,
.account-field textarea {
    width: 100%;
    border: 0;
    border-radius: 0.45rem;
    background: #f7f5f2;
    color: #15120f;
    padding: 0 0.85rem;
    outline: 1px solid rgba(21, 18, 15, 0.14);
    transition: outline-color 0.18s ease, background-color 0.18s ease;
}

.account-field input {
    height: 2.75rem;
}

.account-field textarea {
    min-height: 5.5rem;
    padding-top: 0.8rem;
    resize: vertical;
}

.account-field input:focus,
.account-field textarea:focus {
    outline-color: #c8ae7c;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.account-primary-button,
.account-secondary-button {
    min-height: 2.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 0.45rem;
    padding: 0 1.25rem;
    font-family: var(--font-family-base);
    font-size: 0.94rem;
    font-weight: 600;
    cursor: pointer;
}

.account-primary-button {
    border: 1px solid #15120f;
    background: #15120f;
    color: #ffffff;
}

.account-secondary-button {
    border: 1px solid #d8c7a8;
    background: #ffffff;
    color: #15120f;
}

.account-primary-button:disabled,
.account-secondary-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.account-primary-button--icon {
    min-width: 8.2rem;
}

.account-status {
    margin: 0;
    color: #a89168;
    font-size: 0.94rem;
}

.account-status[data-state="success"] {
    color: #5f7439;
}

.account-status[data-state="error"] {
    color: #a84635;
}

.account-address-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.account-address-card {
    display: grid;
    gap: 0.85rem;
    min-height: 11rem;
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.8rem;
    background: #ffffff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.account-address-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.account-address-card__title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: #15120f;
    font-size: 1rem;
    font-weight: 500;
}

.account-address-card__pin {
    color: #a89168;
}

.account-address-default {
    display: inline-flex;
    align-items: center;
    min-height: 1.35rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: #f0ede9;
    color: #a89168;
    font-size: 0.78rem;
    font-weight: 500;
}

.account-address-card p {
    margin: 0;
    color: #a89168;
    font-size: 0.9rem;
    line-height: 1.35;
}

.account-address-card__reference {
    font-style: italic;
}

.account-address-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.account-address-card__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.account-icon-button {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 0.4rem;
    background: transparent;
    color: #a89168;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.account-icon-button svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.account-table-wrap {
    overflow-x: auto;
}

.account-orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 41rem;
}

.account-orders-table th,
.account-orders-table td {
    padding: 0.85rem 0.95rem;
    color: #15120f;
    font-family: var(--font-family-base);
    font-size: 0.92rem;
    text-align: left;
    white-space: nowrap;
}

.account-orders-table th {
    color: #a89168;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(21, 18, 15, 0.08);
}

.account-orders-table td {
    border-top: 1px solid rgba(21, 18, 15, 0.05);
}

.account-orders-table .account-muted {
    color: #a89168;
}

.account-order-status {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    padding: 0 0.6rem;
    border-radius: 999px;
    background: #f0ede9;
    color: #a89168;
    font-size: 0.82rem;
}

.account-order-status[data-status="paid"] {
    background: #f0ede9;
    color: #a89168;
}

.account-order-status[data-status="shipped"] {
    background: rgba(255, 95, 46, 0.1);
    color: #d94e1a;
}

.account-order-status[data-status="pending"] {
    background: rgba(243, 155, 47, 0.12);
    color: #b07218;
}

.account-order-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.account-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #a89168;
    font-size: 0.92rem;
}

.account-checkbox input {
    width: 1rem;
    height: 1rem;
    accent-color: #15120f;
}

.account-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.account-modal[hidden] {
    display: none;
}

.account-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.34);
    cursor: pointer;
}

.account-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 42rem);
    max-height: min(90vh, 48rem);
    overflow: auto;
    border-radius: 0.8rem;
    background: #ffffff;
    padding: 1.4rem;
    color: #15120f;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.2);
}

.account-modal__dialog--wide {
    width: min(100%, 52rem);
}

.account-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.account-modal__header h2 {
    margin: 0;
    color: #15120f;
    font-family: var(--font-family-display);
    font-size: clamp(1.5rem, 2.4vw, 1.8rem);
    font-weight: 400;
    line-height: 1;
}

.account-order-details {
    display: grid;
    gap: 1rem;
}

.account-order-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.account-order-detail-grid div {
    display: grid;
    gap: 0.25rem;
}

.account-order-detail-grid span {
    color: #a89168;
    font-size: 0.82rem;
}

.account-order-detail-grid strong {
    color: #15120f;
    font-size: 0.96rem;
}

.account-order-items {
    display: grid;
    gap: 0.6rem;
}

.account-order-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.8rem;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: #15120f;
    font-size: 0.94rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1080px) {
    .account-page__inner {
        width: min(100%, 68rem);
    }

    .account-layout {
        grid-template-columns: 12.5rem minmax(0, 1fr);
        gap: 1.75rem;
    }
}

@media (max-width: 880px) {
    .account-page {
        padding: calc(var(--header-offset) + var(--header-height) + 5.5rem) 1.5rem 4rem;
    }

    .account-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .account-sidebar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .account-tab {
        justify-content: center;
        grid-template-columns: 1rem minmax(0, auto);
        padding: 0 0.55rem;
        font-size: 0.84rem;
    }

    .account-address-list,
    .account-profile,
    .account-grid--two,
    .account-grid--three,
    .account-order-detail-grid {
        grid-template-columns: 1fr;
    }

    .account-panel {
        padding: 1.35rem;
    }
}

@media (max-width: 720px) {
    .account-page {
        padding: calc(var(--header-offset) + var(--header-height) + 5rem) 1.25rem 3.5rem;
    }

    .account-address-list {
        grid-template-columns: 1fr;
    }

    .account-orders-table {
        min-width: 36rem;
    }
}

@media (max-width: 560px) {
    .account-page {
        padding: calc(var(--header-offset) + var(--header-height) + 4.75rem) 1rem 3rem;
    }

    .account-sidebar {
        grid-template-columns: 1fr;
    }

    .account-panel {
        padding: 1.1rem;
    }

    .account-panel__header,
    .account-panel__header--with-action,
    .account-address-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-primary-button--icon,
    .account-actions .account-primary-button,
    .account-actions .account-secondary-button {
        width: 100%;
    }
}
