/* Main container */

.account-lots {
    width: 100%;
    max-width: 1400px;
    min-width: 0;
    margin: 0 auto;
}

.account-lots-title {
    margin-bottom: 30px;
}

.account-lots-title h1 {
    margin: 0 0 8px;
    color: #222;
    font-size: 32px;
    font-weight: 600;
}

.account-lots-title span {
    color: #777;
    font-size: 14px;
}

/* Tabs */

.account-lots-tabs {
    display: flex;
    margin-bottom: 26px;
    overflow-x: auto;
    scrollbar-width: none;
    background-color: #f3f3f3;
    border-radius: 1rem;
}

.account-lots-tabs::-webkit-scrollbar {
    display: none;
}

.account-lots-tab {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    border-radius: 1rem;
    padding: 8px 16px;
    color: #777;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.account-lots-tab.active,
.account-lots-tab.active:hover {
    background-color: black;
    color: white;
}
.account-lots-tab:hover {
    background-color: #eaeaea;
}

/* Tab panels */

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

.account-lots-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

/* Lot card */

.account-lot-item {
    display: grid;
    grid-template-columns: 112px minmax(170px, 1.6fr) minmax(120px, 1fr) minmax(140px, 1.1fr) minmax(125px, 1fr) auto;
    align-items: center;
    gap: 24px;
    min-width: 0;
    padding: 20px;
    border: 1px solid #e9e6e1;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-lot-item:hover {
    border-color: #d4cec5;
    box-shadow: 0 4px 16px rgb(0 0 0 / 4%);
}

/* Artwork */

.account-lot-image {
    display: block;
    width: 112px;
    height: 124px;
    border-radius: 3px;
    background: #f4f2ef;
    object-fit: cover;
}

/* Lot information */

.account-lot-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 5px;
}

.account-lot-number {
    color: #8a7358;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.account-lot-artist {
    color: #252525;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.account-lot-technique {
    color: #85817b;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Bid and estimate details */

.account-lot-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 6px;
}

.account-lot-label {
    color: #85817b;
    font-size: 11px;
    font-weight: 500;
}

.account-lot-value {
    color: #292929;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Status */

.account-lot-status {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.account-lot-status.preview {
    background: #f5efe4;
    color: #927344;
}

.account-lot-status.live {
    background: #e8f4eb;
    color: #34744a;
}

.account-lot-status.closed {
    background: #efefed;
    color: #77736d;
}

/* Actions */

.account-lot-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.account-lot-remove {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e1dc;
    border-radius: 4px;
    background: #fff;
    color: #77736d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.account-lot-remove:hover {
    border-color: #d8b9b5;
    background: #fbefed;
    color: #a34238;
}

.account-lot-remove i {
    font-size: 14px;
}

.account-lot-action {
    display: inline-flex;
    min-width: 64px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid #262626;
    border-radius: 4px;
    background: #262626;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.account-lot-action:hover {
    background: #494949;
    color: #fff;
}

/* Empty and error states */

.account-lots-state {
    display: flex;
    min-height: 320px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}

.account-lots-state-icon {
    display: flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #f4f1ed;
    color: #8a7358;
    font-size: 27px;
}

.account-lots-state h2 {
    margin: 0 0 10px;
    color: #292929;
    font-size: 23px;
    font-weight: 600;
}

.account-lots-state p {
    max-width: 420px;
    margin: 0 0 22px;
    color: #777;
    font-size: 14px;
    line-height: 1.7;
}

.account-lots-state-button,
.account-lots-state button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 0;
    border-radius: 4px;
    background: #262626;
    color: #fff;
    font: inherit;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.account-lots-state-button:hover,
.account-lots-state button:hover {
    background: #494949;
}

.account-lots-loading {
    padding: 50px 20px;
    color: #777;
    font-size: 14px;
    text-align: center;
}

/* Medium screens */

@media (max-width: 1100px) {
    .account-lot-item {
        grid-template-columns: 90px minmax(130px, 1.5fr) minmax(100px, 1fr) minmax(110px, 1fr);
        gap: 18px;
    }

    .account-lot-image {
        width: 90px;
        height: 105px;
    }

    .account-lot-status {
        justify-self: start;
    }

    .account-lot-actions {
        justify-content: flex-start;
    }
}

.account-lots-panel {
    margin-bottom: 120px;
}

/* Mobile cards */
@media (max-width: 680px) {
    .account-lots-panel {
        width: calc(100% - 40px);
    }

    .account-lots-title {
        margin-bottom: 22px;
    }

    .account-lots-title h1 {
        font-size: 27px;
    }

    .account-lots-tabs {
        gap: 0;
        margin-bottom: 20px;
        border-radius: 10px;
        width: calc(100% - 30px);
        justify-content: space-between;
    }
    .account-lots-tab {
        border-radius: 0;
        padding: 8px 10px;
    }

    .account-lot-item {
        grid-template-columns: 88px minmax(0, 1fr);
        align-items: start;
        gap: 16px;
        padding: 14px;
        border-radius: 5px;
    }

    .account-lot-image {
        grid-column: 1;
        grid-row: 1;
        width: 88px;
        height: 112px;
    }

    .account-lot-info {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        gap: 6px;
    }

    .account-lot-artist {
        font-size: 14px;
    }

    .account-lot-details {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        padding-top: 14px;
        border-top: 1px solid #efede9;
    }

    .account-lot-status-wrapper {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-width: 0;
    }

    .account-lot-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
        padding-top: 12px;
        border-top: 1px solid #efede9;
    }

    .account-lot-action {
        flex: 1;
    }
}

@media (max-width: 360px) {
    .account-lot-item {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
        padding: 11px;
    }

    .account-lot-image {
        width: 72px;
        height: 96px;
    }

    .account-lot-details {
        gap: 12px;
    }

    .account-lot-value {
        font-size: 13px;
    }

    .account-lot-actions {
        gap: 6px;
    }
}