/* Chocopostres - Custom Styles */
/* Primary: #F9ABDA | Background: #FEF9FD | Font: Fredoka One */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --color-primary: #F9ABDA;
    --color-primary-dark: #f07cc0;
    --color-primary-light: #fdd4ee;
    --color-bg: #FEF9FD;
    --color-surface: #ffffff;
    --color-text: #3d2c3e;
    --color-text-muted: #9b8a9c;
    --color-border: #f0dff0;
    --color-success: #4ade80;
    --color-error: #f87171;
    --color-warning: #fbbf24;
    --shadow-sm: 0 1px 3px rgba(249,171,218,0.15);
    --shadow-md: 0 4px 16px rgba(249,171,218,0.25);
    --shadow-lg: 0 8px 32px rgba(249,171,218,0.3);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, .font-display {
    font-family: 'Fredoka One', cursive;
    font-weight: 400;
    letter-spacing: 0.02em;
}

a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--color-primary-dark); }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.3rem;
    border-radius: var(--radius-full);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover:not(:disabled) { background: var(--color-primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
    background: white;
    color: var(--color-primary-dark);
    border: 2px solid var(--color-primary);
}
.btn-secondary:hover:not(:disabled) { background: var(--color-primary-light); }

.btn-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 1.5px solid #fca5a5;
}
.btn-danger:hover:not(:disabled) { background: #fca5a5; }

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
    border: 1.5px solid var(--color-border);
}
.btn-ghost:hover:not(:disabled) { background: var(--color-border); }

.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.85rem; }
.btn-lg { padding: 0.75rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-whatsapp {
    background: #25d366;
    color: white;
    box-shadow: 0 2px 8px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover:not(:disabled) { background: #1ebe5d; transform: translateY(-1px); }

/* ─── CARDS ─────────────────────────────────────────────── */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.product-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.product-card-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 70%;
    background: var(--color-primary-light);
    overflow: hidden;
}
.product-card-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .product-card-image-wrap img { transform: scale(1.04); }

.product-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.product-card-overlay-text {
    background: rgba(255,255,255,0.9);
    color: #555;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.product-card-name {
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.3;
}
.product-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-top: auto;
    padding-top: 0.5rem;
}
.product-card-footer {
    padding: 0 1rem 1rem;
}

/* ─── CATEGORY FILTER ────────────────────────────────────── */
.category-filter {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem 0 0.5rem;
    scrollbar-width: none;
}
.category-filter::-webkit-scrollbar { display: none; }

.category-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-primary-light);
    background: white;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.category-chip:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }
.category-chip.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* ─── PRODUCT GRID ───────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 640px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}

/* ─── FORMS ──────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.form-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text);
}
.form-control {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--color-text);
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-control:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(249,171,218,0.2); }
.form-control.is-invalid { border-color: var(--color-error); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(248,113,113,0.2); }

textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239b8a9c' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; }

.validation-message, .field-validation-error {
    color: var(--color-error);
    font-size: 0.82rem;
    font-weight: 600;
}

/* Form row (side by side fields) */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Input with symbol ($ prefix) */
.input-with-symbol {
    position: relative;
    display: flex;
}

.symbol {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: #7f8c8d;
    font-size: 1rem;
}

.input-with-symbol .form-control {
    padding-left: 1.8rem;
}

.form-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ─── TOAST NOTIFICATIONS ────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    pointer-events: none;
}
.toast {
    pointer-events: all;
    min-width: 240px;
    max-width: 320px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-md);
    animation: slideInRight 0.25s ease-out;
}
.toast-success { background: #dcfce7; color: #166534; border-left: 4px solid #4ade80; }
.toast-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #f87171; }
.toast-info    { background: #ede9fe; color: #5b21b6; border-left: 4px solid #a78bfa; }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ─── CART ───────────────────────────────────────────────── */
.cart-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1.5px solid var(--color-border);
}
.cart-item-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--color-primary-light);
    flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 0.9rem; color: var(--color-text-muted); }
.cart-qty-control {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.cart-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--color-primary);
    background: white;
    color: var(--color-primary-dark);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.cart-qty-btn:hover { background: var(--color-primary-light); }
.cart-qty-num { font-weight: 700; min-width: 1.4rem; text-align: center; }

/* ─── ADMIN ──────────────────────────────────────────────── */

/* Mobile tab nav (visible only on small screens) */
.admin-mobile-nav {
    display: flex;
    background: white;
    border-bottom: 2px solid var(--color-border);
}
.admin-mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 0.5rem;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.15s;
}
.admin-mobile-nav-item:hover { color: var(--color-primary-dark); background: var(--color-primary-light); }

/* Desktop layout: sidebar + content side by side */
.admin-layout-body {
    display: flex;
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: white;
    border-right: 2px solid var(--color-border);
    padding: 1.5rem 0;
    display: none; /* hidden on mobile */
    flex-direction: column;
}
.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.5rem;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.15s;
    border-left: 3px solid transparent;
    cursor: pointer;
    text-decoration: none;
}
.admin-nav-item:hover { background: var(--color-primary-light); color: var(--color-text); }
.admin-nav-item.active { border-left-color: var(--color-primary-dark); color: var(--color-primary-dark); background: var(--color-primary-light); }

/* On desktop: show sidebar, hide mobile nav */
@media (min-width: 768px) {
    .admin-sidebar { display: flex; }
    .admin-mobile-nav { display: none; }
}

.admin-main {
    flex: 1;
    padding: 1.5rem 1rem;
    max-width: 1200px;
    min-width: 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.data-table th {
    background: var(--color-primary-light);
    text-align: left;
    padding: 0.65rem 1rem;
    font-weight: 700;
    color: var(--color-text);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.data-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.data-table tr:hover td { background: var(--color-bg); }
.data-table th:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.data-table th:last-child  { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.badge-active       { background: #dcfce7; color: #166534; }
.badge-out-of-stock { background: #fff7ed; color: #c2410c; }
.badge-discontinued { background: #f3f4f6; color: #6b7280; }
.badge-pending      { background: #fef3c7; color: #92400e; }
.badge-confirmed    { background: #dbeafe; color: #1e40af; }
.badge-delivered    { background: #dcfce7; color: #166534; }
.badge-cancelled    { background: #fee2e2; color: #991b1b; }

/* ─── MODALS ─────────────────────────────────────────────── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.15s;
}

.modal-backdrop.modal-static {
    /* Static backdrop - prevent closing on click outside */
    pointer-events: auto;
}

.modal-backdrop.modal-static .modal {
    pointer-events: auto;
}

.modal {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.2s;
    pointer-events: auto;
}

.modal-lg {
    max-width: 680px;
}

.modal-header {
    padding: 1.25rem 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-bottom: 2px solid var(--color-border);
}
.modal-title { font-family: 'Fredoka One', cursive; font-size: 1.3rem; color: var(--color-text); }
.modal-body  { padding: 1.25rem 1.5rem; }
.modal-footer { padding: 0 1.5rem 1.5rem; display: flex; gap: 0.75rem; justify-content: flex-end; border-top: 2px solid var(--color-border); padding-top: 1rem; position: sticky; bottom: 0; background: white; }
.modal-close-btn { background: none; border: none; font-size: 1.4rem; color: var(--color-text-muted); cursor: pointer; line-height: 1; transition: color 0.2s; }
.modal-close-btn:hover { color: var(--color-text); }

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── PAGE SECTIONS ──────────────────────────────────────── */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}
.page-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}
.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: var(--color-text);
}

/* ─── EMPTY STATE ────────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--color-text-muted);
    gap: 0.75rem;
}
.empty-state-icon { font-size: 3rem; opacity: 0.6; }
.empty-state-title { font-family: 'Fredoka One', cursive; font-size: 1.3rem; color: var(--color-text); }
.empty-state-subtitle { font-size: 0.95rem; max-width: 280px; }

/* ─── LOADING SPINNER ────────────────────────────────────── */
.spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--color-primary-light);
    border-top-color: var(--color-primary-dark);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── ORDER SUMMARY ──────────────────────────────────────── */
.order-summary-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-border);
    padding: 1.25rem;
}
.order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-weight: 700;
    font-size: 1.05rem;
    border-top: 2px solid var(--color-border);
    margin-top: 0.5rem;
}

/* ─── HERO BANNER ────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #fff 60%);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.hero-title { font-size: 2.2rem; color: var(--color-primary-dark); margin-bottom: 0.4rem; line-height: 1.2; }
.hero-subtitle { color: var(--color-text-muted); font-size: 1rem; }

/* ─── UTILITIES ──────────────────────────────────────────── */
.text-primary { color: var(--color-primary-dark); }
.text-muted   { color: var(--color-text-muted); }
.text-success { color: #166534; }
.text-danger  { color: #dc2626; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.fw-bold { font-weight: 700; }
.fs-sm { font-size: 0.85rem; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.img-fluid { max-width: 100%; height: auto; }

/* Blazor reconnect / error UI */
#blazor-error-ui {
    background: #fee2e2;
    bottom: 0;
    box-shadow: 0 -1px 6px rgba(0,0,0,.1);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: 0.9rem;
    color: #991b1b;
}
#blazor-error-ui .dismiss { cursor: pointer; font-weight: 700; float: right; }

/* ─── RESPONSIVE TWEAKS ──────────────────────────────────── */

/* Hero: smaller on mobile */
@media (max-width: 640px) {
    .hero { padding: 1.5rem 1rem; }
    .hero-title { font-size: 1.7rem; }
}

/* Toast: full width on mobile */
@media (max-width: 480px) {
    .toast-container { left: 1rem; right: 1rem; bottom: 1rem; }
    .toast { min-width: unset; max-width: 100%; }
}

/* Page container: tighter padding on mobile */
@media (max-width: 480px) {
    .page-container { padding: 1rem 0.75rem; }
    .page-title { font-size: 1.5rem; }
    .admin-main { padding: 1rem 0.75rem; }
}

/* Modal: full screen on mobile */
@media (max-width: 560px) {
    .modal { border-radius: var(--radius-md) var(--radius-md) 0 0; margin-top: auto; max-height: 95vh; }
    .modal-backdrop { align-items: flex-end; padding: 0; }
}

/* Data table: allow horizontal scroll */
@media (max-width: 768px) {
    .data-table { font-size: 0.82rem; }
    .data-table th, .data-table td { padding: 0.5rem 0.6rem; }
}

/* ─── ADMIN LOGIN PAGE ───────────────────────────────────── */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--color-primary-light) 0%, var(--color-bg) 50%, #fff 100%);
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.admin-login-bg-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.admin-login-bg-decoration span {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.08;
    animation: floatBg 8s ease-in-out infinite;
}
.admin-login-bg-decoration span:nth-child(1) { top: 8%;  left: 7%;  animation-delay: 0s;    font-size: 3rem; }
.admin-login-bg-decoration span:nth-child(2) { top: 15%; right: 10%; animation-delay: 1.2s; }
.admin-login-bg-decoration span:nth-child(3) { top: 60%; left: 5%;  animation-delay: 2.5s; font-size: 2rem; }
.admin-login-bg-decoration span:nth-child(4) { bottom: 12%; left: 20%; animation-delay: 0.7s; }
.admin-login-bg-decoration span:nth-child(5) { bottom: 20%; right: 8%; animation-delay: 1.9s; font-size: 3.5rem; }
.admin-login-bg-decoration span:nth-child(6) { top: 45%; right: 5%;  animation-delay: 3.1s; font-size: 2.2rem; }

@keyframes floatBg {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-12px) rotate(6deg); }
}

.admin-login-card {
    width: 100%;
    max-width: 400px;
    padding: 2.25rem 2rem;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.admin-login-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.admin-login-title {
    font-size: 1.9rem;
    color: var(--color-primary-dark);
    margin: 0 0 0.25rem;
}

/* ─── IMAGE UPLOAD ZONE ──────────────────────────────────── */
.image-upload-zone {
    border: 2px dashed var(--color-primary);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--color-bg);
    position: relative;
}
.image-upload-zone:hover,
.image-upload-zone.drag-over {
    border-color: var(--color-primary-dark);
    background: var(--color-primary-light);
}
.image-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.image-upload-icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
    line-height: 1;
}
.image-upload-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin: 0;
}
.image-upload-hint {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin: 0.2rem 0 0;
}

.image-preview-wrap {
    margin-top: 0.75rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1.5px solid var(--color-border);
    background: var(--color-primary-light);
    position: relative;
}
.image-preview-wrap img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.image-preview-remove {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    background: rgba(0,0,0,0.55);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s;
}
.image-preview-remove:hover { background: rgba(0,0,0,0.8); }
