:root {
    --primary-color: #00b14f;
    /* Fresh Green */
    --primary-dark: #008a3e;
    --secondary-color: #f1c40f;
    /* Sunac Golden */
    --accent-color: #ff6b6b;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --border-radius: 12px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: var(--font-family);
    background-color: #fdfdfd;
    color: var(--dark-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--dark-color);
}

h1:focus,
h1:focus-visible,
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 177, 79, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.card {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom categories icons */
.category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--light-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: var(--primary-color);
    color: white;
    transform: rotate(-5deg) scale(1.1);
}

/* Skeleton loader premium */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

.placeholder-glow .placeholder {
    animation: shimmer 1.5s infinite linear;
    background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
    background-size: 800px 104px;
}

/* Hero Section */
.premium-hero {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    overflow: hidden;
}

.premium-hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 177, 79, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

/* Product list styles */
.product-img-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Cart drawer simulation */
.cart-badge {
    background: var(--accent-color);
    color: white;
    font-weight: 700;
    border: 2px solid white;
}

/* Blazor Error UI */
#blazor-error-ui {
    background: #ff6b6b;
    color: white;
    padding: 0.6rem 1.25rem;
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

#blazor-error-ui a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

/* Sticky Footer */
footer {
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

/* ===== Account pages ===== */
.auth-wrap { display:flex; justify-content:center; padding:1.5rem 1rem 3rem; }
.auth-card { width:100%; max-width:420px; background:#fff; border-radius:16px; padding:2rem 1.5rem; box-shadow:0 8px 30px rgba(0,0,0,.08); }
.auth-logo { width:56px; height:56px; margin:0 auto 1rem; border-radius:16px; background:var(--primary-color); color:#fff; font-size:1.75rem; font-weight:700; display:flex; align-items:center; justify-content:center; }
.auth-title { text-align:center; font-size:1.5rem; font-weight:700; margin-bottom:.25rem; color:var(--dark-color); }
.auth-subtitle { text-align:center; color:#6c757d; margin-bottom:1.5rem; }
.auth-label { display:block; font-weight:600; font-size:.9rem; margin-bottom:.35rem; color:var(--dark-color); }
.auth-input { height:48px; font-size:1rem; border-radius:10px; }
.auth-input:focus { border-color:var(--primary-color); box-shadow:0 0 0 .2rem rgba(0,177,79,.2); }
.auth-row { display:flex; justify-content:space-between; align-items:center; font-size:.9rem; }
.auth-remember { display:flex; align-items:center; gap:.5rem; margin:0; }
.auth-row a, .auth-footer a { color:var(--primary-dark); text-decoration:none; font-weight:600; }
.auth-btn-primary, .auth-btn-secondary { display:block; width:100%; min-height:48px; border-radius:10px; font-size:1rem; font-weight:600; cursor:pointer; text-align:center; }
.auth-btn-primary { background:var(--primary-color); color:#fff; border:none; }
.auth-btn-primary:hover { background:var(--primary-dark); }
.auth-btn-secondary { background:#fff; color:var(--dark-color); border:1px solid #ced4da; }
.auth-divider { display:flex; align-items:center; gap:.75rem; color:#adb5bd; margin:1.25rem 0; font-size:.85rem; }
.auth-divider::before, .auth-divider::after { content:""; flex:1; height:1px; background:#e9ecef; }
.auth-footer { text-align:center; margin:1.5rem 0 0; color:#6c757d; font-size:.9rem; line-height:1.9; }
.auth-external:empty { display:none; }