/* === General Dashboard Styles === */
body.sabaiskin-dashboard-body { 
    background:#f5f6fa; margin:0; font-family:Arial,sans-serif; 
}
.sabaiskin-dashboard { 
    display:flex; min-height:100vh; 
}
/* === Sticky Filter Bar === */
.sabaiskin-filter-bar-wrapper {
    position: sticky;
    top: 0;
    z-index: 999;
	background: #ffff;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}
/* Ribbon circle on top-right of product card */
.sabaiskin-ribbon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff3366;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transform: rotate(15deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 10;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Hover animation */
.sabaiskin-card:hover .sabaiskin-ribbon {
    transform: rotate(0deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
/* === Hover Highlight (Pastel) === */
.sabaiskin-card:hover {
    background: #f9e6ff; /* pastel purple highlight */
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.sabaiskin-filter-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap; /* prevent multiple rows */
}
#productSearch, #categoryFilter {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
	white-space: nowrap; 
}

#productSearch {
    flex: 1 1 auto; /* take remaining space */
    min-width: 0;   /* allow shrinking */
}
.sabaiskin-sidebar {
    width: 220px;
    background: #f3e8ff; /* pastel purple */
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    align-items: center; /* center content horizontally */
}

.sabaiskin-logo {
    margin-bottom: 12px;
    text-align: center;
}

.sabaiskin-logo img {
    max-width: 260px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.sabaiskin-sidebar h2 {
    font-size: 20px;
    font-weight: 700;
    color: #8900f1;
    margin-bottom: 20px;
    text-align: center; /* center H2 under logo */
}
.sabaiskin-nav a {
    display:flex;
    align-items:center;
    padding:10px 12px;
    border-radius:8px;
    margin-bottom:0; /* remove bottom margin to rely on border */
    color:#8900f1;
    text-decoration:none;
    font-weight:500;
    transition:.2s;
    border-bottom:1px solid rgba(0,0,0,0.08); /* separator line */
}

.sabaiskin-nav a:last-child {
    border-bottom:none; /* remove separator for last link */
}

.sabaiskin-nav a:hover,
.sabaiskin-nav a.active {
    background:#8900f1;
    color:#fff;
}

.sabaiskin-main { 
    flex:1; display:flex; flex-direction:column; padding:20px; position:relative; /* make loader relative to main content */
}

/* === Loader inside main content === */
#sabaiskin-dashboard-loader {
    position: absolute; /* only overlay main content */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none; /* hidden by default */
}
.sabaiskin-spinner {
    border:4px solid #eee;
    border-top:4px solid #000;
    border-radius:50%;
    width:40px;
    height:40px;
    animation:spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === Filter Bar (Search + Category) === */
.sabaiskin-filter-bar {
    display:flex;
    gap:10px;
    align-items:center;
    margin-bottom:16px;
    flex-wrap:wrap;
}
#productSearch {
    flex:1 1 200px;
    padding:10px 12px;
    font-size:15px;
    border:1px solid #ddd;
    border-radius:8px;
    outline:none;
    box-sizing:border-box;
}
#productSearch:focus {
    border-color:#914a9b;
    box-shadow:0 0 0 2px rgba(145,74,155,0.2);
}
#categoryFilter {
    padding:10px 12px;
    font-size:15px;
    border:1px solid #ddd;
    border-radius:8px;
    outline:none;
}

/* === Products Grid === */
.sabaiskin-products-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:16px;
}

/* === Product Card Uniform Style === */
.sabaiskin-card {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px; /* uniform height */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}
/* === Hover Highlight (Pastel) === */
.sabaiskin-card:hover {
    background: #f9e6ff; /* pastel purple highlight */
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.sabaiskin-title { font-size:16px; font-weight:600; color:#333; margin:8px 0; line-height:1.3; }
.sabaiskin-price { font-size:15px; font-weight:500; margin:5px 0; }
.sabaiskin-add-to-cart {
    display:inline-block;
    background:#ff3366;
    color:#fff;
    border:none;
    padding:10px 14px;
    font-size:14px;
    font-weight:600;
    border-radius:8px;
    cursor:pointer;
	width:100%;
    transition: background .2s ease;
}
.sabaiskin-add-to-cart:hover { background:#e62b5a; }

/* === Toast Notification === */
#sabaiskin-toast { 
    position: fixed; 
    top: 20px; 
    right: 20px;
    background: transparent;
    padding: 0; 
    z-index: 99999; 
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sabaiskin-toast-item {
    background: #333; 
    color: #fff; 
    padding: 10px 16px; 
    border-radius: 6px; 
    font-size: 14px; 
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
/* === Sidebar Bottom Navigation === */
.sabaiskin-bottom-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: sticky;
    bottom: 20px;
    left: 0;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.05);
    z-index: 10; /* above sidebar content */
}

/* === Sidebar Bottom Navigation (relative) === */
.sabaiskin-bottom-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto; /* push to bottom of sidebar */
    width: 100%;
}

.sabaiskin-bottom-nav a {
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 10px 12px;
    border-radius:8px;
    text-decoration:none;
    color:#fff;
    font-weight:600;
    background:#8900f1;
    transition:.2s;
    box-shadow:0 2px 6px rgba(0,0,0,0.2);
}
.sabaiskin-bottom-nav a:hover {
    background:#6f00c0;
    transform: scale(1.05);
}
/* === Floating Cart === */
#sabaiskin-floating-cart { 
    position:fixed; bottom:20px; right:20px; background:#ff3366; color:#fff; border-radius:50%; width:56px; height:56px; display:flex; align-items:center; justify-content:center; font-size:20px; cursor:pointer; box-shadow:0 4px 8px rgba(0,0,0,0.2); z-index:9999; 
}
#sabaiskin-floating-cart span { font-size:14px; font-weight:700; margin-left:4px; }

/* === Cart Panel === */
#sabaiskin-cart-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.5); opacity:0; visibility:hidden; transition:.3s; z-index:9998; }
#sabaiskin-cart-overlay.open { opacity:1; visibility:visible; }
#sabaiskin-cart-panel { position:fixed; top:0; right:-400px; width:350px; height:100%; background:#fff; box-shadow:-2px 0 10px rgba(0,0,0,0.1); transition:right .3s ease; z-index:9999; display:flex; flex-direction:column; }
#sabaiskin-cart-panel.open { right:0; }
.sabaiskin-cart-header { display:flex; justify-content:space-between; align-items:center; padding:15px; border-bottom:1px solid #ddd; }
#sabaiskin-close-cart { background:none; border:none; font-size:24px; cursor:pointer; }
.sabaiskin-cart-contents { flex:1; overflow-y:auto; padding:15px; }
.sabaiskin-cart-item input { width:50px; padding:2px; margin-left:5px; border-radius:4px; border:1px solid #ccc; text-align:center; }
.sabaiskin-cart-item button { background:none; border:none; color:#ff3366; cursor:pointer; font-size:16px; margin-left:5px; }