@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

/* ═══════════════════════════════════════
   TOKENS
═══════════════════════════════════════ */
:root {
    --ink:     #0e0e0e;
    --ink-2:   #1a1a1a;
    --ink-3:   #2a2a2a;
    --mist:    #f5f3ef;
    --mist-2:  #ede9e1;
    --mist-3:  #ddd8cd;
    --gold:    #b8935a;
    --gold-lt: #d4b07a;
    --gold-dk: #8a6b3a;
    --rose:    #c9767a;
    --text:    #1a1a1a;
    --text-2:  #5a5450;
    --text-3:  #8a857f;
    --border:  #ddd8cd;
    --border-2:#ccc7bc;
    --white:   #ffffff;
    --r:       8px;
    --r-lg:    16px;
    --shadow:  0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Jost', system-ui, sans-serif;
    font-weight: 400;
    color: var(--text);
    background: var(--mist);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════ */
.page { min-height: 100vh; }

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    position: relative;
    overflow: hidden;
}

.login-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.login-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
}
.orb1 { width: 500px; height: 500px; background: var(--gold); top: -150px; right: -100px; }
.orb2 { width: 300px; height: 300px; background: var(--rose); bottom: -80px; left: -60px; }
.orb3 { width: 200px; height: 200px; background: var(--gold-lt); top: 40%; left: 10%; }

.login-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 420px;
    padding: 40px 24px;
}

.login-brand { text-align: center; }

.brand-mark {
    width: 64px; height: 64px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; font-weight: 300;
    color: var(--gold);
    margin: 0 auto 16px;
    letter-spacing: 2px;
}

.brand-name {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: 0.4em;
    color: var(--mist);
    margin-bottom: 8px;
}

.brand-tagline {
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    color: var(--text-3);
    text-transform: uppercase;
}

.login-card {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border-radius: var(--r-lg);
    padding: 36px 32px;
}

.auth-message {
    display: none;
    padding: 12px 16px;
    border-radius: var(--r);
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-align: center;
}
.auth-message.success { background: rgba(74,180,130,.15); color: #4ab482; border: 1px solid rgba(74,180,130,.3); }
.auth-message.error   { background: rgba(201,118,122,.15); color: var(--rose); border: 1px solid rgba(201,118,122,.3); }

.btn-google-signin {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 20px;
    background: var(--white);
    border: none;
    border-radius: var(--r);
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all .2s;
}
.btn-google-signin:hover { background: var(--mist); box-shadow: 0 4px 16px rgba(0,0,0,.2); transform: translateY(-1px); }

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: rgba(255,255,255,.2);
    font-size: 0.8rem;
    letter-spacing: .1em;
}
.login-divider::before, .login-divider::after {
    content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.1);
}

.login-email-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--r);
    color: var(--mist);
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s;
}
.login-input::placeholder { color: rgba(255,255,255,.3); }
.login-input:focus { border-color: var(--gold); }

.btn-email-signin {
    width: 100%;
    padding: 13px;
    background: var(--gold);
    border: none;
    border-radius: var(--r);
    color: var(--ink);
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: .05em;
    cursor: pointer;
    transition: all .2s;
    margin-top: 4px;
}
.btn-email-signin:hover { background: var(--gold-lt); transform: translateY(-1px); }
.btn-email-signin:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.login-note {
    margin-top: 20px;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,.2);
    letter-spacing: .05em;
}

/* ═══════════════════════════════════════
   DASHBOARD LAYOUT
═══════════════════════════════════════ */
#dashboardPage {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 220px;
    min-height: 100vh;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
    padding: 0 0 24px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    margin-bottom: 16px;
}

.brand-mark-sm {
    width: 32px; height: 32px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--gold);
    flex-shrink: 0;
}

.sidebar-brand span {
    font-size: 0.75rem;
    letter-spacing: .25em;
    color: var(--mist);
    font-weight: 400;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: none;
    border: none;
    border-radius: var(--r);
    color: rgba(255,255,255,.4);
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: .03em;
    cursor: pointer;
    transition: all .2s;
    text-align: left;
    position: relative;
}
.nav-item:hover { color: rgba(255,255,255,.8); background: rgba(255,255,255,.04); }
.nav-item.active {
    color: var(--gold);
    background: rgba(184,147,90,.1);
}

.nav-badge {
    margin-left: auto;
    background: var(--rose);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    min-width: 20px;
    text-align: center;
    display: none;
}
.nav-badge.visible { display: block; }

.sidebar-footer {
    padding: 0 12px;
    border-top: 1px solid rgba(255,255,255,.06);
    padding-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-pill {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.user-avatar {
    width: 28px; height: 28px;
    background: var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink);
    flex-shrink: 0;
}

#userEmailShort {
    font-size: 0.78rem;
    color: rgba(255,255,255,.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    background: none;
    border: none;
    color: rgba(255,255,255,.3);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--r);
    transition: all .2s;
    display: flex;
}
.btn-logout:hover { color: var(--rose); background: rgba(201,118,122,.1); }

/* Main Content */
.main-content {
    margin-left: 220px;
    flex: 1;
    min-height: 100vh;
    padding: 40px;
}

/* ═══════════════════════════════════════
   TAB SECTIONS
═══════════════════════════════════════ */
.tab-section { display: none; }
.tab-section.active { display: block; }

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.tab-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 4px;
}

.tab-subtitle {
    font-size: 0.85rem;
    color: var(--text-3);
    letter-spacing: .02em;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.filter-select, .filter-search {
    padding: 9px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    color: var(--text);
    outline: none;
    transition: border-color .2s;
    cursor: pointer;
}
.filter-select:focus, .filter-search:focus { border-color: var(--gold); }
.filter-search { flex: 1; min-width: 200px; cursor: text; }

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--ink);
    color: var(--mist);
    border: none;
    border-radius: var(--r);
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: .04em;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.btn-primary:hover { background: var(--ink-3); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-cancel {
    padding: 11px 22px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    color: var(--text-2);
    cursor: pointer;
    transition: all .2s;
}
.btn-cancel:hover { border-color: var(--border-2); background: var(--mist); }

/* ═══════════════════════════════════════
   PRODUCTS GRID
═══════════════════════════════════════ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all .25s;
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--mist-3); }

.product-card-images {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--mist);
}
.product-card-image {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .product-card-image { transform: scale(1.04); }
.product-card-img-count {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0,0,0,.5);
    color: white;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.product-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.tag {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
}
.tag-cat {
    background: rgba(184,147,90,.12);
    color: var(--gold-dk);
    border: 1px solid rgba(184,147,90,.25);
}
.tag-season {
    background: var(--mist);
    color: var(--text-2);
    border: 1px solid var(--border);
}

.product-card-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 8px;
}

.product-card-desc {
    font-size: 0.82rem;
    color: var(--text-3);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.size-chip {
    font-size: 0.72rem;
    padding: 3px 9px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-2);
}
.size-chip span { font-weight: 600; color: var(--text); }

.product-card-reviews {
    font-size: 0.78rem;
    color: var(--text-3);
    margin-bottom: 16px;
}
.stars-display { color: var(--gold); letter-spacing: -1px; }

.product-card-actions {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--mist-2);
    margin-top: auto;
}

.btn-card-edit {
    flex: 1;
    padding: 8px;
    background: var(--mist);
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
    color: var(--text-2);
    cursor: pointer;
    transition: all .2s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-card-edit:hover { background: var(--mist-2); border-color: var(--border-2); color: var(--text); }

.btn-card-delete {
    padding: 8px 14px;
    background: none;
    border: 1px solid rgba(201,118,122,.3);
    border-radius: var(--r);
    color: var(--rose);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all .2s;
    display: flex; align-items: center; gap: 6px;
}
.btn-card-delete:hover { background: rgba(201,118,122,.08); border-color: var(--rose); }

/* States */
.state-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 80px 20px;
    color: var(--text-3);
    font-size: 0.9rem;
}

.spinner {
    width: 32px; height: 32px;
    border: 2px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.state-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-3);
}
.state-empty h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--text-2);
}

/* ═══════════════════════════════════════
   ORDERS / COMING SOON
═══════════════════════════════════════ */
.coming-soon-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 48px;
    text-align: center;
    max-width: 600px;
}
.coming-soon-icon {
    width: 80px; height: 80px;
    background: var(--mist);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    color: var(--gold);
}
.coming-soon-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 12px;
}
.coming-soon-card p {
    color: var(--text-2);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 32px;
}
.coming-soon-placeholder { display: flex; flex-direction: column; gap: 10px; }
.placeholder-row {
    height: 14px;
    background: var(--mist);
    border-radius: 4px;
    animation: shimmer 1.5s ease infinite alternate;
}
.placeholder-row.short { width: 60%; }
@keyframes shimmer { to { background: var(--mist-2); } }

/* ═══════════════════════════════════════
   MODAL
═══════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14,14,14,.65);
    backdrop-filter: blur(6px);
    z-index: 500;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}

.modal-panel {
    background: var(--white);
    border-radius: var(--r-lg);
    width: 100%;
    max-width: 680px;
    box-shadow: var(--shadow-lg);
    animation: panelIn .3s cubic-bezier(.34,1.56,.64,1);
    margin: auto;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(24px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--mist-2);
    position: sticky;
    top: 0;
    background: var(--white);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    z-index: 1;
}

.modal-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
}

.modal-close-btn {
    width: 32px; height: 32px;
    background: var(--mist);
    border: none;
    border-radius: var(--r);
    color: var(--text-2);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.modal-close-btn:hover { background: var(--mist-2); color: var(--text); }

.modal-body { padding: 28px; }

.form-msg {
    padding: 12px 16px;
    border-radius: var(--r);
    font-size: 0.85rem;
    margin-bottom: 20px;
}
.form-msg.success { background: rgba(74,180,130,.1); color: #2a8a5a; border: 1px solid rgba(74,180,130,.25); }
.form-msg.error { background: rgba(201,118,122,.1); color: var(--rose); border: 1px solid rgba(201,118,122,.25); }
.form-msg.info { background: rgba(184,147,90,.1); color: var(--gold-dk); border: 1px solid rgba(184,147,90,.25); }

/* Form Sections */
.form-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--mist-2);
}
.form-section:last-of-type { border-bottom: none; }

.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-2);
    letter-spacing: .02em;
}

.form-input, .form-textarea {
    padding: 10px 14px;
    background: var(--mist);
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    color: var(--text);
    outline: none;
    transition: all .2s;
    width: 100%;
}
.form-input:focus, .form-textarea:focus { border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(184,147,90,.1); }
.form-textarea { resize: vertical; min-height: 80px; }

.section-hint { font-size: 0.78rem; color: var(--text-3); margin-bottom: 16px; margin-top: -10px; }

/* Radio Pills (season) */
.radio-pill-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.radio-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all .2s;
    color: var(--text-2);
}
.radio-pill input[type="radio"] { display: none; }
.radio-pill:has(input:checked) {
    border-color: var(--gold);
    background: rgba(184,147,90,.1);
    color: var(--gold-dk);
    font-weight: 500;
}
.radio-pill:hover { border-color: var(--border-2); }

/* Sizes Grid */
.sizes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.size-option {
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    transition: all .2s;
}
.size-option.selected { border-color: var(--gold); background: rgba(184,147,90,.05); }

.size-option-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    background: var(--mist);
    border-bottom: 1px solid var(--border);
    transition: background .2s;
}
.size-option.selected .size-option-header { background: rgba(184,147,90,.12); border-color: rgba(184,147,90,.25); }
.size-option-header input[type="checkbox"] { accent-color: var(--gold); width: 14px; height: 14px; }
.size-option-label {
    font-size: 0.82rem;
    font-weight: 500;
}

.size-option-price {
    padding: 8px 10px;
    display: none;
}
.size-option.selected .size-option-price { display: block; }
.size-price-input {
    width: 100%;
    padding: 6px 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    color: var(--text);
    outline: none;
    transition: border-color .2s;
}
.size-price-input:focus { border-color: var(--gold); }
.price-label { font-size: 0.68rem; color: var(--text-3); margin-bottom: 4px; letter-spacing: .03em; }

/* Image Upload Zone */
.image-upload-zone {
    border: 2px dashed var(--border-2);
    border-radius: var(--r-lg);
    transition: all .2s;
    overflow: hidden;
}
.image-upload-zone.drag-over { border-color: var(--gold); background: rgba(184,147,90,.04); }

.drop-zone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 36px 20px;
    color: var(--text-3);
    text-align: center;
}
.drop-zone-inner p { font-size: 0.88rem; }
.drop-zone-inner small { font-size: 0.76rem; }
.upload-link { color: var(--gold); cursor: pointer; text-decoration: underline; }

.image-previews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    padding: 16px;
}

.img-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--r);
    overflow: hidden;
    background: var(--mist);
    border: 1px solid var(--border);
}
.img-preview-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.img-preview-item.uploading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.7);
    display: flex; align-items: center; justify-content: center;
}
.img-preview-remove {
    position: absolute;
    top: 4px; right: 4px;
    width: 22px; height: 22px;
    background: rgba(0,0,0,.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.img-preview-remove:hover { background: var(--rose); }
.img-preview-badge {
    position: absolute;
    bottom: 4px; left: 4px;
    background: rgba(184,147,90,.9);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: .05em;
}
.add-more-btn {
    aspect-ratio: 1;
    background: var(--mist);
    border: 2px dashed var(--border-2);
    border-radius: var(--r);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-3);
    font-size: 0.72rem;
    transition: all .2s;
}
.add-more-btn:hover { border-color: var(--gold); color: var(--gold-dk); }

.upload-progress-bar {
    height: 3px;
    background: var(--mist);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 12px;
}
.upload-progress-fill {
    height: 100%;
    background: var(--gold);
    width: 0%;
    transition: width .3s;
}
.upload-progress-text {
    font-size: 0.75rem;
    color: var(--text-3);
    display: block;
    margin-top: 6px;
}

/* Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.review-item {
    padding: 12px 14px;
    background: var(--mist);
    border-radius: var(--r);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.review-item-left { flex: 1; }
.review-item-name { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.review-item-stars { color: var(--gold); font-size: 0.8rem; letter-spacing: -1px; }
.review-item-text { font-size: 0.8rem; color: var(--text-2); margin-top: 4px; line-height: 1.5; }
.btn-remove-review {
    background: none; border: none; color: var(--text-3);
    cursor: pointer; font-size: 18px; padding: 0; line-height: 1;
    transition: color .2s;
}
.btn-remove-review:hover { color: var(--rose); }

.add-review-form {
    background: var(--mist);
    border-radius: var(--r);
    padding: 16px;
    border: 1px solid var(--border);
}

.star-picker { display: flex; gap: 4px; cursor: pointer; }
.star {
    font-size: 1.4rem;
    color: var(--border-2);
    transition: color .15s;
    user-select: none;
}
.star.active { color: var(--gold); }

.btn-add-review {
    margin-top: 12px;
    padding: 8px 18px;
    background: var(--ink);
    color: var(--mist);
    border: none;
    border-radius: var(--r);
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all .2s;
}
.btn-add-review:hover { background: var(--ink-3); }

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--mist-2);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
    .sidebar {
        width: 60px;
        padding-bottom: 16px;
    }
    .sidebar-brand span, .nav-item span, #userEmailShort, .nav-badge { display: none; }
    .nav-item { justify-content: center; padding: 12px; }
    .sidebar-brand { justify-content: center; padding: 20px 12px; }
    .main-content { margin-left: 60px; padding: 24px; }
    .sidebar-footer { justify-content: center; }
    .user-pill { display: none; }
}

@media (max-width: 640px) {
    .main-content { padding: 20px 16px; }
    .form-row { grid-template-columns: 1fr; }
    .sizes-grid { grid-template-columns: repeat(2, 1fr); }
    .tab-header { flex-direction: column; gap: 16px; }
    .tab-header .btn-primary { width: 100%; justify-content: center; }
    .modal-panel { margin: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
    .modal-overlay { padding: 0; align-items: flex-end; }
}

/* ═══════════════════════════════════════
   ORDERS IN ADMIN DASHBOARD
═══════════════════════════════════════ */
.orders-list { display: flex; flex-direction: column; gap: 16px; }

.order-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px 24px;
    transition: border-color .2s, box-shadow .2s;
}
.order-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}
.order-id-label { font-size: .7rem; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.order-id-val { font-family: monospace; font-size: .82rem; color: var(--text); word-break: break-all; }

.order-status-badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}
.status-pending    { background: rgba(234,179,8,.12); color: #b08800; }
.status-confirmed  { background: rgba(59,130,246,.12); color: #2563eb; }
.status-shipped    { background: rgba(139,92,246,.12); color: #7c3aed; }
.status-delivered  { background: rgba(16,185,129,.12); color: #059669; }
.status-cancelled  { background: rgba(201,118,122,.12); color: var(--rose); }

.order-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 20px;
    align-items: start;
    border-top: 1px solid var(--mist-2);
    padding-top: 14px;
}
.order-info-label {
    font-size: .68rem;
    color: var(--text-3);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 500;
}
.order-info-val { font-size: .85rem; color: var(--text); line-height: 1.6; }
.order-total-val { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--gold-dk); font-weight: 500; }

.order-items-list { font-size: .78rem; color: var(--text-2); line-height: 1.9; }

.order-status-select {
    padding: 8px 12px;
    background: var(--mist);
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--text);
    font-family: 'Jost', sans-serif;
    font-size: .8rem;
    cursor: pointer;
    outline: none;
    transition: border-color .2s;
    width: 100%;
}
.order-status-select:focus { border-color: var(--gold); }

.order-screenshot-link {
    display: inline-block;
    margin-top: 6px;
    font-size: .75rem;
    color: var(--gold-dk);
    text-decoration: underline;
    cursor: pointer;
}

.screenshot-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.screenshot-modal-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--r);
    border: 1px solid rgba(255,255,255,.1);
}
.screenshot-modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--r);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.screenshot-modal-close:hover { background: rgba(255,255,255,.2); }

.orders-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-3);
}
.orders-empty h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--text-2);
}

@media (max-width: 900px) {
    .order-card-body { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .order-card-body { grid-template-columns: 1fr; }
    .order-card { padding: 16px; }
}