/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Nunito:wght@300;400;500;600;700&display=swap');

:root {
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-200: #fbcfe8;
    --pink-300: #f9a8d4;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --pink-700: #be185d;
    --pink-800: #9d174d;
    --pink-900: #831843;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --mauve: #b5838d;
    --cream: #fff9f5;
    --dark: #1a0a0f;
    --gray-50: #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-400: #a1a1aa;
    --gray-600: #52525b;
    --gray-800: #27272a;
    --sidebar-w: 260px;
    --header-h: 70px;
    --shadow-sm: 0 1px 3px rgba(219,39,119,0.08);
    --shadow-md: 0 4px 20px rgba(219,39,119,0.12);
    --shadow-lg: 0 8px 40px rgba(219,39,119,0.18);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    background: var(--cream);
    color: var(--gray-800);
    min-height: 100vh;
    font-size: 14px;
}

h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--pink-50); }
::-webkit-scrollbar-thumb { background: var(--pink-300); border-radius: 3px; }

/* ============ LAYOUT ============ */
.wrapper { display: flex; min-height: 100vh; }

/* ---- SIDEBAR ---- */
.sidebar{
    width: var(--sidebar-w);
    background: linear-gradient(180deg,#a11457 0%,#8c124e 45%,#6d103f 100%);
    position: fixed;
    top:0;
    left:0;
    bottom:0;

    display:flex;
    flex-direction:column;

    overflow:hidden;

    box-shadow:8px 0 35px rgba(0,0,0,.18);

    z-index:999;

    transition:.35s;
}

.sidebar-logo{

    padding:24px;

    background:rgba(255,255,255,.04);

    backdrop-filter:blur(10px);

    border-bottom:1px solid rgba(255,255,255,.08);
}

.sidebar-logo-icon{

    width:58px;

    height:58px;

    border-radius:18px;

    background:linear-gradient(135deg,#ff9cc9,#ff4f9d);

    box-shadow:0 10px 25px rgba(255,90,160,.4);
}

.sidebar-logo-text { flex: 1; }
.sidebar-logo-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: #fff;
    font-weight: 700;
    line-height: 1;
}
.sidebar-logo-text span {
    font-size: 11px;
    color: var(--pink-200);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.sidebar-nav{
    flex:1;

    overflow-y:auto;
    overflow-x:hidden;

    padding:18px 15px 25px;

    scrollbar-width:thin;
    scrollbar-color:#ff79b0 transparent;
}

.sidebar-nav::-webkit-scrollbar{
    width:7px;
}

.sidebar-nav::-webkit-scrollbar-track{
    background:transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.35);
    border-radius:20px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover{
    background:#ff87ba;
}

.nav-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pink-300);
    padding: 16px 12px 8px;
    font-weight: 700;
}

.nav-item{
    display:flex;
    align-items:center;

    gap:14px;

    padding:13px 15px;

    margin-bottom:6px;

    border-radius:14px;

    color:rgba(37, 33, 33, 0.82);

    transition:.25s;

    font-size:14px;

    font-weight:600;
}

.nav-item:hover{
    background:#c39a9ab8;

    transform:translateX(6px);

    color:rgb(0, 0, 0);

    box-shadow:0 8px 20px rgba(0,0,0,.12);
}

.nav-item.active{
    background:linear-gradient(135deg,#f868aa,#ec4899);

    color:#ffffff;

    box-shadow:0 10px 25px rgba(236,72,153,.45);

    border:none;
}

.nav-item .nav-icon { font-size: 18px; width: 22px; text-align: center; flex-shrink: 0; }

.sidebar-footer{

    padding:18px;

    background:rgba(255,255,255,.05);

    border-top:1px solid rgba(255,255,255,.08);
}

.user-info-sidebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
}

.user-avatar-sm {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-300), var(--rose-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.user-info-text { flex: 1; min-width: 0; }
.user-info-text strong { display: block; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info-text small { font-size: 11px; color: var(--pink-200); text-transform: capitalize; }

.btn-logout-sidebar {
    background: none; border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 16px;
    transition: color .2s;
    padding: 4px;
}
.btn-logout-sidebar:hover { color: var(--rose-400); }

/* ---- MAIN CONTENT ---- */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- TOPBAR ---- */
.topbar {
    height: var(--header-h);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--pink-100);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 20px rgba(219,39,119,0.06);
}

.topbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--pink-600);
}

.topbar-title { flex: 1; }
.topbar-title h2 {
    font-size: 20px;
    color: var(--pink-800);
    font-family: 'Playfair Display', serif;
}
.topbar-title p { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

.topbar-actions { display: flex; align-items: center; gap: 12px; }

.topbar-btn {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--pink-50);
    border: 1px solid var(--pink-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all .2s;
    color: var(--pink-600);
    position: relative;
}
.topbar-btn:hover { background: var(--pink-100); }

.badge-count {
    position: absolute;
    top: -4px; right: -4px;
    width: 18px; height: 18px;
    background: var(--rose-500);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ---- PAGE CONTENT ---- */
.page-content { padding: 28px; flex: 1; }

/* ---- CARDS ---- */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(219,39,119,0.06);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--pink-50);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.card-title {
    font-size: 17px;
    font-family: 'Playfair Display', serif;
    color: var(--pink-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body { padding: 24px; }

/* ---- STAT CARDS ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(219,39,119,0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all .3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    border-radius: 0 16px 0 80px;
    opacity: 0.08;
}

.stat-card:nth-child(1)::before { background: var(--pink-500); }
.stat-card:nth-child(2)::before { background: var(--rose-500); }
.stat-card:nth-child(3)::before { background: #8b5cf6; }
.stat-card:nth-child(4)::before { background: #f59e0b; }

.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.stat-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-card:nth-child(1) .stat-icon { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: var(--pink-600); }
.stat-card:nth-child(2) .stat-icon { background: linear-gradient(135deg, #ffe4e6, #fecdd3); color: var(--rose-500); }
.stat-card:nth-child(3) .stat-icon { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }
.stat-card:nth-child(4) .stat-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }

.stat-value { font-size: 26px; font-weight: 700; color: var(--gray-800); font-family: 'Nunito', sans-serif; line-height: 1; }
.stat-label { font-size: 12px; color: var(--gray-400); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-change { font-size: 12px; font-weight: 600; }
.stat-change.up { color: #16a34a; }
.stat-change.down { color: var(--rose-500); }

/* ---- TABLE ---- */
.table-wrapper { overflow-x: auto; }

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

thead th {
    background: var(--pink-50);
    color: var(--pink-700);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 2px solid var(--pink-100);
}

tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: background .15s;
}

tbody tr:hover { background: var(--pink-50); }
tbody tr:last-child { border-bottom: none; }

tbody td {
    padding: 13px 16px;
    color: var(--gray-800);
    font-size: 13.5px;
    vertical-align: middle;
}

/* ---- BADGES ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

/* ---- FORMS ---- */
.form-group { margin-bottom: 20px; }

label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
}

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=tel], select, textarea {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: var(--gray-800);
    background: #fff;
    transition: all .2s;
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--pink-400);
    box-shadow: 0 0 0 3px rgba(236,72,153,0.1);
}

input.error { border-color: var(--rose-500); }
.error-msg { font-size: 12px; color: var(--rose-500); margin-top: 4px; display: block; }

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

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
    color: #fff;
    box-shadow: 0 4px 15px rgba(219,39,119,0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--pink-600), var(--pink-700));
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(219,39,119,0.4);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--pink-400);
    color: var(--pink-600);
}
.btn-outline:hover { background: var(--pink-50); }

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}
.btn-danger:hover { transform: translateY(-1px); }

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 4px 12px rgba(34,197,94,0.3);
}

.btn-sm { padding: 6px 14px; font-size: 12.5px; }
.btn-xs { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.btn-icon { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 8px; }

/* ---- SEARCH BAR ---- */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-input-wrap input {
    padding-left: 38px;
}

.search-input-wrap .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 16px;
}

/* ---- PAGINATION ---- */
.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 20px 24px;
    border-top: 1px solid var(--gray-100);
    flex-wrap: wrap;
}

.page-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--gray-200);
    background: #fff;
    color: var(--gray-600);
    transition: all .2s;
}

.page-btn:hover, .page-btn.active {
    background: var(--pink-500);
    border-color: var(--pink-500);
    color: #fff;
}

/* ---- PRODUCT GRID ---- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(219,39,119,0.06);
    overflow: hidden;
    transition: all .3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--pink-50), var(--pink-100));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--pink-200);
}

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

.product-info { padding: 16px; }
.product-name { font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--gray-800); line-height: 1.4; }
.product-category { font-size: 11px; color: var(--pink-400); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.product-price { font-size: 16px; font-weight: 800; color: var(--pink-600); }
.product-price-old { font-size: 12px; color: var(--gray-400); text-decoration: line-through; margin-left: 6px; }
.product-actions { display: flex; gap: 8px; margin-top: 14px; }

/* ---- CART ---- */
.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.cart-item-img {
    width: 70px; height: 70px;
    border-radius: 10px;
    background: var(--pink-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    overflow: hidden;
}

.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; font-size: 14px; }
.cart-item-price { font-size: 13px; color: var(--pink-600); font-weight: 600; margin-top: 4px; }

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 30px; height: 30px;
    background: var(--pink-50);
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    color: var(--pink-600);
}
.qty-btn:hover { background: var(--pink-100); }

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    font-weight: 700;
    border-radius: 0;
    padding: 0;
    height: 30px;
    font-size: 14px;
}

/* ---- NOTIFICATION ---- */
.notif {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    position: relative;
    animation: slideDown .3s ease;
}

.notif button {
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    font-size: 18px; cursor: pointer;
    opacity: 0.5; transition: opacity .2s;
    line-height: 1;
}
.notif button:hover { opacity: 1; }
.notif-icon { font-size: 18px; flex-shrink: 0; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ---- LOGIN PAGE ---- */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--pink-800) 0%, var(--pink-900) 40%, #3d0520 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(244,114,182,0.2) 0%, transparent 70%);
    top: -200px; right: -200px;
    pointer-events: none;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(244,114,182,0.15) 0%, transparent 70%);
    bottom: -100px; left: -100px;
    pointer-events: none;
}

.auth-card {
    background: rgba(255,255,255,0.97);
    border-radius: 24px;
    padding: 50px 44px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--pink-400), var(--pink-700));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin: 0 auto 16px;
    box-shadow: 0 8px 25px rgba(219,39,119,0.4);
}

.auth-logo h1 {
    font-size: 28px;
    color: var(--pink-800);
    font-family: 'Playfair Display', serif;
}

.auth-logo p { font-size: 13px; color: var(--gray-400); margin-top: 4px; }

.auth-tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 28px;
}

.auth-tab {
    flex: 1;
    padding: 9px;
    text-align: center;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    color: var(--gray-400);
    border: none;
    background: none;
    font-family: 'Nunito', sans-serif;
}

.auth-tab.active {
    background: #fff;
    color: var(--pink-600);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.input-icon-wrap { position: relative; }
.input-icon-wrap input { padding-left: 42px; }
.input-icon-wrap .input-icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--pink-300);
    font-size: 17px;
}

/* ---- PRODUCT IMAGE PLACEHOLDER ---- */
.img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--pink-50), var(--pink-100));
    display: flex; align-items: center; justify-content: center;
    font-size: 48px;
    color: var(--pink-200);
}

/* ---- CHART AREA ---- */
.chart-bar {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    padding-top: 10px;
}

.bar-item { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.bar-fill {
    width: 100%;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(to top, var(--pink-600), var(--pink-400));
    transition: height .5s ease;
    min-height: 4px;
}

.bar-label { font-size: 10px; color: var(--gray-400); font-weight: 600; }

/* ---- ORDER DETAIL ---- */
.order-timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 36px;
    bottom: 0;
    width: 2px;
    background: var(--pink-100);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--pink-50);
    border: 2px solid var(--pink-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    z-index: 1;
}
.timeline-dot.active {
    background: linear-gradient(135deg, var(--pink-400), var(--pink-600));
    border-color: var(--pink-500);
    color: #fff;
}
.timeline-content h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.timeline-content small { font-size: 12px; color: var(--gray-400); }

/* ---- EMPTY STATE ---- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
}
.empty-state .empty-icon { font-size: 60px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; color: var(--gray-600); margin-bottom: 8px; }
.empty-state p { font-size: 13px; }

/* ---- MODAL ---- */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-backdrop.show { display: flex; }

.modal {
    background: #fff;
    border-radius: 20px;
    width: 100%; max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    animation: modalIn .3s ease;
}

@keyframes modalIn { from { opacity:0; transform: scale(0.9) translateY(20px); } to { opacity:1; transform: scale(1) translateY(0); } }

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--pink-50);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title { font-size: 18px; font-family: 'Playfair Display', serif; color: var(--pink-800); }

.modal-close {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.modal-close:hover { background: var(--pink-100); }

.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ---- SHOP HEADER ---- */
.shop-header {
    background: linear-gradient(135deg, var(--pink-800), var(--pink-900));
    color: #fff;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.shop-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
}

.shop-nav { display: flex; align-items: center; gap: 20px; }
.shop-nav a {
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    transition: color .2s;
}
.shop-nav a:hover { color: var(--pink-200); }

.shop-nav-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    transition: background .2s;
    border: 1px solid rgba(255,255,255,0.2);
}
.shop-nav-btn:hover { background: rgba(255,255,255,0.25); }

/* ---- HERO BANNER ---- */
.hero-banner {
    background: linear-gradient(135deg, var(--pink-700) 0%, var(--pink-900) 60%, #3d0520 100%);
    padding: 70px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '🌸';
    position: absolute;
    font-size: 300px;
    right: -50px; top: -80px;
    opacity: 0.05;
    line-height: 1;
}

.hero-content { max-width: 600px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(244,114,182,0.25);
    border: 1px solid rgba(244,114,182,0.4);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pink-200);
    margin-bottom: 18px;
}

.hero-banner h1 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
}

.hero-banner p { font-size: 15px; color: rgba(255,255,255,0.75); margin-bottom: 28px; }

/* ---- FOOTER ---- */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 24px;
    font-size: 13px;
}
.site-footer span { color: var(--pink-400); }

/* ---- RESPONSIVE ---- */
@media(max-width:768px){

.sidebar{

    transform:translateX(-100%);

    width:290px;

}

.sidebar.open{

    transform:translateX(0);

}

.main-content{

    margin-left:0;

}

.topbar-toggle{

    display:flex;

}
}



@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 32px 24px; }
}

/* ---- OVERLAY ---- */
.sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}
.sidebar-overlay.show { display: block; }

/* ---- MISC ---- */
.text-pink { color: var(--pink-600); }
.text-muted { color: var(--gray-400); }
.text-sm { font-size: 12px; }
.fw-700 { font-weight: 700; }
.mt-4 { margin-top: 4px; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

.produk-img-preview {
    width: 120px; height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--pink-200);
}

.select-wrapper { position: relative; }
.select-wrapper select { appearance: none; padding-right: 36px; }
.select-wrapper::after {
    content: '▾';
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--pink-400);
    pointer-events: none;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
}

.summary-row + .summary-row { border-top: 1px dashed var(--gray-200); }
.summary-total { font-size: 18px; font-weight: 800; color: var(--pink-600); }
.summary-label-total { font-size: 15px; font-weight: 700; }
