/* ===== AULIA ECOMMERCE — COMPONENTS ===== */

/* === Bottom Navigation === */
.ae-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 12px;
    z-index: 1000;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.05);
}

.ae-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #94a3b8;
    position: relative;
    padding: 4px 12px;
    border-radius: 8px;
    transition: color 0.2s;
}
.ae-nav-item--active {
    color: #0d9488;
}
.ae-nav-item--active .ae-nav-icon {
    transform: scale(1.1);
}

.ae-nav-icon {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ae-nav-icon svg {
    display: block;
}

.ae-badge {
    position: absolute;
    top: -2px;
    right: 2px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* === Cards === */
.ae-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #f1f5f9;
}

/* === Buttons === */
.ae-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.ae-btn-primary {
    background: #0d9488;
    color: #fff;
}
.ae-btn-primary:hover {
    background: #0f766e;
}
.ae-btn-outline {
    background: transparent;
    border: 1.5px solid #e2e8f0;
    color: #475569;
}
.ae-btn-outline:hover {
    border-color: #0d9488;
    color: #0d9488;
}
.ae-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}
.ae-btn-block {
    width: 100%;
}

/* === Form Inputs === */
.ae-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
    background: #fff;
}
.ae-input:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}

/* === Badge === */
.ae-badge-dot {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #475569;
}

/* === Section Headers === */
.ae-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}
.ae-section-header h2 {
    font-size: 18px;
    font-weight: 700;
}
.ae-section-header a {
    font-size: 13px;
    font-weight: 500;
    color: #0d9488;
}

/* === Loading === */
.ae-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}
.ae-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #0d9488;
    border-radius: 50%;
    animation: ae-spin 0.6s linear infinite;
}
@keyframes ae-spin {
    to { transform: rotate(360deg); }
}

/* === Page Header === */
.ae-page-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}
.ae-page-subtitle {
    font-size: 14px;
    color: #64748b;
}

/* === Site Wrapper === */
.app-container { width: 100%; max-width: 460px; background: #fff; min-height: 100vh; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

/* === Navbar === */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #fff; border-bottom: 1px solid #f1f5f9; }
.nav-left { display: flex; align-items: center; gap: 20px; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.icon-btn { background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #334155; padding: 4px; }
.brand-name { font-size: 18px; font-weight: 600; color: #003a6c; letter-spacing: -0.3px; }
.cart-badge { position: absolute; top: -4px; right: -6px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* === Sidebar Menu === */
.menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s; }
.menu-overlay.open { opacity: 1; visibility: visible; }
.sidebar-menu { position: fixed; top: 0; left: 0; width: 280px; height: 100%; background: #fff; z-index: 1000; transform: translateX(-100%); transition: transform 0.3s; display: flex; flex-direction: column; }
.sidebar-menu.open { transform: translateX(0); }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #f1f5f9; }
.sidebar-close { background: none; border: none; cursor: pointer; color: #64748b; padding: 4px; display: flex; align-items: center; justify-content: center; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.sidebar-menu-list { list-style: none; margin: 0; padding: 0; }
.sidebar-menu-list li { border-bottom: 1px solid #f8fafc; }
.sidebar-menu-list li a { display: block; padding: 14px 20px; font-size: 15px; font-weight: 500; color: #334155; text-decoration: none; }
.sidebar-menu-list li.current-menu-item a { color: #0d9488; font-weight: 600; }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid #f1f5f9; }
.sidebar-cart-link { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #334155; text-decoration: none; }

/* === Empty State === */
.ae-empty {
    text-align: center;
    padding: 48px 20px;
}
.ae-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.ae-empty h3 {
    font-size: 18px;
    margin-bottom: 8px;
}
.ae-empty p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}
