:root {
    --pink: #ff6fa5;
    --pink-dark: #e8548c;
    --ink: #2b2b33;
    --bg: #fdf3f7;
    --card-bg: #ffffff;
    --border: #f0d9e4;
    --shadow: 0 8px 24px rgba(232, 84, 140, 0.12);
    --radius: 16px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Poppins', 'DejaVu Sans', sans-serif;
    background: var(--bg);
    color: var(--ink);
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0;
}
.brand .brand-main {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 2.4rem;
}
.brand .brand-script {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 2.4rem;
    color: var(--pink-dark);
}
.brand.small .brand-main,
.brand.small .brand-script {
    font-size: 1.5rem;
}

/* --- Login page --- */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at top, #fff0f6 0%, var(--bg) 70%);
}
.login-wrapper { text-align: center; }
.login-card {
    background: var(--card-bg);
    padding: 48px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 340px;
}
.login-subtitle {
    color: #8a8a94;
    margin: 4px 0 28px;
    font-size: 0.95rem;
}
.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}
.login-form label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b6b76;
}
.login-form input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s;
}
.login-form input:focus { border-color: var(--pink); }
.login-footer {
    margin-top: 24px;
    color: #b3b3bb;
    font-size: 0.8rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 10px;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform 0.1s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: #fff;
    box-shadow: 0 6px 16px rgba(232, 84, 140, 0.35);
}
.btn-secondary {
    background: #fff;
    color: var(--pink-dark);
    border: 1px solid var(--pink);
}
.btn-outline {
    background: transparent;
    color: #6b6b76;
    border: 1px solid var(--border);
}

/* --- Alerts --- */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.alert-error {
    background: #fde8ec;
    color: #b3264d;
    border: 1px solid #f6c2d2;
}

/* --- Topbar --- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 32px;
    background: #fff;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}
.search-form {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 420px;
}
.search-form input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-family: inherit;
    outline: none;
}
.search-form input:focus { border-color: var(--pink); }

/* --- Products grid --- */
.products-page {
    padding: 32px;
    max-width: 1200px;
    margin: 0 auto;
}
.empty-state {
    text-align: center;
    color: #8a8a94;
    margin-top: 60px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s, box-shadow 0.15s;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(232, 84, 140, 0.2);
}
.product-card-body { padding: 20px; }
.product-code {
    display: inline-block;
    font-size: 0.75rem;
    color: #fff;
    background: var(--pink-dark);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.product-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 8px;
}
.product-desc {
    font-size: 0.85rem;
    color: #7c7c86;
    margin: 0 0 12px;
    line-height: 1.4;
}
.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pink-dark);
    margin: 0;
}
.product-card-footer {
    padding: 14px 20px;
    background: #fdf3f7;
    border-top: 1px solid var(--border);
}
.btn-print { width: 100%; }
