:root {
    --bg: #fff7ec;
    --card: #ffffff;
    --ink: #1a1a1a;
    --muted: #6d5f57;
    --brand: #b5451b;
    --brand-dark: #923816;
    --ok: #1f7a43;
    --danger: #a92222;
    --line: #f0d9c6;
    --shadow: 0 14px 30px rgba(131, 70, 34, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Outfit", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 10%, #ffe9d3 0%, transparent 28%),
        radial-gradient(circle at 90% 25%, #ffe2ce 0%, transparent 30%),
        var(--bg);
    min-height: 100vh;
}

h1,
h2 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.1px;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(420px, 96vw);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.subtext {
    margin: 8px 0 20px;
    color: var(--muted);
}

label {
    display: block;
    margin: 12px 0 8px;
    font-size: 0.92rem;
    color: #443a34;
    font-weight: 500;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #dbc3b3;
    border-radius: 10px;
    font: inherit;
    padding: 12px 14px;
    background: #fffefc;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #f7cdb4;
    border-color: var(--brand);
}

button {
    border: 0;
    border-radius: 11px;
    padding: 12px 16px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.2s ease;
    background: var(--brand);
    color: #fff;
}

button:hover {
    background: var(--brand-dark);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.secondary-btn {
    background: #f8e8dd;
    color: #683012;
    border: 1px solid #efcdb8;
}

.secondary-btn:hover {
    background: #f3dccd;
}

.danger-btn {
    background: #fff0ef;
    color: #962020;
    border: 1px solid #f4c4c4;
}

.danger-btn:hover {
    background: #ffdede;
}

.message {
    min-height: 22px;
    margin: 14px 0 0;
    font-size: 0.92rem;
    font-weight: 600;
}

.message.error {
    color: var(--danger);
}

.message.success {
    color: var(--ok);
}

.switch-link {
    margin: 18px 0 0;
    color: var(--muted);
}

.switch-link a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
}

.dash-header {
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px 20px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.seller-meta {
    margin-top: 4px;
    color: var(--muted);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.dashboard-main {
    max-width: 1140px;
    margin: 0 auto;
    padding: 12px 20px 36px;
}

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 22px;
    margin-top: 16px;
}

.hidden {
    display: none !important;
}

.grid-two {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.img-preview {
    margin-top: 10px;
    width: 100%;
    min-height: 170px;
    border: 1px dashed #d9bea9;
    border-radius: 12px;
    background: #fff7f0 center / cover no-repeat;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.img-preview span {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #ebd7c9;
    border-radius: 999px;
    padding: 6px 10px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.products-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.products-head p {
    margin: 0;
    color: var(--muted);
}

.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.product-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fffdfb;
}

.product-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: #f5e8de;
}

.product-content {
    padding: 12px;
}

.product-content h3 {
    margin: 0;
    font-size: 1.08rem;
}

.meta {
    margin: 6px 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.price {
    margin: 4px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand);
}

.old-price {
    margin-left: 8px;
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: line-through;
    font-weight: 500;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.empty-state {
    margin: 0;
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 760px) {
    .dash-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .header-actions button {
        flex: 1 1 140px;
        min-height: 44px;
    }

    .grid-two {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-wrap: wrap;
    }

    .form-actions button {
        flex: 1 1 100%;
        min-height: 44px;
    }
}