/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f4ee;
    color: #222;
}


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

.seller-header {
    min-height: 76px;
    padding: 12px 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;

    background: #fffdf9;
    border-bottom: 1px solid #e4dfd6;
}

.brand {
    font-size: 20px;
    font-weight: 700;
}

.brand span {
    margin-left: 12px;

    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    color: #777;
}

.header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.seller-nav-btn,
.seller-account-btn,
.seller-dashboard-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    min-height: 40px;
    height: 40px;
    padding: 8px 16px;

    border: 1px solid #d8d2c8;
    border-radius: 999px;

    background: #fff;
    color: #222;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;

    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;

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

.seller-account-btn {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-nav-btn:hover,
.seller-account-btn:hover,
.seller-dashboard-label:hover {
    border-color: #222;
    background: #faf8f3;
    color: #222;
}

.seller-nav-btn.is-active,
.seller-account-btn.is-active,
.seller-dashboard-label.is-active {
    background: #efeae1;
    border-color: #cfc8bb;
    color: #111;
}


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

.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 100px;
}

.dashboard-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 42px;
}

.eyebrow {
    margin-bottom: 12px;

    font-size: 12px;
    letter-spacing: 4px;
    color: #777;
}

h1 {
    font-size: 48px;
    line-height: 1.05;
    margin-bottom: 12px;
}

.subtitle {
    color: #777;
    font-size: 16px;
}


/* =========================
   BUTTONS
========================= */

.primary-btn,
.submit-btn {
    border: none;
    border-radius: 10px;

    background: #222;
    color: white;

    padding: 14px 22px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.primary-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    background: #000;
}


/* =========================
   STATS
========================= */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;

    margin-bottom: 55px;
}

.stat-card {
    background: #fffdf9;

    border: 1px solid #e4dfd6;
    border-radius: 14px;

    padding: 24px;
}

.stat-card span {
    display: block;

    font-size: 13px;
    color: #777;

    margin-bottom: 14px;
}

.stat-card strong {
    font-size: 32px;
}


/* =========================
   LISTINGS
========================= */

.listings-section {
    background: #fffdf9;

    border: 1px solid #e4dfd6;
    border-radius: 16px;

    overflow: hidden;
}

.section-heading {
    padding: 24px 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #e4dfd6;
}

.section-heading h2 {
    font-size: 20px;
}

.section-heading span {
    font-size: 13px;
    color: #777;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 16px 20px;

    text-align: left;

    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;

    color: #777;

    background: #faf8f3;
}

td {
    padding: 20px;

    border-top: 1px solid #eee9e0;

    font-size: 14px;
}

td:first-child {
    font-weight: 600;
}

.status {
    display: inline-block;

    padding: 6px 10px;

    border-radius: 20px;

    background: #e8f2e8;

    color: #356035;

    font-size: 12px;
    font-weight: 600;
}


/* =========================
   EMPTY STATE
========================= */

.empty-state {
    padding: 70px 30px;

    text-align: center;

    color: #777;
}

.empty-state h3 {
    color: #222;
    margin-bottom: 8px;
}


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

.modal {
    position: fixed;

    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 30px;

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

    z-index: 100;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 680px;
    max-height: 90vh;

    overflow-y: auto;

    background: #fffdf9;

    border-radius: 18px;

    padding: 34px;

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 28px;
}

.close-btn {
    border: none;
    background: transparent;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    color: #777;
}


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

.form-group {
    display: flex;
    flex-direction: column;

    gap: 8px;

    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 16px;
}

label,
.field-label {
    font-size: 13px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #dcd6cc;
    border-radius: 9px;

    background: white;

    font-size: 14px;
    color: #222;
    font-family: inherit;

    outline: none;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #222;
}

.submit-btn {
    width: 100%;

    margin-top: 8px;

    padding: 15px;
}


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

@media (max-width: 700px) {

    .seller-header {
        padding: 14px 20px;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .seller-nav-btn,
    .seller-account-btn,
    .seller-dashboard-label {
        height: 36px;
        min-height: 36px;
        max-width: 100%;
        font-size: 13px;
        padding: 8px 12px;
    }

    .dashboard {
        padding: 40px 20px 70px;
    }

    .dashboard-heading {
        display: block;
    }

    .dashboard-heading .primary-btn {
        margin-top: 25px;
    }

    h1 {
        font-size: 40px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

}/* =========================
   ROW ACTIONS
========================= */

.row-actions {
    display: flex;
    gap: 8px;
}

.edit-btn,
.delete-btn {
    border: 1px solid #ddd8ce;
    background: #fffdf9;
    color: #222;

    padding: 7px 11px;

    border-radius: 7px;

    font-size: 12px;

    cursor: pointer;

    transition: 0.2s ease;
}

.edit-btn:hover {
    background: #222;
    color: white;
}

.delete-btn {
    color: #a33;
}

.delete-btn:hover {
    background: #a33;
    color: white;
}


.image-hint,
.image-count {
    font-size: 13px;
    color: #777;
}

.image-hint {
    margin-bottom: 2px;
}

.product-images-group {
    position: relative;
    margin-bottom: 14px;
}

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

.add-photos-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
    margin-bottom: 4px;
}

.add-photos-btn svg {
    width: 18px;
    height: 18px;
}

.photo-guide {
    margin: 6px 0 4px;
}

.photo-guide-heading {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.photo-guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.photo-guide-card {
    background: #f7f4ee;
    border: 1px solid #e4dfd6;
    border-radius: 12px;
    padding: 10px 10px 12px;
}

.photo-guide-art {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 84px;
    margin-bottom: 8px;
    background: #fffdf9;
    border: 1px solid #ece7de;
    border-radius: 9px;
}

.photo-guide-art svg {
    width: 78px;
    height: 78px;
}

.photo-guide-card h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.photo-guide-card p {
    font-size: 12px;
    line-height: 1.4;
    color: #555;
}

.photo-guide-tip {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.4;
    color: #777;
}

.image-preview-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;

    margin-top: 12px;
}

.image-preview {
    position: relative;

    aspect-ratio: 1;

    border: 1px solid #e4dfd6;
    border-radius: 10px;

    overflow: hidden;

    background: #f3f0ea;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;

    width: 22px;
    height: 22px;

    border: none;
    border-radius: 50%;

    background: #222;
    color: #fff;

    font-size: 14px;
    line-height: 22px;

    cursor: pointer;
}

.image-count {
    margin-top: 10px;
}

.image-status {
    margin-top: 8px;
    font-size: 13px;
    color: #555;
}

.review-heading {
    font-size: 16px;
    margin: 10px 0 16px;
}

.review-notice {
    background: #f7f4ee;
    border: 1px solid #e4dfd6;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: #444;
    margin-bottom: 22px;
}

.secondary-btn {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid #d8d2c8;
    border-radius: 10px;
    background: #fff;
    color: #222;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.secondary-btn:hover {
    border-color: #222;
}

@media (max-width: 700px) {

    .image-preview-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .photo-guide-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================
   ACCOUNT PAGE
========================= */

.profile-card {
    background: #fffdf9;

    border: 1px solid #e4dfd6;
    border-radius: 16px;

    padding: 28px 32px;

    margin-bottom: 24px;
}

.profile-card h2 {
    font-size: 20px;
    margin-bottom: 6px;
}

.profile-card p {
    color: #777;
    font-size: 14px;
    margin-bottom: 28px;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;

    margin-top: 8px;
}

.logout-btn {
    border: 1px solid #d8d2c8;
    border-radius: 10px;

    background: #fff;
    color: #555;

    padding: 12px 22px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.logout-btn:hover {
    border-color: #222;
    background: #faf8f3;
    color: #222;
}

.logout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

input[readonly] {
    background: #f3f0ea;
    color: #555;
    cursor: not-allowed;
}

.toast {
    position: fixed;

    left: 50%;
    bottom: 28px;

    transform: translateX(-50%) translateY(16px);

    min-width: 180px;

    padding: 12px 18px;

    border-radius: 10px;

    background: #222;
    color: #fff;

    font-size: 14px;
    font-weight: 600;
    text-align: center;

    opacity: 0;
    pointer-events: none;

    z-index: 200;

    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: #a33;
}


/* =========================
   SELLER MY ORDERS
========================= */

.seller-orders-page .back-link {
    display: inline-block;
    margin-bottom: 12px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.seller-orders-page .back-link:hover {
    color: #222;
}

.orders-main-tabs,
.orders-sub-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.orders-main-tabs {
    margin-bottom: 22px;
}

.orders-sub-tabs {
    margin-bottom: 24px;
}

.orders-main-tab,
.orders-sub-tab {
    border: 1px solid #d8d2c8;
    background: #fffdf9;
    color: #555;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.orders-main-tab.active,
.orders-sub-tab.active {
    background: #222;
    border-color: #222;
    color: #fff;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-summary-card,
.order-detail-card {
    background: #fffdf9;
    border: 1px solid #e4dfd6;
    border-radius: 16px;
    padding: 24px;
}

.order-summary-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.order-id-label {
    font-size: 11px;
    letter-spacing: 1.4px;
    color: #888;
    margin-bottom: 6px;
}

.order-summary-card h2,
.order-detail-card h2 {
    font-size: 26px;
    margin: 0;
}

.order-meta {
    margin: 12px 0 0;
    color: #666;
    font-size: 14px;
}

.order-summary-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
}

.view-order-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;
    background: #222;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.view-order-btn:hover {
    background: #000;
}

.status-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    background: #eee9df;
    color: #333;
    white-space: nowrap;
}

.status-pill.status-delivered,
.status-pill.status-returned {
    background: #e7f0e4;
    color: #2c5a2c;
}

.status-pill.status-cancelled {
    background: #f3e6e4;
    color: #7a3b32;
}

.orders-empty {
    padding: 48px 28px;
    background: #fffdf9;
    border: 1px solid #e4dfd6;
    border-radius: 16px;
    text-align: center;
}

.orders-empty h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.orders-empty p {
    color: #777;
}

.order-return-reason {
    color: #555;
    margin: 12px 0 0;
}

.order-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-detail-block {
    margin-top: 24px;
}

.order-detail-block h3 {
    font-size: 16px;
    margin-bottom: 14px;
}

.order-detail-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #eee9df;
}

.order-detail-item:last-child {
    border-bottom: none;
}

.order-item-photo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    background: #eee9df;
}

.order-item-photo.placeholder {
    display: block;
}

.order-detail-item-info h3 {
    font-size: 16px;
    margin: 0 0 6px;
}

.order-detail-item-info p {
    margin: 0 0 4px;
    color: #777;
    font-size: 14px;
}

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

.summary-total strong {
    font-size: 18px;
}

.field-help {
    margin-top: 6px;
    font-size: 12px;
    color: #777;
    font-weight: 400;
}

@media (max-width: 700px) {

    .order-summary-top,
    .order-summary-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-detail-item {
        grid-template-columns: 64px 1fr;
    }

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

}